A4-SQL.pdf - Assignment 4 SQL Toy Distributors is a...

This preview shows page 1 - 2 out of 2 pages.

Assignment 4 SQL Toy Distributors is a wholesealer of wooden toys, games and puzzles. For this assignment, you will query an existing database for Toy Distributors. Download the database from Canvas and rename it LastName_FirstName_A4 . Task 1: creating another copy of the Orderline table (10 points). The first task you need to do is using SQL statement to create another copy of the ORDERLINE table in the Toy Distributors database. Name your table ORDERLINE1 . You may check the original ORDERLINE table for the data types of each field, and whether there are any PKs or FKs. After you create the new ORDERLINE1 table, the relationships among the tables should be like the diagram below. Name your SQL statement “OrderLine 1 Creation”. Task 2: Add one record to the new OrderLine1 table (5 points). The second task you need to do is using SQL statement to add one record to the newly created Orderline1 table. Name your query “OrderLine 1 Data”. Make sure the data you enter match the data type of each field. You can check the original Orderline table for sample records.
Image of page 1

Subscribe to view the full document.

Image of page 2
  • Spring '19
  • Dr. Bin Li
  • Homework, lab, Assignment, Toy Distributors

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern