From 371bf261b9eb8607bcf1f98864c22bba6c59fcad Mon Sep 17 00:00:00 2001 From: Tanmay Date: Sat, 9 Nov 2024 16:41:54 +0530 Subject: [PATCH] fixed s7 problem statement --- .../Practical Exam/SQL/S7 - SQL Queries.md | 27 +++++++++---------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/Practical/Practical Exam/SQL/S7 - SQL Queries.md b/Practical/Practical Exam/SQL/S7 - SQL Queries.md index 4acda58..376e953 100644 --- a/Practical/Practical Exam/SQL/S7 - SQL Queries.md +++ b/Practical/Practical Exam/SQL/S7 - SQL Queries.md @@ -2,21 +2,18 @@ **Problem Statement:** Consider following Relation -Employee(emp_id,employee_name,street,city) -Works(employee_name,company_name,salary) -Company(company_name,city) -Manages(employee_name,manager_name) -Create above tables with appropriate constraints like primary key, -foreign key, not null etc. -1. Change the city of employee working with InfoSys to ‘Bangalore’ -2. 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. -3. Find the names, street address, and cities of residence for all -employees who work for 'TechM' and earn more than $10,000. -4. Change name of table Manages to Management. -5. Create Simple and Unique index on employee table. -6. Display index Information +Account (Acc_no, branch_name,balance) +Branch(branch_name,branch_city,assets) +Customer(cust_name,cust_street,cust_city) +Depositor(cust_name,acc_no) +Loan(loan_no,branch_name,amount) +Borrower(cust_name,loan_no) +1. Create a View1 to display List all customers in alphabetical order who have loan from Pune_Station branch. +2. Create View2 on branch table by selecting any two columns and perform insert update delete operations. +3. Create View3 on borrower and depositor table by selecting any one column from each table perform insert update delete operations. +4. Create Union of left and right joint for all customers who have an account or loan or both at bank +5. Create Simple and Unique index. +6. Display index Information. ---