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
 Query Help

Author  Topic 

sturner333
Starting Member

22 Posts

Posted - 2014-10-07 : 10:44:52
I have 2 tables. Based on the Table1 id which is a column in Table2, I would like the following

Table1
T1_Id
1
2
3
4

Table2
T2_ID T1_ID Color
1 3 red
2 3 blue
3 1 green
4 1 orange

Result
Just the records 3 and 1 from table1

Thanks for the help

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-10-07 : 12:05:47
This is clearly a homework question, so please show us what you have so far.

Tara Kizer
SQL Server MVP since 2007
http://weblogs.sqlteam.com/tarad/
Go to Top of Page
   

- Advertisement -