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 / zaheer abbas
select empname ,salary
from A
where salary <= 2000
order by empname
| Is This Answer Correct ? | 6 Yes | 6 No |
Post New Answer View All Answers
Explain the difference between delete,drop and truncate in SQL Server?
What does it mean if @@cursor_row returns a negative number?
Can you explain important index characteristics?
Due to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?
What are indexers?
What is a natural primary key?
What is a trace frag?
Which table keeps information about stored procedures?
Explain datetimeoffset data type in sal server 2008?
what is the primary use of the model database? : Sql server administration
What is a primary index?
Why SQL Agent is used?
What is difference between inner join and join?
Explain features of analysis services?
What is a virtual table in sql?