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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help me with JOIN?? 1

Status
Not open for further replies.

Dorine

Programmer
Jul 18, 2002
14
CA
I would like to join to tables. I would like to see all the data from table a and only the data from table f which corresponds with table a. I thought a left join would be the solution but I still get all the data from the two tables. I have read the paper on joins but I know I am doing something wrong. Please help!

select * from dbo.PRSEBA a
left join dbo.PFFTPR f on a.ZZCLNR = f.TFCLNR
 
You need an inner join

Code:
select * from dbo.PRSEBA a
join dbo.PFFTPR f on a.ZZCLNR = f.TFCLNR

not a left outer join.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top