Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
14 views2 pages

Tutorial

Uploaded by

Yoon Yati Cho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Tutorial

Uploaded by

Yoon Yati Cho
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

SELECT staff_no, forename, surname, salary

FROM Staff;

Where salary>20000

Algebra

(Staff where Salary>15000([staff_number, forename,surname,salary]

2.

SQL

SELECT staff_number,forename,surname,salary

From Staff;

Algebra

Staff[Staff_number,forename,surname,salary]

3.

SQL

SELECT staff_number,forename,surname,salary

FROM Staff

WHERE salary<20000

Algebra

(Staff where salary<20000)[staff_number,forename,surname,salary]

4.

SQL

SELECT location AS town

FROM Property;

Algebra

(Branch[town] U Property[location]
7. SQL

SELECT

Client.forename,

Client.surname,

Viewing.comments

FROM

Client

INNER JOIN

Viewing

ON

Client.client_id = Viewing.client_id;

SELECT Client.forename,Client,surname,Viewing,comments

FROM Client,Viewing,Property

WHERE Client.client_id = Viewing.client_id

AND Viewing.property_id = Property.propery_id;

Algebra

(Client[Client.client_id = Viewing.client_id]^

You might also like