Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider the following relational schema and SQL query. The schema captures information about employees, departments, and company finances. Emp ( eid , did, salary, category

Consider the following relational schema and SQL query. The schema captures
information about employees, departments, and company finances.
Emp(eid, did, salary, category)
did, dname, floor, phone)
Finance(did, budget, sales, expenses)
Consider the following query:
SELECT D.dname, F.budget
FROM Emp E, Dept D, Finance F
WHERE E.did=D.did AND D.did=F.did AND D.floor=1
AND E.salary >59000 AND E. category =?'A'
Here are some statistics:
Salary range from 10,000 to 60,000
The attribute did in the relation Emp is foreign key.
, category
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions