Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new database called CUSTOMER DATABASE . 1) You will create a table called CUSTOMERS with the following table layout: (keep in mind that

Create a new database called CUSTOMER DATABASE.

1) You will create a table called CUSTOMERS with the following table layout:

(keep in mind that our version of SQL requires that we either use the number field type or the currency field type).

Customer

Column

Type

Length

Decimal Places

Nulls allowed?

Description

CUST_ID

Char

3

No

Customer Number (key)

CUST_NAME

Char

10

Customer Name

REGION

Char

2

Region

PHONE

Char

13

Phone number

BALANCE

Decimal

4

2

Balance

a) Create a brand new database called Customer Database.

b) Enter the SQL editor and write the SQL code that will create the table CUSTOMERS based on the above domain definition and designate CUST_ID as the primary key.

c) Save the command that you write to create your table as CREATE TABLE CUSTOMERS.

2) Insert the following data into the table CUSTOMERS using appropriate SQL commands. You should save one of the commands that you write as INSERT INTO CUSTOMERS.

CUST_ID CUST_NAME REGION PHONE BALANCE __________________________________________________________

DDD COLIN S 555-5555 $875.56

AAA GEORGE SW 345-6666 $0.00

BCD MARK NW 123-4567 $1255.63

XYZ MARY W 343-5677 $97.55

CCC PAUL E 993-5654 $39585.34

DEF WILLIAM N 234-5674 $0.00

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

ISBN: 3030302776, 978-3030302771

More Books

Students also viewed these Databases questions

Question

What would you do to help someone engage in reflection?

Answered: 1 week ago

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

3. Identify and describe nine cultural value orientations.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago