Need help with your Discussion

Get a timely done, PLAGIARISM-FREE paper
from our highly-qualified writers!

glass
pen
clip
papers
heaphones

COMP 3321 1 Database Systems

COMP 3321 1 Database Systems

COMP 3321 1 Database Systems

Description

 

Unformatted Attachment Preview

COMP 3321
Database Systems
Final Exam
12/01/2022
Name:
Make sure that you have four questions:
Question
1
2
3
4
Est. Time
20 min.
10 min.
50 min.
20min.
Weight
20 points
6 points
16 points
8 points
Grade
Notes
Total Points: 50 points
Total Estimated Time: 100 minutes
Total Time Given: 120 minutes
This test is worth 25% of your final course grade.
This test is an open book.
1. Write a CREATE TABLE statement for all the tables in the above schema.
a. Use suitable data types and NULL / NOT NULL values for all fields.
b. For the STUDENT table: The primary key is an auto-increment. Use suitable
data types and Null/Not Null values for all fields.
c. For the COLLEGE table: The Building field should be in dams ìark and
íithŠ2. Write an insert statement to:
a. Insert into the PROFESSOR table the professoràfirst name and last name
James McCall, who has office number 306 in Adams building. The professorÊphone number is 713-300-2010.
b. Imagine that there is an archive table called COLLEGE_ARC. Insert all data of
the COLLEGE_ARC into the COLLEGE table. Both tables have the same fields.
3. Write data-retrieving statements for each of the following:
a. Write an ALTER statement to add the column Rank to the PROFESSOR table.
Assume that Rank is not required.
b. Write an ALTER statement to make Phone an alternate key in COLLEGE.
c. Write an UPDATE statement to change the city of a student with student number
101102 to /ustonŠd. Write an UPDATE statement to change the phone number of a student with ID
107111 to ñ3-543-0011!nd the state to Še. Write a statement to delete all data for professor ¡mes McCall.¦. Delete all data in the COLLEGE table but keep the table structure.
g. Write a view to select the deanàfirst and last name whose appointment title is
dvisor´. Advanced DML.
a. Create a user-defined function named FUNC_APPOINTMENT that combines the
Title and Term of the APPOINTMENT table into a concatenated name field.
b. Create a stored procedure that selects the studentàfirst and last names with a
certain (variable) city and state.

Purchase answer to see full
attachment
Explanation & Answer:

4 Questions

User generated content is uploaded by users for the purposes of learning and should be used following our honor code & terms of service.

Have a similar assignment? "Place an order for your assignment and have exceptional work written by our team of experts, guaranteeing you A results."

Order Solution Now

Our Service Charter


1. Professional & Expert Writers: Eminence Papers only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed of papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Eminence Papers are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Eminence Papers are known for the timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit in all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Eminence Papers, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

We Can Write It for You! Enjoy 20% OFF on This Order. Use Code SAVE20

Stuck with your Assignment?

Enjoy 20% OFF Today
Use code SAVE20