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
 A noobs question!

Author  Topic 

franciscoferreira34
Starting Member

2 Posts

Posted - 2014-03-18 : 12:25:08
Hi, i'm new in SQL. I defined two select statements. Each one returned to me a column with ID's. Now I want a column in which appears only the ID's that are in both columns. How can i achieve this?

Thanks ;)

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2014-03-18 : 12:47:25
Show us your two select queries, sample data and expected output.

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

franciscoferreira34
Starting Member

2 Posts

Posted - 2014-03-18 : 13:31:00
thanks, i already solved it ;)
Go to Top of Page
   

- Advertisement -