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
What is a performance monitor?
What is normalization 1nf 2nf 3nf?
What is the difference between a function and a stored procedure?
Why we should not use triggers?
What is database dimension? : sql server analysis services, ssas
What is the use of commit?
what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?
Explain what are the different index configurations a table can have?
What is a transact-sql statement batch in ms sql server?
What is indexed view? How to create it?
What is the size of transaction log file?
What are the difference between “where” and “having” clause in sql server?
How to use linked server?
What is rank function?
Is it possible to have clustered index on separate drive from original table location?