Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with Views!!

Status
Not open for further replies.

akrishmohan

Programmer
May 3, 2002
20
US
Iam an inexperienced MS SQL Server Programmer.I wanted to know if there is any way to link a table and a view having three fields in common.Please help me out with this.
thanks
krishna
 
You can JOIN on multiple columns as in the following example.

FROM Table_Name t
INNER JOIN View_Name v
ON t.TblCol1=v.ViewCol1
AND t.TblCol2=v.ViewCol2
AND t.TblCol3=v.ViewCol3
Terry L. Broadbent - DBA
SQL Server Page:
If you want to get the best answer for your question read faq183-874.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top