Answered step by step
Verified Expert Solution
Link Copied!

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 =1, timestamp = timestamp 2024-3-210:00:00*
Since JoblD =1 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 =444, timestamp = timestamp 2024-3-210:00:00*
Since JobID =444 does not exist, system will print out "Invalid job ID"
Special case: JobID =1, timestamp = timestamp 2024-3-210:00:00', 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions

Question

Derive expressions for the rates of forward and reverse reactions?

Answered: 1 week ago

Question

Write an expression for half-life and explain it with a diagram.

Answered: 1 week ago

Question

What do you mean by underwriting of shares ?

Answered: 1 week ago

Question

Define "Rights Issue".

Answered: 1 week ago

Question

Advance warning and an explanation for the layoff.

Answered: 1 week ago

Question

Assessment of skills and interests.

Answered: 1 week ago