Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Section A:  Use the following tables to create a database called College.  Use SQL commands.

Student

stuid(primary)

lastName

firstName

major

credits

S1001

Smith

Tom

History

90

S1002

Chin

Ann

Math

36

S1005

Lee

Perry

History

3

S1010

Burns

Edward

Art

63

S1013

McCarthy

Owen

Math

0

S1015

Jones

Mary

Math

42

S1020

Rivera

Jane

CSC

15

Faculty

facid (primary)

name

department

rank

F101

Adams

Art

Professor

F105

Tanaka

CSC

Instructor

F110

Byrne

Math

Assistant

F115

Smith

History

Associate

F221

Smith

CSC

Professor

Class

classNumber (primary)

facid

schedule

room

ART103A

F101

MWF9

H221

CSC201A

F105

TuThF10

M110

CSC203A

F105

MThF12

M110

HST205A

F115

MWF11

H221

MTH101B

F110

MTuTh9

H225

MTH103C

F110

MWF11

H225

Enroll

stuid

classNumber

grade

S1001

ART103A

A

S1001

HST205A

C

S1002

ART103A

D

S1002

CSC201A

F

S1002

MTH103A

B

S1010

ART103A

 

S1010

MTH103C

 

S1020

CSC201A

B

S1020

MTH101B

A

1.  Create the database College.

2.  Create the table Student.

3.  Create the table Faculty.

4.  Create the table Class.

5.  Create the table Enroll.

6.  Create all foreign keys

Section B:  Using the database in Section A.  Answer all questions.

7. Create a view that finds the student name, major and enrolled in the art class

8. Create a view that finds the student name, and classes enrolled

9. Create a stored procedure that finds the name of faculty and their schedule

10. Create a stored procedure that finds the student names for a particular course.

11.  Create a role called students; give SELECT permission.  Use a cursor to add all students as members of the above.  Setup each student as a user with temporary password of first four letter of last name and add '8888'.

12.  Convert to XML the student table.

Section C:  Using the Halloween database.

13.  Create a table called ProductImages which has the following fields ImageID (int, primary key, identity), productid (varchar), and ImageProduct (varbinary(max)).

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M9534122

Have any Question?


Related Questions in DBMS

Question sql injection is in the top 10 owasp and common

Question : SQL Injection is in the top 10 OWASP and Common Weakness Enumeration. Using MySQL and PHP, show your own very short and simple application that is vulnerable to this attack. Provide another version that mitiga ...

Question create the physical data model for the logical

Question: Create the physical data model for the logical data model that you submitted in IP3. This should include all of the data definition language SQL. Your submission should include all DDL needed to: Create the tab ...

Suppose that you have designed a database for morgan

Suppose that you have designed a database for Morgan Importing that has the following tables: EMPLOYEE (EmployeeID, LastName, FirstName, Department, Phone, Fax, EmailAddress) STORE (StoreName, City, Country, Phone, Fax, ...

Case study problem 1 the case study company has experienced

Case Study: Problem 1 The case study company has experienced rapid growth in both the size of its client base and also in the services provided to clients. Unfortunately, the growth in data management policies, procedure ...

Question create an erd for the following scenarioa small

Question: Create an ERD for the following scenario. A small company ABC wants a database to keep track of internal company information. Â Given the following information create an ERD. The ABC Company has several departm ...

Database design amp development assignment -assignment

Database Design & Development Assignment - Assignment title - Design and Implement a Relational Database for a local Print and Ink Refill Business. Learning Outcome - Use an appropriate design tool to design a relational ...

In sql developer onlydeliverables include sql scripts and

In SQL Developer ONLY! Deliverables Include SQL scripts and screenshot of the results: D1. Create the following three user-defined roles that are shown in the table below and assign them the specified permissions for the ...

Need an expert in the fields of system design to handle

Need an expert in the fields of system design to handle this project This is a system analysis and design project, not a research project. Refer to the list of deliverables in the instructions in the assignment to make s ...

Sqlwrite a select statement that returns one column from

SQL Write a SELECT statement that returns one column from the Vendor table named Full Name. Create this column from the VendorContactFName and VendorContactLName columns. Format it as follows: last name, comma, first nam ...

Sqlquery 1 how many products have standard price less than

SQL Query 1. How many products have standard price less than 1000? Query 2: Display all attributes for products made of "Cherry" from Product table w/o referring to column names. Query 3: Display all product names having ...

  • 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

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As