SQL Evening Batch 54 Session 3 - Feb 12
SQL Evening Batch 54 Session 3 - Feb 12
Constraints are the rules enforced on data columns on table. These are used to limit the type of data that can
go into a table. This ensures the accuracy and reliability of the data in the database.
EMP EMP_SAL
Field EID Constraints
Field EID Constraints
EMPID Primary Key
EMPID Foreign Key
NAME NOT NULL
ADDR No employee from UTTAM NAGAR DEPT HR, MIS, OPS , IT ADMIN, TEMP
CITY DEL, GGN, FBD, NOIDA DESI ASSO, MGR, VP, DIR
SQL IN Clause
SELECT column1, column2....columnN
FROM table_EID
WHERE column_EID IN (Val1, Val2... Valn);