Hire best homework helpers for online homework help 24/7. Are you looking for online homework help? Try our excellent homework help who can help you get A+ grade in your assignment.Order my paper
For this proble I need to create a table called instructor_course_nums within a university database schema.
1. I need to write a procedure that accepts an instructor ID as input. The procedure calculates the total number of course sections taught by that instructor, and adds a tuple to the instructor_course_nums table consisting of the instructors ID number, name, and total courses taught – call these attributes: ID, name, and tot_courses.
Here is what I have that answers the first part of the question:
CREATE TABLE instructor_course_nums (
id varchar (10),
name varchar (30),
CONSTRAINT instructor_course_nums_pkey PRIMARY KEY (id));
CREATE OR REPLACE PROCEDURE Student_00_insCourseNumsProc(ID varchar(10), name varchar (25), tot_courses varchar (25))
LANGUAGE plpgsql AS $$
SELECT name INTO instructor_course_nums
WHERE ID = instructor.ID;
SELECT COUNT(*) INTO instructor_course_nums
WHERE instructor_course_nums.id = teaches.ID;
The code I have here the prof in the new table with the total number of courses they’ve taught. My issue is that I am unable to figure out how to get the table to update when new information is added. Help is gratly appreciated! Thank you!
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more