(Q2) Use Z_COMPANY database to work the following problems. The database’s relational schema is shown in Figure 1.2. Figures 1.3 through 1.7 show the table contents for the database’s CUSTOMER, INVOICE, LINE, PRODUCT, and VENDOR tables, respectively. (2.a) Build Z_COMPANY database and its table structures. Use the data listings as your guide to define the data characteristics. For example, the PROD_CODE is always composed of eight characters, so it may be defined as CHAR(8), also ensure you create primary keys, foreign keys and RI constraints shown in the relational schema in Figure 1.2. (2.b) Enter the data into the table structures you defined in 2.a, to match the data in Figures 1.3 through 1.7. Note: $ is for demonstration, tables data do not have to include $.
(Q2) Use Z_COMPANY
schema is shown in Figure 1.2. Figures 1.3 through 1.7 show the table contents for the
database’s CUSTOMER, INVOICE, LINE, PRODUCT, and VENDOR tables, respectively.
(2.a) Build Z_COMPANY database and its table structures. Use the data listings as your guide to
define the data characteristics. For example, the PROD_CODE is always composed of eight
characters, so it may be defined as CHAR(8), also ensure you create primary keys, foreign keys
and RI constraints shown in the relational schema in Figure 1.2.
(2.b) Enter the data into the table structures you defined in 2.a, to match the data in Figures 1.3
through 1.7. Note: $ is for demonstration, tables data do not have to include $.
Step by step
Solved in 2 steps