Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

Write the Roman numeral as a HinduArabic numeral. IVCDXCIX

Answered: 1 week ago