• Inner join show reservations and details: Inner join with condition that price > 200: • Show number of each soup kind in your tables Show reservations that desserts’ name ends with letter ‘ç’ or ‘c’

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

In this labwork, you are required to write queries for your tables. You will
analyze the entries in your table with the help of queries like following:
• Inner join show reservations and details:

Inner join with condition that price > 200:

• Show number of each soup kind in your tables

Show reservations that desserts’ name ends with letter ‘ç’ or ‘c’

• Find maximum price among your reservations.
• Sum all the tips in your table and display.
• Display average tip paid for each customer.

• Update the price and tip values according to condition Main Food= ‘İskender’
• Delete reservations which are before the 22/04/2021 .
• Insert at least one entity into your tables.

Id
ResID Soup
Main
Salad
Dessert Tip Date
CustomerID
1
1012 1002
Mantar
Spaghetti Cheff
Sütlaç
23 24.04.2021 100
2
1014 1001
Mercimek İskender Mevsim Sütlaç
25 25.04.2021 101
3
1017 103
Mantar
Adana
Cheff
Güllaç
26 26.03.2021 101
• Find maximum price among your reservations.
• Sum all the tips in your table and display.
Display average tip paid for each customer.
100 %
100 %
O Results
O Results
Total Tips
Messages
Messages
Maximum Price
1
255
1
109
100 %
Results
Messages
CustomerlD Average Tip
1
100
19
101
23
Transcribed Image Text:Id ResID Soup Main Salad Dessert Tip Date CustomerID 1 1012 1002 Mantar Spaghetti Cheff Sütlaç 23 24.04.2021 100 2 1014 1001 Mercimek İskender Mevsim Sütlaç 25 25.04.2021 101 3 1017 103 Mantar Adana Cheff Güllaç 26 26.03.2021 101 • Find maximum price among your reservations. • Sum all the tips in your table and display. Display average tip paid for each customer. 100 % 100 % O Results O Results Total Tips Messages Messages Maximum Price 1 255 1 109 100 % Results Messages CustomerlD Average Tip 1 100 19 101 23
Results ei Messages
Id
userld resDate
price Id
ResID Soup
Main
Salad
Dessert Tip Date
CustomerID
1
| 1000 100
17.04.2021 175 1000 1000 Tarhana İskender Çoban Künefe 15 21.04.2021 100
1001 101
21.04.2021 200 1006 1001 Mercimek Beyti
Mevsim Baklava 20 22.04.2021 101
3
1002 100
16.04.2021 265 1012 1002 Mantar
Spaghetti Cheff
Sütlaç 23 24.04.2021 100
4
1001 101
21.04.2021 200 1014 1001 Mercimek İskender Mevsim Sütlaç 25 25.04.2021 101
Inner join with condition that price > 200:
O Results i Messages
userld resDate
1002 100
Id
price Id
ResID Soup
Main
Salad
Dessert Tip Date
CustomerID
16.04.2021 265 1012 1002 Mantar Spaghetti Cheff Sütlaç
1
23 24.04.2021 100
Show number of each soup kind in your tables
Results
Messages
Soup
Comparison of Soups
1
Mantar
1
2
Mercimek
2
3
Tarhana
1
Main
Comparison of Mains
1
Вeyti
1
2
İskender
2
3
Spaghetti
1
Dessert
Comparison of Desserts
1
Baklava
1
2
Künefe
1
3
Sütlaç
2
2.
Transcribed Image Text:Results ei Messages Id userld resDate price Id ResID Soup Main Salad Dessert Tip Date CustomerID 1 | 1000 100 17.04.2021 175 1000 1000 Tarhana İskender Çoban Künefe 15 21.04.2021 100 1001 101 21.04.2021 200 1006 1001 Mercimek Beyti Mevsim Baklava 20 22.04.2021 101 3 1002 100 16.04.2021 265 1012 1002 Mantar Spaghetti Cheff Sütlaç 23 24.04.2021 100 4 1001 101 21.04.2021 200 1014 1001 Mercimek İskender Mevsim Sütlaç 25 25.04.2021 101 Inner join with condition that price > 200: O Results i Messages userld resDate 1002 100 Id price Id ResID Soup Main Salad Dessert Tip Date CustomerID 16.04.2021 265 1012 1002 Mantar Spaghetti Cheff Sütlaç 1 23 24.04.2021 100 Show number of each soup kind in your tables Results Messages Soup Comparison of Soups 1 Mantar 1 2 Mercimek 2 3 Tarhana 1 Main Comparison of Mains 1 Вeyti 1 2 İskender 2 3 Spaghetti 1 Dessert Comparison of Desserts 1 Baklava 1 2 Künefe 1 3 Sütlaç 2 2.
Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY