Department
-----------
salary Deptname
1000 A
3000 A
2000 B
3000 B
4000 C
5000 C

select the deptname where salary >=5000

result should be:
Deptname
---------
C

please post only executed query in SQL server 2005
Asked By: Md. Niyaz

Answer Posted / maulesh

Select Deptname
From Department
Where salary >=5000

Is This Answer Correct ?    10 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain different forms of normalization?

528


How to backup encryption key ?

126


How do I repair damaged sql server mdf file database? In previous day my mdf file has got damage due to unknown reasons then I used dbcc chekcdb command but it failed, MDF file is important for me, I don’ know that how to get back mdf file data. Please anyone suggest me?

1293


What does sql server mean?

534


Does an index slow down updates on indexed columns?

577






Can two tables share a primary key?

514


How you can get the list of largest tables in a database?

522


What is the difference between coalesce() & isnull()?

530


How to create an index on a view?

580


How is a full-text index updated?

535


What is data source in connection string?

488


What is the maximum row of a size?

568


What is RMS migrations?

1698


How to call stored procedure using http soap?

516


What is a partitioned view?

566