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 / rajkumar
select*from emp where empname in ('A','B') order by empname
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is extended stored procedures?
What is pessimistic concurrency?
What is the full form of ddl?
What are the types of database schema? : sql server analysis services, ssas
What is partition in sql server?
State a few properties of relational databases?
Can a stored procedure call itself or recursive stored procedure? How much level sp nesting is possible?
Mention the different authentication modes in sql server.
How many types of database relationship in sql server?
How to use transact-sql statements to access the database engine?
Explain log shipping and mention its advantages.
What is the report builder?
What is oltp (online transaction processing)?
What are the essential components of sql server service broker?
What is a document index?