Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is history table in sql server?

978


How will you optimize a stored procedure optimization?

1047


What is use of except clause? How it differs from not in clause?

1022


Explain about sql server login?

1092


How to list all triggers in the database with sys.triggers in ms sql server?

1084


What are the different types of replication are there in sql server 2000?

1043


What are the different types of backups that exist?

1177


What are dml triggers and types of dml triggers?

983


Do you know how to make remote connection in database?

968


What is named calculation? : sql server analysis services, ssas

988


What are cursors? Explain different types of cursors. What are the disadvantages of cursors? How can you avoid cursors?

1173


How to download and install sql server 2005 books online?

1195


What is inline variable assignment?

1035


Explain the purpose of indexes?

983


What do you mean by subquery?

1092