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
 General SQL Server Forums
 New to SQL Server Programming
 nested query or a join?

Author  Topic 

Vishian
Starting Member

3 Posts

Posted - 2007-02-08 : 22:00:28
I have a database that contains a PERSONNEL table, a VISIT table, and a STARSHIP table.
I am trying to generate a single column list of the personnel that are from Vulcan (PERSONNEL.PLANET) and all starships that have visited Vulcan (VISIT.PLANET). VISIT.SHIP and STARSHIP.REGISTRY columns contain the ships identifiers. How would I accomplish this? I am just beginning sql so please be nice ;)

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-02-08 : 22:20:34
You can start by posting the table structure for PERSONNEL, VISIT & STARSHIP.

It will be good if you can include some sample data for each of the table.

And don't forget the result the you want.


KH

Go to Top of Page
   

- Advertisement -