3. CO2 b) Interpret the following SQL: a. select distinct TableOne.name from instructor as TableOne, instructor as Relat

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

3. CO2 b) Interpret the following SQL: a. select distinct TableOne.name from instructor as TableOne, instructor as Relat

Post by answerhappygod »

3 Co2 B Interpret The Following Sql A Select Distinct Tableone Name From Instructor As Tableone Instructor As Relat 1
3 Co2 B Interpret The Following Sql A Select Distinct Tableone Name From Instructor As Tableone Instructor As Relat 1 (47.46 KiB) Viewed 47 times
3. CO2 b) Interpret the following SQL: a. select distinct TableOne.name from instructor as TableOne, instructor as Relation Two where TableOne.salary < Relation Two.salary and Relation Two.dept name = 'Mathematics'; b. select ID, name from instructor where salary = (select max(salary) from instructor) a) Consider the following tables: 5 Customer(C_id, name, phone number, address, age) Deposit(acc_no, C_id) Account(acc_no, balance, branch_name) Borrow(loan_no, C_id) Loan(loan_no,, amount, branch_name) Branch(branch name, city) Here, all the customers and accounts have different id. One customer can deposit multip counts but every account contains at most one customer. Similarly, one customer can borrov tiple loans but every loan contains at most one customer. Now answer the following questions: i. Identify suitable primary key for all the tables Illustrate the schema diagram for the database ii.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply