Create a table called temp-student with the columns

Assignment Help Database Management System
Reference no: EM131321826

Assignment: Advanced Relational Database

PROJECT- Advance SQL

Overview:

Using the knowledge garnered thus far, please solve all of the below problems. Please run the attached SQL script file at the SQL*PLUS prompt. This script will create all the tables and other objects needed to solve the questions in Part I, and populate the tables with sample data.

Deliverables:

Combine all your queries into a single SQL script file called XXX_PROJ1.SQL where XXX are your initials, making sure that the script run without errors before submitting it through WebTycho by the due date. Also, provide the results of running your script with the SQL*Plus spool command. Please adhere to the naming convention for naming your file. Include comments or remarks at the start of each question to show the problem #.

Using the attached Student Database Schema, create a view call BUSY_STUDENT that stores the concatenated name (first name and last name), student id and count of classes enrolled in, for all students enrolled in more than 2 classes. Name the columns, FULL_NAME, STUDENT_ID and ENROLL_NUM respectively. (20 points)

Create a table called TEMP_STUDENT with the following columns and constraints: a column STUD_ID for the student ID and is the primary key, a column FIRST_NAME for student first name, a column LAST_NAME for student last name, a column ZIP that is a foreign key to the ZIP column in the ZIPCODE table of the Student Database Schema, and a column REGISTRATION_DATE that is NOT NULL and has a CHECK constraint to restrict the registration date to dates after August 26, 2005. ALL CONSTRAINTS MUST BE NAMED. Both the first_name and last_name columns are required.

B) For the TEMP_STUDENT table created above, write insert statements that violate each of the constraints. Write 3 insert statements that succeed when executed.

Show all the different companies for which students work. Display only companies where more than four students are employed. (10 points)

Determine the highest grade achieved for the midterm for each section.

Display all the sections where classes start at 10:30 A.M.

Write the query to accomplish the following result. The output shows you all the days of the week where sections 83, 86, 107 starts. Note the order of the days.

DAY SECTION_ID
------- ------------------
Mon 107
Tue 86
Wed 83

Select the distinct course costs of all the courses. If the course cost is unknown, substitute a zero. Format the output with a leading $ sign and separate the thousands with a comma. Display two digits after the decimal point. The cost should be in ascending order. The output should look like the following:

COST
-------------
$0.00
$1,000.00

Reference no: EM131321826

Questions Cloud

Write a pseudocode to compute an employee overtime pay : Come up with variables plausible. Write a pseudocode to compute an employee overtime pay and tax rate. Draw a flowchart to compute employees overtime and net pay.
Create a swot table summarizing your findings : Conduct an internal and external environmental analysis, and a supply chain analysis for your proposed new division and its business model.Create a SWOT table summarizing your findings. Your environmental analysis should consider, at a minimum, th..
What is the voltage across the resistor : The moment just after the battery is turned on, what is the voltage across the resistor, the inductor, and the capacitor each? What is the current in the circuit? Explain your reasoning.
Discuss the sources of system vulnerabilities : Is it possible to locate all vulnerabilities in a network? In other words, can one make an authoritative list of those vulnerabilities? Defend your response.
Create a table called temp-student with the columns : Create a table called TEMP_STUDENT with the following columns and constraints: a column STUD_ID for the student ID and is the primary key, a column FIRST_NAME for student first name, a column LAST_NAME for student last name
Why do self report scales use many different items : Consider a measure that shows high internal consistency but low test-retest reliability. What can be concluded about the measure?
What is the role of v&v in system vulnerability : Part of the problem in design flaws involves issues associated with software verification and validation (V&V). What is the role of V&V in system vulnerability?
Compare assessment of face content and construct validity : Compare the assessment of face, content, and construct validity. Which of the three approaches is most objective, and why? Is it possible to have a measure that is construct valid but not face valid?
Kinetic energy of the electron : An electron with electric charge of 1.6  10-19 C falls through a potential difference of 29 kV in the vacuum of an X-ray tube. What is the kinetic energy of the electron, assuming it started from rest and that there is no loss of energy to frictio..

Reviews

Write a Review

Database Management System Questions & Answers

  How security policies can be utilized to mitigate each risk

Identify which U.S. compliance laws govern for each risk identified and summarize the implications. Evaluate how security policies, procedures, and practices can be utilized to mitigate each risk identified. Recommend appropriate security controls th..

  Explain the apache web server in regard to cost

Discuss the Apache Web server in regard to cost, functionality, and compatibility. Are there certain implementations were it may not be suitable

  Calculate the total expenditure for each of the categories

The data in the table on the data sheet contains the operational expenditure and the budget for a small department.

  Create a database for the application

Perform the following tasks to create the database required for the application: Create a database for the application.

  Assume that a student table in a university database has an

assume that a student table in a university database has an index on studentid the primary key. and additional indexes

  Prepare a data dictionary

In this lab, you will prepare a Data Dictionary based on the list of elements. Also, your task will be determined the tables, their relationships, primary and foreign keys. Based on this analysis, you will create Database Schema, relational tables..

  Create a new database and name it orders

Purpose of this hands-on computer exercise is to have you learn how to use Microsoft Access to: create a database table, enter data into the table, create a report based on the data, and print the table and the report.

  Create a list of three paramter field values and append it

Create a list of the three paramter field values and append it to the db list. The search must be case insensitive. If the user enters a string that differs only in case then a match should be found.

  Define the user requirements for a database

What actions would you take to ensure that the student reporting needs and data privacy concerns of the students are fully identified?

  Draw a context diagram for the order system

Kitchen Gadgets sells a line of high-quality kitchen utensils and gadgets. When customers place orders on the company's Web site or through electronic data interchange (EDI).

  Design a high-level conceptual view of a data warehouse by

an organization has several operational systems customer relationship management crm for marketing and sales enterprise

  Describe database that is useful to a local pizza restaurant

What is a database, and what are the components of a database?- Describe a database that would be useful to a local pizza restaurant.- What is meant by CRM?

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