Q11. Write an SQL query to do the following: a. Create table customer_info with the given details. address delivery_date Date commission customer_ id Varchar2(5), Varchar2(15) customer_name amount Varchar2(15) Number(5) Number(4,2) Check > 25.00

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Only the first question
Q11. Write an SQL query to do the following:
Create table customer_info with the given details.
address
commission
delivery date
customer_ id customer_name
Varchar2(5),
amount
Varchar2(15)
Varchar2(15) Number(5)
Number(4,2)| Date
Check >
25.00
b. Write an SQL query to add a primary key constraint to the column customer_id
c. Write an SQL query to add a Not null constraint to the column customer_name
d. Write an SQL query to add a new column called branch_code (varchar2 (4))
e Insert the following records into the table customer_info.
customer_ id customer_name address
amount commission delivery_date branch_code
cl122
ΑΗΜED
RUSTAG
2500
40.25
12.10.2020
TO1
c1123
YACOB
MUSCAT
5000
null
13.07.2020
T01
cl124
МОНАМED
NIZWA
3000
35.65
01.05.2020
TO2
Transcribed Image Text:Q11. Write an SQL query to do the following: Create table customer_info with the given details. address commission delivery date customer_ id customer_name Varchar2(5), amount Varchar2(15) Varchar2(15) Number(5) Number(4,2)| Date Check > 25.00 b. Write an SQL query to add a primary key constraint to the column customer_id c. Write an SQL query to add a Not null constraint to the column customer_name d. Write an SQL query to add a new column called branch_code (varchar2 (4)) e Insert the following records into the table customer_info. customer_ id customer_name address amount commission delivery_date branch_code cl122 ΑΗΜED RUSTAG 2500 40.25 12.10.2020 TO1 c1123 YACOB MUSCAT 5000 null 13.07.2020 T01 cl124 МОНАМED NIZWA 3000 35.65 01.05.2020 TO2
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Binary numbers
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 System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education