databases3b

C
Review of database basics
Fields Attributes ‘ atomic’ Data types Primary key Validation rules Input masks L: letter A-Z (required) ?: letter A-Z (optional) 0: number 0-9 (required) 9: number (optional) range (or limit) check,  e.g. between 10 and 20, >10 list check,  e.g. ‘a’ OR ‘b’ OR ‘c’ (better as a dropdown list) Design a database to store personal information of 6 th  Form students
tables queries (select some data only) macros forms (on screen) reports (on paper) what the user can see add a new student see all students see all in Year 13 list of all students list of all in Year 13 ? Design a database to store personal information of 6 th  Form students
Primary key? Starter   £4.00 3 13 1125 £2.00 2 12 1125 £4.00 1 13 1124 £3.00 1 14 1123 £2.00 2 12 1123 £4.00 3 13 1122 £2.00 2 12 1122 price quantitySold stockNum orderNum
Database exercise
Project number Project name Employee number Employee name Rate category Hourly rate 1. consider single table Consider the Employees and Projects table on the webpage 2. assign primary key(s)? Project number  Project name Employee number  Employee name Rate category Hourly rate 5. spot another (less obvious) Employee number  Employee name Rate category Hourly rate Project number Employee number 6. …and remove it Employee number  Employee name Rate category Project number Employee number Project number  Project name Rate category Hourly rate 3. spot repeated groups of data… Project number  Project name Employee number  Employee name Rate category Hourly rate 4. …and remove them Employee number  Employee name Rate category Hourly rate Project number Employee number Project number  Project name
Entity-relationship  diagrams
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
form student  ONE  form(s)  contains   ONE  student(s)  MANY  MANY event world record ONE  event(s)   has   ONE  world record(s) MANY  MANY employee project ONE  employee(s)  can work on   ONE  project(s)  MANY  MANY (  ) (  ) (  ) (  ) (  ) (  )
event world record ONE  event(s)   has   ONE  world record(s) MANY  MANY (  ) (  ) event world record might as well merge into the one table (nothing to be gained from having two) a ONE-to-ONE relationship
form student  ONE  form(s)  contains   ONE  student(s)  MANY  MANY (  ) (  ) This is what you are after It makes your database more efficient a ONE-to-MANY relationship form student
employee project ONE  employee(s)  can work on   ONE  project(s)  MANY  MANY (  ) (  ) Impossible to do in your database! Needs to be resolved… a MANY-to-MANY relationship employee project employee project employee_project Use a ‘link’ table between them  
husband wife mother child ward patient employee company car person main residence publisher book author book film actor film director student A-level course customer product stock item supplier ,[object Object],[object Object],[object Object],[object Object],[object Object]
Hospital ERD exercise A hospital is organised into wards. Each ward has a ward number and a name recorded, along with the number of beds in that ward.  Each ward is staffed by nurses. They have their staff number and name recorded and are assigned to a single ward. Each patient in the hospital has a patient identification number and their name, address and date of birth are recorded. Each patient is under the care of a single consultant and is assigned to a single ward.  Each consultant is responsible for a number of patients. Consultants have their staff number, name and specialism recorded. ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Extension: Consider students, teachers and courses in the same way
nurse patient ward consultant staffID Title Forename Surname  staffID Title Forename Surname wardID (FK)  patientID Title Forename Surname AdmissionDate staffID (FK) wardID (FK)  wardID wardName Building Floor Tel
Police Database exercise A system for tracking the officers on different cases is needed within a police unit. Each officer belongs to a single department. Officers are allocated to cases. Each officer can be allocated to more than one case at any given time and each case could be worked on by a number of officers. Each case has a single supervising officer (or ‘supervisor’) in charge of it who may supervise more than one case at a time. The following information needs to be stored: case ID number; type of case; description of the case; the date a case is opened (and closed); the result of the case; officers’ name, rank, department and gender; supervisors’ name and rank Extension : where would the date an officer was assigned to a case go? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Extension: Consider a library in the same way.
supervisor Cases  Officers  Department  Officers  Cases  Clue for previous situation
1 von 17

Recomendados

databases2 von
databases2databases2
databases2c.west
374 views19 Folien
4. case study von
4. case study4. case study
4. case studykhoahuy82
5K views15 Folien
Dbms ppt von
Dbms pptDbms ppt
Dbms pptanshul rathore
279 views45 Folien
13. case study von
13. case study13. case study
13. case studykhoahuy82
1.4K views4 Folien
ERD - Entity Relationship Diagram von
ERD - Entity Relationship DiagramERD - Entity Relationship Diagram
ERD - Entity Relationship DiagramAsher Jawad
286 views13 Folien
Erd1 von
Erd1Erd1
Erd1AlinaHaider1974
677 views32 Folien

Más contenido relacionado

Was ist angesagt?

Entity relationship diagram (erd) von
Entity relationship  diagram (erd)Entity relationship  diagram (erd)
Entity relationship diagram (erd)Shahariar Alam
453 views16 Folien
Excel analysis assignment this is an independent assignment me von
Excel analysis assignment this is an independent assignment meExcel analysis assignment this is an independent assignment me
Excel analysis assignment this is an independent assignment mejoney4
51 views31 Folien
Xml quiz 3 unit von
Xml quiz   3 unitXml quiz   3 unit
Xml quiz 3 unitSasidhar Kothuru
218 views3 Folien
June 2015 von
June 2015June 2015
June 2015kiran srivastava
352 views18 Folien
physical and logical data independence von
physical and logical data independencephysical and logical data independence
physical and logical data independenceapoorva_upadhyay
68K views19 Folien
A2 database work von
A2 database workA2 database work
A2 database workc.west
297 views4 Folien

Was ist angesagt?(17)

Entity relationship diagram (erd) von Shahariar Alam
Entity relationship  diagram (erd)Entity relationship  diagram (erd)
Entity relationship diagram (erd)
Shahariar Alam453 views
Excel analysis assignment this is an independent assignment me von joney4
Excel analysis assignment this is an independent assignment meExcel analysis assignment this is an independent assignment me
Excel analysis assignment this is an independent assignment me
joney451 views
physical and logical data independence von apoorva_upadhyay
physical and logical data independencephysical and logical data independence
physical and logical data independence
apoorva_upadhyay68K views
A2 database work von c.west
A2 database workA2 database work
A2 database work
c.west297 views
RDBMS ERD Examples von Sarmad Ali
RDBMS ERD ExamplesRDBMS ERD Examples
RDBMS ERD Examples
Sarmad Ali7.9K views
Entity relationship diagram (erd) von tameemyousaf
Entity relationship diagram (erd)Entity relationship diagram (erd)
Entity relationship diagram (erd)
tameemyousaf214.1K views
Data Entry in CSpro von prabhustat
Data Entry in CSproData Entry in CSpro
Data Entry in CSpro
prabhustat6.5K views
Lecture 03 data abstraction and er model von emailharmeet
Lecture 03 data abstraction and er modelLecture 03 data abstraction and er model
Lecture 03 data abstraction and er model
emailharmeet3K views
Data Science as a Career and Intro to R von Anshik Bansal
Data Science as a Career and Intro to RData Science as a Career and Intro to R
Data Science as a Career and Intro to R
Anshik Bansal198 views
Pg. 03 question two 1introduction to databasesi von JUST36
Pg. 03 question two 1introduction to databasesiPg. 03 question two 1introduction to databasesi
Pg. 03 question two 1introduction to databasesi
JUST3679 views
Introduction to OOA and UML - Part 1 von Shwetha-BA
Introduction to OOA and UML - Part 1Introduction to OOA and UML - Part 1
Introduction to OOA and UML - Part 1
Shwetha-BA126 views

Destacado

Nuevo PresentacióN De Microsoft Power Point2 von
Nuevo PresentacióN De Microsoft Power Point2Nuevo PresentacióN De Microsoft Power Point2
Nuevo PresentacióN De Microsoft Power Point2plagasbuenosaires
799 views18 Folien
Mythen Der Blogosphaere von
Mythen Der BlogosphaereMythen Der Blogosphaere
Mythen Der BlogosphaereJan Schmidt
611 views18 Folien
navidad von
navidadnavidad
navidadguestec52af
142 views7 Folien
Cars Selection von
Cars  SelectionCars  Selection
Cars Selectionmodjo89
360 views40 Folien
Prevención de Incendios a través del apoyo a la ganadería extensiva von
Prevención de Incendios a través del apoyo a la ganadería extensivaPrevención de Incendios a través del apoyo a la ganadería extensiva
Prevención de Incendios a través del apoyo a la ganadería extensivaffrf
395 views26 Folien
Presentacion Area 1° von
Presentacion Area 1°Presentacion Area 1°
Presentacion Area 1°Campus Virtual ORT
183 views11 Folien

Destacado(20)

Nuevo PresentacióN De Microsoft Power Point2 von plagasbuenosaires
Nuevo PresentacióN De Microsoft Power Point2Nuevo PresentacióN De Microsoft Power Point2
Nuevo PresentacióN De Microsoft Power Point2
plagasbuenosaires799 views
Mythen Der Blogosphaere von Jan Schmidt
Mythen Der BlogosphaereMythen Der Blogosphaere
Mythen Der Blogosphaere
Jan Schmidt611 views
Cars Selection von modjo89
Cars  SelectionCars  Selection
Cars Selection
modjo89360 views
Prevención de Incendios a través del apoyo a la ganadería extensiva von ffrf
Prevención de Incendios a través del apoyo a la ganadería extensivaPrevención de Incendios a través del apoyo a la ganadería extensiva
Prevención de Incendios a través del apoyo a la ganadería extensiva
ffrf395 views
What can Bioinformaticians learn from YouTube? von Matt Wood
What can Bioinformaticians learn from YouTube?What can Bioinformaticians learn from YouTube?
What can Bioinformaticians learn from YouTube?
Matt Wood737 views
Buzztterの裏側とその周辺技術 von Yoji Shidara
Buzztterの裏側とその周辺技術Buzztterの裏側とその周辺技術
Buzztterの裏側とその周辺技術
Yoji Shidara4.3K views
Butterflies von wings
ButterfliesButterflies
Butterflies
wings1.8K views
Management Lesson How Is A Paradigm Created von wings
Management Lesson  How Is A Paradigm CreatedManagement Lesson  How Is A Paradigm Created
Management Lesson How Is A Paradigm Created
wings468 views
Sources Of Long Term Finance von wizkidrx
Sources Of Long Term FinanceSources Of Long Term Finance
Sources Of Long Term Finance
wizkidrx72K views
Communication et Information en reseau von Laura Manconi
Communication et Information en reseauCommunication et Information en reseau
Communication et Information en reseau
Laura Manconi3.5K views
Prayer Through The Ages von Gidon Ariel
Prayer Through The AgesPrayer Through The Ages
Prayer Through The Ages
Gidon Ariel460 views
Expert Search For ELeGi Legacy von meisenstadt
Expert Search For ELeGi LegacyExpert Search For ELeGi Legacy
Expert Search For ELeGi Legacy
meisenstadt237 views

Similar a databases3b

A2 databases von
A2 databasesA2 databases
A2 databasesc.west
434 views22 Folien
Normalization von
NormalizationNormalization
NormalizationAbuSahama
6 views44 Folien
Impersonal Matching von
Impersonal MatchingImpersonal Matching
Impersonal MatchingRikki Wright
2 views78 Folien
Introduction to Data Science With R Notes von
Introduction to Data Science With R NotesIntroduction to Data Science With R Notes
Introduction to Data Science With R NotesLakshmiSarvani6
119 views18 Folien
Introduction of Database Design and Development von
Introduction of Database Design and DevelopmentIntroduction of Database Design and Development
Introduction of Database Design and DevelopmentEr. Nawaraj Bhandari
1.3K views56 Folien
Computer sec2-1st term von
Computer sec2-1st termComputer sec2-1st term
Computer sec2-1st termأمنية وجدى
3K views7 Folien

Similar a databases3b(20)

A2 databases von c.west
A2 databasesA2 databases
A2 databases
c.west434 views
Introduction to Data Science With R Notes von LakshmiSarvani6
Introduction to Data Science With R NotesIntroduction to Data Science With R Notes
Introduction to Data Science With R Notes
LakshmiSarvani6119 views
The required database should be developed according to the followi.docx von Komlin1
The required database should be developed according to the followi.docxThe required database should be developed according to the followi.docx
The required database should be developed according to the followi.docx
Komlin119 views
Practical cases, Applied linguistics course (MUI) von Alex Curtis
Practical cases, Applied linguistics course (MUI)Practical cases, Applied linguistics course (MUI)
Practical cases, Applied linguistics course (MUI)
Alex Curtis532 views
Object oriented software engineering concepts von Komal Singh
Object oriented software engineering conceptsObject oriented software engineering concepts
Object oriented software engineering concepts
Komal Singh42.3K views
Bc0041 von hayerpa
Bc0041Bc0041
Bc0041
hayerpa289 views
CS 649 Database Management Systems Fall 2017 Instructor.docx von annettsparrow
CS 649 Database  Management Systems  Fall 2017  Instructor.docxCS 649 Database  Management Systems  Fall 2017  Instructor.docx
CS 649 Database Management Systems Fall 2017 Instructor.docx
annettsparrow4 views
Applied python for correlation on churn and stocks datasets von Mahmoud Fouad
Applied python for correlation on churn and stocks datasetsApplied python for correlation on churn and stocks datasets
Applied python for correlation on churn and stocks datasets
Mahmoud Fouad119 views
1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx von honey725342
1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx
1 Exploratory Data Analysis (EDA) by Melvin Ott, PhD.docx
honey72534211 views
Assessment Worksheet Aligning Risks, Threats, and Vuln.docx von festockton
Assessment Worksheet Aligning Risks, Threats, and Vuln.docxAssessment Worksheet Aligning Risks, Threats, and Vuln.docx
Assessment Worksheet Aligning Risks, Threats, and Vuln.docx
festockton3 views

Más de c.west

Do Review Improve von
Do Review ImproveDo Review Improve
Do Review Improvec.west
431 views4 Folien
Making A Presentation (Student Version) von
Making A Presentation (Student Version)Making A Presentation (Student Version)
Making A Presentation (Student Version)c.west
815 views53 Folien
Reading Level Tools In Word von
Reading Level Tools In WordReading Level Tools In Word
Reading Level Tools In Wordc.west
486 views5 Folien
Software von
SoftwareSoftware
Softwarec.west
634 views7 Folien
Printing & Colour Separation von
Printing & Colour SeparationPrinting & Colour Separation
Printing & Colour Separationc.west
966 views7 Folien
Hardware von
HardwareHardware
Hardwarec.west
588 views9 Folien

Más de c.west(20)

Do Review Improve von c.west
Do Review ImproveDo Review Improve
Do Review Improve
c.west431 views
Making A Presentation (Student Version) von c.west
Making A Presentation (Student Version)Making A Presentation (Student Version)
Making A Presentation (Student Version)
c.west815 views
Reading Level Tools In Word von c.west
Reading Level Tools In WordReading Level Tools In Word
Reading Level Tools In Word
c.west486 views
Software von c.west
SoftwareSoftware
Software
c.west634 views
Printing & Colour Separation von c.west
Printing & Colour SeparationPrinting & Colour Separation
Printing & Colour Separation
c.west966 views
Hardware von c.west
HardwareHardware
Hardware
c.west588 views
Stage 3 - Creating your project von c.west
Stage 3 - Creating your projectStage 3 - Creating your project
Stage 3 - Creating your project
c.west530 views
Stage 2 - Deciding on a project von c.west
Stage 2 - Deciding on a projectStage 2 - Deciding on a project
Stage 2 - Deciding on a project
c.west692 views
Stage 1 - Finding out von c.west
Stage 1 - Finding outStage 1 - Finding out
Stage 1 - Finding out
c.west320 views
Environment Collages G2 von c.west
Environment Collages G2Environment Collages G2
Environment Collages G2
c.west13.5K views
Environment Collages G1 von c.west
Environment Collages G1Environment Collages G1
Environment Collages G1
c.west35.8K views
Unit 6 Poster And Advert Design von c.west
Unit 6   Poster And Advert DesignUnit 6   Poster And Advert Design
Unit 6 Poster And Advert Design
c.west903 views
Unit 5 Page Design von c.west
Unit 5   Page DesignUnit 5   Page Design
Unit 5 Page Design
c.west373 views
Unit 4 Using The Internet von c.west
Unit 4   Using The InternetUnit 4   Using The Internet
Unit 4 Using The Internet
c.west262 views
Unit 3 Spreadsheets von c.west
Unit 3   SpreadsheetsUnit 3   Spreadsheets
Unit 3 Spreadsheets
c.west291 views
Unit 2 Business Documents von c.west
Unit 2   Business DocumentsUnit 2   Business Documents
Unit 2 Business Documents
c.west419 views
Unit 1 Logo Design von c.west
Unit 1   Logo DesignUnit 1   Logo Design
Unit 1 Logo Design
c.west972 views
5. Production Form von c.west
5. Production Form5. Production Form
5. Production Form
c.west236 views
4. Delivery Notes von c.west
4. Delivery Notes4. Delivery Notes
4. Delivery Notes
c.west581 views
3. Order Form von c.west
3. Order Form3. Order Form
3. Order Form
c.west266 views

Último

Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... von
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...ShapeBlue
52 views10 Folien
Digital Personal Data Protection (DPDP) Practical Approach For CISOs von
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOsPriyanka Aash
103 views59 Folien
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue von
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlueShapeBlue
75 views23 Folien
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... von
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...ShapeBlue
120 views62 Folien
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue von
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueShapeBlue
147 views20 Folien
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue von
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueShapeBlue
149 views7 Folien

Último(20)

Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ... von ShapeBlue
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
Live Demo Showcase: Unveiling Dell PowerFlex’s IaaS Capabilities with Apache ...
ShapeBlue52 views
Digital Personal Data Protection (DPDP) Practical Approach For CISOs von Priyanka Aash
Digital Personal Data Protection (DPDP) Practical Approach For CISOsDigital Personal Data Protection (DPDP) Practical Approach For CISOs
Digital Personal Data Protection (DPDP) Practical Approach For CISOs
Priyanka Aash103 views
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue von ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
2FA and OAuth2 in CloudStack - Andrija Panić - ShapeBlue
ShapeBlue75 views
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... von ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue120 views
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue von ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlueMigrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
Migrating VMware Infra to KVM Using CloudStack - Nicolas Vazquez - ShapeBlue
ShapeBlue147 views
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue von ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue149 views
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N... von James Anderson
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
GDG Cloud Southlake 28 Brad Taylor and Shawn Augenstein Old Problems in the N...
James Anderson142 views
State of the Union - Rohit Yadav - Apache CloudStack von ShapeBlue
State of the Union - Rohit Yadav - Apache CloudStackState of the Union - Rohit Yadav - Apache CloudStack
State of the Union - Rohit Yadav - Apache CloudStack
ShapeBlue218 views
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ... von ShapeBlue
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
Backup and Disaster Recovery with CloudStack and StorPool - Workshop - Venko ...
ShapeBlue114 views
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT von ShapeBlue
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
ShapeBlue138 views
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f... von TrustArc
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc Webinar - Managing Online Tracking Technology Vendors_ A Checklist f...
TrustArc130 views
NTGapps NTG LowCode Platform von Mustafa Kuğu
NTGapps NTG LowCode Platform NTGapps NTG LowCode Platform
NTGapps NTG LowCode Platform
Mustafa Kuğu287 views
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O... von ShapeBlue
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
Declarative Kubernetes Cluster Deployment with Cloudstack and Cluster API - O...
ShapeBlue59 views
DRBD Deep Dive - Philipp Reisner - LINBIT von ShapeBlue
DRBD Deep Dive - Philipp Reisner - LINBITDRBD Deep Dive - Philipp Reisner - LINBIT
DRBD Deep Dive - Philipp Reisner - LINBIT
ShapeBlue110 views
Business Analyst Series 2023 - Week 4 Session 7 von DianaGray10
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7
DianaGray10110 views
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ... von ShapeBlue
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
How to Re-use Old Hardware with CloudStack. Saving Money and the Environment ...
ShapeBlue97 views
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T von ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue81 views
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha... von ShapeBlue
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
Mitigating Common CloudStack Instance Deployment Failures - Jithin Raju - Sha...
ShapeBlue113 views

databases3b

  • 2. Fields Attributes ‘ atomic’ Data types Primary key Validation rules Input masks L: letter A-Z (required) ?: letter A-Z (optional) 0: number 0-9 (required) 9: number (optional) range (or limit) check, e.g. between 10 and 20, >10 list check, e.g. ‘a’ OR ‘b’ OR ‘c’ (better as a dropdown list) Design a database to store personal information of 6 th Form students
  • 3. tables queries (select some data only) macros forms (on screen) reports (on paper) what the user can see add a new student see all students see all in Year 13 list of all students list of all in Year 13 ? Design a database to store personal information of 6 th Form students
  • 4. Primary key? Starter £4.00 3 13 1125 £2.00 2 12 1125 £4.00 1 13 1124 £3.00 1 14 1123 £2.00 2 12 1123 £4.00 3 13 1122 £2.00 2 12 1122 price quantitySold stockNum orderNum
  • 6. Project number Project name Employee number Employee name Rate category Hourly rate 1. consider single table Consider the Employees and Projects table on the webpage 2. assign primary key(s)? Project number Project name Employee number Employee name Rate category Hourly rate 5. spot another (less obvious) Employee number Employee name Rate category Hourly rate Project number Employee number 6. …and remove it Employee number Employee name Rate category Project number Employee number Project number Project name Rate category Hourly rate 3. spot repeated groups of data… Project number Project name Employee number Employee name Rate category Hourly rate 4. …and remove them Employee number Employee name Rate category Hourly rate Project number Employee number Project number Project name
  • 8.
  • 9. form student ONE form(s) contains ONE student(s) MANY MANY event world record ONE event(s) has ONE world record(s) MANY MANY employee project ONE employee(s) can work on ONE project(s) MANY MANY ( ) ( ) ( ) ( ) ( ) ( )
  • 10. event world record ONE event(s) has ONE world record(s) MANY MANY ( ) ( ) event world record might as well merge into the one table (nothing to be gained from having two) a ONE-to-ONE relationship
  • 11. form student ONE form(s) contains ONE student(s) MANY MANY ( ) ( ) This is what you are after It makes your database more efficient a ONE-to-MANY relationship form student
  • 12. employee project ONE employee(s) can work on ONE project(s) MANY MANY ( ) ( ) Impossible to do in your database! Needs to be resolved… a MANY-to-MANY relationship employee project employee project employee_project Use a ‘link’ table between them  
  • 13.
  • 14.
  • 15. nurse patient ward consultant staffID Title Forename Surname staffID Title Forename Surname wardID (FK) patientID Title Forename Surname AdmissionDate staffID (FK) wardID (FK) wardID wardName Building Floor Tel
  • 16.
  • 17. supervisor Cases Officers Department Officers Cases Clue for previous situation