SlideShare a Scribd company logo
1 of 14
Practice exam paper Employee number  Employee name Rate category Project number Employee number Project number  Project name Rate category Hourly rate employee project employee_project e.g.  Street, Town, City are dependent on Postcode  (and not on the table’s PRIMARY KEY) CustomerID HouseNum Street Town City Postcode dependent   not dependent  3NF
 
Scenario S-Cars is a company which hires out stretch limousines, complete with uniformed chauffeurs, for special occasions. S-Cars currently has a fleet of 12 limos the smallest of which can take seven passengers the largest 20. The limos are hired out in sessions.  In general there are three sessions in a day. The morning session starts at 7 am and finishes at 12 midday, the afternoon session lasts from 1 pm to 6 pm and the evening session from 7 pm to midnight. Earlier starts can be negotiated depending on the availability of limos and drivers. If customers book consecutive sessions they can negotiate with the driver as to when the hour break is taken.  The firm employs 15 freelance drivers who are paid on a ‘number of sessions’ basis. Their rates vary from £40 to £80 a session and their wages are paid by the firm at the end of each month.  Customers may hire more than one car or driver for special occasions (eg weddings or West End trips) and many customers book limos regularly.  The first time customers make a booking they are given a client number which consists of the first three letters of their surname plus a four figure number. Customers quote their number when they make further bookings. Regular customers can negotiate discounts. Limos can only be booked up to 90 days in advance but drivers are assigned on the morning of the hire.  A customer rings up or comes to reception. If they are an existing customer you look up their details in the card index file. If they are new, you ask them for their details and create a card.  You are the new owner of S-Cars and are shocked to find the company uses this archaic paper-based system.  bookings drivers customers limos bookings bookings ONE  customer(s)  can make  ONE  booking(s)  MANY  MANY (  ) (  ) ONE  booking(s)  can be for  ONE  limo(s)  MANY  MANY (  ) (  ) ONE  booking(s)  can be for  ONE  driver(s)  MANY  MANY (  ) (  ) drivers limos bookings bookings bookings_limos bookings_drivers
bookings customers drivers limos bookings_limos bookings_drivers bookings drivers customers limos bookings bookings ONE  customer(s)  can make  ONE  booking(s)  MANY  MANY (  ) (  ) ONE  booking(s)  can be for  ONE  limo(s)  MANY  MANY (  ) (  ) ONE  booking(s)  can be for  ONE  driver(s)  MANY  MANY (  ) (  ) drivers limos bookings bookings bookings_limos bookings_drivers
Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers   CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers   CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile bookings customers drivers limos bookings_limos bookings_drivers
Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers   CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers   CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone bookings customers drivers limos bookings_limos bookings_drivers
Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers   CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers   CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile bookings customers drivers limos bookings_limos bookings_drivers
Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers   CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers   CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session bookings customers drivers limos bookings_limos bookings_drivers
Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers   CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers   CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID Date Session No. of Passg Customer ID Date Booking Made Pickup Point Payment Made ? bookings customers drivers limos bookings_limos bookings_drivers
Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers   CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers   CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID (PK) Customer ID (FK) Date Booking Made Pickup Point Payment Made bookings customers drivers limos bookings_limos bookings_drivers
Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers   CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers   CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID (PK) Customer ID (FK) Date Booking Made Pickup Point Payment Made Booking ID (FK) Driver NHI Number (FK) Booking ID (FK) Car Reg (FK) bookings customers drivers limos bookings_limos bookings_drivers
Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers   CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers   CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID (PK) Customer ID (FK) Date Booking Made Pickup Point Payment Made Booking ID (FK) Driver NHI Number (FK) Date Session Booking ID (FK) Car Reg (FK) Date Session No. of Passg bookings customers drivers limos bookings_limos bookings_drivers
Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers   CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers   CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile bookings customers drivers limos bookings_cars Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID (PK) Customer ID (FK) Date Booking Made Pickup Point Payment Made Booking ID (FK) Car Reg (FK) Driver NHI Number (FK) Date Session No. of Passg Primary key? What uniquely identifies a particular session booking session?
Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers   CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers   CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile bookings customers drivers limos bookings_cars Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID (PK) Customer ID (FK) Date Booking Made Pickup Point Payment Made Booking ID (FK) Car Reg (PK) (FK) Driver NHI Number (FK) Date (PK) Session (PK) No. of Passg

More Related Content

Similar to SAM exm paper

TRAVEL SPEND OPTIMIZATION FOR POWER SECTOR CPSEs
TRAVEL SPEND OPTIMIZATION FOR POWER SECTOR CPSEsTRAVEL SPEND OPTIMIZATION FOR POWER SECTOR CPSEs
TRAVEL SPEND OPTIMIZATION FOR POWER SECTOR CPSEs
Shashank Shekhar
 
Tsp value chain
Tsp value chainTsp value chain
Tsp value chain
SBD
 
O N L I N E V E H I C L E R E N T A L S Y S T E M V R S
O N L I N E  V E H I C L E  R E N T A L  S Y S T E M   V R SO N L I N E  V E H I C L E  R E N T A L  S Y S T E M   V R S
O N L I N E V E H I C L E R E N T A L S Y S T E M V R S
ncct
 
Stefan Hopmann's Presentation at Emerging Communication Conference & Awards 2...
Stefan Hopmann's Presentation at Emerging Communication Conference & Awards 2...Stefan Hopmann's Presentation at Emerging Communication Conference & Awards 2...
Stefan Hopmann's Presentation at Emerging Communication Conference & Awards 2...
eCommConf
 

Similar to SAM exm paper (20)

TAXI-GO (Taxi Booking System)
TAXI-GO (Taxi Booking System)TAXI-GO (Taxi Booking System)
TAXI-GO (Taxi Booking System)
 
RoadRe Pitch deck
RoadRe Pitch deckRoadRe Pitch deck
RoadRe Pitch deck
 
Transpotation ERP AppNET Group
Transpotation ERP AppNET GroupTranspotation ERP AppNET Group
Transpotation ERP AppNET Group
 
Go greencar ppt
Go greencar pptGo greencar ppt
Go greencar ppt
 
Car Rental System.pptx
Car Rental System.pptxCar Rental System.pptx
Car Rental System.pptx
 
Hack UPC
Hack UPCHack UPC
Hack UPC
 
TRAVEL SPEND OPTIMIZATION FOR POWER SECTOR CPSEs
TRAVEL SPEND OPTIMIZATION FOR POWER SECTOR CPSEsTRAVEL SPEND OPTIMIZATION FOR POWER SECTOR CPSEs
TRAVEL SPEND OPTIMIZATION FOR POWER SECTOR CPSEs
 
Guidelines for using Ericsson's exposed charging APIs
Guidelines for using Ericsson's exposed charging APIsGuidelines for using Ericsson's exposed charging APIs
Guidelines for using Ericsson's exposed charging APIs
 
Cab booking-web-admin
Cab booking-web-adminCab booking-web-admin
Cab booking-web-admin
 
Part 3
Part 3Part 3
Part 3
 
System Analysis and Design Supporting Documents
System Analysis and Design Supporting DocumentsSystem Analysis and Design Supporting Documents
System Analysis and Design Supporting Documents
 
Internet Booking Engine
Internet Booking EngineInternet Booking Engine
Internet Booking Engine
 
Tsp value chain
Tsp value chainTsp value chain
Tsp value chain
 
Project Proposal - Car Hire.doc
Project Proposal - Car Hire.docProject Proposal - Car Hire.doc
Project Proposal - Car Hire.doc
 
O N L I N E V E H I C L E R E N T A L S Y S T E M V R S
O N L I N E  V E H I C L E  R E N T A L  S Y S T E M   V R SO N L I N E  V E H I C L E  R E N T A L  S Y S T E M   V R S
O N L I N E V E H I C L E R E N T A L S Y S T E M V R S
 
Car Rental Systems (ระบบบริหารการเช่ารถยนต์ครบวงจร) by iNT Software.net
Car Rental Systems (ระบบบริหารการเช่ารถยนต์ครบวงจร) by iNT Software.netCar Rental Systems (ระบบบริหารการเช่ารถยนต์ครบวงจร) by iNT Software.net
Car Rental Systems (ระบบบริหารการเช่ารถยนต์ครบวงจร) by iNT Software.net
 
We deal meet
We deal meetWe deal meet
We deal meet
 
Car & truck rental and leasing mailing list
Car & truck rental and leasing mailing listCar & truck rental and leasing mailing list
Car & truck rental and leasing mailing list
 
Semtech a travel strategy for semantic technology 060611
Semtech   a travel strategy for semantic technology 060611Semtech   a travel strategy for semantic technology 060611
Semtech a travel strategy for semantic technology 060611
 
Stefan Hopmann's Presentation at Emerging Communication Conference & Awards 2...
Stefan Hopmann's Presentation at Emerging Communication Conference & Awards 2...Stefan Hopmann's Presentation at Emerging Communication Conference & Awards 2...
Stefan Hopmann's Presentation at Emerging Communication Conference & Awards 2...
 

More from c.west

Do Review Improve
Do Review ImproveDo Review Improve
Do Review Improve
c.west
 
Making A Presentation (Student Version)
Making A Presentation (Student Version)Making A Presentation (Student Version)
Making A Presentation (Student Version)
c.west
 
Reading Level Tools In Word
Reading Level Tools In WordReading Level Tools In Word
Reading Level Tools In Word
c.west
 
Software
SoftwareSoftware
Software
c.west
 
Printing & Colour Separation
Printing & Colour SeparationPrinting & Colour Separation
Printing & Colour Separation
c.west
 
Hardware
HardwareHardware
Hardware
c.west
 
Stage 3 - Creating your project
Stage 3 - Creating your projectStage 3 - Creating your project
Stage 3 - Creating your project
c.west
 
Stage 2 - Deciding on a project
Stage 2 - Deciding on a projectStage 2 - Deciding on a project
Stage 2 - Deciding on a project
c.west
 
Stage 1 - Finding out
Stage 1 - Finding outStage 1 - Finding out
Stage 1 - Finding out
c.west
 
Environment Collages G2
Environment Collages G2Environment Collages G2
Environment Collages G2
c.west
 
Environment Collages G1
Environment Collages G1Environment Collages G1
Environment Collages G1
c.west
 
Unit 6 Poster And Advert Design
Unit 6   Poster And Advert DesignUnit 6   Poster And Advert Design
Unit 6 Poster And Advert Design
c.west
 
Unit 5 Page Design
Unit 5   Page DesignUnit 5   Page Design
Unit 5 Page Design
c.west
 
Unit 4 Using The Internet
Unit 4   Using The InternetUnit 4   Using The Internet
Unit 4 Using The Internet
c.west
 
Unit 3 Spreadsheets
Unit 3   SpreadsheetsUnit 3   Spreadsheets
Unit 3 Spreadsheets
c.west
 
Unit 2 Business Documents
Unit 2   Business DocumentsUnit 2   Business Documents
Unit 2 Business Documents
c.west
 
Unit 1 Logo Design
Unit 1   Logo DesignUnit 1   Logo Design
Unit 1 Logo Design
c.west
 
5. Production Form
5. Production Form5. Production Form
5. Production Form
c.west
 
4. Delivery Notes
4. Delivery Notes4. Delivery Notes
4. Delivery Notes
c.west
 
3. Order Form
3. Order Form3. Order Form
3. Order Form
c.west
 

More from c.west (20)

Do Review Improve
Do Review ImproveDo Review Improve
Do Review Improve
 
Making A Presentation (Student Version)
Making A Presentation (Student Version)Making A Presentation (Student Version)
Making A Presentation (Student Version)
 
Reading Level Tools In Word
Reading Level Tools In WordReading Level Tools In Word
Reading Level Tools In Word
 
Software
SoftwareSoftware
Software
 
Printing & Colour Separation
Printing & Colour SeparationPrinting & Colour Separation
Printing & Colour Separation
 
Hardware
HardwareHardware
Hardware
 
Stage 3 - Creating your project
Stage 3 - Creating your projectStage 3 - Creating your project
Stage 3 - Creating your project
 
Stage 2 - Deciding on a project
Stage 2 - Deciding on a projectStage 2 - Deciding on a project
Stage 2 - Deciding on a project
 
Stage 1 - Finding out
Stage 1 - Finding outStage 1 - Finding out
Stage 1 - Finding out
 
Environment Collages G2
Environment Collages G2Environment Collages G2
Environment Collages G2
 
Environment Collages G1
Environment Collages G1Environment Collages G1
Environment Collages G1
 
Unit 6 Poster And Advert Design
Unit 6   Poster And Advert DesignUnit 6   Poster And Advert Design
Unit 6 Poster And Advert Design
 
Unit 5 Page Design
Unit 5   Page DesignUnit 5   Page Design
Unit 5 Page Design
 
Unit 4 Using The Internet
Unit 4   Using The InternetUnit 4   Using The Internet
Unit 4 Using The Internet
 
Unit 3 Spreadsheets
Unit 3   SpreadsheetsUnit 3   Spreadsheets
Unit 3 Spreadsheets
 
Unit 2 Business Documents
Unit 2   Business DocumentsUnit 2   Business Documents
Unit 2 Business Documents
 
Unit 1 Logo Design
Unit 1   Logo DesignUnit 1   Logo Design
Unit 1 Logo Design
 
5. Production Form
5. Production Form5. Production Form
5. Production Form
 
4. Delivery Notes
4. Delivery Notes4. Delivery Notes
4. Delivery Notes
 
3. Order Form
3. Order Form3. Order Form
3. Order Form
 

Recently uploaded

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 

Recently uploaded (20)

Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
AI+A11Y 11MAY2024 HYDERBAD GAAD 2024 - HelloA11Y (11 May 2024)
 
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot ModelMcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
Mcleodganj Call Girls 🥰 8617370543 Service Offer VIP Hot Model
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Introduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDMIntroduction to use of FHIR Documents in ABDM
Introduction to use of FHIR Documents in ABDM
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

SAM exm paper

  • 1. Practice exam paper Employee number Employee name Rate category Project number Employee number Project number Project name Rate category Hourly rate employee project employee_project e.g. Street, Town, City are dependent on Postcode (and not on the table’s PRIMARY KEY) CustomerID HouseNum Street Town City Postcode dependent  not dependent 3NF
  • 2.  
  • 3. Scenario S-Cars is a company which hires out stretch limousines, complete with uniformed chauffeurs, for special occasions. S-Cars currently has a fleet of 12 limos the smallest of which can take seven passengers the largest 20. The limos are hired out in sessions. In general there are three sessions in a day. The morning session starts at 7 am and finishes at 12 midday, the afternoon session lasts from 1 pm to 6 pm and the evening session from 7 pm to midnight. Earlier starts can be negotiated depending on the availability of limos and drivers. If customers book consecutive sessions they can negotiate with the driver as to when the hour break is taken. The firm employs 15 freelance drivers who are paid on a ‘number of sessions’ basis. Their rates vary from £40 to £80 a session and their wages are paid by the firm at the end of each month. Customers may hire more than one car or driver for special occasions (eg weddings or West End trips) and many customers book limos regularly. The first time customers make a booking they are given a client number which consists of the first three letters of their surname plus a four figure number. Customers quote their number when they make further bookings. Regular customers can negotiate discounts. Limos can only be booked up to 90 days in advance but drivers are assigned on the morning of the hire. A customer rings up or comes to reception. If they are an existing customer you look up their details in the card index file. If they are new, you ask them for their details and create a card. You are the new owner of S-Cars and are shocked to find the company uses this archaic paper-based system. bookings drivers customers limos bookings bookings ONE customer(s) can make ONE booking(s) MANY MANY ( ) ( ) ONE booking(s) can be for ONE limo(s) MANY MANY ( ) ( ) ONE booking(s) can be for ONE driver(s) MANY MANY ( ) ( ) drivers limos bookings bookings bookings_limos bookings_drivers
  • 4. bookings customers drivers limos bookings_limos bookings_drivers bookings drivers customers limos bookings bookings ONE customer(s) can make ONE booking(s) MANY MANY ( ) ( ) ONE booking(s) can be for ONE limo(s) MANY MANY ( ) ( ) ONE booking(s) can be for ONE driver(s) MANY MANY ( ) ( ) drivers limos bookings bookings bookings_limos bookings_drivers
  • 5. Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile bookings customers drivers limos bookings_limos bookings_drivers
  • 6. Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone bookings customers drivers limos bookings_limos bookings_drivers
  • 7. Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile bookings customers drivers limos bookings_limos bookings_drivers
  • 8. Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session bookings customers drivers limos bookings_limos bookings_drivers
  • 9. Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID Date Session No. of Passg Customer ID Date Booking Made Pickup Point Payment Made ? bookings customers drivers limos bookings_limos bookings_drivers
  • 10. Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID (PK) Customer ID (FK) Date Booking Made Pickup Point Payment Made bookings customers drivers limos bookings_limos bookings_drivers
  • 11. Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID (PK) Customer ID (FK) Date Booking Made Pickup Point Payment Made Booking ID (FK) Driver NHI Number (FK) Booking ID (FK) Car Reg (FK) bookings customers drivers limos bookings_limos bookings_drivers
  • 12. Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID (PK) Customer ID (FK) Date Booking Made Pickup Point Payment Made Booking ID (FK) Driver NHI Number (FK) Date Session Booking ID (FK) Car Reg (FK) Date Session No. of Passg bookings customers drivers limos bookings_limos bookings_drivers
  • 13. Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile bookings customers drivers limos bookings_cars Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID (PK) Customer ID (FK) Date Booking Made Pickup Point Payment Made Booking ID (FK) Car Reg (FK) Driver NHI Number (FK) Date Session No. of Passg Primary key? What uniquely identifies a particular session booking session?
  • 14. Bookings CSV file Car Reg Date Session Booking ID Driver ID No. of Passg Make Max Passengers Price per Session Customer ID Date Booking Made Pickup Point Payment Made Customer Last Name Customer Initial Customer Title Customer House No. Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Customers CSV file Customer ID Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Drivers CSV file Driver NHI Number Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile bookings customers drivers limos bookings_cars Customer ID (PK) Customer Last Name Customer Initial Customer Title Customer House No Customer Street Name Customer Town Customer County Customer Post Code Customer Telephone Customer Day Telephone Driver NHI Number (PK) Driver Last Name Driver First Name Driver Title Driver HouseNo. Driver Street Name Driver Town Driver County Driver Post Code Driver Rate Per Session Driver Telephone Driver Mobile Car Reg (PK) Make Max Passengers Price per Session Booking ID (PK) Customer ID (FK) Date Booking Made Pickup Point Payment Made Booking ID (FK) Car Reg (PK) (FK) Driver NHI Number (FK) Date (PK) Session (PK) No. of Passg