SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Sql query assistance
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

vignesht50
Yak Posting Veteran

82 Posts

Posted - 03/07/2014 :  01:17:11  Show Profile  Reply with Quote
This is my table

Dept Name Subject

CSE Paul C
ECE Mark C++
CSE Paul DSP
AERO Steve Aerodynamics
ECE Ben Electrical
CSE Mark C++
AERO Ben Astrophysics


Expected Output:

Dept Name Subject

CSE Paul C
CSE Paul DSP
CSE Mark C++
ECE Mark C++
ECE Ben Electrical
AERO Ben Astrophysics
AERO Steve Aerodynamics

Can anyone help me solve this.

Edited by - vignesht50 on 03/07/2014 01:17:48

khtan
In (Som, Ni, Yak)

Singapore
17642 Posts

Posted - 03/07/2014 :  01:23:21  Show Profile  Reply with Quote
What are you trying to do here ?

Can you kindly explain ?


KH
Time is always against us

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000