Professional Documents
Culture Documents
Experiment No: 5: Name: K Sai Niroop Reddy EN. NO: 19STUCHH010134
Experiment No: 5: Name: K Sai Niroop Reddy EN. NO: 19STUCHH010134
Experiment No: 5
CONSTRAINTS
Allow NULL for all columns except ename and job. (Either in Create command or
Alter Command)
Syntax: create table emp(empno int(6), ename varchar(20) NOT NULL, job varchar(10)
NOT NULL,deptno int(3), sal decimal(7,2));
2. Add constraints to check, while entering the empno value (i.e) empno > 100.
5. Create a default constraint and provide a salary value of "1000" if salary is not provided.
Name Type
---------- ----------------------
DEPTNO NUMBER (6)
DNAME VARCHAR2 (20)
LOC VARCHAR2 (10)
8. Display the Employee details who works in CSE department and salary less than 10000.