SQL>
SQL> CREATE TABLE MyProduct
2 (
3 MAKER VARCHAR (25),
4 MODEL VARCHAR (25),
5 PRICE NUMERIC
6 );
Table created.
SQL>
SQL> INSERT INTO MyProduct VALUES('CHRYSLER','CROSSFIRE',33620);
1 row created.
SQL> INSERT INTO MyProduct VALUES('CHRYSLER','300M',29185);
1 row created.
SQL> INSERT INTO MyProduct VALUES('HONDA','CIVIC',15610);
1 row created.
SQL> INSERT INTO MyProduct VALUES('HONDA','ACCORD',19300);
1 row created.
SQL>
SQL> INSERT INTO MyProduct VALUES('FORD','MUSTANG',15610);
1 row created.
SQL> INSERT INTO MyProduct VALUES('FORD','LATESTnGREATEST',NULL);
1 row created.
SQL> INSERT INTO MyProduct VALUES('FORD','FOCUS',13005);
1 row created.
SQL>
SQL> SELECT
2 SUM(price) total
3 FROM MyProduct;
TOTAL
--------
########
SQL> drop table MyProduct;
Table dropped.
SQL>
SQL>
|