Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask PL-SQL Expert

problem 1) What is the length of values defined for city column. Modify the length of “city” in the table “suppliers”.

problem 2) Are there any constraints defined for the above tables (table suppliers (S), supplier-part (SP), parts? (P) In order to determine, try to search through the USER_CONSTRAINTS table.

problem 3) Add the following constraints for the tables:

i) s# is the primary key for table “S”

ii) s#, p# is the primary key for the table “SP”

iii) p# in table “P” should be unique

iv) the primary key of the “S” table is posted as foreign key in the tables “SP”

v) SNAME in table “S” may not be NULL

v) the columns “qty” in table “SP”, “weight” in table “P” should be larger than 0.

problem 4) prepare fitting SQL for the following English queries. Use SPJ datasheet giuven below:

1. Find 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. Find 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. Name the supplier which has the lowest status?

11. What is the total weight of all the parts?

12. Name the jobs which had all the parts from the same city?

13. Find the names of the parts required to finish 'Tape' job.

14. Which city had the maximum number of parts originating from it?

629_Parts database.jpg

1379_Supplier database.jpg

2451_jobs database.jpg

588_spj database.jpg

PL-SQL, Programming

  • Category:- PL-SQL
  • Reference No.:- M95655

Have any Question? 


Related Questions in PL-SQL

The stevens company is converting from the sql server

The Stevens Company is converting from the SQL Server database to the Oracle database. Using the sample shown below, create a Risk Information Sheet for at least five potential risks that might be encountered during the ...

Use mysql workbench for these questions do not use

Use MySQL Workbench for these questions. Do NOT use Lucidchart. MySQL Workbench has more capability than Lucidchart, as it allows creation of DDL SQL from the model. Turn in 1 Workbench file , 1 document with the forward ...

The following assignment is based on the database

The following assignment is based on the database environment created Design and develop the below queries using professional principles and standards: • A set of SQL Statements that returns all rows and all data for eac ...

Sql fundamentalsprojectwrite a script that will create the

SQL Fundamentals Project Write a script that will create the below tables with the indicated relations. Your script must build a database that contains the tables specified in the diagram. You can use any name for your d ...

What is sqlanswer the following question in 500 words or

What is SQL Answer the following question in 500 words or more. You MUST use two outside sources to support your answer. You MUST cite these sources in APA Format. Title page, reference page, or cited sources do not coun ...

These exercises all use the createmyguitarshopsql links to

These exercises all use the create_my_guitar_shop.sql (Links to an external site.). Write the code for each and save the code (each code segment identified and separated) in Notepad. Submit your completed assignment via ...

Using the data model shown below write sql statements as

Using the data model shown below write SQL statements as specified below. Some questions may require more than one SQL statement to get the full answer. You may make up whatever data values you like to complete the assig ...

Module triggersmodule overview- in this module you will

Module Triggers Module Overview - In this module you will learn how to write PL/SQL and T-SQL triggers Objectives After completing this module you will be able: - to develop, test and debug Oracle PL/SQL triggers - to de ...

Case study susan the sql programmerplease assist with the

Case Study: Susan the SQL Programmer Please assist with the following. CASE EXAMPLE IS ATTACHED AS A .JPG Read the case example about Susan the SQL Programmer on page 6-1 of the Ethical Hacking and Countermeasures: Web A ...

Database assignment aggregate functions nested queries

Database Assignment: Aggregate Functions, Nested Queries, Union, Intersect, Except Name__Shelly Rideout Write the SQL code for the following queries (you do not have to give the results of the query) 1. List the employee ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate