Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write an insert statement to: Insert into the PROFESSOR table the professor's first name and last name James McCall, who has office number 306 in
- Write an insert statement to:
- Insert into the PROFESSOR table the professor's first name and last name James McCall, who has office number 306 in Adams building. The professor's phone number is 713-300-2010.
- 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.
- Write data-retrieving statements for each of the following:
- Write an ALTER statement to add the column Rank to the PROFESSOR table. Assume that Rank is not required.
- Write an ALTER statement to make Phone an alternate key in COLLEGE.
- Write an UPDATE statement to change the city of a student with student number 101102 to 'Houston'.
- Write an UPDATE statement to change the phone number of a student with ID 107111 to '713-543-0011' and the state to 'TX'.
- Write a statement to delete all data for professor 'James McCall.'
- Delete all data in the COLLEGE table but keep the table structure.
- Write a view to select the dean's first and last name whose appointment title is "Advisor"
- Advanced DML.
- Create a user-defined function named FUNC_APPOINTMENT that combines the Title and Term of the APPOINTMENT table into a concatenated name field.
- Create a stored procedure that selects the student's first and last names with a certain (variable) city and state.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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