Question: Part 1 : Draw the result set ( table ) that will result from each of the following queries. Be sure to include column headings.

Part 1: Draw the result set (table) that will result from each of the following queries. Be sure to include column headings.
Uses Sample Database 1
SELECT sname AS name, age FROM sailors
WHERE age >=50
ORDER BY name;
English translation of query:
Show the name and age for all sailors at least 50 years old, ordered alphabetically.
Uses Sample Database 1
SELECT sname, rating FROM sailors
ORDER BY rating DESC, name ASC LIMIT 5;
English translation of query:
Uses Sample Database 1
SELECT * FROM reservations
WHERE date BETWEEN '2023-11-01' AND '2023-11-30';
English translation of query:
Uses Sample Database 2:
SELECT lname, fname, address
FROM employee
WHERE address NOT LIKE '%, Houston, TX';
English translation of query:
Uses Sample Database 2:
SELECT pname AS houston_products FROM project
WHERE pname LIKE 'product_' AND location = 'Houston';
English translation of query:
Uses Sample Database 2:
SELECT fname, lname, salary + salary *0.1 new_salary
FROM employee
WHERE dno IN (1,5)
ORDER BY new_salary;
English translation of query:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!