Question: Please help me running this code, thank You. Feature 3 : search for job posts. The input includes a keyword, job type ( full time
Please help me running this code, thank You.
Feature : search for job posts. The input includes a keyword, job type full time or part time and a state. The procedure does the following:
It finds all job posts that are active and the job title or job description has a substring that matches the input keyword, and the job post's state and job type match the input state and job type. The procedure prints out the matching job posts' job post id associated company name, job title, description, min and max pay, city and state.
In case there are no matching job posts, print out No job posts found'.
Hint: to match a substring in the procedure, use
where columnname like inputkeyword
create table jobposts
jobpostid number primary key,
companyname varchar
jobtitle varchar
description varchar
minpay number,
maxpay number,
city varchar
state varchar
jobtype varchar
status varchar
;
insert into jobposts VALUES 'ABC Company', 'Software Engineer', 'Seeking experienced software engineer', 'Example City', CA 'full time', 'active';
insert into jobposts VALUES XYZ Corporation', 'Data Analyst', 'Looking for a skilled data analyst', 'Another City', NY 'part time', 'active';
insert into jobposts VALUES Inc. 'Marketing Specialist', 'Join our marketing team', 'Cityville', CA 'full time', 'inactive';
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
