SQL Assignment
SQL Assignment
6. Add a table level constraint such that commission cannot be greater than the 30% of salary after
the table has been created. Assign a user-defined constraint named ctbl_comm_gt_30_sal.
7. Add a new constraint with the name Dept_chk_loc to Department table such that Location can be
any one of the following cities:- New York, Dallas, Chicago and Boston only.
8. It has been decided that the Location of more than one department could be same. So it is required
to disable temporarily the unique constraint on location column.
9. Enable the disabled constraint on Location column of the Department table.
10. Remove the unique constraint from the Location column of the Department table.
Lab Assignment -3
1. Create a Customer table with the following columns and constraints.