Create a view that finds the student name, Database Management System

Assignment Help:

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)).


Related Discussions:- Create a view that finds the student name

Differentiate between natural join and outer join, Differentiate between na...

Differentiate between natural join and outer join? Natural join is a binary operator which is written as (R * S) where as R and S are relations. The output of the natural join

Binary relationship, explain in details about one to one binary relationshi...

explain in details about one to one binary relationship

Remove all transitive dependencies - dependency diagram, 1. Use the Invoice...

1. Use the Invoice table structure shown below to answer the following questions: a)  Draw the dependency diagram and identify the primary key and all dependencies, including al

Sql, Events4Fun is an event management company in Europe with branches in S...

Events4Fun is an event management company in Europe with branches in South America as well. The company is well-known for its efficiency, good-quality services, and affordable char

Oracle fusion middleware, Oracle Fusion Middleware: Key Skills: Consul...

Oracle Fusion Middleware: Key Skills: Consulting,Architect, Oracle Fusion Middleware,ECM, UCM, Stellent,Identity Management, SOA Suites, BPEL, ESB,OAM,OIM,J2ee, Java, Livelink

Construct substantial data model, PART MARKING:  We will only mark TWO of t...

PART MARKING:  We will only mark TWO of the four questions below but you must submit answers to all four. We will choose the questions we mark randomly and we will supply you with

Explain the components of database system in details., Explain the compone...

Explain the components of Database System in details.

Difference among a primary index and a secondary index, What is the differe...

What is the difference among a primary index and a secondary index? Primary Index: A primary index is an ordered file whose records are of fixed length along with two fields.

Define view? how it is related to data independence, A View may be defi...

A View may be defined of as a virtual table, that is, a table that does not really exist in its own right but is instead inferred from one or more underlying base data table. T

What is the error handling, What is the error handling Traditionally, b...

What is the error handling Traditionally, bits have been sent over line lacking any error correcting scheme in physical layer. The presence of the CPU in each modem makes it po

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd