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

Given the relations below create the database tables using

Given the relations below, create the database tables using SQL DDL (Data Definition Language). Assume the following attribute data types: STUDENT (StudentID, StudentName) StudentID StudentName 38214 Alvaro 54907 Letterm ...

Assignment- relational database design amp

Assignment- Relational Database Design & Implementation Important Note: You are required to submit an electronic copy to ilearn as well as a hard copy of your assignment to the assignment box allocated in the ground floo ...

Assignmentthe following data model is designed to hold

Assignment The following data model is designed to hold information relating to Students, Student Courses and Tutors who deal with these students. For this scenario we need to define the following facts: The Entities req ...

Question 1 create a package deptpkg with the followinga a

Question : 1. Create a package, DEPT_PKG, with the following: a) A public procedure called NEW_DEPT to enter a new department row into the DEPARTMENTS table. The procedure should accept four parameters - one for each col ...

Structured query language sqlrefer to the database design

Structured Query Language (SQL) Refer to the database design crested in Lab 2: Modifying a Database Design to complete this Lab. Perform the following steps in MySQL: 1. Create the tables and relationships from the datab ...

Write the sql select statement to display the average rent

Write the SQL SELECT statement to display the average rent of the properties. Use the following PROPERTY table to answer the question: PropertyID Type Rooms Rent 306 Apt 3 550 308 House 6 1000 325 Apt 4 625 397 Apt 3 550 ...

Writing sql statements1 for each movie category show the

Writing SQL statements. 1. For each movie category, show the number of movies in the database of that category, the total number (sum) of nominations (NOMS) and the average length of that type. Include only those categor ...

Database assignment 11 using heritage data release 1 in

Database Assignment 1: 1. Using heritage data (release 1) in SQL a. Find support for all single itemsets b. List all itemsets with 2 elements and support of at least 0.2 c. List all itemsets with 3 elements and support a ...

Consider a typical sales invoice that would include the

Consider a typical sales invoice that would include the following information. Design a single table to hold all of the information required to store an invoice including this information. Next, apply normalization to re ...

Lab structured query language sqlrefer to the database

Lab: Structured Query Language (SQL) Refer to the database design crested in Lab 2: Modifying a Database Design to complete this Lab. Perform the following steps in MySQL: 1. Create the tables and relationships from the ...

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro