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 / murtaza
select empname,salary from A
where empname IN ('A','B');
| Is This Answer Correct ? | 3 Yes | 2 No |
Post New Answer View All Answers
What are the types of lock supported by ?
What are exact numeric data types in ms sql server?
Explain transaction server consistency?
What are the 2 types of classifications of constraints in the sql server?
Determine when an index is appropriate?
What are the instances when triggers are appropriate?
What is difference between stored procedure and user defined function?
What is the difference between web edition and business edition?
what's the information that can be stored inside a bit column? : Sql server database administration
What is an indexed view?
How can you insert null values in a column while inserting the data?
Do you know what is lock escalation?
What is difference between clustered index and non clustered index?
How you can move data or databases between servers and databases in sql server?
What is command parameter in ssrs?