Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write each of the following queries in SQL: 1. Create the table Computer. 2. Create the table employee. 3. Retrieve the cpu, the memory,
Write each of the following queries in SQL: 1. Create the table Computer. 2. Create the table employee. 3. Retrieve the cpu, the memory, and the price of all computers in the TechShop. 4. Retrieve the name of all employees with salary greater than 1000 5. Retrieve the serial number of all computers that haven't been sold yet 6. Retrieve the ssn of employees who sold a computer with "core i7" cpu 7. Retrieve the names of all employees who sold a computer 8. Add a new column (hdd) to the computer table. The value of hdd represents the capacity of the hard disk 9. Add new computer to the database with the following values: serialNb=112233, cpu=core i5, memory%3D32, price=1000 10.For all computers with cpu "core i5", increase the price by adding 10 to it. 11.Remove the employee with ssn 445566 from the employee table 12.Can we Remove the table employee from the database and how ?
Step by Step Solution
★★★★★
3.41 Rating (167 Votes )
There are 3 Steps involved in it
Step: 1
Long Computer Sen aliNb varchail255 CREATE TABLE vai...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started