SQL> CREATE TABLE address_tab OF address_typ;
Table created.
SQL> INSERT INTO address_tab VALUES (
2 address_typ('715 40th St.,', '#202J', 'Grand Forks', 'ND', '58203') );
1 row created.
SQL> INSERT INTO address_tab VALUES (
2 'University Ave.', 'CS Dept', 'Grand Forks', 'ND', '58202' );
1 row created.
SQL> SELECT * FROM address_tab a WHERE a.city = 'Grand Forks';
ADDRESS1 ADDRESS2 CITY STATE ZIP
---------------------- -------------------- ------------ ----- -----
715 40th St., #202J Grand Forks ND 58203
University Ave. CS Dept Grand Forks ND 58202
|