Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

USING SQL DEVELOPER 1. For each event plan, list the plan number, count of the event plan lines, and sum of the number of resources

USING SQL DEVELOPER

1. For each event plan, list the plan number, count of the event plan lines, and sum of the number of resources assigned. For example, plan number “P100” has 4 lines and 7 resources assigned. You only need to consider event plans that have at least one line.

2. For event requests, list the event number, event date (eventrequest.dateheld), and count of the event plans. Only include event requests in the result if the event request has more than one related event plan with a work date in December 2018.

3. List the plan number, event number, work date, and activity of event plans meeting the following two conditions: (1) the work date is in December 2018 and (2) the event is held in the “Basketball arena”. Your query must not use the facility number (“F101”) of the basketball arena in the WHERE clause. Pretend that the user knows only the facility name, not the facility number. Text constants in Oracle are case sensitive. Thus, the WHERE clause should not have a condition involving the facility number compared to a constant (“F101”).

4. List the event number, event date, status, and estimated cost of events where there is an event plan managed by Mary Manager and the event is held in the basketball arena in the period October 1 to December 31, 2018. Your query must not use the facility number (“F101”) of the “Basketball arena” or the employee number (“E101”) of “Mary Manager” in the WHERE clause. Pretend that the user knows only the facility name and employee name, not the facility number and employee number. Thus, the WHERE clause should not have conditions involving the facility number or employee number compared to constant values. Text constants in Oracle are case sensitive. (10 points)

5.List the plan number, line number, resource name, number of resources (eventplanline.numberfld), location name, time start, and time end where the event is held at the “Basketball arena”, the event plan has activity of activity of “Operation”, and the event plan has a work date in the period October 1 to December 31, 2018. Your query must not use the facility number (“F101”) of the “Basketball arena” in the WHERE clause. Thus, the WHERE clause should not have a condition involving the facility number compared to a constant (“F101”). Text constants in Oracle are case sensitive. (10 points)

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

Step: 1

1 SELECT EPPlanNo COUNT AS Event PlanLines SUMNumberFld FROM Event Plan EP INNER JOIN Event Plan Lin... 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

Employment Law for Human Resource Practice

Authors: David J. Walsh

4th edition

1111972192, 978-1133710820, 1133710824, 978-1111972196

More Books

Students also viewed these Accounting questions

Question

Did the authors address group similarities and differences?

Answered: 1 week ago