ProductsLogo
LogoStudy Documents
LogoAI Grader
LogoAI Answer
LogoAI Code Checker
LogoPlagiarism Checker
LogoAI Paraphraser
LogoAI Quiz
LogoAI Detector
PricingBlogAbout Us
logo

SQL Query Creation

Verified

Added on  2019/09/26

|5
|1028
|468
Report
AI Summary
The assignment requires the creation of SQL queries to implement various database operations for creating tables and inserting data into them. The tasks involve writing SQL code to create Product, Customer, and Order tables, as well as inserting data into these tables. Additionally, the assignment includes writing SQL code to create six different queries (queries 1-6) that perform specific database operations. The task is considered moderate in terms of complexity.

Contribute Materials

Your contribution can guide someone’s learning journey. Share your documents today.
Document Page
ASSIGNMENT QUESTION / SOALAN TUGASAN
PURPOSE
The purpose of this assignment is to strengthen learner’s understanding on the relational database
using SQL commands.
REQUIREMENT / ASSIGNMENT QUESTION
The questions will be based on the relational database tables as given below.
PRODUCT
ProductID ProductName Price Category
1 Router 945.00 Network
2 Laptop 3400.00 Hardware
3 Microsoft Software 450.00 Software
4 Switch 567.00 Network
CUSTOMER
CustomerID Customer_Name Customer_Address Customer_Contact
101 Halinda Shah Alam 0192345333
102 Rafeq Subang Jaya 0198089888
103 Jason Kepong 0186789543
104 Lee Kim Siew Shah Alam 0145567865
105 Joshua Shah Alam 0132244567
106 Zarina Subang Jaya 0145567783
107 Amin Kepong 0186675433
ORDER
OrderID Date Total_Amount ProductID CustomerID
1 12 Jan 2017 1000.00 1 101
2 14 Jan 2017 3400.00 2 102
3 15 Jan 2017 6400.00 2 102
4 20 Jan 2017 567.00 3 104
5 22 Jan 2017 567.00 4 105

Secure Best Marks with AI Grader

Need help grading? Try our AI Grader for instant feedback on your assignments.
Document Page
Based on the tables, you are required to execute SQL queries for the given questions:
1. Create a Database CBDB4103, or any suitable name.
2. Create Product, Customer and Order tables.
3. Insert the above given data into the created tables.
4. List all the records in Customer Table.
5. List product name, price and category from Product.
6. List customer name and contact number who is from Shah Alam.
7. List product name and product price that was ordered from 12 Jan 2017 to 20 Jan 2017.
8. Update the customer address from ‘Kepong’ to ‘Serdang’ for the CustomerID which ends
with number 3.
9. List customer name, customer address, and total amount for customer from Shah Alam
and purchased product from category ‘Network’ and ‘Hardware’.
Note:
1. You are required to use Oracle Application Express (Oracle APEX) at
https://apex.oracle.com/i/index.html. If you do not have an account with Oracle
Application Express, do register yourself first to get a free workspace.
2. For every SQL query created for the above questions, capture the screen and paste it in a
MS-Word, as a proof that you are using Oracle APEX.
(50)
Document Page
ASSIGNMENT RUBRICS
CDDB3303 INTERMEDIATE DATABASE / JANUARY 2017
Criteria Weightage
Low Fair Above average Excellent
Max
Marks
0 1 2 3 4
Database is created
using a suitable
name.
0.5
No
implementation
of the tasks
Implemented only a small
chunk of this task
Moderate implementation
of the task
Most of the task was
implemented
The task was implemented
successfully
2
Write the SQL query
to create Product,
Customer and Order
tables. 1.5
No
implementation
of the tasks
Implemented only a small
chunk of this task
Moderate implementation
of the task
Most of the task was
implemented
The task was implemented
successfully
6
Write the SQL code
to insert data into
the tables. 1.5
No
implementation
of the tasks
Implemented only a small
chunk of this task
Moderate implementation
of the task
Most of the task was
implemented
The task was implemented
successfully
6
Write the SQL code
to create query 1
1.5 No
implementation
of the tasks
Implemented only a small
chunk of this task
Moderate implementation
of the task
Most of the task was
implemented
The task was implemented
successfully
6
Document Page
Write the SQL code
to create query 2
1.5
No
implementation
of the tasks
Implemented only a small
chunk of this task
Moderate implementation
of the task
Most of the task was
implemented
The task was implemented
successfully
6
Write the SQL code
to create query 3
1.5
No
implementation
of the tasks
Implemented only a small
chunk of this task
Moderate implementation
of the task
Most of the task was
implemented
The task was implemented
successfully
6
Write the SQL code
to create query 4
1.5
No
implementation
of the tasks
Implemented only a small
chunk of this task
Moderate implementation
of the task
Most of the task was
implemented
The task was implemented
successfully
6

Paraphrase This Document

Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Document Page
Write the SQL code
to create query 5
1.5
No
implementation
of the tasks
Implemented only a small
chunk of this task
Moderate implementation
of the task
Most of the task was
implemented
The task was implemented
successfully
6
Write the SQL code
to create query 6
1.5
No
implementation
of the tasks
Implemented only a small
chunk of this task
Moderate implementation
of the task
Most of the task was
implemented
The task was implemented
successfully
6
Total 12.5 50
1 out of 5
[object Object]

Your All-in-One AI-Powered Toolkit for Academic Success.

Available 24*7 on WhatsApp / Email

[object Object]