0% found this document useful (0 votes)
15 views23 pages

dbms_practice_questions[1]-1

The document outlines the creation and management of various database tables and operations related to banking, employee management, and library systems. It includes tasks such as creating tables, inserting records, performing queries to retrieve specific data, and implementing constraints and triggers. Additionally, it covers operations like deleting records, modifying data, and creating views for better data management.

Uploaded by

dhruvthaker777
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views23 pages

dbms_practice_questions[1]-1

The document outlines the creation and management of various database tables and operations related to banking, employee management, and library systems. It includes tasks such as creating tables, inserting records, performing queries to retrieve specific data, and implementing constraints and triggers. Additionally, it covers operations like deleting records, modifying data, and creating views for better data management.

Uploaded by

dhruvthaker777
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

A) Create the following tables & insert the records in the table.

branch (branch_name, branch_city, assets)


customer (customer_name, customer_street, customer_city)
loan (loan_number, branch_name, amount)
borrower (customer_name, loan_number)
account (account_number, branch_name, balance)
depositor (customer_name, account_number)

1. Find the names of all branches in the loan relation


2. Find all loan number for loans made at the Perryridge branch with loan amounts greater
than $1200.
3. Find all customers who have a loan, an account, or both
4. Find the number of tuples in the customer relation.
5. Delete all account tuples at the Perryridge branch
6. Modify the records of customer relation for the customer_city from Mumbai to Calcutta.
7. Drop all the tables from the database.

B) Write a query in sql to create a table employee and department.


Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)
1. Include the following constraints on column of emp table.
a) to make the empno as primary key of the employee table and deptno as a primary key of
department table
2) Perform the following complex queries

a) List dept no., Dept name for all the departments in which there are no employees in the
department.

b) Count of number of employees in department wise.


A) Create the following tables & insert the records in the table.

branch (branch_name, branch_city, assets)


customer (customer_name, customer_street, customer_city)
loan (loan_number, branch_name, amount)
borrower (customer_name, loan_number)
account (account_number, branch_name, balance)
depositor (customer_name, account_number)

1. Find the loan number of those loans with loan amounts between $90,000 and $100,000
(that is,  $90,000 and  $100,000)
2. Find the name, loan number and loan amount of all customers having a loan at the
Perryridge branch; rename the column name loan_number as loan_id.
3. Find the names of all customers whose street includes the substring “Main”.
4. List in alphabetic order the names of all customers having a loan in Perryridge branch
5. Find all customers who have an account but no loan.
6. Find the average account balance at the Perryridge branch.
7. Drop all the tables from the database.

B) Write a query in sql to create a table employee and department.


Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)
1. Include the following constraints on column of emp table.
a) to make the empno as primary key of the employee table and deptno as a primary key of
department table
2) Perform the following complex queries

a) List dept no., Dept name for all the departments in which there are no employees in the
department.

b) Count of number of employees in department wise.


A) Create the following tables & insert the records in the table.

branch (branch_name, branch_city, assets)


customer (customer_name, customer_street, customer_city)
loan (loan_number, branch_name, amount)
borrower (customer_name, loan_number)
account (account_number, branch_name, balance)
depositor (customer_name, account_number)

1. Find the number of depositors in the bank.


2. Find the names of all branches where the average account balance is more than $1,200.
3. Find all customers who have both an account and a loan at the bank.
4. Find the names of all branches that have greater assets than all branches located in
Brooklyn.
5. Delete all accounts at every branch located in the city ‘Needham’.
6. Increase all accounts with balances over $10,000 by 6%, all other accounts receive 5%.
7. Drop all the tables from the database.

B) Write a query in sql to create a table employee and department.


Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)
1. Include the following constraints on column of emp table.
a) to make the empno as primary key of the employee table and deptno as a primary key of
department table
b) Select all records where ename starts with ‘S’ and its length is 6 char.

c) Select all records where ename may be any no of character but it should end with ‘R’.

d) Create a new user “abc” and give all privileges to it.


A) Create the following tables & insert the records in the table.

branch (branch_name, branch_city, assets)


customer (customer_name, customer_street, customer_city)
loan (loan_number, branch_name, amount)
borrower (customer_name, loan_number)
account (account_number, branch_name, balance)
depositor (customer_name, account_number)

1. Find the number of depositors for each branch.


2. Find all customers who have a loan at the bank but do not have an account at the bank
3. Delete the record of all accounts with balances below the average at the bank.
4. Create a view of all loan data in the loan relation, hiding the amount attribute
5. Add a new tuple to branch_loan
6. Delete the view branch_loan from the database
7. Drop all the tables from the database.

B) Create a table

emp (eno, ename, hrs, pno, super_no) and

project (pname, pno, thrs, head_no)

where thrs is the total hours and is the derived attribute.

Its value is the sum of hrs of all employees working on that project.

eno and pno are primary keys, head_no is foreign key to emp relation.

a) Insert 4 tuples and

b) Create a trigger to insert a new employee tuple and display the new total hours
from project table.
B) Database Schema for a Student Library scenario

Student(Stud_no : integer, Stud_name: string)


Book(book_no: integer, book_name:string, author: string)
Iss_rec(iss_no:integer, iss_date: date, Mem_no: integer, book_no: integer)

For the above schema, perform the following—


a) Create the tables.
b) Insert around 2 records in each of the tables
c) In Student table Stud_No value should be auto incremented
d) Create a trigger to take automatic backup of Book table after insert

B) Database Schema for a Student Library scenario

Student(Stud_no : integer, Stud_name: string)


Book(book_no: integer, book_name:string, author: string)
Iss_rec(iss_no:integer, iss_date: date, Mem_no: integer, book_no: integer)

For the above schema, perform the following—


a) Create the tables.
b) Insert around 2 records in each of the tables
c) In Student table Stud_No value should be auto incremented
d) Create a trigger to take automatic backup of Book table after insert
B) Write a query in sql to create a table employee and department.
Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)

1. Include the following constraints on column of emp table.


a) to make the empno as primary key of the employee table and deptno as a primary key of
department table
2) Perform the following complex queries

a) List dept no., Dept name for all the departments in which there are no employees in the
department.

b) Count of number of employees in department wise.

B) Customer(Cust id : integer, cust_name: string)


Item(item_id: integer, item_name: string, price: integer)
Sale(bill_no: integer, bill_data: date, cust_id: integer, item_id: integer, qty_sold: integer)

For the above schema, perform the following—


a) Create the tables with the appropriate integrity constraints
b) Insert around 2 records in each of the tables
c) Display all cust_id and item_name for all customers who have ordered item X. Use Join.
d) Create a new user “abc” and give only select and insert privileges to it.
e) Sort all customers by cust_id in ascending order and cust_name in descending order.
A) Write a query in sql to create a table employee and department.
Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)
1. Include the following constraints on column of emp table.
a) to make the empno as primary key of the table and
b) to make primary key to increment automatically
b) to ensure that the ename column does not contain NULL values

2. Include the following constraints on column of dept table.


a) to make deptno as primary key.
b) to ensure dname,loc columns does not contain NULL values
Also enforce REFERENTIAL INTEGRITY, declare deptno field of dept table as primary
key and deptno field of emp table as foreign key.

3. Modify the above table to add three more columns salary,mgr,comm to the emp
table. add salary column with constraint greater than zero.

B) Create the following constraints and put proper constraints wherever required:
Employee(eno,name,addr,qualification,course_id, dept, design,dob,doj)
Accounts(eno, basec_sal, DA,HRA,PF,gross_sal)
Training(course_id,course_name)

c)
d)
A) Write a query in sql to create a table employee and department.
Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)

Enforce REFERENTIAL INTEGRITY, declare deptno field of dept table as primary


key and deptno field of emp table as foreign key.

Insert following values in employee table.


EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO
7369 SMITH CLERK 7902 17-DEC-80 800 20
7499 ALLEN SALESMAN 7698 20-FEB-81 1600 300 30
7521 WARD SALESMAN 7698 22-FEB-81 1250 500 30
7566 JONES MANAGER 839 02-APR-81 2975 20
7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 30

a. Give list of emp name & their job spec who are working in dept no 20 ?
b. Compile the details of emp working in dept no 30 ?
c. To find the total number of employees.
d. To find the total number of clerk hired after 13-jan-81.
e. Determine which departments have more than two people holding a particular job?
f. Find all department that have at least two clerk?
g. Retrieve emp name and job who have the same job as that of allen?
h. List all emp name and their job of those departments that are located at Chicago?

B) Create the following constraints and put proper constraints wherever required:
Employee(eno,name,addr,qualification,course_id, dept, design,dob,doj)
Accounts(eno, basec_sal, DA,HRA,PF,gross_sal)
Training(course_id,course_name)

c)
d)
A) Create a table client master with the following fields
client_no, name, address1, address2, city, state, pin_code, remarks, balance due

1) Add the following constraints


 Create a primary key constraint on the column client_no
 to make primary key to increment automatically
 to ensure that the balance due column does not contain NULL values
2) Perform the following

a. Insert two rows in the table client master


b. Show all rows of client master
c. Add a new column in your table : AGE
d. Update the table client master
e. Delete a row from client master where age is greater than 60
f. Create table supplymaster (supplierno,suplliername,address1,address2,city,state,
pincode,remarks,baldue)
g. Insert values in table supplymaster by using clientmaster.
h. Drop table client master
i. Drop table supply master

B) Create the following constraints and put proper constraints wherever required:
Employee(eno,name,addr,qualification,course_id, dept, design,dob,doj)
Accounts(eno, basec_sal, DA,HRA,PF,gross_sal)
Training(course_id,course_name)

c)
d)
A) . Create the following constraints and put proper constraints wherever required:
Employee(eno,name,addr,qualification,course_id, dept, design,dob,doj)
Accounts(eno, basec_sal, DA,HRA,PF,gross_sal)
Training(course_id,course_name)

c)
d)

e)

B) Write a query in sql to create a table employee and department.


Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)
1. Include the following constraints on column of emp table.
a) to make the empno as primary key of the employee table and deptno as a primary key of
department table

2. Change the data type of “job”from string to integer.


3. Create a trigger such that if hiredate of employee is less than 31/12/1970, then remove
that employee record.
A) Create the following constraints and put proper constraints wherever required:

d)

e)

B) Write a query in sql to create a table employee and department.


Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)
1. Include the following constraints on column of emp table.
a) to make the empno as primary key of the employee table and deptno as a primary key of
department table

2. Change the data type of “job”from string to integer.


3. Create a trigger such that if hiredate of employee is less than 31/12/1970, then remove
that employee record.
A) . Customer(Cust id : integer, cust_name: string)
Item(item_id: integer, item_name: string, price: integer)
Sale(bill_no: integer, bill_data: date, cust_id: integer, item_id: integer, qty_sold: integer)

For the above schema, perform the following—


a) Create the tables with the appropriate integrity constraints

b) Insert around 2 records in each of the tables

c) List all the bills for the current date with the customer names and item numbers

d) List the details of the customer who have bought a product which has a price>200

e) Give a count of how many products have been bought by each customer

f) Give a list of products bought by a customer having cust_id as 5

g) Create a view which lists out the bill_no, bill_date, cust_id, item_id, price, qty_sold,
amount

B) Create a table

emp (eno, ename, hrs, pno, super_no) and

project (pname, pno, thrs, head_no)

where thrs is the total hours and is the derived attribute.

Its value is the sum of hrs of all employees working on that project.

eno and pno are primary keys, head_no is foreign key to emp relation.

c) Insert 4 tuples and

d) Create a trigger to insert a new employee tuple and display the new total hours
from project table.
A). Database Schema for a Student Library scenario

Student(Stud_no : integer, Stud_name: string)


Membership(Mem_no: integer, Stud_no: integer)
Book(book_no: integer, book_name:string, author: string)
Iss_rec(iss_no:integer, iss_date: date, Mem_no: integer, book_no: integer)

For the above schema, perform the following—


a) Create the tables with the appropriate integrity constraints
b) Insert around 2 records in each of the tables
c) List all the student names with their membership numbers
d) List the details of students who borrowed book whose author is CJDATE
e) Give a count of how many books have been bought by each student
f) Give a list of books taken by student with stud_no as 5
g) List the book details which are issued as of today
h) Create a view which lists out the iss_no, iss _date, stud_name, book name

B) Create a table

emp (eno, ename, hrs, pno, super_no) and

project (pname, pno, thrs, head_no)

where thrs is the total hours and is the derived attribute.

Its value is the sum of hrs of all employees working on that project.

eno and pno are primary keys, head_no is foreign key to emp relation.

a) Insert 4 tuples and

b) Create a trigger to change the project of an employee and display the new total
hours from project table.
A) . Database Schema for a Employee-pay scenario

employee(emp_id : integer, emp_name: string)

department(dept_id: integer, dept_name:string)

paydetails(emp_id : integer, dept_id: integer, basic: integer, deductions: integer, additions:


integer, DOJ: date)

payroll(emp_id : integer, pay_date: date)

For the above schema, perform the following—


a) Create the tables with the appropriate integrity constraints
b) Insert around 2 records in each of the tables
c) List the employee details department wise
d) List all the employee names who joined after particular date
e) List the details of employees whose basic salary is between 10,000 and 20,000
f) Give a count of how many employees are working in each department
g) List the details for an employee_id=5
h) Create a view which lists out the emp_name, department, basic, dedeuctions,

B) Write a query in sql to create a table employee and department.


Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)
1. Include the following constraints on column of emp table.
a) to make the empno as primary key of the employee table and deptno as a primary key of
department table

2. Change the data type of “job”from string to integer.


3. Create a trigger such that if hiredate of employee is less than 31/12/1970, then remove
that employee record.
A) . Database Schema for a Video Library scenario
Customer(cust_no: integer,cust_name: string)

Membership(Mem_no: integer, cust_no: integer)

Cassette(cass_no:integer, cass_name:string, Language: String)

Iss_rec(iss_no: integer, iss_date: date, mem_no: integer, cass_no: integer)

For the above schema, perform the following—


a) Create the tables with the appropriate integrity constraints
b) Insert around 2 records in each of the tables
c) List all the customer names with their membership numbers
d) List all the issues for the current date with the customer names and cassette names
e) List the details of the customer who has borrowed the cassette whose title is “ The
Legend”
f) Give a count of how many cassettes have been borrowed by each customer
g) Give a list of book which has been taken by the student with mem_no as 5
h) List the cassettes issues for today
i) Create a view which lists outs the iss_no, iss_date, cust_name, cass_name

B) Database Schema for a Student Library scenario

Student(Stud_no : integer, Stud_name: string)


Book(book_no: integer, book_name:string, author: string)
Iss_rec(iss_no:integer, iss_date: date, Mem_no: integer, book_no: integer)

For the above schema, perform the following—


e) Create the tables.
f) Insert around 2 records in each of the tables
g) In Student table Stud_No value should be auto incremented
h) Create a trigger to take automatic backup of Book table after insert
A) . Database Schema for a student-Lab scenario

Student(stud_no: integer, stud_name: string, class: string)


Class(class: string, descrip: string)
Lab(mach_no: integer, Lab_no: integer, description: String)
Allotment(Stud_no: Integer, mach_no: integer, dayof week: string)

For the above schema, perform the following—


a) Create the tables with the appropriate integrity constraints
b) Insert around 2 records in each of the tables
c) List all the machine allotments with the student names, lab and machine numbers
d) List the total number of lab allotments day wise
e) Give a count of how many machines have been allocated to the ‘CSIT’ class
f) Give a machine allotment etails of the stud_no 5 with his personal and class details
g) Count for how many machines have been allocatedin Lab_no 1 for the day of the week
as “Monday”
h) How many students class wise have allocated machines in the labs
i) Create a view which lists out the stud_no, stud_name, mach_no, lab_no, dayofweek

B) Create a table

emp (eno, ename, hrs, pno, super_no) and

project (pname, pno, thrs, head_no)

where thrs is the total hours and is the derived attribute.

Its value is the sum of hrs of all employees working on that project.

eno and pno are primary keys, head_no is foreign key to emp relation.

a) Insert 4 tuples and

b) Create a trigger to insert a new employee tuple and display the new total hours
from project table.
A) Database Schema for a Student Library scenario

Student(Stud_no : integer, Stud_name: string)


Membership(Mem_no: integer, Stud_no: integer)
Book(book_no: integer, book_name:string, author: string)
Iss_rec(iss_no:integer, iss_date: date, Mem_no: integer, book_no: integer)

For the above schema, perform the following—


a) Create the tables.
b) In Student table Stud_No value should be auto incremented
c) Insert check constraint on “date”field of table Book. Date should not exceed today’s
date.
d) Insert around 2 records in each of the tables
e) List all the student names with their membership numbers
f) List the details of students who borrowed book whose author is CJDATE
g) Create a trigger to take automatic backup of Book table after insert.

B) Customer(Cust id : integer, cust_name: string)


Item(item_id: integer, item_name: string, price: integer)
Sale(bill_no: integer, bill_data: date, cust_id: integer, item_id: integer, qty_sold:
integer)

For the above schema, perform the following—


a) Create the tables with the appropriate integrity constraints
b) Insert around 2 records in each of the tables
c) Perform outer join of customer and sale.
d) Create a new user “abc” and give only select and insert privileges to it.
A) Write a query in sql to create a table employee and department.
Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)
1. Include the following constraints on column of emp table.
a) to make the empno as primary key of the table and
b) to make primary key to increment automatically
b) to ensure that the ename column does not contain NULL values
2. Change the data type of “job”from string to integer.
3. Create a trigger such that if hiredate of employee is less than 31/12/1970, then remove
that employee record.
4. Count the number of employees in each department.
5. Find all employees working as “managers” in department of “computer engg”

B) Customer(Cust id : integer, cust_name: string)


Item(item_id: integer, item_name: string, price: integer)
Sale(bill_no: integer, bill_data: date, cust_id: integer, item_id: integer, qty_sold: integer)

For the above schema, perform the following—


a) Create the tables with the appropriate integrity constraints
b) Insert around 2 records in each of the tables
c) Display all cust_id and item_name for all customers who have ordered item X. Use Join.
d) Create a new user “abc” and give only select and insert privileges to it.
e) Sort all customers by cust_id in ascending order and cust_name in descending order.
EMPLOYEE_ID LAST_NAME SALARY JOB_ID HIRE_DATE DEPT_ID

100 King 10000 AD_PRES 19-11-1999 90

101 Kochhar 20000 AD_VP 01-10-1998 40

102 De Haan 15000 AD_VP 20-12-1996 90

103 Whalen 4000 AD_PRES 09-07-1999 45

104 King 15900 AD_VP 05-06/1989

1. Create query to display the last name and salary for all employees whose salary is not in the range
of $5,000 and $12,000.
2. Create a query to display the name and hire date of any employee hired after employee Kochhar.
3. Create a query to display the employee numbers and last names of all employees who earn more
than the average salary. Sort the result in descending order of salary.
4. Change the name of employee 101 to Drexler.
5. Modify the EMP table. Add a COMMISSION column of type float. Add a constraint to the
commission column that ensures that a commission value is greater than zero.
6. Create a view called EMPLOYEE_VU based on the employee_id, last_names, and dept_id from the
EMPLOYEE table. Changes the heading for the employee name to EMP_NAME. And Display the
contents of the EMPLOYEE_VU view.
7. Write compound query that lists the following:
 Last names and department ID of all the employees from the EMPLOYEES table, regardless
of whether or not they belong to any department or not.
 Department ID and department name of all the departments from DEPARTMENTS table,
regardless of whether or not they have employees working in them.
A) Create following tables and put proper constraints wherever required:

Employee(e_no,name,addr,qualification,course_id,dept,design,dob,date_join)

Accounts(e_no,basic_sal,DA,HRA,PF,gross_sal)

Training(Course_id,course_name)

Insert data in the above tables.

Solve following queries using SQL

a) Select name of all the employees in ‘system’department.


b) Select e_no and qualification of all employees in marketing department and those whose name
starts with ‘a’.
c) Select e_no of all employees who do not belong to ‘account’ department.
d) Extract the names, departments, designation of all employees sorted according to names in
descending order within departments in ascending order.
e) All the employees have been given a phone. So keep the records of phone_no a new field needs
to get added. Modify structure of table.
f) Employee relation needs to be renamed as ‘personal’. Alter the name of table.
g) Count The total number ofemployee ,max salary received by an employee,total salary paid by
management for employees’salary and avg salary of employee according to department wise.

B) Customer(Cust id : integer, cust_name: string)


Item(item_id: integer, item_name: string, price: integer)
Sale(bill_no: integer, bill_data: date, cust_id: integer, item_id: integer, qty_sold: integer)

For the above schema, perform the following—


f) Create the tables with the appropriate integrity constraints
g) Insert around 2 records in each of the tables
h) Display all cust_id and item_name for all customers who have ordered item X. Use Join.
i) Create a new user “abc” and give only select and insert privileges to it.
j) Sort all customers by cust_id in ascending order and cust_name in descending order.
For the following relation schema:
employee(employee-name, street, city)
works(employee-name, company-name, salary)
company(company-name, city)
manages(employee-name, manager-name)

1) Create tables for the above mentioned schema


2) Insert five records in each table
3) Insert appropriate integrity constraint for each table
4) Describe the tables.
5) Create a view “employee_company” which will have the records of all employees along with the
company they are working for.
6) Display all records of “ employee_company”
7) Drop view.
8) Perform the following complex queries.
a. Find the names of all employees in the database who live in the same cities as the
companies for which they work.
b. Find the names of all employees in the database who live in the same cities and on the
same streets as do their managers.
c. Find the names, street address, and cities of residence for all employees who work for
'First Bank Corporation' and earn more than $10,000.
d. Find the names of all employees in the database who do not work for 'First Bank
Corporation'. Assume that all people work for exactly one company.
e. Find the names of all employees who earn more than the average salary of all
employees of their company. Assume that all people work for at most one company
For the following relation schema:
employee(employee-name, street, city)
works(employee-name, company-name, salary)
company(company-name, city)
manages(employee-name, manager-name)

1) Create tables for the above mentioned schema


2) Insert five records in each table
3) Insert appropriate integrity constraint for each table
4) Describe the tables.
5) Rename the table “works” as “ works_for”
6) Create outer join of “ employee” and “manager”
7) Perform the following complex queries.
a. Find the names of all employees who earn more than the average salary of all
employees of their company. Assume that all people work for at most one company.
b. Find the names of all employees in the database who earn more than every employee of
'Small Bank Corporation'.
c. Find the names of all employees in the database who live in the same cities and on the
same streets as do their managers.
d. Find the names of all employees who earn more than the average salary of all
employees of their company. Assume that all people work for at most one company
e. Find the names, street address, and cities of residence for all employees who work for
'First Bank Corporation' and earn more than $10,000.
Write a query in sql to create a table employee and department.
Employee(empno,ename,deptno,job,hiredate)
Department(deptno,dname,loc)

Include the following constraints on column of emp table.


a) to make the empno as primary key of the table and
b) to ensure that the ename column does not contain NULL values and
c) to put the current date as default date in hire date column in case data is not supplied for the
column.

Include the following constraints on column of dept table.


a) to make deptno as primary key.
b) to ensure dname,loc coloumns does not contain NULL values
Also enforce REFERENTIAL INTEGRITY, declare deptno field of dept table as primary key and
deptno field of emp table as foreign key.

Perform
a) List the job that have average annual salary greater than all manager?
b) Find the no of employees and job group by deptno?
c) List all emp names and their salaries who are working in dept no 10 ?
d) To find the minimum salary paid to any employee
e) To list the employee who heads the list alphabetically.
f) List all emp name, dept names and location whose deptno is common in both dept table and
emp table?
g) List all jobs in dept 10 and 20 or in both?
h) Change the data type of “job”from string to integer.
i) Create a trigger such that if hiredate of employee is less than 31/12/1970, then remove
that employee record.
j) Drop trigger
k) Create user “xyz” and add all priviledges to it.

You might also like