) Construct an appropriate SQL query (Create Table) for the following i. Member ii. Make ) Use the same tables to present any ONE (1) example of how database integrity can be shown. O Construct a proper SQL query for the following questions. i. Display the names, age, date of booking of the member who have made booking and their status shows paid. ii. Find the information about the member's name, country as well as the room's number who has made the booking on 4th April 2022. iii. How many female members over the age of 26, particularly from China as well as France, are there?

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter2: Database Design Fundamentals
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question

I need b

Use the same tables to present any ONE (1) example of how
 database integrity can be shown. 

1) Construct an appropriate SQL query (Create Table) for the following
i. Member
ii. Make
) Use the same tables to present any ONE (1) example of how
database integrity can be shown.
) Construct a proper SQL query for the following questions.
i. Display the names, age, date of booking of the member
who have made booking and their status shows paid.
ii. Find the information about the member's name, country
as well as the room's number who has made the booking
on 4th April 2022.
iii. How many female members over the age of 26, particularly
from China as well as France, are there?
Transcribed Image Text:1) Construct an appropriate SQL query (Create Table) for the following i. Member ii. Make ) Use the same tables to present any ONE (1) example of how database integrity can be shown. ) Construct a proper SQL query for the following questions. i. Display the names, age, date of booking of the member who have made booking and their status shows paid. ii. Find the information about the member's name, country as well as the room's number who has made the booking on 4th April 2022. iii. How many female members over the age of 26, particularly from China as well as France, are there?
Take a look at these member, booking, make tables.
Table 1: Member
Last Name Gender Age
Female 25
Male
36
Female 25
Female 25
Female 36
Male
37
Male
26
Female 37
Male 24
Male
23
Member ID
1582
2587
3549
9536
2567
2154
3265
8765
3259
6540
3
4
Booking ID
1
2
5
6
First Name
Mara
Philip
Kathleen
7
8
Sau
Shanice
Chase
Tommie
Dorcas
Angel
Weston
Room
Hashimoto
Gent
Hanner
Pfau
Mccrystal
Karner
Jia
Room 15
Room 25
Room 1
Room 15
Room 5
Room 21
Room 3
Room 8
Darity
Sanor
Martina
Date
29-Dec-2020
9-Dec-2021
3-Mar-2019
4-Sep-2021
13-Feb-2021
6-May-2021
10-Nov-2020
4-Apr-2022
Table 2: Booking
Days
2
4
6
5
10
6
5
4
Table 3: Make
MemberID
3549
9536
6540
2154
2567
2154
3265
1582
Country
Uganda
France
United States
United States
China
Australia
5
6
7
8
United States
United States
France
China
Cost per day
$200.00
$80.00
$80.00
$150.00
$150.00
$80.00
$120.00
$300.00
BookingID
1
2
3
4
Joined Date
16-Aug-2020
21-May-2015
12-Dec-2017
16-Aug-2019
16-Aug-2020
1-Jan-2021
29-Dec-2018
21-May-2019
4-Mar-2019
1-Feb-2022
Status
Paid
Paid
Pending
Paid
Pending
Paid
Pending
Pending
Transcribed Image Text:Take a look at these member, booking, make tables. Table 1: Member Last Name Gender Age Female 25 Male 36 Female 25 Female 25 Female 36 Male 37 Male 26 Female 37 Male 24 Male 23 Member ID 1582 2587 3549 9536 2567 2154 3265 8765 3259 6540 3 4 Booking ID 1 2 5 6 First Name Mara Philip Kathleen 7 8 Sau Shanice Chase Tommie Dorcas Angel Weston Room Hashimoto Gent Hanner Pfau Mccrystal Karner Jia Room 15 Room 25 Room 1 Room 15 Room 5 Room 21 Room 3 Room 8 Darity Sanor Martina Date 29-Dec-2020 9-Dec-2021 3-Mar-2019 4-Sep-2021 13-Feb-2021 6-May-2021 10-Nov-2020 4-Apr-2022 Table 2: Booking Days 2 4 6 5 10 6 5 4 Table 3: Make MemberID 3549 9536 6540 2154 2567 2154 3265 1582 Country Uganda France United States United States China Australia 5 6 7 8 United States United States France China Cost per day $200.00 $80.00 $80.00 $150.00 $150.00 $80.00 $120.00 $300.00 BookingID 1 2 3 4 Joined Date 16-Aug-2020 21-May-2015 12-Dec-2017 16-Aug-2019 16-Aug-2020 1-Jan-2021 29-Dec-2018 21-May-2019 4-Mar-2019 1-Feb-2022 Status Paid Paid Pending Paid Pending Paid Pending Pending
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning