Question

4. Referring to the database table below, answer the following questions. a. How many records are there? b. How many fields are there? c. How many records would be listed for a query with the STATE ZIP BALANCE CUSTOMER NAME NUMBER 810 STREET CITY John T. Smith 31 Cedarcrest Boulder CO80302 Sally Jones 725 Agua Fria William Holmes 3269 Fast Lane Boulder CO80302 10.00 0 150.35 3.50 criteria State is CO and the 775 Sally Jones 725 Agua Fria Santa F NM 87501 Balance is less than $10? 690 Artis Smith 2332 Alameda Lakewood Co 80218 840
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Hi

The table depicts information about a customers

An answer to a:

There are total 4 records in this table. One record means one row. Like this:

810 John T. Smith 31 Cedarcrest Boulder CO 80302 10.00

An answer to b:

There are total 28 fields in a table. A table shows each record has 7 fields (attributes). So there are 4 records and each record have 7 fields. Therefore, 4*7 (n(records) * fields per record) fields are there in a table.

An answer to c:

Let's write a query for it.

SQL syntax:

select * from table where state = CO and balance < 10

If we look at a table there are 3 records with state CO but only 1 records with balance < $10. Therefore, the result will be

840 Artis Smith 2332 Alameda Lakewood CO 80215 3.50

More Info:

Following row is a table schema, not a record

CUSTOMER NUMBER NAME STREET CITY STATE ZIP BALANCE

Hope you Like...

Add a comment
Know the answer?
Add Answer to:
4. Referring to the database table below, answer the following questions. a. How many records are...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Oracle only database: DROP TABLE ORDERITEMS; DROP TABLE Orders; DROP TABLE BOOKAUTHOR; DRO...

    oracle only database: DROP TABLE ORDERITEMS; DROP TABLE Orders; DROP TABLE BOOKAUTHOR; DROP TABLE BOOKS; DROP TABLE PROMOTION; DROP TABLE AUTHOR; DROP TABLE CUSTOMERS; DROP TABLE PUBLISHER; CREATE TABLE Customers ( Customer# NUMBER(4), LastName VARCHAR2(10) NOT NULL, FirstName VARCHAR2(10) NOT NULL, Email VARCHAR(40), Address VARCHAR2(20), City VARCHAR2(12), State VARCHAR2(2), Zip VARCHAR2(5), Referred NUMBER(4), Region CHAR(2), CONSTRAINT customers_customer#_pk PRIMARY KEY(customer#) ); INSERT INTO CUSTOMERS VALUES (1001, 'MORALES', 'BONITA', 'bomor@gmail.com', 'P.O. BOX 651', 'EASTPOINT', 'FL', '32328', NULL, 'SE'); INSERT INTO CUSTOMERS VALUES...

  • Overview This lab provides you the opportunity to insert and update data with the use of SQL comm...

    Overview This lab provides you the opportunity to insert and update data with the use of SQL commands. The lab will utilize the FLIX2YOU problem, the current schema. In order to start this lab, you must have successfully completed Lab # 6. In Lab # 6, you executed a script that was provided to you. This script created 7 of the FLIX2YOU tables as documented in the Entity Relationship Diagram in the FLIX2YOU problem document. The second part of lab...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT