Subject: Database Write the SQL statements for following modification tasks: a) Add constraint to the table BORROWER named borrower_cardno_pk to create the attribute name as the primary key. b) Delete the column city from the table BORROWER c) Modify the column of "phone" in table BORROWER, change the data type into type of VARCHAR2 with length of 20.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter9: Working With Text Functions And Creating Custom Formats
Section: Chapter Questions
Problem 3RA
icon
Related questions
Question

Subject: Database
Write the SQL statements for following modification tasks:

a) Add constraint to the table BORROWER named borrower_cardno_pk to create the attribute name as the primary key.

b) Delete the column city from the table BORROWER

c) Modify the column of "phone" in table BORROWER, change the data type into type of VARCHAR2 with length of 20.

ATTRIBUTE
DATATYPE
card_no (Requires value)
VARCHAR2 (8)
name (Requires value)
VARCHAR2 (30)
address (Requires value)
VARCHAR2(40)
City
VARCHAR2 (20)
phone
INTEGER
Table 4: Relation BORROWER
Transcribed Image Text:ATTRIBUTE DATATYPE card_no (Requires value) VARCHAR2 (8) name (Requires value) VARCHAR2 (30) address (Requires value) VARCHAR2(40) City VARCHAR2 (20) phone INTEGER Table 4: Relation BORROWER
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Single 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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage