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
 result from two tables

Author  Topic 

hle
Starting Member

7 Posts

Posted - 2007-10-22 : 09:41:20
I would like to select a row (or multiple rows) from one table and at the same time all related columns from a second table (1:N)example, a phone book; selecting everyone with a certain name from the person_table and all their related phone numbers from the numbers_table, like

SELECT...

Smith, John 123456 234567 345678
Smith, Will 654321 765432 876543 987654
Smith, Eric 55564

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-10-22 : 09:42:54
Refer this
http://www.sqljunkies.com/WebLog/amachanic/archive/2004/11/10/5065.aspx

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-10-22 : 09:43:00
Using which DBMS?
Microsoft SQL Server 2000 or Microsoft SQL Server 2005?



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

hle
Starting Member

7 Posts

Posted - 2007-10-22 : 10:02:52
MS SQL Server 2005 Express Edition and (later on) MS SQL Server 2005.
quote:
Originally posted by Peso

Using which DBMS?
Microsoft SQL Server 2000 or Microsoft SQL Server 2005?



E 12°55'05.25"
N 56°04'39.16"


Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2007-10-22 : 10:11:29
Then refer
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81254

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -