1. Create the following tables with given attributes having appropriate data type and specify thenecessary primary and foreign key constraints:Customer (Custid, Custname, Age, phone)Loan (Loanid, Amount, Custid, EMI)a) List the name of the customers who have taken loan for more than Rs.50,000.b) List the Customer id of those who have no loan.c) List the total count of loan availed.d) Create a proc
...[Show More]
1. Create the following tables with given attributes having appropriate data type and specify the
necessary primary and foreign key constraints:
Customer (Custid, Custname, Age, phone)
Loan (Loanid, Amount, Custid, EMI)
a) List the name of the customers who have taken loan for more than Rs.50,000.
b) List the Customer id of those who have no loan.
c) List the total count of loan availed.
d) Create a procedure to print the Amount and Custid when the Loanid is given as input.
Handle Exceptions.
2. Create the following tables with given attributes having appropriate data type and specify the
necessary primary and foreign key constraints:
Employee (EmpId, Empname, Sal, Deptno)
Dept (Deptno, Dname, Loc,DeptmanagerId)
a) List the count of Employees and average salary of each department.
b) List the employee name, department name and the salary of all the employees.
c) Display the Employee name and the respective department manager name.
d) Create a function to return the salary of the employee when Empid is given as input
parameter. Handle Exceptions.
3. . Create the following tables with given attributes having appropriate data type and specify the
necessary primary and foreign key constraints:
[Show Less]