Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 16 Create the CUSTOMER table structure illustrated in Figure P8.16 . The customer number should store integer values. The CUST_FNAME and CUST_LNAME attributes should

Problem 16

Create the CUSTOMER table structure illustrated in Figure P8.16. The customer number should store integer values. The CUST_FNAME and CUST_LNAME attributes should support variable length character data up to 30 characters each. CUST_BALANCE should support up to eight digits on the left of the decimal place and two digits to the right of the decimal place. Use CUST_NUM as the primary key.

I used this syntax, but it said ERROR 1046 (3D000) at line 1: No database selected. How do I fix it? --Thanks in advance.

create table CUSTOMER(

CUST_NUM int not null,

CUST_LNAME varchar(30) null,

CUST_FNAME varchar(30) null,

CUST_BALANCE decimal(10,2) null,

PRIMARY KEY (cust_num) );

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

Database Design Application Development And Administration

Authors: Mannino Michael

5th Edition

0983332401, 978-0983332404

More Books

Students also viewed these Databases questions

Question

2. How can competencies be used in employee development?

Answered: 1 week ago