How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask John Your Own Question

John, Engineer
Category: Homework
Satisfied Customers: 798
Experience:  Bachelors Degree
Type Your Homework Question Here...
John is online now
A new question is answered every 9 seconds

Assignment 3COSC 2307Assignment 3 Due date: Nov 10thPart

This answer was rated:

Assignment 3
COSC 2307
Assignment 3
Due date: Nov 10th
Part 1 (total 30 marks)
1. You are asked to create a new table called “part2” which has the same column definitions as the table “part” you created in assignment2. However, you should not copy the data contained in the course. How do you create a copy of the “part” table without copying its data contents (4 marks)?
1. What is the length of values defined for city column. Modify the length of “city” in the table “suppliers” (4 marks).
1. Are there any constraints defined for the above tables (table suppliers (S), supplier-part (SP), parts? (P) In order to find out, try to search through the USER_CONSTRAINTS table. ( 4 marks)
1. Add the following constraints for the tables (each 3 marks, total 18 marks):
- s# ***** ***** primary key for table “S”
- s#, p# ***** ***** primary key for the table “SP”
-p# ***** table “P” should be unique
- the primary key of the “S” table is posted as foreign key in the tables “SP”
- SNAME in table “S” may not be NULL
- the columns “qty” in table “SP”, “weight” in table “P” should be larger than 0.
Part 2: Write appropriate SQL for the following English queries. Use the SPJ datasheet for reference (each carries 5 marks, total 70 marks)
1. Get the names of parts whose weight is between 10 and 15
2. Which supplier supplied what parts to the 'Sorter' job?
3. Which jobs require red parts?
4. Get the names of the suppliers who never supplied anything in 1999
5. Which supplier supplied the most parts ever?
6. What is the total quantity of parts ordered for the 'Sorter' job?
7. What are the parts that 'Adam' ever supplied?
8. What is the most recently shipped job?
9. What is the total weight of a 'Terminal'?
10. Which supplier has the lowest status?
11. What is the total weight of all the parts?
12. Which of the jobs had all the parts from the same city?
13. Get the names of the parts required to finish the 'Tape' job
14. Which city had the maximum number of parts originating from it?
For part 1, turn in a copy of all of your SQL commands, along with a script illustrating their execution (by using paste your terminal output and save it in a file or any other way). Your script should be sufficient to convince us that your commands run successfully.
For part 2, you only need to type in your SQL statements into word file. No needed for the execution screen.
At the bottom of this screen you will see a text field and two buttons, one labeled 'Browse' and the other labeled 'Upload this File'. Use the Browse button first to locate the Word document file which you are ready to submit. Then use the Upload button to submit it to the system for grading.
Note: The CMS permits only one file to be uploaded for each project. Be aware that if you choose later to upload a second file for the same project, the new one will overwrite the existing one.
thanks for your question
I am John
I will help you

upload all files and details to and send me the Download link or file id
Customer: replied 2 years ago.


Table SPJ

the deadline on Wednesday, 13 November 2013, 2:50 PM

i will do this , when do you need this
Customer: replied 2 years ago.

tonight if you can

Customer: replied 2 years ago.


see you
Customer: replied 2 years ago.

how's everything so far ?

i just wanna remind you that the deadline on 13 NOV 2013 at 1 P.M


going to finish
Customer: replied 2 years ago.

okay i'm waiting you


ok then
Customer: replied 2 years ago.
how's everything so far ?

You need to spend $3 to view this post. Add Funds to your account and buy credits.
John and other Homework Specialists are ready to help you
Customer: replied 1 year ago.

can you re-upload it

the above answer
Customer: replied 1 year ago.

Can you help me wiith this assignment

i will check this
Customer: replied 1 year ago.


Related Homework Questions