For the Week 10 Lab, you will need to create a table for each of the food items (ice cream, sauce, etc.).  Each table will have the list of choices for each food item (e.g., chocolate, etc. for the ice_cream table).  You can look at Chapter 6 to review commands to create a table and to insert data into a table.

Then you will need to write a query to perform a cross join of all the tables you just created.  This cross join operation should result in 96 rows and list all combinations of the food item choices listed in the assignment.  Here is a partial list of the results:

ice_cream

sauce

nuts

cherry

chocolate

hot fudge

peanuts

cherry

chocolate

hot fudge

peanuts

no cherry

chocolate

butterscotch

peanuts

cherry

 Please include the following in the document you submit:

SQL statements to create the tables for the food items

SQL statements to insert data into the tables

Contents of each table.

SQL statement to perform cross join of these tables.

Results of cross join (should be 96 rows)

 

 

    • 11 years ago
    A+ Answers
    NOT RATED

    Purchase the answer to view it

    • tn294.docx