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
Name and describe few console utilities for ssrs?
Do you know what are the restrictions that views have to follow?
Difference Between ORDER BY Clause and GROUP BY Clause in SQL?
What are joins in sql and what are the different types of joins?
What is after dml trigger?
when you create a database how is it stored? : Sql server database administration
What is the difference between delete and truncate statements?
How to execute a sql statement using mssql_query()?
Why do we use non clustered index?
Do you know nested transaction?
what is bit datatype? : Sql server database administration
Why truncate is ddl command?
What is the use of RDBMS?
What is buffer cash in sql server?
Explain what are commit and rollback in sql?