SQL Set Operators Traditional Set Operators: Union Compatibility: Requirement for the traditional set operators. Strong requirement. - Same number of columns. - Each corresponding column is compatible. - Positional correspondence. Apply to similar tables by removing columns first. SQL UNION Example: Example 1: Retrieve basic data about all university people. SELECT FacNo AS PerNo, FacFirstName ...
You will write SELECT statements that retrieve some information from the following populated tables. This assignment uses intercollegiate athletic database and builds on what you have already created during your course work.
Event Plan Table
Resource Table
Facility Table
facno Facname
F100 Football stadium
F101 Basketball arena
F102 Baseball field
F103 Recreation room
Location Table
locno facno locname
L100 F100 Locker room
L101 F100 Plaza
L102 F100 Vehicle gate
L103 F101 Locker room
L104 F100 Ticket Booth
L105 F101 Gate
L106 F100 Pedestrian gate
a. 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. Thus, the WHERE clause should not have conditions involving the facility number or employee number compared to constant values.
Query Formulation + Result Snapshot
Our Official Website : Web Conquerors (https://www.webconquerors.com/)
Want to get digital services? Contact US
Want to know about our services? Our Services
Comments
Post a Comment