SlideShare a Scribd company logo
Referential integrity in
relational databases
Ferry Kemperman
Nanjing Foreign Language School
November 2019
Objectives
• You are able to write SQL Select statements based on an information need
• You are able to write simple DML statements based on a given scenario
(Insert/Delete/Update)
• You are able to validate DML statements based on a given ERD
• You are able to validate scenarios using referential integrity constraints
(PK/FK) and apply given cardinalities.
Think-Pair-Share activity
ERD / Populated dataset supplied on paper
2 students together with mini whiteboard.
Teacher shows realistic DML scenario on beamer.
You THINK (by yourself, write down answer in your notebook) about the
validity of this scenario according to ERD design and referential integrity
checks.
You PAIR (discuss/whisper) with your partner on your thoughts and write
your agreed answer on the mini whiteboard.
You SHARE your solution with your classmates by holding up the mini
whiteboard.
Students comment on each others solution and give their reasoning.
Some scenarios require you to come to the board and share your answer.
Listen carefully to each other to hear the reasoning !
MARKS
MarkId Student_ID Subject_ID Date Mark
100 1 10 2019-
04-01
7
101 1 10 2019-
04-2
6
102 2 11 2019-
04-3
2
STUDENTS
Student_ID FirstName LastName Group_ID
1 George Zhang 1
2 Alex Hu 1
3 Tonia Zhu 2
SUBJECT
Subject_ID Title
10 Computer Science
11 Mathematics
12 History
GROUP
Group_ID Name
1 AS 1
2 AS 2
Write the following queries.
1.Display all students first and last names.
2.Display all subjects titles in alphabetically ordered
3.Display firstname of students with lastname Hu
4.Insert the following student into the student table:
Student ID 4, Kevin Gu, in group 2
5.List all marks by student 1
6.List all marks by student Zhang
7.Delete student Tonia from the database
8.Update student Kevin Gu by changing his group
from 2 to 1.
9.Reason your answer: Did any student get 6 or
higher for mathematics?
10. List all the students that took Computer
Science.
Let’s have a look at the example database we
used in the SQL business case…once again!
Scenario 1
Scenario 2
Scenario 3
Scenario 4
Scenario 5
Scenario 6
Scenario 7
Scenario 8
Scenario 9
Scenario 10 : Bonus
Write a DML statement to delete George
from the database without the DBMS
returning a referential integrity violation!
Sc

More Related Content

Similar to Referential integrity in databases.pptx

Placement Essay Scoring Sheet Student Name___________________.docx
Placement Essay Scoring Sheet Student Name___________________.docxPlacement Essay Scoring Sheet Student Name___________________.docx
Placement Essay Scoring Sheet Student Name___________________.docx
randymartin91030
 
pr2 dll week 1.docx
pr2 dll week 1.docxpr2 dll week 1.docx
pr2 dll week 1.docx
JennyRoseRabang
 
CMI2012 CCSS for Mathematics
CMI2012 CCSS for MathematicsCMI2012 CCSS for Mathematics
CMI2012 CCSS for Mathematics
Janet Hale
 
CSEC Mathematics Syllabus Amendment
CSEC Mathematics Syllabus AmendmentCSEC Mathematics Syllabus Amendment
CSEC Mathematics Syllabus Amendment
Debbie-Ann Hall
 
Presentation On Writing Quality Answers
Presentation On Writing Quality AnswersPresentation On Writing Quality Answers
Presentation On Writing Quality Answers
Mandie Funk
 
essay-writing.pdf
essay-writing.pdfessay-writing.pdf
essay-writing.pdf
GgGooku
 
A.Gabi Duigu - Essay Writing For English Tests
A.Gabi Duigu - Essay Writing For English TestsA.Gabi Duigu - Essay Writing For English Tests
A.Gabi Duigu - Essay Writing For English Tests
Lori Moore
 
College of administrative and financial sciences mgt325 manage
College of administrative and financial sciences mgt325 manageCollege of administrative and financial sciences mgt325 manage
College of administrative and financial sciences mgt325 manage
mehek4
 
Developing the MKT Through Analyzing and Deepening Tasks and Curriculum
Developing the MKT Through Analyzing and Deepening Tasks and CurriculumDeveloping the MKT Through Analyzing and Deepening Tasks and Curriculum
Developing the MKT Through Analyzing and Deepening Tasks and Curriculum
Nicole Rigelman
 
Assessment Using the SOLO Framework.pptx
Assessment Using the SOLO Framework.pptxAssessment Using the SOLO Framework.pptx
Assessment Using the SOLO Framework.pptx
Carlo Magno
 
Essay Items Test
Essay Items TestEssay Items Test
Essay Items Test
Lynn Doctolero
 
Fixed & constructed response format.pptx
Fixed & constructed response format.pptxFixed & constructed response format.pptx
Fixed & constructed response format.pptx
CynthiaPinyuhan1
 
007 a college of administrative and financial sciencesassignme
007 a college of administrative and financial sciencesassignme007 a college of administrative and financial sciencesassignme
007 a college of administrative and financial sciencesassignme
smile790243
 
Webb keynote
Webb keynoteWebb keynote
Webb keynote
DASD
 
Submitting a writing assignment in Blackboard
Submitting a writing assignment in BlackboardSubmitting a writing assignment in Blackboard
Submitting a writing assignment in Blackboard
cbswaim
 
Mathsclass6
Mathsclass6Mathsclass6
Mathsclass6
SachinMishra226
 
CMSC198 summer2012 syllabus
CMSC198 summer2012 syllabusCMSC198 summer2012 syllabus
CMSC198 summer2012 syllabus
Akilah Jackson
 
Dok all levels_presentation
Dok all levels_presentationDok all levels_presentation
Dok all levels_presentation
Efraín Suárez-Arce, M.Ed
 
Pgptp session 1
Pgptp session 1Pgptp session 1
Pgptp session 1
Sidwell Friends School
 
DS 123 – Tutorial Assignment # 4Chaffe-StengelHypothesis tests.docx
DS 123 – Tutorial Assignment # 4Chaffe-StengelHypothesis tests.docxDS 123 – Tutorial Assignment # 4Chaffe-StengelHypothesis tests.docx
DS 123 – Tutorial Assignment # 4Chaffe-StengelHypothesis tests.docx
kanepbyrne80830
 

Similar to Referential integrity in databases.pptx (20)

Placement Essay Scoring Sheet Student Name___________________.docx
Placement Essay Scoring Sheet Student Name___________________.docxPlacement Essay Scoring Sheet Student Name___________________.docx
Placement Essay Scoring Sheet Student Name___________________.docx
 
pr2 dll week 1.docx
pr2 dll week 1.docxpr2 dll week 1.docx
pr2 dll week 1.docx
 
CMI2012 CCSS for Mathematics
CMI2012 CCSS for MathematicsCMI2012 CCSS for Mathematics
CMI2012 CCSS for Mathematics
 
CSEC Mathematics Syllabus Amendment
CSEC Mathematics Syllabus AmendmentCSEC Mathematics Syllabus Amendment
CSEC Mathematics Syllabus Amendment
 
Presentation On Writing Quality Answers
Presentation On Writing Quality AnswersPresentation On Writing Quality Answers
Presentation On Writing Quality Answers
 
essay-writing.pdf
essay-writing.pdfessay-writing.pdf
essay-writing.pdf
 
A.Gabi Duigu - Essay Writing For English Tests
A.Gabi Duigu - Essay Writing For English TestsA.Gabi Duigu - Essay Writing For English Tests
A.Gabi Duigu - Essay Writing For English Tests
 
College of administrative and financial sciences mgt325 manage
College of administrative and financial sciences mgt325 manageCollege of administrative and financial sciences mgt325 manage
College of administrative and financial sciences mgt325 manage
 
Developing the MKT Through Analyzing and Deepening Tasks and Curriculum
Developing the MKT Through Analyzing and Deepening Tasks and CurriculumDeveloping the MKT Through Analyzing and Deepening Tasks and Curriculum
Developing the MKT Through Analyzing and Deepening Tasks and Curriculum
 
Assessment Using the SOLO Framework.pptx
Assessment Using the SOLO Framework.pptxAssessment Using the SOLO Framework.pptx
Assessment Using the SOLO Framework.pptx
 
Essay Items Test
Essay Items TestEssay Items Test
Essay Items Test
 
Fixed & constructed response format.pptx
Fixed & constructed response format.pptxFixed & constructed response format.pptx
Fixed & constructed response format.pptx
 
007 a college of administrative and financial sciencesassignme
007 a college of administrative and financial sciencesassignme007 a college of administrative and financial sciencesassignme
007 a college of administrative and financial sciencesassignme
 
Webb keynote
Webb keynoteWebb keynote
Webb keynote
 
Submitting a writing assignment in Blackboard
Submitting a writing assignment in BlackboardSubmitting a writing assignment in Blackboard
Submitting a writing assignment in Blackboard
 
Mathsclass6
Mathsclass6Mathsclass6
Mathsclass6
 
CMSC198 summer2012 syllabus
CMSC198 summer2012 syllabusCMSC198 summer2012 syllabus
CMSC198 summer2012 syllabus
 
Dok all levels_presentation
Dok all levels_presentationDok all levels_presentation
Dok all levels_presentation
 
Pgptp session 1
Pgptp session 1Pgptp session 1
Pgptp session 1
 
DS 123 – Tutorial Assignment # 4Chaffe-StengelHypothesis tests.docx
DS 123 – Tutorial Assignment # 4Chaffe-StengelHypothesis tests.docxDS 123 – Tutorial Assignment # 4Chaffe-StengelHypothesis tests.docx
DS 123 – Tutorial Assignment # 4Chaffe-StengelHypothesis tests.docx
 

More from FerryKemperman

Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
FerryKemperman
 
Working with files (concepts/pseudocode/python)
Working with files (concepts/pseudocode/python)Working with files (concepts/pseudocode/python)
Working with files (concepts/pseudocode/python)
FerryKemperman
 
Top_down_programming..............................
Top_down_programming..............................Top_down_programming..............................
Top_down_programming..............................
FerryKemperman
 
OOP in Python, a beginners guide..........
OOP in Python, a beginners guide..........OOP in Python, a beginners guide..........
OOP in Python, a beginners guide..........
FerryKemperman
 
Search and Sort algorithms. Bubble, Insertion, Selection.
Search and Sort algorithms. Bubble, Insertion, Selection.Search and Sort algorithms. Bubble, Insertion, Selection.
Search and Sort algorithms. Bubble, Insertion, Selection.
FerryKemperman
 
Structured Query Language introduction..
Structured Query Language introduction..Structured Query Language introduction..
Structured Query Language introduction..
FerryKemperman
 
SDT introduction as given at MKIS, KL, 2023
SDT introduction as given at MKIS, KL, 2023SDT introduction as given at MKIS, KL, 2023
SDT introduction as given at MKIS, KL, 2023
FerryKemperman
 
Computer Architecture Machine Cycle (1).pdf
Computer Architecture Machine Cycle (1).pdfComputer Architecture Machine Cycle (1).pdf
Computer Architecture Machine Cycle (1).pdf
FerryKemperman
 

More from FerryKemperman (8)

Introduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdfIntroduction Computer Science - Software Design.pdf
Introduction Computer Science - Software Design.pdf
 
Working with files (concepts/pseudocode/python)
Working with files (concepts/pseudocode/python)Working with files (concepts/pseudocode/python)
Working with files (concepts/pseudocode/python)
 
Top_down_programming..............................
Top_down_programming..............................Top_down_programming..............................
Top_down_programming..............................
 
OOP in Python, a beginners guide..........
OOP in Python, a beginners guide..........OOP in Python, a beginners guide..........
OOP in Python, a beginners guide..........
 
Search and Sort algorithms. Bubble, Insertion, Selection.
Search and Sort algorithms. Bubble, Insertion, Selection.Search and Sort algorithms. Bubble, Insertion, Selection.
Search and Sort algorithms. Bubble, Insertion, Selection.
 
Structured Query Language introduction..
Structured Query Language introduction..Structured Query Language introduction..
Structured Query Language introduction..
 
SDT introduction as given at MKIS, KL, 2023
SDT introduction as given at MKIS, KL, 2023SDT introduction as given at MKIS, KL, 2023
SDT introduction as given at MKIS, KL, 2023
 
Computer Architecture Machine Cycle (1).pdf
Computer Architecture Machine Cycle (1).pdfComputer Architecture Machine Cycle (1).pdf
Computer Architecture Machine Cycle (1).pdf
 

Recently uploaded

All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
Alina Yurenko
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
campbellclarkson
 
42 Ways to Generate Real Estate Leads - Sellxpert
42 Ways to Generate Real Estate Leads - Sellxpert42 Ways to Generate Real Estate Leads - Sellxpert
42 Ways to Generate Real Estate Leads - Sellxpert
vaishalijagtap12
 
Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery FleetStork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
Vince Scalabrino
 
TMU毕业证书精仿办理
TMU毕业证书精仿办理TMU毕业证书精仿办理
TMU毕业证书精仿办理
aeeva
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
ToXSL Technologies
 
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
Luigi Fugaro
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Paul Brebner
 
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
kalichargn70th171
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
Patrick Weigel
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
dakas1
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
dakas1
 
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
kgyxske
 
Beginner's Guide to Observability@Devoxx PL 2024
Beginner's  Guide to Observability@Devoxx PL 2024Beginner's  Guide to Observability@Devoxx PL 2024
Beginner's Guide to Observability@Devoxx PL 2024
michniczscribd
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
Alberto Brandolini
 
Boost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management AppsBoost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management Apps
Jhone kinadey
 
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdfThe Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
kalichargn70th171
 

Recently uploaded (20)

All you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVMAll you need to know about Spring Boot and GraalVM
All you need to know about Spring Boot and GraalVM
 
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
🏎️Tech Transformation: DevOps Insights from the Experts 👩‍💻
 
42 Ways to Generate Real Estate Leads - Sellxpert
42 Ways to Generate Real Estate Leads - Sellxpert42 Ways to Generate Real Estate Leads - Sellxpert
42 Ways to Generate Real Estate Leads - Sellxpert
 
Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery FleetStork Product Overview: An AI-Powered Autonomous Delivery Fleet
Stork Product Overview: An AI-Powered Autonomous Delivery Fleet
 
TMU毕业证书精仿办理
TMU毕业证书精仿办理TMU毕业证书精仿办理
TMU毕业证书精仿办理
 
How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?How Can Hiring A Mobile App Development Company Help Your Business Grow?
How Can Hiring A Mobile App Development Company Help Your Business Grow?
 
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
WMF 2024 - Unlocking the Future of Data Powering Next-Gen AI with Vector Data...
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
 
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
 
WWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders AustinWWDC 2024 Keynote Review: For CocoaCoders Austin
WWDC 2024 Keynote Review: For CocoaCoders Austin
 
Assure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyesAssure Contact Center Experiences for Your Customers With ThousandEyes
Assure Contact Center Experiences for Your Customers With ThousandEyes
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
 
bgiolcb
bgiolcbbgiolcb
bgiolcb
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
一比一原版(sdsu毕业证书)圣地亚哥州立大学毕业证如何办理
 
Beginner's Guide to Observability@Devoxx PL 2024
Beginner's  Guide to Observability@Devoxx PL 2024Beginner's  Guide to Observability@Devoxx PL 2024
Beginner's Guide to Observability@Devoxx PL 2024
 
Modelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - AmsterdamModelling Up - DDDEurope 2024 - Amsterdam
Modelling Up - DDDEurope 2024 - Amsterdam
 
Boost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management AppsBoost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management Apps
 
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdfThe Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
 

Referential integrity in databases.pptx

  • 1. Referential integrity in relational databases Ferry Kemperman Nanjing Foreign Language School November 2019
  • 2. Objectives • You are able to write SQL Select statements based on an information need • You are able to write simple DML statements based on a given scenario (Insert/Delete/Update) • You are able to validate DML statements based on a given ERD • You are able to validate scenarios using referential integrity constraints (PK/FK) and apply given cardinalities.
  • 3. Think-Pair-Share activity ERD / Populated dataset supplied on paper 2 students together with mini whiteboard. Teacher shows realistic DML scenario on beamer. You THINK (by yourself, write down answer in your notebook) about the validity of this scenario according to ERD design and referential integrity checks. You PAIR (discuss/whisper) with your partner on your thoughts and write your agreed answer on the mini whiteboard. You SHARE your solution with your classmates by holding up the mini whiteboard. Students comment on each others solution and give their reasoning. Some scenarios require you to come to the board and share your answer. Listen carefully to each other to hear the reasoning !
  • 4. MARKS MarkId Student_ID Subject_ID Date Mark 100 1 10 2019- 04-01 7 101 1 10 2019- 04-2 6 102 2 11 2019- 04-3 2 STUDENTS Student_ID FirstName LastName Group_ID 1 George Zhang 1 2 Alex Hu 1 3 Tonia Zhu 2 SUBJECT Subject_ID Title 10 Computer Science 11 Mathematics 12 History GROUP Group_ID Name 1 AS 1 2 AS 2 Write the following queries. 1.Display all students first and last names. 2.Display all subjects titles in alphabetically ordered 3.Display firstname of students with lastname Hu 4.Insert the following student into the student table: Student ID 4, Kevin Gu, in group 2 5.List all marks by student 1 6.List all marks by student Zhang 7.Delete student Tonia from the database 8.Update student Kevin Gu by changing his group from 2 to 1. 9.Reason your answer: Did any student get 6 or higher for mathematics? 10. List all the students that took Computer Science.
  • 5. Let’s have a look at the example database we used in the SQL business case…once again!
  • 15. Scenario 10 : Bonus Write a DML statement to delete George from the database without the DBMS returning a referential integrity violation!
  • 16. Sc