0% found this document useful (0 votes)
4 views4 pages

Database Management

Database management

Uploaded by

Ruby Ceron
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views4 pages

Database Management

Database management

Uploaded by

Ruby Ceron
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

ACTIVITY 4:

1.
● A teacher wants you to retrieve a list of students who have enrolled in a particular course
"Computer Science" and their corresponding grades. Retrieve the student ID, student name,
course name, and grade for all students who have enrolled in the course "Computer Science."

● The academic department wants to know the enrollment status of all students, including those
who have not enrolled in any course. Retrieve the student ID, student name, course name, and
grade (if available) for all students.

● The grading system has been updated, and some grades were mistakenly entered without the
corresponding enrollment records. Retrieve the student ID, student name, course name, and
grade for all grades entered. If a grade does not have a corresponding enrollment record, the
student ID, student name, and course name should be NULL in the result.

● The university wants to generate a report that combines all students with all courses,
regardless of any matching criteria. Retrieve the student ID, student name, course name, and
grade (if available) for all possible combinations of students and courses.
2.
 Your task is to retrieve a list of customers and their corresponding orders. Retrieve the customer
ID, customer name, order ID, order date, and total amount for all customers who have placed
orders.

● The marketing team wants to send promotional emails to all customers, regardless of whether
they have placed orders or not. Retrieve the customer ID, customer name, order ID, order
date, and total amount (if available) for all customers. If a customer has not placed any orders,
the order ID, order date, and total amount should be NULL in the result.
● The company wants to analyze the order items and see if there are any items that have not
been associated with an order. retrieve the order item ID, order ID, product ID, quantity, and
customer ID (if available) for all order items.

● The inventory team wants to generate a report that combines all products with all orders,
regardless of any matching criteria. Retrieve the order ID, customer ID, product ID, quantity,
and total amount (if available) for all possible combinations of orders and products.

3.
● Your task is to retrieve a list of trips made by each driver, including the driver ID, driver name,
trip ID, vehicle ID, distance traveled, and start/end dates.
● The fleet management team wants to see a list of all drivers, including those who haven't made
any trips yet. Retrieve the driver ID, driver name, trip ID, vehicle ID, distance traveled, and
start/end dates (if available) for all drivers.
● The company wants to analyze the fuel consumption records and identify any fuel records that
do not have a corresponding vehicle. retrieve the fuel record ID, vehicle ID, fuel amount,
refueling date, and driver ID (if available) for all fuel records.
● The company wants to generate a report that combines all vehicles with all drivers, regardless
of any matching criteria. Retrieve the vehicle ID, make, model, year, driver ID, driver name, trip
ID, distance traveled, and start/end dates (if available) for all possible combinations of vehicles
and drivers.
4.
● Your task is to retrieve a list of customers who have placed orders and also left reviews for
products. Retrieve the customer ID, customer name, order ID, order date, product name, and
review text for all customers who have placed orders and left.
● The marketing team wants to send promotional emails to all customers, including those who
have not placed any orders. Retrieve the customer ID, customer name, order ID, order date,
product name, and review text (if available) for all customers.
● The company wants to identify the reviews that do not have a corresponding customer.
Retrieve the review ID, product name, customer ID, and review text (if available) for all
reviews.
● The inventory team wants to generate a report that combines all customers with all products,
regardless of any matching criteria. Retrieve the customer ID, customer name, order ID, order
date, product name, and review text (if available) for all possible combinations of customers
and products.

You might also like