Hi,
I have a table A which has four rows as follows
Table A
-------
empname salary
------- ------
A 1000
B 2000
C 3000
A 1000
B 2000
D 5000
I need the following output:
empname salary
------- ------
A 1000
A 1000
B 2000
B 2000
Thanks in advance
Answer Posted / inderpal
Select empname, salary from A order by empname
Is This Answer Correct ? | 1 Yes | 5 No |
Post New Answer View All Answers
How do I find the sql server instance name?
Can we deploy SSRS reports on our personal website?
what are questions asked in TCS for database tester (sqlserver)for 2-3 exp?
What happens when the SQL Azure database reaches Max Size?
How do we synchronize On-Premise SQL server with SQL Azure?
Does dbcc checkdb requires db to be in single_user mode? : sql server database administration
what are acid properties? : Sql server database administration
What is the advantage of sql server?
What is filtered index?
How do I perform an unattended install of sql server 2000?
What is format parameter in ssrs?
What are the pre-defined functions in the sql server?
Explain what are the restrictions while creating batches in sql server?
Explain nested trigger in sql?
Can a database be shrunk with users active?