Professional Documents
Culture Documents
3-PL - SQL - Trigger-17-04-2024
3-PL - SQL - Trigger-17-04-2024
Instruction: Take screen shots of create table statements, Constraint Statements, data
present in each table using select statement and SQL queries along with their output.
Consider the business trip database that keeps track of the business trips of salesman in an
office. Following are the tables:
Create the tables with necessary constraints and appropriate insertions. [3 Marks]
1. Ensure that location of the department is only as ‘Chennai’, ‘Pune’, and ‘Cochin’.
2. Please confirm that mobile number is mandatory for all salesmen.
1. Find the department whose budget is lesser than 10000 and department must start
with ‘D’.
2. Display the details of the department whose budget is not equal to the max budget
allotted for all the departments.
3. List the salesman numbers and names of the salesmen who made trips on ’10-April-
2024’.
4. Find the number of trips made by all the salesmen.