Write a script that produces the following report: For each instructor, display one line with InstructorID, last name, first name, how many courses the instructor teaches, and a note that is defined as follows: “On leave”, when instructor teaches no courses, “Available for another course”, when instructor teaches only one course, and Nothing otherwise

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter7: File Handling And Applications
Section: Chapter Questions
Problem 12RQ
icon
Related questions
Question
  1. Write a script that produces the following report:

For each instructor, display one line with InstructorID, last name, first name, how many courses the instructor teaches, and a note that is defined as follows:

  • “On leave”, when instructor teaches no courses,
  • “Available for another course”, when instructor teaches only one course, and
  • Nothing otherwise

Instructors table contains data about instructors, and each course in the Courses table references InstructorID of an instructor who teaches the course.

The structure of the script is totally up to you, as long as it displays the desired report.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Big Data Analytics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage