1. Create 2 Tables Sales2005 & Sales2006 and perform Set operation on that Table (Union,Union All): sales2005

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

Write step by step command

Practical Related Questions:
1. Create 2 Tables Sales2005 & Sales2006 and perform Set operation on that Table
(Union,Union All):
sales2005
person amount
Joe
1000
Alex
2000
Bob
5000
sales2006
person amount
Joe
2000
Alex
2000
Zach
35000
2. Create CUSTOMER Table & Solve below Questions:
ID
| NAME
| AGE
| SALARY
ADDRESS
| Ramesh
2 | Khilan
3 | kaushik
1
35
| Ahmedabad
2000.00
25
Delhi
1500.00
23
Kota
2000.00
| Mumbai
| Bhopal
4
Chaitali
25
6500.00
5 | Hardik
6 | Komal
| Muffy
27
8500.00
22
MP
4500.00
24
Indore
| 10000.00
a. Use a subquery to get the information of that customer whose salary greater than 4500.
b. Use subquery to updates SALARY by 0.25 times in the CUSTOMER table for all the
customers whose AGE is greater than or equal to 27.
c. Use subquery to deletes the records from the CUSTOMER table for all the customers
whose AGE is greater than or equal to 27.
Transcribed Image Text:Practical Related Questions: 1. Create 2 Tables Sales2005 & Sales2006 and perform Set operation on that Table (Union,Union All): sales2005 person amount Joe 1000 Alex 2000 Bob 5000 sales2006 person amount Joe 2000 Alex 2000 Zach 35000 2. Create CUSTOMER Table & Solve below Questions: ID | NAME | AGE | SALARY ADDRESS | Ramesh 2 | Khilan 3 | kaushik 1 35 | Ahmedabad 2000.00 25 Delhi 1500.00 23 Kota 2000.00 | Mumbai | Bhopal 4 Chaitali 25 6500.00 5 | Hardik 6 | Komal | Muffy 27 8500.00 22 MP 4500.00 24 Indore | 10000.00 a. Use a subquery to get the information of that customer whose salary greater than 4500. b. Use subquery to updates SALARY by 0.25 times in the CUSTOMER table for all the customers whose AGE is greater than or equal to 27. c. Use subquery to deletes the records from the CUSTOMER table for all the customers whose AGE is greater than or equal to 27.
3. Create 2 Tables perform Join Operation on that
Order Table
OrderID
CustomerID
OrderDate
10308
2
1996-09-18
10309
37
1996-09-19
10310
77
1996-09-20
Customer Table
CustomerID
CustomerName
ContactName
Country
1
Alfreds Futterkiste
Maria Anders
Germany
2
Ana Trujillo Emparedados y helados
Ana Trujillo
Mexico
3
Antonio Moreno Taquería
Antonio Moreno
Mexico
a. Join OrderID, Customer Date, Order Date by using Inner Join.
b. Join OrderID, Customer Date, Order Date by using LeftJoin.
c. Join OrderID, Customer Date, Order Date by using Right Join.
d. Join Order Table & Customer Table by using Cross Join
Transcribed Image Text:3. Create 2 Tables perform Join Operation on that Order Table OrderID CustomerID OrderDate 10308 2 1996-09-18 10309 37 1996-09-19 10310 77 1996-09-20 Customer Table CustomerID CustomerName ContactName Country 1 Alfreds Futterkiste Maria Anders Germany 2 Ana Trujillo Emparedados y helados Ana Trujillo Mexico 3 Antonio Moreno Taquería Antonio Moreno Mexico a. Join OrderID, Customer Date, Order Date by using Inner Join. b. Join OrderID, Customer Date, Order Date by using LeftJoin. c. Join OrderID, Customer Date, Order Date by using Right Join. d. Join Order Table & Customer Table by using Cross Join
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

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