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)
 Selection

Author  Topic 

sona
Yak Posting Veteran

68 Posts

Posted - 2001-12-11 : 05:56:15
i have 3 tables

Grouptable: GroupID(IDENTITY) , Groupname
classTable: ClassId(IDENTITY) ,GroupID,Classname
FilterTable:FilterID(IDENTITY) ,ClassID,Filtername

I want the output as

groupname,classname,filtername (ALL related ones on ID ) in a single query.

LarsG
Constraint Violating Yak Guru

284 Posts

Posted - 2001-12-11 : 07:24:45
select Groupname,Classname,Filtername
from grouptable as g join classtable as c on g.GroupID = c.GroupID
join filtertable as f on c.ClassID = f.ClassID

Go to Top of Page
   

- Advertisement -