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
icon
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'.
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
steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Knowledge Booster
Multiple table
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…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr