List the course number for database system principles

Assignment Help Basic Computer Science
Reference no: EM131449698

Once the ERD is approved, the next step is to create the objects (attributes, entities & relationships etc) as defined in the ERD using SQL DDL statements which will include the following:

1) Drop statements for all objects in the lab project (drop existing objects first so that you can rerun your script without error).

2) Create statements for all tables and keys of your project.

3) Create indexes on natural key columns, foreign keys, and other columns that will be frequently used as query filters (i.e., Columns in the "WHERE" clause).

4) Create at least two views.

5) Create at least two sequences.

6) Create at least two triggers.

7) Check content of the catalog/data dictionary. Item 7 (above) should contain SQL SELECT statements to query DBMS catalog/data dictionary (such as user_objects or user_tables) to demonstrate all objects are created successfully.

The deliverable would be two separate files: one plain text file (.txt or .sql file) with your SQL statements only; and the other document (doc/docx/pdf) include both your SQL statements and the output (copy and paste text or screen shots).

The instructor and TA should be able to run your plain text source file as script and generate the same output as shown in your result document.

Question 1:
Display all information about all courses

Query:
Select * from course;

Question 2:

Add a new course "Relational Database Systems" with course number 651. Use your user name as created_by/modified_by and current date as created_date/modified_date

Query:

INSERT INTO course (COURSE_NO, DESCRIPTION,CREATED_BY,CREATED_DATE,MODIFIED_BY, MODIFIED_DATE) VALUES (651,'Relational Database Systems','username',SYSDATE,'username',SYSDATE);

Question 3:

List the course number for "Database System Principles"

Query:
SELECT COURSE_NO FROM course WHERE DESCRIPTION LIKE '%Database System Principles%';

Question 4:
Set "Database System Principles" as the prerequisite for "Relational Database Systems"

Query:
UPDATE course SET PREREQUISITE=(SELECT COURSE_NO FROM course WHERE DESCRIPTION LIKE '%Database System Principles%') WHERE DESCRIPTION LIKE '%Relational Database Systems%';

Question 5:

List all courses that have "Database System Principles" as prerequisite

Query:

Select * from course where PREREQUISITE=(SELECT COURSE_NO FROM course WHERE DESCRIPTION LIKE '%Database System Principles%');

Output:

Question 6:

List total number of courses that have no prerequisite
Query:
Select count(*) from course where PREREQUISITE IS NULL;

Question 7:
Delete course "Relational Database Systems"
Query:
delete from course where DESCRIPTION LIKE '%Relational Database Systems%';

Question8:

Display total number of courses Lower cost of all courses by 1100
Query:
Select count(*) from course where COST < 1100;

Question 9:
List all course cost (show course description and cost only) by the order of cost from highest to lowest
Query:
select description, cost from course order by COST desc;

Attachment:- Assignment.rar

Verified Expert

This assignment is based on writing procedures and queries on the PL/SQL database. A existing database is provided for the particular data base ER diagram is drawn and DDL statements are written with foreign keys and constraints specified. Indexes are created on the foreign keys. Sequence and triggers are written and object names are fetched from user_objects.

Reference no: EM131449698

Questions Cloud

Confidence interval for the population mean customer : State the null and the alternative hypothesis for this test. Calculate the value of the test statistic for this test.
Discuss whether or not affirmative action should implemented : A197DEL- Discuss whether or not affirmative action / positive action should be implemented to ensure more equal representation in professions and institutions.
Slow down the rate of expansion : Let's say the economy is growing too fast and the Treasury want to slow down the rate of expansion. How might it use fiscal policy to slow expansion?
Struggling with a persistent high level of unemployment : In 2013-2014, the nation was struggling with a persistent high level of unemployment, low rates of economic growth, and high federal budget deficits.
List the course number for database system principles : List the course number for Database System Principles - Principles" as the prerequisite for "Relational Database Systems" - Delete course Relational Database Systems
Describe the different kinds of fraud andthe fraud triangle : Describe the different kinds of fraud andthe Fraud Triangle, an auditor's responsibility to identify and assess fraud.
Liquidity and risk in the financial market : How does the existence of financial intermediaries affect liquidity and risk in the financial market?
Determine the interval of prices : A competitive economy may be described as a game with a continuum of players. Concepts such as iterated dominance.
What would you-your staff do to deal with influx of patients : Would you request the military to assist you in dealing with the influx of patients at the hospital? Why or why not?

Reviews

inf1449698

4/12/2017 5:53:13 AM

This Expert was extraordinary to work with, He was tolerant and truly helped me feel as simplicity with this site. He delivered an incredible work in a limited time. thanks again.

inf1449698

4/12/2017 5:52:40 AM

the items are already attached... the solution docx; the solution sql SQL (Attachment): select * from course; INSERT INTO course(COURSE_NO, DESCRIPTION,CREATED_BY,CREATED_DATE,MODIFIED_BY,MODIFIED_DATE) VALUES (651,'Relational Database Systems','username',SYSDATE,'username',SYSDATE); SELECT COURSE_NO FROM course WHERE DESCRIPTION LIKE '%Database System Principles%'; UPDATE course SET PREREQUISITE=(SELECT COURSE_NO FROM course WHERE DESCRIPTION LIKE '%Database System Principles%') WHERE DESCRIPTION LIKE '%Relational Database Systems%'; select * from course where PREREQUISITE=(SELECT COURSE_NO FROM course WHERE DESCRIPTION LIKE '%Database System Principles%'); select count(*) from course where PREREQUISITE IS NULL; delete from course where DESCRIPTION LIKE '%Relational Database Systems%'; select count(*) from course where COST < 1100; select description, cost from course order by COST desc; The files are exactly the same, nothing is different, just named differently...

inf1449698

4/12/2017 5:52:27 AM

Item 7 (above) should contain SQL SELECT statements to query DBMS catalog/data dictionary (such as user_objects or user_tables) to demonstrate all objects are created successfully. The deliverable would be two separate files: one plain text file (.txt or .sql file) with your SQL statements only; and the other document (doc/docx/pdf) include both your SQL statements and the output (copy and paste text or screen shots). The instructor and TA should be able to run your plain text source file as script and generate the same output as shown in your result document. 22518368_1createStudent 2.sql 22518311_222414175 1EM20194KAR330CS Solution.zip Unable to view the file 22518368_1createStudent 2.sql Please ask client to send the file as attachment. Attaching items again.... 22518337_1EM20794KAR330CS Solution.docx 22518337_2EM20794KAR330CS Solution.sql

inf1449698

4/12/2017 5:52:04 AM

Please view the attachments... 22518338_122414175 1EM20194KAR330CS Solution.zip The first attachment was creating the 10 Basic SQL Statement, now you just have to expand on that. Once the ERD is approved, the next step is to create the objects (attributes, entities & relationships etc) as defined in the ERD using SQL DDL statements which will include the following: Drop statements for all objects in the lab project (drop existing objects first so that you can rerun your script without error). Create statements for all tables and keys of your project. Create indexes on natural key columns, foreign keys, and other columns that will be frequently used as query filters (i.e., Columns in the “WHERE” clause). Create at least two views. Create at least two sequences. Create at least two triggers. Check content of the catalog/data dictionary.

len1449698

4/3/2017 8:15:33 AM

4) Create at least two views. 5) Create at least two sequences. 6) Create at least two triggers. 7) Check content of the catalog/data dictionary. Item 7 (above) should contain SQL SELECT statements to query DBMS catalog/data dictionary (such as user_objects or user_tables) to demonstrate all objects are created successfully. The deliverable would be two separate files: one plain text file (.txt or .sql file) with your SQL statements only; and the other document (doc/docx/pdf) include both your SQL statements and the output (copy and paste text or screen shots). The instructor and TA should be able to run your plain text source file as script and generate the same output as shown in your result document.

len1449698

4/3/2017 8:15:24 AM

Once the ERD is approved, the next step is to create the objects (attributes, entities relationships etc) as defined in the ERD using SQL DDL statements which will include the following 1) Drop statements for all objects in the lab project (drop existing objects first so that you can rerun your script without error). 2) Create statements for all tables and keys of your project. 3) Create indexes on natural key columns, foreign keys, and other columns that will be frequently used as query filters (i.e., Columns in the WHERE clause).

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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