Write SQL commands for following customer table: CustomerID Age 35 101 102 103 104 105 Cust_Name Alex James Paul Allene Kate 28 30 32 29 Address Paris London Paris Rome Beijing Order_amount 200 340 440 566 225 1. Write a query to create a customer table containing above columns, whereas customer id as primary key. 2. Write a query to insert multiple records into customer table. 3. Write a query to list name of customers having age between 20 to 30. 4. Write a query to list name of customers who either belong to Paris, London or Beijing order by name and age. 5. Write a query to show list of customers whose name ends with character 'E'.
Write SQL commands for following customer table: CustomerID Age 35 101 102 103 104 105 Cust_Name Alex James Paul Allene Kate 28 30 32 29 Address Paris London Paris Rome Beijing Order_amount 200 340 440 566 225 1. Write a query to create a customer table containing above columns, whereas customer id as primary key. 2. Write a query to insert multiple records into customer table. 3. Write a query to list name of customers having age between 20 to 30. 4. Write a query to list name of customers who either belong to Paris, London or Beijing order by name and age. 5. Write a query to show list of customers whose name ends with character 'E'.
Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 3P
Related questions
Question
![Write SQL commands for following customer table:
| CustomerID
Cust_Name
Age
101
Alex
35
102
James
103
Paul
104
Allene
105
Kate
28
30
32
29
Address
Paris
London
Paris
Rome
Beijing
Order amount
200
340
440
566
225
1. Write a query to create a customer table containing above columns, whereas customer id
as primary key.
2. Write a query to insert multiple records into customer table.
3.
Write a query to list name of customers having age between 20 to 30.
4.
Write a query to list name of customers who either belong to Paris, London or Beijing
order by name and age.
5.
Write a query to show list of customers whose name ends with character 'E'.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F5ad81135-c429-4fca-8e58-67d3745a4edb%2F3a337622-a451-4d27-8865-690d08c4a65a%2Fs3c2hs_processed.png&w=3840&q=75)
Transcribed Image Text:Write SQL commands for following customer table:
| CustomerID
Cust_Name
Age
101
Alex
35
102
James
103
Paul
104
Allene
105
Kate
28
30
32
29
Address
Paris
London
Paris
Rome
Beijing
Order amount
200
340
440
566
225
1. Write a query to create a customer table containing above columns, whereas customer id
as primary key.
2. Write a query to insert multiple records into customer table.
3.
Write a query to list name of customers having age between 20 to 30.
4.
Write a query to list name of customers who either belong to Paris, London or Beijing
order by name and age.
5.
Write a query to show list of customers whose name ends with character 'E'.
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 5 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781305627482/9781305627482_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781285196145/9781285196145_smallCoverImage.gif)
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
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781305627482/9781305627482_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781285196145/9781285196145_smallCoverImage.gif)
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
![Oracle 12c: SQL](https://www.bartleby.com/isbn_cover_images/9781305251038/9781305251038_smallCoverImage.gif)
![A Guide to SQL](https://www.bartleby.com/isbn_cover_images/9781111527273/9781111527273_smallCoverImage.gif)
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr