SlideShare ist ein Scribd-Unternehmen logo
1 von 4
Downloaden Sie, um offline zu lesen
‘Repairs’ Questions
The ‘Repairs’ database is for a computer repair store. It has four tables:
Devices (type, rate, priority)
Technicians (Id, name, grade)
Experience (Id, type, qualification)
Repair (Job, Id, type, owner, date, time, ready, cost)
Look in the Devices table and view the different types of repairs (MM stands
for Multimedia device, DD means disk drive). Each type of device has a repair
rate per Πhour spent on it, and a priority level of either low (L), medium (M),
or high (H).
The Technicians table lists the employees and their skill level.
The Experience table shows each technicians ability to repair different
devices (Novice (N) or Experienced (E)).
The Repair table gives each repair a unique job number, as well as other
required data.
Create and save SQL queries for the following:
1. Show the name and grade of all technicians
2. Show everything about all devices.
3. Show the different rates that are charged, from lowest to highest (no
duplicates).
4. Show all of the jobs (and the type) being worked on by technician
1470.
5. For all multimedia repairs, show the owner and the date of the job.
6. Show all of the jobs that have been around since before the 4th of June.
7. Show the different type of repairs that technician 1470 is working on
(no duplicates).
8. Show the different types of devices repaired and the rate charged for
each.
9. What is the name of the technician with the ID 1310?
10. Which devices are charged at a rate of $30 per Πhour?
11. List the identity numbers of technicians who have expert qualifications.
12. Which devices are ready for collection?
13. What is the level of experience of technician 1470 when working on
iMacs?
14. Find the jobs being worked on by technicians 1470 and 1011.
15. The order of ANDs and ORs can affect the result. ANDs are always
worked out first. To make sure you get the result you expect, always
use brackets. For example, type the following two queries in and see
what difference the brackets make:
SELECT job, id, type
FROM repair
WHERE id=1470 OR id=1008
AND type=’iMac’ OR type=’MM’

SELECT job, id, type
FROM repair
WHERE (id=1470 OR id=1008)
AND (type=’iMac’ OR type=’MM’)

16. Show type, rate and priority of devices that have a rate of $20 or $25,
and are also either a multimedia device or a disk drive.
17. Show the owners and job dates of all repairs between June 4th and
June 6th.
18. Use the In operator to show the rates for input and output devices.

19. Show all of the owners with names beginning with ‘B’.
20. Show any five-letter technician names starting with ‘C’.
21. Show the number of hard drives being repaired.
22. Show the maximum time taken to repair each device type.
23. Edit the previous query to display the maximum time with the heading
“Maximum Time” and with the text “quarter hours” appended to the
values (e.g. ‘4 quarter hours’).
24. What is the average time each technician takes to complete a job?
25. Show the number of jobs entered on each date.
26. Show the type of devices that have exactly two jobs.
27. List the jobs that have a high priority.
28. Show the ID and name of technicians who are classed as experts.
29. Which high priority devices being worked on by Johnson are ready for
collection?
30. What is the date entered for all low priority repairs?
31. Show the device type and repair rate for devices that have technicians
who are novices.
32. Which technicians are experts at repairing iMacs?
33. What is the grade of the technician repairing the device owned by
James?
34. What will be the charge for the repair to Elliot’s device?
35. Who owns devices being repaired by Ted Carrol?
36. What are the names of the technicians who are still not expert (N) at
repairing Macs?
37. What rate will Byrne be charged for repairs?
38. List the owners whose devices have a high priority for repair.
39. What level of qualification has the technician who is doing Taylor’s
repair job?

Weitere Àhnliche Inhalte

Ähnlich wie Repairs questions

Traing and aquired skills
Traing and aquired skillsTraing and aquired skills
Traing and aquired skillsRaymond Salinas
 
What is data center availability modes slide
What is data center availability modes slideWhat is data center availability modes slide
What is data center availability modes slideLivin Jose
 
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...Alpro
 
ALLEN HEINRICHS RESUME
ALLEN HEINRICHS RESUME ALLEN HEINRICHS RESUME
ALLEN HEINRICHS RESUME Allen Heinrichs
 
Digital Electronics & Fundamental of Microprocessor-I
Digital Electronics & Fundamental of Microprocessor-IDigital Electronics & Fundamental of Microprocessor-I
Digital Electronics & Fundamental of Microprocessor-Ipravinwj
 
CIS 115 Exceptional Education - snaptutorial.com
CIS 115   Exceptional Education - snaptutorial.comCIS 115   Exceptional Education - snaptutorial.com
CIS 115 Exceptional Education - snaptutorial.comDavisMurphyB33
 
Introduction to Embedded Systems (1).pptx
Introduction to Embedded Systems (1).pptxIntroduction to Embedded Systems (1).pptx
Introduction to Embedded Systems (1).pptxpriyaanaparthy
 
Cis 115 Education Organization -- snaptutorial.com
Cis 115   Education Organization -- snaptutorial.comCis 115   Education Organization -- snaptutorial.com
Cis 115 Education Organization -- snaptutorial.comDavisMurphyB99
 
cs305-170108135047 (1).ppt
cs305-170108135047 (1).pptcs305-170108135047 (1).ppt
cs305-170108135047 (1).pptRajDhrub
 
Peripherals and Ports
Peripherals and PortsPeripherals and Ports
Peripherals and PortsBryan Corpuz
 
Cis 115 Education Organization / snaptutorial.com
Cis 115 Education Organization / snaptutorial.comCis 115 Education Organization / snaptutorial.com
Cis 115 Education Organization / snaptutorial.comBaileya126
 
Cis 115 Enhance teaching / snaptutorial.com
Cis 115  Enhance teaching / snaptutorial.comCis 115  Enhance teaching / snaptutorial.com
Cis 115 Enhance teaching / snaptutorial.comHarrisGeorg51
 

Ähnlich wie Repairs questions (20)

Traing and aquired skills
Traing and aquired skillsTraing and aquired skills
Traing and aquired skills
 
S M UMER WASI
S M UMER WASIS M UMER WASI
S M UMER WASI
 
Training report_orginal
Training report_orginalTraining report_orginal
Training report_orginal
 
Bhagyesh's IR TECH
Bhagyesh's IR TECHBhagyesh's IR TECH
Bhagyesh's IR TECH
 
What is data center availability modes slide
What is data center availability modes slideWhat is data center availability modes slide
What is data center availability modes slide
 
Final Report
Final ReportFinal Report
Final Report
 
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
 
ALLEN HEINRICHS RESUME
ALLEN HEINRICHS RESUME ALLEN HEINRICHS RESUME
ALLEN HEINRICHS RESUME
 
Digital Electronics & Fundamental of Microprocessor-I
Digital Electronics & Fundamental of Microprocessor-IDigital Electronics & Fundamental of Microprocessor-I
Digital Electronics & Fundamental of Microprocessor-I
 
S m umer wasi
S m umer wasiS m umer wasi
S m umer wasi
 
CIS 115 Exceptional Education - snaptutorial.com
CIS 115   Exceptional Education - snaptutorial.comCIS 115   Exceptional Education - snaptutorial.com
CIS 115 Exceptional Education - snaptutorial.com
 
Original assignment
Original assignmentOriginal assignment
Original assignment
 
Introduction to Embedded Systems (1).pptx
Introduction to Embedded Systems (1).pptxIntroduction to Embedded Systems (1).pptx
Introduction to Embedded Systems (1).pptx
 
06
0606
06
 
CMMS - From Theory to Execution
CMMS - From Theory to ExecutionCMMS - From Theory to Execution
CMMS - From Theory to Execution
 
Cis 115 Education Organization -- snaptutorial.com
Cis 115   Education Organization -- snaptutorial.comCis 115   Education Organization -- snaptutorial.com
Cis 115 Education Organization -- snaptutorial.com
 
cs305-170108135047 (1).ppt
cs305-170108135047 (1).pptcs305-170108135047 (1).ppt
cs305-170108135047 (1).ppt
 
Peripherals and Ports
Peripherals and PortsPeripherals and Ports
Peripherals and Ports
 
Cis 115 Education Organization / snaptutorial.com
Cis 115 Education Organization / snaptutorial.comCis 115 Education Organization / snaptutorial.com
Cis 115 Education Organization / snaptutorial.com
 
Cis 115 Enhance teaching / snaptutorial.com
Cis 115  Enhance teaching / snaptutorial.comCis 115  Enhance teaching / snaptutorial.com
Cis 115 Enhance teaching / snaptutorial.com
 

Mehr von hccit

Snr ipt 10_syll
Snr ipt 10_syllSnr ipt 10_syll
Snr ipt 10_syllhccit
 
Snr ipt 10_guide
Snr ipt 10_guideSnr ipt 10_guide
Snr ipt 10_guidehccit
 
3 d modelling_task_sheet_2014_yr12
3 d modelling_task_sheet_2014_yr123 d modelling_task_sheet_2014_yr12
3 d modelling_task_sheet_2014_yr12hccit
 
3 d modelling_task_sheet_2014_yr11
3 d modelling_task_sheet_2014_yr113 d modelling_task_sheet_2014_yr11
3 d modelling_task_sheet_2014_yr11hccit
 
10 ict photoshop_proj_2014
10 ict photoshop_proj_201410 ict photoshop_proj_2014
10 ict photoshop_proj_2014hccit
 
Photoshop
PhotoshopPhotoshop
Photoshophccit
 
Flash
FlashFlash
Flashhccit
 
University partnerships programs email
University partnerships programs emailUniversity partnerships programs email
University partnerships programs emailhccit
 
Griffith sciences pathway programs overview
Griffith sciences pathway programs overviewGriffith sciences pathway programs overview
Griffith sciences pathway programs overviewhccit
 
Griffith info tech brochure
Griffith info tech brochureGriffith info tech brochure
Griffith info tech brochurehccit
 
Pm sql exercises
Pm sql exercisesPm sql exercises
Pm sql exerciseshccit
 
Movies questions
Movies questionsMovies questions
Movies questionshccit
 
Australian birds questions
Australian birds questionsAustralian birds questions
Australian birds questionshccit
 
Section b
Section bSection b
Section bhccit
 
B
BB
Bhccit
 
A
AA
Ahccit
 
Section a
Section aSection a
Section ahccit
 
Ask manual rev5
Ask manual rev5Ask manual rev5
Ask manual rev5hccit
 
Case study report mj
Case study report mjCase study report mj
Case study report mjhccit
 
Mj example case_study_layout_intro_completedq
Mj example case_study_layout_intro_completedqMj example case_study_layout_intro_completedq
Mj example case_study_layout_intro_completedqhccit
 

Mehr von hccit (20)

Snr ipt 10_syll
Snr ipt 10_syllSnr ipt 10_syll
Snr ipt 10_syll
 
Snr ipt 10_guide
Snr ipt 10_guideSnr ipt 10_guide
Snr ipt 10_guide
 
3 d modelling_task_sheet_2014_yr12
3 d modelling_task_sheet_2014_yr123 d modelling_task_sheet_2014_yr12
3 d modelling_task_sheet_2014_yr12
 
3 d modelling_task_sheet_2014_yr11
3 d modelling_task_sheet_2014_yr113 d modelling_task_sheet_2014_yr11
3 d modelling_task_sheet_2014_yr11
 
10 ict photoshop_proj_2014
10 ict photoshop_proj_201410 ict photoshop_proj_2014
10 ict photoshop_proj_2014
 
Photoshop
PhotoshopPhotoshop
Photoshop
 
Flash
FlashFlash
Flash
 
University partnerships programs email
University partnerships programs emailUniversity partnerships programs email
University partnerships programs email
 
Griffith sciences pathway programs overview
Griffith sciences pathway programs overviewGriffith sciences pathway programs overview
Griffith sciences pathway programs overview
 
Griffith info tech brochure
Griffith info tech brochureGriffith info tech brochure
Griffith info tech brochure
 
Pm sql exercises
Pm sql exercisesPm sql exercises
Pm sql exercises
 
Movies questions
Movies questionsMovies questions
Movies questions
 
Australian birds questions
Australian birds questionsAustralian birds questions
Australian birds questions
 
Section b
Section bSection b
Section b
 
B
BB
B
 
A
AA
A
 
Section a
Section aSection a
Section a
 
Ask manual rev5
Ask manual rev5Ask manual rev5
Ask manual rev5
 
Case study report mj
Case study report mjCase study report mj
Case study report mj
 
Mj example case_study_layout_intro_completedq
Mj example case_study_layout_intro_completedqMj example case_study_layout_intro_completedq
Mj example case_study_layout_intro_completedq
 

KĂŒrzlich hochgeladen

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 

KĂŒrzlich hochgeladen (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 

Repairs questions

  • 1. ‘Repairs’ Questions The ‘Repairs’ database is for a computer repair store. It has four tables: Devices (type, rate, priority) Technicians (Id, name, grade) Experience (Id, type, qualification) Repair (Job, Id, type, owner, date, time, ready, cost) Look in the Devices table and view the different types of repairs (MM stands for Multimedia device, DD means disk drive). Each type of device has a repair rate per ÂŒ hour spent on it, and a priority level of either low (L), medium (M), or high (H). The Technicians table lists the employees and their skill level. The Experience table shows each technicians ability to repair different devices (Novice (N) or Experienced (E)). The Repair table gives each repair a unique job number, as well as other required data. Create and save SQL queries for the following: 1. Show the name and grade of all technicians 2. Show everything about all devices. 3. Show the different rates that are charged, from lowest to highest (no duplicates). 4. Show all of the jobs (and the type) being worked on by technician 1470. 5. For all multimedia repairs, show the owner and the date of the job. 6. Show all of the jobs that have been around since before the 4th of June. 7. Show the different type of repairs that technician 1470 is working on (no duplicates). 8. Show the different types of devices repaired and the rate charged for each. 9. What is the name of the technician with the ID 1310? 10. Which devices are charged at a rate of $30 per ÂŒ hour? 11. List the identity numbers of technicians who have expert qualifications.
  • 2. 12. Which devices are ready for collection? 13. What is the level of experience of technician 1470 when working on iMacs? 14. Find the jobs being worked on by technicians 1470 and 1011. 15. The order of ANDs and ORs can affect the result. ANDs are always worked out first. To make sure you get the result you expect, always use brackets. For example, type the following two queries in and see what difference the brackets make: SELECT job, id, type FROM repair WHERE id=1470 OR id=1008 AND type=’iMac’ OR type=’MM’ SELECT job, id, type FROM repair WHERE (id=1470 OR id=1008) AND (type=’iMac’ OR type=’MM’) 16. Show type, rate and priority of devices that have a rate of $20 or $25, and are also either a multimedia device or a disk drive. 17. Show the owners and job dates of all repairs between June 4th and June 6th. 18. Use the In operator to show the rates for input and output devices. 19. Show all of the owners with names beginning with ‘B’. 20. Show any five-letter technician names starting with ‘C’.
  • 3. 21. Show the number of hard drives being repaired. 22. Show the maximum time taken to repair each device type. 23. Edit the previous query to display the maximum time with the heading “Maximum Time” and with the text “quarter hours” appended to the values (e.g. ‘4 quarter hours’). 24. What is the average time each technician takes to complete a job? 25. Show the number of jobs entered on each date. 26. Show the type of devices that have exactly two jobs. 27. List the jobs that have a high priority. 28. Show the ID and name of technicians who are classed as experts. 29. Which high priority devices being worked on by Johnson are ready for collection? 30. What is the date entered for all low priority repairs? 31. Show the device type and repair rate for devices that have technicians who are novices. 32. Which technicians are experts at repairing iMacs? 33. What is the grade of the technician repairing the device owned by James? 34. What will be the charge for the repair to Elliot’s device?
  • 4. 35. Who owns devices being repaired by Ted Carrol? 36. What are the names of the technicians who are still not expert (N) at repairing Macs? 37. What rate will Byrne be charged for repairs? 38. List the owners whose devices have a high priority for repair. 39. What level of qualification has the technician who is doing Taylor’s repair job?