Question
Write a CTE statement that returns the following information All Instructor with a First Name starting with the letter 'G' teaching courses for the
Write a CTE statement that returns the following information
All Instructor with a First Name starting with the letter 'G' teaching courses for the business department only
Then, write a SELECT statement that uses this CTE to return all the students who are enrolled in the courses which are taught by the instructor returned in the above CTE.
Select should return following information:
Instrucor Name( FirstName LastName)
DepartmentName
CourseID
CourseDescription
Student Name (FirstName LastName)
Write a SELECT statement that answers this question: What is the total number of courses taught by Full-time instructors? Return these columns:
The instructor's name in this format
FirstName Lastname
The total number of courses taught by each instructor
Use any operator to return each group total and a grand total of the selection.
Write a Query to return all the students who graduated successfully. Write a SELECT statement that returns the following information :
First Name
Last Name
Course Number
Course Description
Graduation Date
Sort the result set by Course Number, then by the Graduation Date.
Write a stored procedure that inputs StudentID and returns the total tuition fee for the input student.
Input Parameter : StudentID
Return Tuition Fee.
#1 Show the definition of the Store Procedure
#2 Show the execution of the Stored Procedure( Calling the store procedure and displaying the tuition of the Student)
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