Database System Concepts
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
Bartleby Related Questions Icon

Related questions

Question
**Exercise 6.1.3: SQL Query Practice**

This exercise involves writing SQL queries based on the database schema from Exercise 2.4.1. The schema includes the following relations:

- **Product**(maker, model, type)
- **PC**(model, speed, ram, hd, price)
- **Laptop**(model, speed, ram, hd, screen, price)
- **Printer**(model, color, type, price)

**Tasks:**

Use the data from Exercise 2.4.1 to execute the following queries:

a) Retrieve the model number, speed, and hard-disk size for all PCs priced under $1000.

b) Repeat query (a), but rename the columns as follows: speed to gigahertz and hd to gigabytes.

c) List the manufacturers of printers.

d) Extract the model number, memory size, and screen size for laptops with a price greater than $1500.

e) Retrieve all tuples from the Printer relation for color printers, with color being a boolean attribute.

f) Find the model number and hard-disk size for PCs with a speed of 3.2 and a price less than $2000.
expand button
Transcribed Image Text:**Exercise 6.1.3: SQL Query Practice** This exercise involves writing SQL queries based on the database schema from Exercise 2.4.1. The schema includes the following relations: - **Product**(maker, model, type) - **PC**(model, speed, ram, hd, price) - **Laptop**(model, speed, ram, hd, screen, price) - **Printer**(model, color, type, price) **Tasks:** Use the data from Exercise 2.4.1 to execute the following queries: a) Retrieve the model number, speed, and hard-disk size for all PCs priced under $1000. b) Repeat query (a), but rename the columns as follows: speed to gigahertz and hd to gigabytes. c) List the manufacturers of printers. d) Extract the model number, memory size, and screen size for laptops with a price greater than $1500. e) Retrieve all tuples from the Printer relation for color printers, with color being a boolean attribute. f) Find the model number and hard-disk size for PCs with a speed of 3.2 and a price less than $2000.
Expert Solution
Check Mark
Still need help?
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Please answer e) and f)

Solution
Bartleby Expert
by Bartleby Expert
SEE SOLUTION
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

Please answer e) and f)

Solution
Bartleby Expert
by Bartleby Expert
SEE SOLUTION
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education