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.
| Author |
Topic |
|
Arun.G
Yak Posting Veteran
81 Posts |
Posted - 2010-05-20 : 02:08:15
|
| I have 3 tables a,b,csmaple data:table A:ID, Fname, Lanme dob 1 aaa b 10/10/19902 bbb c 14/02/19893 ccc d 19/11/1986table B:ID position function salary1 trainee it 50002 contract hr 45003 permannent product 6000 table cpositionid position isappriaser1 trainee 12 contract 03 permanent 1Now i want the result like:(only want to display the name and postion of isappraiser=1)ID fname laname position1 aaa b trainee3 ccc d permanenthow to do with sqlserver 2008 ? |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
Posted - 2010-05-20 : 02:15:35
|
[code]select *from tablea a inner join tableb on a.id = b.id inner join tablec on b.position = c.positionwhere c.isappraiser = 1[/code] KH[spoiler]Time is always against us[/spoiler] |
 |
|
|
amityadav84
Starting Member
1 Post |
Posted - 2010-05-20 : 12:30:47
|
| what is diffrence between inner join and equi joinyadav |
 |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-05-20 : 14:01:41
|
http://www.orafaq.com/wiki/Equi_join No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
|
|
|