Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SQL Query

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2006-10-04 : 07:40:28
Mohammed writes "Dear
actually i wanted to store records based on company level

if level 1 company then display all records which belong to that company plus the user logged in company records

and while creating records select 4 modes to assign for each record for saving,
that is to display the particular record on intranet,website,all intranet sites, all websites.

and in company table company level is stored as primary or secondary

and another table visibilitys are stored with visibility ids
for each company and these visibilityids are selected as 4 modes while creating records



if you understood the explanation then what i want is
now after login i have my companyid and those which are in primary position company ids but not secondary ones.

and i also have those visibility ids for the now selected companyids

so now i want to search in records table for those values which match now selected companyids and whose visibility ids match now selected visibility ids

in the table of records i am storing for each record its visibility ids like ,1,2,3,

if you have understood the query the can u suggest me how to write a query to fetch those only records which match as said criteria


your suggesstion are highly appreciated

thanks"

chiragkhabaria
Master Smack Fu Yak Hacker

1907 Posts

Posted - 2006-10-04 : 09:03:53
Read this article and post accordingly
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Chirag
Go to Top of Page
   

- Advertisement -