Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION 4 Structured Query Language (TOTAL: 10 MARKS) Structured query language (SQL) allows database users to interrogate data in a database. Required: The New Zealand
QUESTION 4 Structured Query Language (TOTAL: 10 MARKS) Structured query language (SQL) allows database users to interrogate data in a database. Required: The New Zealand Police Department created a database to keep records of speeding offenders and their payment for speeding tickets. The relationship window of that database is shown below. You are to examine it and answer the questions that follows: Relationships X 18 Offender Driver License Number First Name Second Name Date of Birth Gender Address City Offender Payment 1 Payment Receipt Driver License Number Date Payment Received Amount received Required: Provide the SQL to retrieve information for the following: i. Only the offenders' Driver License Number and Date of Birth (2 marks) ii. Only the first name and last name of donors whose gender is recorded as female. (3 marks) . iii. The total amount received from each gender. (5 marks) QUESTION 4 Structured Query Language (TOTAL: 10 MARKS) Structured query language (SQL) allows database users to interrogate data in a database. Required: The New Zealand Police Department created a database to keep records of speeding offenders and their payment for speeding tickets. The relationship window of that database is shown below. You are to examine it and answer the questions that follows: Relationships X 18 Offender Driver License Number First Name Second Name Date of Birth Gender Address City Offender Payment 1 Payment Receipt Driver License Number Date Payment Received Amount received Required: Provide the SQL to retrieve information for the following: i. Only the offenders' Driver License Number and Date of Birth (2 marks) ii. Only the first name and last name of donors whose gender is recorded as female. (3 marks) . iii. The total amount received from each gender
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started