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
What is a non clustered primary key?
How are the unique and primary key constraints different?
What are the different ways you can create databases in sql server?
What it means to be triggered?
What are Spatial data types in SQL Server 2008
what is the sql equivaent of the dataset relation object ?
What are the different sql server versions?
How do I clean up sql server transaction log?
Can one drop a column from a table?
Why I am getting this error when renaming a database in ms sql server?
Define indexes?
explain what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
What is difference between views and stored procedures?
Suppose we have a table "MyTable" containing 10 rows, what query should be executed to update the odd rows "Salary" as 9000?
Differentiate between truncate vs delete in mssql?