Constraints and Joins
Dear Friends Let's understand the rule of constraints in oracle. Constraint:- It is the rule which restrict the incorrect data to be inserted into the database. Types of Constraint 1. Not Null Constraint 2. Unique Constraint 3. Check Constraint 4. Primary Key Constraint 5. Foreign Key Constraint 6. Ref Key(Referential Kay) Constraint TABLE LEVEL CONSTRAINT:- COLUMN LEVEL CONSTRAINT:- 1. NOT NULL:-This is the constraints will avoid null values to the column specified. NOTE :- It is the only constraint cannot be defined at Table level. 2. UNIQUE CONSTRAINT:- This is the constraint which will avoid duplicate values to the column specified. It can be specified at column level as well as table level. 3. CHECK CONSTRAINT:-This is the constraint wh...