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...
4. Referring to the database table below, answer the following questions. a. How many records are...
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 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...