Question: 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
Long Computer Sen aliNb varchail255 CREATE TABLE vai... View full answer
Get step-by-step solutions from verified subject matter experts
