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)
 Beginner: Loop-up table query

Author  Topic 

sealeopard
Starting Member

1 Post

Posted - 2002-10-15 : 12:24:27
Hi guys:

I'm a relative beginner with regards to SQL. I have two tables, one containing filenames (FID,FName), a second one containing keywords (KID,KWord). I also have a look-up table linking keywords to filenames such that multiple keywords can be associated with any filename (FID,KID). I've been trying to create a SELECT statement retrieving FIDs from the look-up table if the FID is associated with two or more KIDs. It's along the lines of 'select all filename IDs where the keyword ID is 1 and 2 and 3)'.

Is there an easy way to accomplish this?

MichaelP
Jedi Yak

2489 Posts

Posted - 2002-10-15 : 12:53:57
Take a look at this article. I think this will do what you need.

http://www.sqlteam.com/item.asp?ItemID=11499

Michael


<Yoda>Use the Search page you must. Find the answer you will.</Yoda>
Go to Top of Page
   

- Advertisement -