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

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter4: Constraints
Section: Chapter Questions
Problem 1HOA
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
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
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
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr