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 3: search for job posts. The input includes a keyword, job type (full time or part time), and a state. The procedure does the following:
1) 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.
2) In case there are no matching job posts, print out 'No job posts found'.
Hint: to match a substring in the procedure, use
where column_name like '%'|| input_keyword ||'%'
create table job_posts (
job_post_id number primary key,
company_name varchar2(100),
job_title varchar2(100),
description varchar2(500),
min_pay number,
max_pay number,
city varchar2(50),
state varchar2(50),
job_type varchar2(20),
status varchar2(20)
);
insert into job_posts VALUES (1, 'ABC Company', 'Software Engineer', 'Seeking experienced software engineer', 60000,80000, 'Example City', 'CA', 'full time', 'active');
insert into job_posts VALUES (2,'XYZ Corporation', 'Data Analyst', 'Looking for a skilled data analyst', 50000,70000, 'Another City', 'NY', 'part time', 'active');
insert into job_posts VALUES (3,'123 Inc.', 'Marketing Specialist', 'Join our marketing team', 45000,60000, 'Cityville', 'CA', 'full time', 'inactive');

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!