Client table

a1.  Use CREATE  statement to create a table Client (ClientName,  phone). Note ClientName is primary key and you must define this primary key in CREATE statement. Show the statement.

a2. Use INSERT statement to add two client records into Client table (make up your own data for clients). Show the INSERT statements and use select statement to show the table contents.

a3.  Use ALTER statements to add a foreign key ClientName as a constraint into the Project table. So that table Client has a one  to many relationship with table Project. Note, you need to use TWO ALTER statements , one for adding attribute ClientName into Project table; one for adding foreign key constraint into Project table.  Show the ALTER statements.

a4. User ALTER statement to Add an attribute Project_Count into Employee table (data type to be integer, refer to the data type used for Workon table (hours)  in loadDB file).

a5. Use UPDATE statement to fill the value of Project_count of each employee record in Employee table. Namely, add the count of total number of projects an employee works on into Project_count in Employee table for each employee.  Hint: you need a subquery in Update statement as follows

Update _________

Set _____ = (select count (pid) …… )

Show the contents of Employee after update.

a6 Create a table Promotion_list (EMPID, Name, Salary, DivisionName).

a7 Load Promotion_list with the information of employees who make less than

Get Plagiarism-Free and Quality Papers Without Overpaying at Homeworkmavens.com

Solution preview:

Just in case you need an assignment done, hire us. Using our writing services will make your life easier because we deliver exceptional results. Use us to get an A!

We are the Best!

course-preview

275 words per page

You essay will be 275 words per page. Tell your writer how many words you need, or the pages.


12 pt Times New Roman

Unless otherwise stated, we use 12pt Arial/Times New Roman as the font for your paper.


Double line spacing

Your essay will have double spaced text. View our sample essays.


Any citation style

APA, MLA, Chicago/Turabian, Harvard, our writers are experts at formatting.


We Accept

Secure Payment
Image 3

Subjects We Cover