Write the SQL query to find the Product details

Assignment Help PL-SQL Programming
Reference no: EM133148220

ICT105 Data Modelling and Database Systems - Sydney International School of Technology & Commerce

Assessment - Designing and Implementing a Relational Database

Overview
The purpose of this assignment is to develop the student's skills in designing and implementing a relational database for a given case study.

Learning Outcome 1: Interpret entity relationship diagrams to implement database
Learning Outcome 2: Describe relational algebra and its relationship to Structured query language (SQL)
Learning Outcome 3: Use of query language tools and techniques to obtain data and information from database.

Assessment Details

In this Assignment you are implementing and writing the several SQL queries on a relational Database.

Requirements
Question 1. Write the SQL query to create the table structures for the entities shown in Figure1 ER-Diagram. The structure should contain the attributes specified in Figure1. Use data types that are appropriate for the data that will need to be stored in each attribute. Enforce primary key and foreign key constraints as indicated by the diagram.

Question 2. The following tables provide some example data that will be inserted into the database. Write the INSERT commands necessary to place the attached data in the tables that were created in Question 1. Alternatively provide the commands in your final report.

For the questions 3-15, use the tables created in question1 and the data inserted in question2.

Question 3. Write a SQL query in to find the Hire date, Employee title and Department number of employee ‘' TOM HOBSON".

Question 4. Write the SQL query to find the Product details that contain the word "coating" in product description.

Question 5. Write a SQL query to display departments in the LGDEPARTMENT table sorted by Department name.

Question 6. Write a SQL query to display the first name, last name and email address of Employees hired from January 1, 2005 to December 31,2006. Sort the output by last name and then by first name.

Question 7. Write a SQL query to display the first name, last name, phone, tittle, and department number of employees who work in department 280 or have the title "ASSOSIATE". Sort the output by last name.

Question 8. Write a query to display a brand name and the number of products of that brand that are in database. Sort the output by brand name.

Question 9. Write a SQL query to find all products with a price greater than or equal to the average product price.

Question 10. Write a SQL query to display the number of products in each category that have a water base, sorted by category.

Question 11. Write a query to display the employee number, last name and first name, and sum of invoice totals for all employees who completed an invoice. Sort the output by employee last name and then by first name.

Question 12. Write a SQL query to display the largest average product prize of any brand.

Question 13. Write a SQL command to change the department number to 300 for the employee whose employee number is 83537.

Question 14. Write a SQL command to alter the employee table to include EMP_HRS attribute. The attribute should not accept NULL values, and it should have default value 10.

Question 15. Write a SQL command to modify the brand 23 to indicate the brand type Premium.

Prepare a business style report which contains the following: Each SQL query and associated output and Full APA referencing of any resources used. The structure of the report given below:

Title page
Table of contents
1.0 Introduction
SQL Statements Report
Question 1
Question 2
Question 3
Question 4
...
2.12 Question 15
3.0 Conclusion References

Attachment:- Data Modelling and Database Systems.rar

Reference no: EM133148220

Questions Cloud

What significant impact on business will internal factors : What significant impact on business will internal factors influencing change have?
What the company budgeted cash payments on current payables : Nevis Corporation's current payables total $60,000. What the company budgeted cash payments on current payables in the upcoming quarter total
Discuss the meaning of lean operations : 1. Discuss the meaning of Lean operations
Managing the ghanaian economy : There is an ongoing debate between the NPP and the NDC with respect to their abilities in managing the Ghanaian economy. Using data and information from 2012 up
Write the SQL query to find the Product details : Describe relational algebra and its relationship to Structured query language (SQL) - find the Hire date, Employee title and Department number of employee ‘
Launch a new low calorie juice in the market : Please write Objectives (Include the introduction of the new product) if coca cola is going to launch a new low calorie juice in the market.
How much is the lease revenue on december : A refundable security bonus received by lessor from the lessee is P300,000. How much is the lease revenue on December 31, 2021
How can a second chair or assistant pastor help : How can a second chair or assistant pastor help the Senior Pastor in the Church move beyond the everyday barriers and roadblocks to be successful?
Differences between consumer and organizational buying : Q1: Explain the differences between consumer and organizational buying.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

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