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
 SQL Server 2012 Forums
 Transact-SQL (2012)
 Query

Author  Topic 

sqlfresher2k7
Aged Yak Warrior

623 Posts

Posted - 2015-01-05 : 18:12:36
I need a query to produce the expected results..

THanks for your help in advance


Table:StudentInfo
----------

StudentNo Name
-------- -------
1234 Sam


Table:StudentDesc

StudentNo Desc Scd
--------- ----- ----
1234 Science 01
1234 Social 04


Expected output
=================


StudentNo Name Desc Desc
-------- ------- -------- -------
1234 Sam Science Social

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2015-01-05 : 18:18:22
http://technet.microsoft.com/en-us/library/ms177410(v=sql.105).aspx

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

- Advertisement -