Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Handbook Of Relational Database Design

Authors: Candace C. Fleming, Barbara Von Halle

1st Edition

0201114348, 978-0201114348

More Books

Students also viewed these Databases questions

Question

Know what customers expect from the firm when they complain.

Answered: 1 week ago

Question

Understand why customers complain.

Answered: 1 week ago