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
Answers were Sorted based on User's Feedback
Answer / maulesh
Select Deptname
From Department
Where salary >=5000
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / rajkumar
Select Deptname from Department Where salary >=5000
| Is This Answer Correct ? | 1 Yes | 0 No |
What is a table called, if it does not have neither Cluster nor Non-cluster Index?
what are file groups?
Which sql server is best?
If we delete pack Spec what will be the status of pack Body ?
Explain the functionalities that views support?
What are cursors? Explain different types of cursors. What are the disadvantages of cursors? How can you avoid cursors?
What is ms sql server service broker?
What are views in ms sql server?
system date format is "yy-mm-dd" "select getdate()" ----> 2009-01-24 20:03:28.513 if i write "select dateadd(dd,2,getdate()) ".it returns "2009-01-26 19:59:38.340"...my question is dat could it be possible to retrive da date in da format "26 jan 2009 ...."??
What is an execution plan? How would you view the execution plan?
What are the benefits of normalization?
how to delete duplicate rows from table in sql server
12 Answers HCL, UHG,
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)