Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write me a sql code based on the output and test cases I have provided, also please make sure to put this under a
Please write me a sql code based on the output and test cases I have provided, also please make sure to put this under a table. Thank You.
Output: Checks if the job ID exists and checks if Job is still active. If not, print "Invalid Job Post ID Then find all Job seekers who meet the minimum degree requirement for that job post, the minimal experience for the job post, and the minimal skill required for the job post. For each job seeker found, print out the name of the job seeker and insert a row into the massage table with a newly generated message ID Account ID message time and input time, and body of the message is "A job post xxx is available and you are qualified to apply" where xx is the input job post ID
Test cases:
Regular case: JobID timestamp timestamp ::
Since JoblD exists, it checks whether the job post is still active. then proceeds to
find all applicants for the job who satisfy the requirements. Then print out Job seeker name and insert message into message table
Special case: JobID timestamp timestamp ::
Since JobID does not exist, system will print out "Invalid job ID
Special case: JobID timestamp timestamp :: job status not active
Since JobID exists but job status closed, system will print out "Job is not currently active"
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