Question: In Project Task 3 , you are required to write 1 2 SQL queries based on the tables from the provided relational model Download relational
In Project Task you are required to write SQL queries based on the tables from the provided relational model Download relational model.
These queries are detailed in the tasksql Download tasksqlfile, along with their corresponding scores.
All table names, attribute names, primary keys, and foreign keys are specified exactly as shown in the relational model Download relational model.
Please fill in your answers in the designated spaces within the tasksql Download tasksqlfile, and submit it on or before the deadline.
Do not modify any of the provided SQL queries in the tasksql Download tasksqlfile.
Your answers should consist of SQL queries covered in this course in slides or introduced in class
Each query will be evaluated as follows: correct full mark partially correct half mark or incorrect zero mark A query is considered correct if it produces the expected output from our test cases. The decision on whether a query is partially correct or incorrect will be made by the grader.
Before submitting, carefully verify that your SQL queries are executable and yield the correct output.
In addition to creating your own tables for testing, further methods for testing your SQL queries will be provided later.
I am checking whether the university supports specific database servers for you to connect to test your SQL queries, rather than providing you with the table creation code. Providing the table creation code will be a last resort if no other options are available. I will update for this soon.
Important Notes:
The date format in Oracle is dd MMM yyyyeg Dec In MySQL it is yyyymmddeg Your answers should follow the Oracle standard.
MemberFee, NonMemberFee, Quota, etc., are numeric values.
The data type for Gender in the REGISTEREDUSER table is CHAR which can have a value of either M for male or F for female, and it cannot be NULL.
Attached is the relation model.
Below is the SQL task
Do not modify any provided SQL statements.
Please enter your SQL queries in the designated spaces.
Run your SQL queries to verify that they are free of errors..
SELECT QUERY FROM DUAL;
ToDo points
Retrieve the event venues and member fees for events held between Jan
and Dec
The result set should not include duplicate rows for the same venue and
member fee.
Please enter your SQL query in the space below, ABOVE the line of SELECT
QUERY FROM DUAL;
SELECT QUERY FROM DUAL;
ToDo points
Retrieve the event name, date, time, and venue for events where the member
fee is greater than
or equal to but less than or where the nonmember fee is greater than
but less than
Please enter your SQL query in the space below, ABOVE the line of SELECT
QUERY FROM DUAL;
SELECT QUERY FROM DUAL;
ToDo points
Retrieve the names of all events along with the names of their corresponding
supervisors.
Please enter your SQL query in the space below, ABOVE the line of SELECT
QUERY FROM DUAL;
SELECT QUERY FROM DUAL;
ToDo points
Retrieve the names and dates of all events, ordered by date in ascending
order.
Please enter your SQL query in the space below, ABOVE the line of SELECT
QUERY FROM DUAL;.
SELECT QUERY FROM DUAL;
ToDo points
Retrieve the event names and the names of supervisors for events that are supervised by employees
managing at least one of the fan clubs hosting the event. Please enter your SQL query in the space below.
U
Do not modify any provided SQL statements.
Please enter your SQL queries in the designated spaces.
Run your SQL queries to verify that they are free of errors.
SELECT QUERY FROM DUAL;
ToDo points
Retrieve the event venues and member fees for events held between Jan
and Dec
The result set should not include duplicate rows for the same venue and
member fee.
Please enter your SQL query in the space below, ABOVE the line of SELECT
QUERY FROM DUAL;
SELECT QUERY FROM DUAL;
ToDo points
Retrieve the event name, date, time, and venue for events where the member
fee is greater than
or equal to but less than or where the nonmember fee is greater than
but less than
Please enter your SQL query in the space below, ABOVE the line of SELECT
QUERY FROM DUAL;
SELECT QUERY FROM DUAL;
ToDo points
Retrieve the names of all events along with the names of their corresponding
supervisors.
Please enter your SQL query in the space below, ABOVE the line of SELECT
QUERY FROM DUAL;
SELECT QUERY FROM DUAL;
ToDo points
Retrieve the names and dat
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
