Answered step by step
Verified Expert Solution
Question
1 Approved Answer
5. Presume these two tables: sector), accountants(license#,name,age, symbol) and companies(symbol, name, where license# and symbol are primary keys. (a) Consider the sentence: find all companies
5. Presume these two tables: sector), accountants(license#,name,age, symbol) and companies(symbol, name, where license# and symbol are primary keys. (a) Consider the sentence: find all companies and their sectors, audited by the accountant with license number 12345 Show how to code this request in (i) SQL (ii) relational algebra (b) Give SQL code to make symbol a foreign key in accountants, referring to companies as the parent table. Assume the tables already exist at the time you are creating the foreign key constraint. Choose a suitable constraint name
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started