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 |
Describe triggers features and limitations?
from the table display the 2nd highest salary? and also the least 2nd salay?
How to verify a user name with sqlcmd tool?
How is sql server used?
What are the different methods available under sqlcommand class to access the data?
What is dimension table? : sql server analysis services, ssas
Working with TLogs
Does table partitioning improve performance?
What is the system function to get the current user's user id?
What is buffer cash in sql server?
Explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?
What are the types of resultset?
Oracle (3253)
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)