Create tables to save orders and its items for a store then


1. Create a table to save user's role information. There are three types of roles: 'normal', 'admin', 'guest'. 

  1. The table should have two fields: "username", "user_roles".
  2. The "user_roles" column can be any of the roles or any combination. 
  3. The "user_roles" column is not allowed to save any other values.

INSERT few users with different roles and combinations of roles.

2. Create tables to save orders and its items for a store. Then write the SQLs in a transation with SERIALIZABLE isolation level to save a order which has 2 items. You are free to create the fields as long as they are reasonable.

Solution Preview :

Prepared by a verified Expert
Business Economics: Create tables to save orders and its items for a store then
Reference No:- TGS02260747

Now Priced at $20 (50% Discount)

Recommended (95%)

Rated (4.7/5)