Write a query to include a constraint, to check whether the employee salary is greater than 5000?
Answer / Rajnikanth
You can add a CHECK constraint in SQL Server to ensure that the employee salary is always greater than 5000. Here's an example: ALTER TABLE Employees ADD CONSTRAINT chk_salary CHECK (Salary > 5000)
| Is This Answer Correct ? | 0 Yes | 0 No |
What are types of subqueries?
Explain transaction isolation levels in sql server?
What is bit data type?
As a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this?
what are the different types of replication you can set up in sql server? : Sql server database administration
can an order by clause be used in a creation of a view?
if 3 duplicate records in table,i want to delete 2 alternating duplicate records by keeping 1 duplicate and 1 original as it is,how?
Can we passed multiple recordset(set of records) using a Stored Procedure
Which system table contains information on constraints on all the tables created?
Explain the difference between HTTP and HTTPS in database?
Explain syntax for disabling triggers?
How to skip remaining statements in a loop block using continue statements?
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)