SlideShare a Scribd company logo
1 of 25
CIS336 (Introduction to Database w/LAB – Oracle) Complete Class
https://homeworklance.com/downloads/cis336-introduction-to-database-wlab-oracle-complete-class/
CIS336 (Introduction to Database w/LAB – Oracle) Complete Class
cis336 Full courses ( Discussion + ilab +Quiz+ Courses Projectand Final Exam)
CIS336A Week 1 Discussion DQ 1 & DQ 2
DQ 1
Normal Forms and Entity Relationship Diagrams (graded)
We hear the term database all the time. Give some examples ofdatabases thatyou interact with on a regular basis.
What makes a database relational? Whatis a file storage system? How does a relational database differ from a file
storage system?
DQ 2
Lab Forum (graded)
This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs
or tips that you have discovered during your learning process.At a minimum,postatleastthree notes that highlight
your experience or problems with this week’s lab.
CIS336A Week 2 Discussion DQ 1 & DQ 2
DQ 1
Developing a Good Data Model (graded)
The database data model is the communication link between the designer,applications programmer,and user.
Contribute your views on what constitutes a good data model and why.
DQ 2
Lab Forum (graded)
This area is used to discuss the lab assignments and techniques. Please postanyquestions you have about the labs
or tips that you have discovered during your learning process.At a minimum,postatleastthree notes that highlight
your experience or problems with this week’s lab.
CIS336A Week 3 Discussion DQ 1 & DQ 2
DQ 1
Building the Physical Model (graded)
What is the importance ofconstraints in a physical model? Whatrole do different constraints playin maintaining
referential integrity and data integrity?
DQ 2
Lab Forum (graded)
This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs
or tips that you have discovered during your learning process.At a minimum,postatleastthree notes that highlight
your experience or problems with this week’s lab.
CIS336A Week 4 Discussion DQ 1 & DQ 2
DQ 1
Understanding the SELECT statement (graded)
Reports are generated using queries to a database.The SELECT statementis used to retrieve data from one or
many tables in a database.Justas in other programming languages,understanding the syntax of a selectstatement
is key. Let’s first discuss the key clauses in a SELECT statementand the purpose ofeach.
DQ 2
Lab Forum (graded)
This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs
or tips that you have discovered during your learning process.At a minimum,postatleastthree notes that highlight
your experience or problems with this week’s lab.
CIS336A Week 5 Discussion DQ 1 & DQ 2
DQ 1
Getting Data From Multiple Tables (graded)
It is not uncommon to have to retrieve data that resides in several tables,especiallywhen formulating a report.
Discuss some ofthe performance issues when querying three or four tables ata time.
DQ 2
Lab Forum (graded)
This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs
or tips that you have discovered during your learning process.At a minimum,postatleast three notes that highlight
your experience or problems with this week’s lab.
CIS336A Week 6 Discussion DQ 1 & DQ 2
DQ 1
How Group Functions Differ From Single-Row Functions (graded)
What are some examples ofgroup functions,and how do they differ from single-row functions?
DQ 2
Lab Forum (graded)
This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs
or tips that you have discovered during your learning process.At a minimum,postatleastthree notes that highlight
your experience or problems with this week’s lab.
CIS336A Week 7 Discussion DQ 1 & DQ 2
DQ 1
Database Views (graded)
What are the advantages of selecting data from a view over selecting data from a base table?
DQ 2
Lab Forum (graded)
This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs
or tips that you have discovered during your learning process.At a minimum,postatleast three notes that highlight
your experience or problems with this week’s lab.
cis336 week ALL ilab
<pstyle=”font-size:14.784px;”=””>devry cis336 week 1 ilab laest 2016 march
<pstyle=”font-size:14.784px;”=””>
iLab> Required Software
Lab 1 of 7: Normal Forms and Entity Relationship Diagrams (xx points)
Listen
What’s this?
iLab Overview
Scenario/Summary
Download the iLab instructions and the Answer Sheetfor the necessarysteps to be completed for this lab. They can
be found below.You will notice that the readings,including lectures,the examples we worked on during the lecture,
and other audio and visual aids provided,will help you tackle this week’s lab.Remember to always follow the
instructions to getmaximum credit,and use the weekly discussion related to the iLab and the Q & A Forum for
additional help.Be specific and state the problem you are having clearly, including whatyou have done to resolve it,
in the discussion.
Microsoft Visio Tutorial—Important Information
Important: Before starting,be sure to review the Logical Modeling Part 1video under Video Library to familiarize
you with how to use MS Visio to draw Entity Relationship Diagrams.
Deliverables
NOTE
Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox,
read thesestep-by-step instructions.
(See the Syllabus section “Due Dates for Assignments & Exams” for due dates.)
The deliverable for this lab is a single MS Word documentnamed lab1_solutions_yourname.docx with the answers
included for Steps 1–4.
Required Software
Microsoft Office: Word and Visio 2010
Use a personal copyor access the software athttps://lab.devry.edu.
All Steps
Lab Steps
STEP 1: Download the Week 1 Lab Instructions
Follow the instructions to complete the lab by downloading the following files:
 CIS336Lab1_Instructions.docx
 CIS336Lab1_StudentAnswerSheet.docx
STEP 2: SubmitYour Answers on the Lab 1 Student Answer Sheet
Use Visio or Word to draw the dependencydiagrams for Steps 1–3.Use Visio to draw the ERD for Step 4.
This is the end of iLab #1
devry cis336 week 2 ilab
iLab> Lab Steps
Lab 2 of 7: The Expanded Entity Relationship Diagram
What’s this?
iLab Overview
Scenario/Summary
Download the iLab instructions and the Answer Sheetfor the necessarysteps to be completed for this lab. They can
be found below.You will notice that the readings,including lectures,the examples we worked on during the lecture,
and other audio and visual aids provided,will help you tackle this week’s lab.Remember to always follow the
instructions to getmaximum credit,and use the weekly discussion related to the iLab and the Q & A Forum for
additional help.Be specific and state the problem you are having clearly, including whatyou have d one to resolve it,
in the discussion.
Deliverables
NOTE
Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox,
read thesestep-by-step instructions.
(See the Syllabus section “Due Dates for Assignments & Exams” for due dates.)
The deliverable for this lab will be your completed ERD as a single MS Word documentusing copy/paste from the MS
Visio application and namedlab2_solutions_yourname.docx
Required Software
Microsoft Office: Word
Use a personal copyor access the software athttps://lab.devry.edu.
All Steps
Microsoft Office: Visio
Use a personal copyor access the software athttps://lab.devry.edu.
All Steps
Lab Steps
STEP 1: Download the Week 2 Lab Instructions.
Follow the instructions to complete the lab by downloading the following files:
 CIS336Lab2_Instructions.docx
STEP 2: SubmitYour Answers
Use Visio to create your ERD. Copy and paste to a Word documentas indicated in the lab instructions.
This is the end of lab #2
devry cis336 week 3 ilab
iLab> Lab Steps
Lab 3 of 7: Building the Physical Model
Listen
What’s this?
iLab Overview
Scenario/Summary
Beginning with this lab,and continuing through the remaining weeks you will be doing all of your work in the MySQL
EDUPE Environment.By now you have received your logon ID and password and should have at leastmade sure
you can connect. If for any reason you have not done so, please do so now before continuing any further. If for any
reason you cannotconnect, then you need to let the instructor know ASAP so that any problems can be resolved.
In this lab you will transform a logical database design (data model) into a physical model (tables,constraints,and
relationships).Your job will be to take the relationship diagram along with the meta data defined in the data dictionary
and define the table structures and constraints to create the physical tables.Once this has been done,you will
populate the tables with data. Lastly, you will write SELECT statements to query the tables and verify the data was
populated.
Deliverables
NOTE
Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox,
read thesestep-by-step instructions.
(See the Syllabus section “Due Dates for Assignments & Exams” for due dates.)
1. Your scriptfile. Create this file in Notepad,notWord. Make sure your name is in a commentarea at the top of the
scriptfile. Use a double dash to create a one-line comment.
—Jacob Smith
—Lab 3
Required Software
MySQL
Access the software athttps://devry.edupe.net:8300
Lab Steps
STEP 1: Download the Week 3 Lab Instructions
Complete the lab by downloading the following files this week:
 CIS336Lab3_Instructions.docx
 CIS336Lab3_Files.zip
STEP 2: SubmitYour SQL Command File
Use Notepad to write the SQL statements and submitaccording the lab instructions.
This is the end of Lab #3
devry cis336 week 4 ilab
iLab> STEP 2: Download the Week 4 Lab Instructions and Answer Sheet
Lab 4 of 7: Building the Physical Model
Listen
What’s this?
iLab Overview
Scenario/Summary
Lab 4 will introduce the various aspects ofthe SQL SELECT statementand the methods ofretrieving data from the
database tables.The lab will utilize a database with a set of tables that you will create and populate using the
instructions and scriptfile found below.These tables will be used for the remaining labs in this class.
Deliverables
NOTE
Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox,
read thesestep-by-step instructions.
(See the Syllabus section “Due Dates for Assignments & Exams” for due dates.)
The deliverable for this lab will include the following.
 The Student Answer Sheet file below provides a place for each query and the output of the query. You will copy and
paste this information from your MySQL environment.Be sure your name,course number,and lab number are in
your file which will be submitted to the iLab Dropbox for Week 4.
Required Software
Microsoft Office: Word
Use a personal copyor access the software athttps://lab.devry.edu.
All Steps
MySQL
Access the software athttps://devry.edupe.net:8300
Lab Steps
STEP 1: Create the Database and Tables
Create the database and tables (thatwill be used in labs 4–7) by downloading the following files.
 CreateOMTables.docx(Instructions)
 create_OM_db.sql(Database Script)
STEP 2: Download the Week 4 Lab Instructions and Answer Sheet
Follow the instructions to complete the lab by downloading the following files.
 CIS336Lab4_Instructions.docx
 CIS336Lab4_StudentAnswerSheet.docx
Be sure to refer to the ERD for the database inOM_ERD.docxwhen creating your queries.
STEP 3: SubmitYour Answer sheet
Complete the Answer Sheet to show your queries and results and submitaccording to the lab instructions.
This is the end of Lab#4.
devry cis336 week 5 ilab
iLab> STEP 1: Download the Week 5 Lab Instructions and Answer Sheet
Lab 5 of 7: Retrieving Data From Multiple Tables (39 points)
Listen
What’s this?
iLab Overview
Scenario/Summary
Lab 5 deals with writing queries using multiple tables as covered in the reading and lecture material this week.In
some cases,you will be given the option to choose the JOIN syntax to use,in other cases,you will be asked to take a
specific approach.Using the incorrectprocess when the process is specified will resultin points being taken off for
that problem.
Deliverables
NOTE
Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox,
read thesestep-by-step instructions.
(See the Syllabus section “Due Dates for Assignments & Exams” for due dates.)
The deliverable for this lab will include:
The Student Answer Sheet file that you will download below provides a place for each query and the output of the
query. You will copy and paste this information from your MySQL environment.Be sure your name,course number,
and lab number are in your file which will be submitted to the iLab Dropbox for Week 5.
Required Software
Microsoft Office: Word
Use a personal copyor access the software athttps://lab.devry.edu.
All Steps
MySQL
Access the software athttps://devry.edupe.net:8300
Lab Steps
PRELIMINARY STEP: If You Have Not Created the Database Yet, Please Complete.
This lab will utilize the tables that were created in Lab 4. If you have not yet created these tables,you can create the
database and tables (used in labs 4–7) bydownloading the following files.
 CreateOMTables.docx(Instructions)
 create_OM_db.sql(Database Script)
STEP 1: Download the Week 5 Lab Instructions and Answer Sheet
Follow the instructions to complete the lab by downloading the following files.
 CIS336Lab5_Instructions.docx
 CIS336Lab5_StudentAnswerSheet.docx
Be sure to refer to the ERD for the database inOM_ERD.docxwhen creating your queries.
STEP 2: SubmitYour Answer sheet
Complete the Answer Sheet to show your queries and results and submitaccording to the lab instructions.
This is the end of Lab #5.
devry cis336 week 6 ilab
iLab> STEP 1: Download the Week 6 Lab Instructions and Answer Sheet
Lab 6 of 7: Group Functions and Subqueries
Listen
What’s this?
iLab Overview
Scenario/Summary
Lab 6 will introduce group or aggregate functions and subqueries.Make sure to follow the instructions provided by
each step.
Deliverables
NOTE
Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox,
read thesestep-by-step instructions.
(See the Syllabus section “Due Dates for Assignments & Exams” for due dates.)
The deliverable for this lab will include the following.
The Student Answer Sheet file that you will download below provides a place for each query and the output of the
query. You will copy and paste this information from your MySQL environment. Be sure your name,course number,
and lab number are in your file which will be submitted to the iLab Dropbox for Week 5.
Required Software
Microsoft Office: Word
Use a personal copyor access the software athttps://lab.devry.edu.
All Steps
MySQL
Access the software athttps://devry.edupe.net:8300
Lab Steps
PRELIMINARY STEP: If You Have Not Created the Database Yet, Please Complete.
This lab will utilize the tables that were created in Lab 4. If you have not yet created these tables,you can create the
database and tables (used in labs 4–7) bydownloading the following files.
 CreateOMTables.docx (Instructions)
 create_OM_db.sql (Database Script)
STEP 1: Download the Week 6 Lab Instructions and Answer Sheet
Follow the instructions to complete the lab by downloading the following files.
 CIS336Lab6_Instructions.docx
 CIS336Lab6_StudentAnswerSheet.docx
Be sure to refer to the ERD for the database inOM_ERD.docx when creating your queries.
STEP 2: SubmitYour Answer Sheet
Complete the answer sheetto show your queries and results,and submitaccording to the lab instructions.
This is the end of Lab #6
Devry CIS336 All Week Quiz
<pclass=”msonormal”>DevryCIS336 Week 2 Quiz Latest 2016 March
Devry CIS336 Week 2 Quiz Latest
Question 1. Question : (TCO 2) Which statementis FALSE regarding a primary key?
Only parenttables musthave a primarykey.
The values mustbe unique.
It can be made up of multiple attributes.
The value cannotbe NULL.
Question 2. Question : (TCO 2) _____ integrity insures thatthe value of a foreign key mustmatch a primary key
value in the table to which it is related,or be null.
Referential
Entity
Data
Logical
Question 3. Question : (TCO 2) A verb associating two nouns in a business rule usuallytranslates to a(n) ____ in
the data model.
entity
attribute
relationship
constraint
Question 4. Question : (TCO 4) A(n) _____ provides a graphical description ofa data model.
entity relationship diagram
data dictionary
business rule
pseudocode
Question 5. Question : (TCO 2) A _____ primary key is made up of more than one attribute.
composite
foreign
bridge
linking
Question 6. Question : (TCO 4) In the figure below,the OrderLineItems entityis there to implementwhattype of
relationship between Orders and Products?
One to one
One to many
Many to many
No relationship
Question 7. Question : (TCO 2) When designing a database,you should _____.
make sure entities are in normal form before table structures are created
create table structures then normalize the database
only normalize the database when performance problems occur
consider more importantissues,such as performance,before normalizing
Question 8. Question : (TCO 2) A table that is in 1NF and includes no partial dependencies onlyis said to be in
_____.
1NF
2NF
3NF
BCNF
Question 9. Question : (TCO 2) A table is not in 1NF if _____.
it has a primarykey defined
all of the key attributes are defined
there are repeating groups in the table
all attributes are dependenton the primarykey
Question 10. Question : (TCO 2) Entity attributes and primary keys are not presentin the _____ data model.
logical
physical
conceptual
network
Devry CIS336 Week 3 Quiz
Devry CIS336 Week 3 Quiz Latest2016 March
1. Question : (TCO 3) The _____ column attribute will automaticallygenerate unique numbers in sequence.
DEFAULT
AUTO_INCREMENT
AUTO_SEQUENCE
NOT NULL
Question 2. Question : (TCO 5) The _____ keyword is used in an ALTER statementto remove a column from an
existing table.
MODIFY COLUMN
ADD COLUMN
DELETE COLUMN
DROP COLUMN
Question 3. Question : (TCO 3) Which uses the leastamountofstorage?
“Example” stored in a column of type CHAR(20)
“Exam” stored in a column of type CHAR(20)
“Ex” stored in a column oftype CHAR(20)
They all use the same amountof storage.
Question 4. Question : (TCO 3) The TIME data type in MySQL can store _____.
dates only
times only
dates and times
None of the above
Question 5. Question : (TCO 3) Which statementis false regarding the creation ofa foreign key constraintat table
level or with an ALTER statement?
The parenttable mustalreadyexist.
The field mustalreadybe defined in the table.
The PK and FK fields musthave the same name.
The PK and FK fields may have different names.
Question 6. Question : (TCO 3) A foreign key constraintcan only reference a column in another table that has been
assigned a(n) _____ constraint.
NOT NULL
UNIQUE
PRIMARY KEY
DEFAULT
Question 7. Question : (TCO 3) You are creating a table called Department,with fields for the primary key DeptID
(Integer) and departmentname (VARCHAR). What (if anything) is wrong with the following code?
CREATE TABLE Department
(
deptID PrimaryKey INTEGER ,
deptName NOTNULL VARCHAR(10)
);
You mustuse curlybraces,not parentheses.
The data type mustimmediatelyfollow the field name.
The keywords cannotbe in upper case.
Nothing is wrong.
Question 8. Question : (TCO 3) What datatype is bestto store a person’s age?
INTEGER
VARCHAR
DECIMAL
FLOAT
Question 9. Question : (TCO 5) Which statementwill remove the field STATUS from the CUSTOMERS table?
ALTER TABLE customers REMOVE status;
ALTER TABLE customers DROP status;
ALTER TABLE customers DROP COLUMN status;
ALTER TABLE customers DELETE status;
Question 10. Question : (TCO 8) When you write an INSERT statementwith a column list,which columns can be
omitted from the column list?
AUTO_INCREMENT only
DEFAULT only
NOT NULL only
AUTO_INCREMENT, DEFAULT, and fields that allow NULL
Devry CIS336 Week 4 Quiz Latest
Devry CIS336 Week 4 Quiz Latest2016 March
Question 1. Question : (TCO 6) To retrieve all fields from a table, use
SELECT ALL.
SELECT ANY.
SELECT ().
SELECT *.
Question 2. Question : (TCO 6) Which operator would be mostappropriate to determine books with a retail price in
the range of $50 to $100?
LIKE
IN
BETWEEN
>
Question 3. Question : (TCO 6) Which code returns the date field HIREDATE in the format:Friday, April 5th, 2015?
DATE_FORMAT(HIREDATE, ‘%W, %m %d, %Y’)
DATE_FORMAT(HIREDATE, ‘%a,%M %D, %Y’)
DATE_FORMAT(HIREDATE, ‘%W, %M %D, %Y’)
DATE_FORMAT(HIREDATE, ‘%a,%m %d, %y’)
Question 4. Question : (TCO 6) Given a customer table with fields for firstname and lastname,which ofthe following
will displaythe customer name as a single field in the format“Jones,Tom” with a heading?
SELECT CONCAT(lastname,firstname) as “Name” FROM customer;
SELECT CONCAT(firstname,lastname) as “Name” FROM customer;
SELECT CONCAT(lastname,‘,‘, firstname) as “Name” FROM customer;
SELECT CONCAT lastname ‘,‘ firstname as “Name” FROM customer;
Question 5. Question : (TCO 8) The column to be updated by the UPDATE command is specified in the _____
clause.
WHERE
MODIFY
ALTER
SET
Question 6. Question : (TCO 6) Given a table orders with fields for orderid,orderdate,and shipdate,which query
will displaythe ordered for only those orders that have not shipped?
SELECT orderid FROM orders WHERE shipdate = orderdate;
SELECT orderid FROM orders WHERE shipdate IS NOT NULL;
SELECT orderid FROM orders WHERE shipdate IS NULL;
SELECT orderid FROM orders;
Question 7. Question : (TCO 6) Which WHERE clause will return data on all employees with a lastname beginning
with ‘S’?
WHERE lastname = ‘S’
WHERE lastname = ‘S%’
WHERE lastname LIKE ‘S’
WHERE lastname LIKE ‘S%’
Question 8. Question : (TCO 6) Given a books table with fields of title, cost, and retail, what if anything is wrong with
the following query(assuming all fields exist)?
SELECT * FROM books WHERE cost> 20 ORDER BY retail;
You mustsortand filter on the same field.
You cannotuse ORDER BY and WHERE in the same query.
The WHERE clause mustalways be last.
Nothing is wrong.
Question 9. Question : (TCO 8) You can delete one or more rows in a table by using the _____ command.
UPDATE
DROP
DELETE
ALTER
Question 10. Question : (TCO 6) Given a books table with fields:title, category (such as ‘SPORTS’), cost, retail;
what condition will return ‘COMPUTER’ books with a retail price between $50 and $100 ?
WHERE retail > 50 AND < 100 AND category = ‘COMPUTER’
WHERE category = ‘COMPUTER’ AND (retail BETWEEN 100 and 50)
WHERE category = ‘COMPUTER’ AND retail < 50 AND retail > 100
WHERE category = ‘COMPUTER’ AND ( retail BETWEEN 50 AND 100)
Devry CIS336 Week 5 Quiz
Devry CIS336 Week 5 Quiz Latest2016 March
1. Question : (TCO 7) The implicitinner join syntax is defined as _____.
NATURAL JOIN
JOIN ON
JOIN USING
WHERE clause
Question 2. Question : (TCO 7) To join four tables would require _____ join conditions.
4
3
2
Cannottell withoutan ERD.
Question 3. Question : (TCO 7) Given the two tables described below,which ofthe following JOIN queries (ifany) is
not correct?
customer:with the fields customerid(PK),lastname,firstname
order: with the fields orderid(PK),orderdate,customerid(FK)
SELECT lastname,orderdate from customer JOIN order ON customer.customerid = order.customerid;
SELECT lastname,orderdate from customer JOIN order USING (customerid);
SELECT lastname,orderdate from customer,orders;
All of the above
Question 4. Question : (TCO 7) In a join, column names need to be qualified only
in inner joins.
in outer joins.
when the code is confusing.
when the same column names existin both tables.
Question 5. Question : (TCO 7) A left join returns
rows in the left table that don’t satisfythe join condition.
unmatched rows from both the left and right tables.
rows in the right table that don’tsatisfy the join condition.
the Cartesian productofthe two tables.
Question 6. Question : (TCO 7) When you use the USING keyword for a join
the join cannotbe an outer join.
the join cannotbe based on more than one column.
the join mustbe based on a column or columns thathave the sam e name in both tables.
the join mustbe an inner join.
Question 7. Question : (TCO 7) Consider the ERD below.How manytables would be required to create a query to
displaythe customer firstand lastname along with orderdate ofeach order they placed?
One
Two
Three
Four
Question 8. Question : (TCO 7) Consider the ERD below.What tables will be needed to create a report showing the
firstname and lastname ofcustomers who have placed an order for any productwith keyboard in the description?
customer, productonly
customer,order,productonly
customer,orderline only
customer,order,orderline,product
Question 9. Question : (TCO 7) Consider the ERD below.What tables will be needed to create a report showing
customer firstand lastname along with order date? The report should show all customers even if they have never
placed an order.
SELECT firstname,lastname,orderdate from customer LEFTJOIN order;
SELECT firstname,lastname,orderdate FROM customer RIGHTJOIN order ON customer.customerid =
order.customerid;
SELECT firstname,lastname,orderdate FROM customer JOIN order USING (customerID);
SELECT firstname,lastname,orderdate FROM customer LEFTJOIN order ON customer.customerid =
order.customerid;
Question 10. Question : (TCO 7) Consider the ERD below.Note that there are some products produced in-house
that do not require a vendor, thus their vendorID is NULL.Also note that not all vendors currently supplyproducts.
Which query would be used to generate a report showing vendorname and productname,and will include ALL
vendors even if they do not currently supplyany products?
SELECT vendorname,productname FROM vendor LEFT JOIN product;
SELECT vendorname,productname FROM vendor RIGHT JOIN product;
SELECT vendorname,productname FROM vendor LEFT JOIN productON vendor.vendorID = product.vendorID;
SELECT vendorname,productname FROM vendor RIGHT JOIN productON vendor.vendorID = product.vendorID;
Devry CIS336 Week 6 Quiz
Devry CIS336 Week 6 Quiz Latest2016 March
1. Question : (TCO 7) Which is NOT an aggregate function?
SUM
COUNT
ROUND
MAX
Question 2. Question : (TCO 7) Which of the following statements is correct?
WHERE operates on groups formed by aggregate functions and HAVING operates on individual rows.
WHERE can only be used along with HAVING.
HAVING can only be used along with WHERE.
WHERE operates on individual rows and HAVING operates on groups formed byaggregate functions.
Question 3. Question : (TCO 7) Given the books table described below,which ofthe following will dis playthe date
of the book with the earliestpublication date?
books:bookid(PK),ISBN, title, pubdate,cost, retail,category, pubid(FK)
SELECT MIN(pubdate) FROM books;
SELECT title FROM books WHERE pubdate = MIN(pubdate);
SELECT title FROM books WHERE pubdate < MIN(pubdate);
SELECT pubdate from books WHERE MIN(pubdate) IS NOT NULL;
Question 4. Question : (TCO 7) Given the books table described below,which ofthe following will displaythe title
and retail price of books that are priced higher than the average retail price of all books?
books:bookid(PK),ISBN, title, pubdate,cost, retail,category, pubid(FK)
SELECT title, retail FROm books WHERE retail IN (SELECT AVG(retail) FROM books);
SELECT title, retail FROM books WHERE retail > (SELECT AVG(retail) FROM books);
SELECT title, retail FROM books WHERE retail > AVG(retail);
SELECT title, AVG(retail) FROM books;
Question 5. Question : (TCO 7) Which of the values listed below can be returned by a subqueryreferenced as
follows?
WHERE vendorid = (subquery)
A single value
A column of one or more rows
A table
A subquerycan’t be used in this way.
Question 6. Question : (TCO 7) What type of subqueryis executed once for each row processed bythe main
query?
Correlated
Uncorrelated
Inner
Outer
Question 7. Question : (TCO 7) Given the two tables described below,which ofthe following queries will displaythe
names ofthe customers with orders shipped after December 1,2014?
customer:with the fields customerid(PK),lastname,firstname
order: with the fields orderid(PK),orderdate,shipdate,customerid(FK)
SELECT lastname,firstname FROM customer WHERE customerid = (SELECTcustomerID FROM order WHERE
shipdate > ‘2014-01-12’);
SELECT lastname,firstname FROM customer WHERE customerid = (SELECTcustomerID FROM order WHERE
shipdate < ‘2014-01-12’);
SELECT lastname,firstname FROM customer WHERE customerid = (SELECTcustomerID FROM order WHERE
shipdate > ‘2014-12-01’);
SELECT lastname,firstname FROM customer WHERE customerid = (SELECTcustomerID FROM order WHERE
shipdate < ‘2014-12-01’);
Question 8. Question : (TCO 7) Given the two tables described below,which ofthe following queries will display
each customerid along with the number oforders placed by that customer?
customer:with the fields customerid(PK),lastname,firstname
order: with the fields orderid(PK),orderdate,shipdate,customerid(FK)
SELECT customerid,COUNT(customerid) FROM order;
SELECT customerid,COUNT(ordered) FROM order;
SELECT customerid,COUNT(orderid) FROM order GROUP BY customerid;
SELECT customerid,COUNT(orderid) FROM order GROUP BY orderid;
Question 9. Question : (TCO 7) Given the books table described below,which ofthe following will displayeach
category along with the average retail price of books in that category?
books:bookid(PK),ISBN, title, pubdate,cost, retail,category, pubid(FK)
SELECT AVG(retail) FROM books;
SELECT category, AVG(retail) FROM books GROUP BY category:
SELECT category, AVG(retail) FROM books HAVING category;
SELECT category, SUM(retail) FROM books GROUP BY category;
Question 10. Question : (TCO 7) The expression below will be TRUE for what values of x?
x > ALL(5, 9)
5 and below
5 to 9
5 and above
9 and above
Devry CIS336 Final Exam answers
Week 8 : Wk8 – Final Exam
Top of Form
Bottom of Form
Multiple Choice
Question1. 1. (TCO1) A DBMS performsseveral importantfunctionsthatguarantee the integrityand
consistencyof the datain the database.Whichof the followingisNOTone of those functions?(Points
: 4)
Multiuser access control
Data integrity management
Database access languages
End of month reports
Question2. 2. (TCO1) A relational DBMSprovidesprotectionof the _____ through security,control,
and recoveryfacilities.(Points:4)
user
network
system
database
Question3. 3. (TCO2) A relationshipisanassociationbetween_____ (Points:4)
objects.
entities.
databases.
fields.
Question4. 4. (TCO2) A _____ keyisa keythat iscomposedof more than one attribute.(Points:4)
primary
foreign
composite
domain
Question5. 5. (TCO3) The PKmust uniquelyidentifyeachentityinstance.A primarykeymustbe able
to guarantee unique values.Itcannotcontainnulls.Thisrationale belongsto_____ (Points:4)
unique values.
nonintelligent.
preferably single-attribute.
security complaint.
Question6. 6. (TCO3) The extendedentityrelationshipmodel(EERM) issometimesreferredtoasthe
_____ (Points:4)
entity relationship model.
enhanced entity relationship model.
entity clustering relationship model.
extended entity relationship doctrine.
Question7. 7. (TCO3) A table that has all keyattributesdefined,hasnorepeatinggroups,andall its
attributesare dependentonthe primarykey,issaidto be in_____ (Points:4)
1NF.
2NF.
3NF.
4NF.
BCNF.
Question8. 8. (TCO4) When a constraintiscreatedat the _____ level withthe CREATETABLE
command,the constraintdefinitionissimplyincludedaspart of the columndefinition.(Points:4)
table
column
database
row
Top of Form
Top of Form
Bottom of Form
Page 2 – Multiple Choice
Question1. 1. (TCO4) When creatinga table,whichof the followingstatementsisNOTcorrect?
(Points:4)
The schema of the table must be explicitly stated.
A user can have two tables with the same name, as long as the column names are different.
The column list must be enclosed in parentheses ( ).
Default values cannot be assigned to all columns in a table.
Question2. 2. (TCO4) Which of the followingSQLstatementswouldyouuse tocreate a table named
DEVRY? (Points:4)
CREATE Devry
(
Student_id NUMBER (12),
Student_name VARCHAR2 (15),
Student_city VARCHAR2 (12)
);
CREATE TABLE Devry
(
Student_id NUMBER (12)
Student_name VARCHAR2 (15)
Student_city VARCHAR2 (12)
);
CREATE TABLE Devry
(
Student_id NUMBER (12),
Student_name VARCHAR2 (15),
Student_city VARCHAR2 (12)
);
CREATE TABLE Devry
Student_id NUMBER (12),
Student_name VARCHAR2 (15),
Student_city VARCHAR2 (12);
Question3. 3. (TCO5) The Crow’sFootmodel ismore _____-orientedthanthe Chenmodel.(Points:
4)
object
user
implementation
processor
Question4. 4. (TCO5) Knowingthe _____ numberof entityoccurrencesisveryhelpful atthe
applicationsoftware level.(Points:4)
maximum
minimum
exact
maximum and minimum
Question5. 5. (TCO6) The _____ statementcanbe usedto enable ordisable aconstraint.(Points:4)
alter table
modify table
create table
update table
Question6. 6. (TCO6) When modifyingthe datacharacteristicsof a columninOracle,whichof the
followingiscorrect?(Points:4)
The column size can be increased.
The size of the column can be decreased.
Changing the default value of a column will change the values of data already in a table.
If a NUMBER column is empty, its precision and scale cannot be changed.
Question7. 7. (TCO6) Which of the followingkeywordscanbe usedtochange the size,datatype,or
defaultvalue of anexistingcolumn?(Points:4)
ADD
MODIFY
CHANGE
RESET
Question8. 8. (TCO7) Any type of subquerycanbe usedinthe _____ clause of a SELECT statement.
(Points:4)
WHERE
HAVING
FROM
ORDER BY
GROUP BY
Top of Form
Page 3 – Multiple Choice
Question1. 1. (TCO7) Which of the followingsubqueriesreturnsmore thanone row of resultstothe
outerquery?(Points:4)
Multiple-column subquery
Single-row subquery
Multiple-row subquery
Correlated subquery
Question2. 2. (TCO7) To lista unique value,where the listwill produceonlyalistof those valuesthat
are differentfromone another, youwill writethe command_____ (Points: 4)
SELECT ONLY V-CODE
FROM PRODUCT;.
SELECT UNIQUE V-CODE
FROM PRODUCT;.
SELECT DIFFERENT V-CODE
FROM PRODUCT;.
SELECT DISTINCT V-CODE
FROM PRODUCT;.
Question3. 3. (TCO8) Based uponthe contentsof the BOOK_ORDER table shownbelow,whichof the
followingSQLstatementswill displaythe shipdate fororder1006 as April 2, 2002?
(Points : 4)
SELECT order#, TO_CHAR(shipdate, ‘fmMonth DD, YYYY’)
FROM book_order;
SELECT order#, TO_DATE(shipdate, ‘fmMonth DD, YYYY’)
FROM book_order;
SELECT order#, TO_CHAR(shipdate, ‘Month DD, YYYY’)
FROM book_order;
SELECT order#, TO_DATE(shipdate, ‘Month DD, YYYY’)
FROM book_order;
Question4. 4. (TCO8) Which of the followingformatelementswill displayinsignificant leadingzeros?
(Points:4)
$999
0009999
99.999
9,999.990
Question5. 5. (TCO8) Which of the followingfunctionsdeterminesthe numberof charactersina
character string?(Points:4)
COUNT
NUMBER
LENGTH
DECODE
Question6. 6. (TCO9) The columnto be updatedbythe UPDATE command isspecifiedinthe _____
clause.(Points:4)
UPDATE
SET
WHERE
COL
Question7. 7. (TCO9) Using the promotiontable shownbelow,whichof the followingSQLstatements
will insertanewrowintothe PROMOTION table?
(Points : 4)
INSERT INTO promotion (gift, minretail, maxretail)
VALUES (FREE BOOK, 75.01, 89.99);
INSERT INTO promotion (gift, minretail, maxretail)
VALUES (‘FREE BOOK’, 75.01, 89.99);
INSERT INTO promotion VALUES (FREE BOOK, 75.01, 89.99);
INSERT INTO promotion (gift, minretail)
VALUES (FREE BOOK, 75.01, 89.99);
Question8. 8. (TCO10) Whichof the followingcommandsisusedtoestablishauseraccount?(Points:
4)
CREATE NEW USER username
IDENTIFIED BY password;
CREATE USERNAME username
IDENTITY password;
CREATE USER username PASSWORD password;
CREATE USER username IDENTIFIED BY password;
Question9. 9. (TCO10) Whichcommandwill delete auseraccountfromOracle9i? (Points:4)
DELETE USER username;
DELETE USER username IDENTIFIED BY password;
DROP USER username IDENTIFIED BY password;
DROP USER username;
Top of Form
Bottom of Form
Page 4 – Essays
Question1. 1. (TCO2) Explainwhatphysical independencemeans.(Points:15)
Question 2. 2. (TCO 3) What is a composite primarykey and in whatsituation are they mostcommonlyused? Give
an example.(Points : 15)
Question 3. 3. (TCO 7) Sally needs to find all employees who have a date of hire between 01-JAN-2003 and 01-
JAN-2005. She writes and executes the following query.
SELECT emp_no,emp_lname,date_of_hire
FROM emp
WHERE date_of_hire BETWEEN ’01-JAN-2005′and ’01-JAN-2003′;
When she looks atthe returned resultsetit is empty. Why? (Points : 15)
Question 4. 4. (TCO 8) In a table named ORDER,there is a column named SHIPDATE that contains a date for each
order that has been shipped.Write the query that would show the number of orders thathave been shipped.Listthe
column name as Number ofOrders Shipped for this derived column.(Points : 15)
Question 5. 5. (TCO 6) Write the SQL statementthatwill remove the database table EMPLOYEE. (Points : 15)
Question1. 1. (TCO7) Write a joinquerythatfor everyorderplacedonSeptember5,1998, (use ’05-
SEP-1998′) will listthe ordernumberandorderdate alongwiththe customernumber,lastname,and
firstname of the customerwhoplacedthe order.
(Points:15)
Question 2. 2. (TCO 8) Write a query that will listthe part number,partdescription,and on-hand value (units on hand
* unit price) for each part in item class AP. Give the expression an alias ofon-hand value.
(Points : 15)
Question 3. 3. (TCO 8) Write a subquerythat will listthe part number,part description,and units on hand of all parts
where the number ofunits on hand is greater than the average of units on hand for all parts.
(Points : 15)
Question 4. 4. (TCO 7) Using the orders table,write a query that will listthe order number,date,and customer
number for every order that was made prior to September 5,1998.Format the date in your resultsetto be in the
same formatas above (i.e., September 5,1998).
(Points : 15)
Question 5. 5. (TCO 7) Using a NATURAL JOIN method,write a query that will list the customer number,lastname,
and first name for every customer who currently has an order on file for an iron.
(Points : 15)
Top of Form
Bottom of Form
Bottom of Form
Bottom of Form
Bottom of Form
Bottom of Form

More Related Content

Viewers also liked

Acct 304 ( intermediate accounting i ) entire course
Acct 304 ( intermediate accounting i ) entire courseAcct 304 ( intermediate accounting i ) entire course
Acct 304 ( intermediate accounting i ) entire coursebestwriter
 
Psy 870 module 3 problem set answers
Psy 870  module 3 problem set answersPsy 870  module 3 problem set answers
Psy 870 module 3 problem set answersbestwriter
 
Acct 422 hollate manufacturing case study ethics
Acct 422 hollate manufacturing case study ethicsAcct 422 hollate manufacturing case study ethics
Acct 422 hollate manufacturing case study ethicsbestwriter
 
Mkt 421 final exam answers new 2016
Mkt 421 final exam answers   new 2016Mkt 421 final exam answers   new 2016
Mkt 421 final exam answers new 2016bestwriter
 
De vry poli330 ( political science ) final exam
De vry poli330 ( political science ) final examDe vry poli330 ( political science ) final exam
De vry poli330 ( political science ) final exambestwriter
 
Mgmt 410 final exam 100% correct answers
Mgmt 410 final exam 100% correct answersMgmt 410 final exam 100% correct answers
Mgmt 410 final exam 100% correct answersbestwriter
 
De vry hist 405 final exam answers
De vry hist 405 final exam answersDe vry hist 405 final exam answers
De vry hist 405 final exam answersbestwriter
 
Acct 505 managerial accounting entire course
Acct 505 managerial accounting entire courseAcct 505 managerial accounting entire course
Acct 505 managerial accounting entire coursebestwriter
 
Ifsm 370 project 2 white paper instructions
Ifsm 370 project 2  white paper instructionsIfsm 370 project 2  white paper instructions
Ifsm 370 project 2 white paper instructionsbestwriter
 

Viewers also liked (9)

Acct 304 ( intermediate accounting i ) entire course
Acct 304 ( intermediate accounting i ) entire courseAcct 304 ( intermediate accounting i ) entire course
Acct 304 ( intermediate accounting i ) entire course
 
Psy 870 module 3 problem set answers
Psy 870  module 3 problem set answersPsy 870  module 3 problem set answers
Psy 870 module 3 problem set answers
 
Acct 422 hollate manufacturing case study ethics
Acct 422 hollate manufacturing case study ethicsAcct 422 hollate manufacturing case study ethics
Acct 422 hollate manufacturing case study ethics
 
Mkt 421 final exam answers new 2016
Mkt 421 final exam answers   new 2016Mkt 421 final exam answers   new 2016
Mkt 421 final exam answers new 2016
 
De vry poli330 ( political science ) final exam
De vry poli330 ( political science ) final examDe vry poli330 ( political science ) final exam
De vry poli330 ( political science ) final exam
 
Mgmt 410 final exam 100% correct answers
Mgmt 410 final exam 100% correct answersMgmt 410 final exam 100% correct answers
Mgmt 410 final exam 100% correct answers
 
De vry hist 405 final exam answers
De vry hist 405 final exam answersDe vry hist 405 final exam answers
De vry hist 405 final exam answers
 
Acct 505 managerial accounting entire course
Acct 505 managerial accounting entire courseAcct 505 managerial accounting entire course
Acct 505 managerial accounting entire course
 
Ifsm 370 project 2 white paper instructions
Ifsm 370 project 2  white paper instructionsIfsm 370 project 2  white paper instructions
Ifsm 370 project 2 white paper instructions
 

Similar to CIS336 Oracle Database Class with Labs and Exams

Devry CIS 355A Full Course Latest
Devry CIS 355A Full Course LatestDevry CIS 355A Full Course Latest
Devry CIS 355A Full Course LatestAtifkhilji
 
Devry CIS 246 Full Course Latest
Devry CIS 246 Full Course LatestDevry CIS 246 Full Course Latest
Devry CIS 246 Full Course LatestAtifkhilji
 
Devry CIS 247 Full Course Latest
Devry CIS 247 Full Course LatestDevry CIS 247 Full Course Latest
Devry CIS 247 Full Course LatestAtifkhilji
 
DBM 380 (New) Effective Communication/tutorialrank.com
DBM 380 (New) Effective Communication/tutorialrank.comDBM 380 (New) Effective Communication/tutorialrank.com
DBM 380 (New) Effective Communication/tutorialrank.comjonhson200
 
DBM 380 AID Introduction Education--dbm380aid.com
DBM 380 AID Introduction Education--dbm380aid.comDBM 380 AID Introduction Education--dbm380aid.com
DBM 380 AID Introduction Education--dbm380aid.comkopiko205
 
DBM 380 EDU Wonderful Education--dbm380edu.com
DBM 380 EDU Wonderful Education--dbm380edu.comDBM 380 EDU Wonderful Education--dbm380edu.com
DBM 380 EDU Wonderful Education--dbm380edu.comJaseetha20
 
DBM 380 AID Achievement Education--dbm380aid.com
DBM 380 AID Achievement Education--dbm380aid.comDBM 380 AID Achievement Education--dbm380aid.com
DBM 380 AID Achievement Education--dbm380aid.comagathachristie183
 
DBM 380 AID Inspiring Innovation--dbm380aid.com
DBM 380 AID Inspiring Innovation--dbm380aid.comDBM 380 AID Inspiring Innovation--dbm380aid.com
DBM 380 AID Inspiring Innovation--dbm380aid.comwilliamwordsworth50
 
Cis 111 Education Specialist-snaptutorial.com
Cis 111 Education Specialist-snaptutorial.comCis 111 Education Specialist-snaptutorial.com
Cis 111 Education Specialist-snaptutorial.comrobertlesew50
 
DBM 380 AID Education for Service--dbm380aid.com
DBM 380 AID Education for Service--dbm380aid.comDBM 380 AID Education for Service--dbm380aid.com
DBM 380 AID Education for Service--dbm380aid.comkopiko64
 
It 610 colorado university, RELATIONAL DATABASE MANAGEMENT SYSTEMS IT610 DQ1 ...
It 610 colorado university, RELATIONAL DATABASE MANAGEMENT SYSTEMS IT610 DQ1 ...It 610 colorado university, RELATIONAL DATABASE MANAGEMENT SYSTEMS IT610 DQ1 ...
It 610 colorado university, RELATIONAL DATABASE MANAGEMENT SYSTEMS IT610 DQ1 ...Willy James
 
BIS 245 OUTLET Introduction Education--bis245outlet.com
BIS 245 OUTLET Introduction Education--bis245outlet.comBIS 245 OUTLET Introduction Education--bis245outlet.com
BIS 245 OUTLET Introduction Education--bis245outlet.comagathachristie291
 
BIS 245 OUTLET Inspiring Innovation--bis245outlet.com
 BIS 245 OUTLET Inspiring Innovation--bis245outlet.com BIS 245 OUTLET Inspiring Innovation--bis245outlet.com
BIS 245 OUTLET Inspiring Innovation--bis245outlet.comwilliamwordsworth45
 
BIS 245 OUTLET Achievement Education--bis245outlet.com
BIS 245 OUTLET Achievement Education--bis245outlet.comBIS 245 OUTLET Achievement Education--bis245outlet.com
BIS 245 OUTLET Achievement Education--bis245outlet.comagathachristie179
 
BIS 245 HOMEWORK Introduction Education--bis245homework.com
BIS 245 HOMEWORK Introduction Education--bis245homework.comBIS 245 HOMEWORK Introduction Education--bis245homework.com
BIS 245 HOMEWORK Introduction Education--bis245homework.comagathachristie256
 
BIS 245 HOMEWORK Lessons in Excellence--bis245homework.com
BIS 245 HOMEWORK Lessons in Excellence--bis245homework.comBIS 245 HOMEWORK Lessons in Excellence--bis245homework.com
BIS 245 HOMEWORK Lessons in Excellence--bis245homework.comthomashard72
 
BIS 245 HOMEWORK Become Exceptional--bis245homework.com
BIS 245 HOMEWORK Become Exceptional--bis245homework.comBIS 245 HOMEWORK Become Exceptional--bis245homework.com
BIS 245 HOMEWORK Become Exceptional--bis245homework.comKeatonJennings120
 
BIS 245 HOMEWORK Redefined Education--bis245homework.com
BIS 245 HOMEWORK Redefined Education--bis245homework.comBIS 245 HOMEWORK Redefined Education--bis245homework.com
BIS 245 HOMEWORK Redefined Education--bis245homework.comagathachristie241
 
CIS 336 (DEVRY) Entire Course NEW
CIS 336 (DEVRY) Entire Course NEWCIS 336 (DEVRY) Entire Course NEW
CIS 336 (DEVRY) Entire Course NEWshyamuopuop
 
DBM 380 Education Organization / snaptutorial.com
DBM 380 Education Organization / snaptutorial.comDBM 380 Education Organization / snaptutorial.com
DBM 380 Education Organization / snaptutorial.comMcdonaldRyan44
 

Similar to CIS336 Oracle Database Class with Labs and Exams (20)

Devry CIS 355A Full Course Latest
Devry CIS 355A Full Course LatestDevry CIS 355A Full Course Latest
Devry CIS 355A Full Course Latest
 
Devry CIS 246 Full Course Latest
Devry CIS 246 Full Course LatestDevry CIS 246 Full Course Latest
Devry CIS 246 Full Course Latest
 
Devry CIS 247 Full Course Latest
Devry CIS 247 Full Course LatestDevry CIS 247 Full Course Latest
Devry CIS 247 Full Course Latest
 
DBM 380 (New) Effective Communication/tutorialrank.com
DBM 380 (New) Effective Communication/tutorialrank.comDBM 380 (New) Effective Communication/tutorialrank.com
DBM 380 (New) Effective Communication/tutorialrank.com
 
DBM 380 AID Introduction Education--dbm380aid.com
DBM 380 AID Introduction Education--dbm380aid.comDBM 380 AID Introduction Education--dbm380aid.com
DBM 380 AID Introduction Education--dbm380aid.com
 
DBM 380 EDU Wonderful Education--dbm380edu.com
DBM 380 EDU Wonderful Education--dbm380edu.comDBM 380 EDU Wonderful Education--dbm380edu.com
DBM 380 EDU Wonderful Education--dbm380edu.com
 
DBM 380 AID Achievement Education--dbm380aid.com
DBM 380 AID Achievement Education--dbm380aid.comDBM 380 AID Achievement Education--dbm380aid.com
DBM 380 AID Achievement Education--dbm380aid.com
 
DBM 380 AID Inspiring Innovation--dbm380aid.com
DBM 380 AID Inspiring Innovation--dbm380aid.comDBM 380 AID Inspiring Innovation--dbm380aid.com
DBM 380 AID Inspiring Innovation--dbm380aid.com
 
Cis 111 Education Specialist-snaptutorial.com
Cis 111 Education Specialist-snaptutorial.comCis 111 Education Specialist-snaptutorial.com
Cis 111 Education Specialist-snaptutorial.com
 
DBM 380 AID Education for Service--dbm380aid.com
DBM 380 AID Education for Service--dbm380aid.comDBM 380 AID Education for Service--dbm380aid.com
DBM 380 AID Education for Service--dbm380aid.com
 
It 610 colorado university, RELATIONAL DATABASE MANAGEMENT SYSTEMS IT610 DQ1 ...
It 610 colorado university, RELATIONAL DATABASE MANAGEMENT SYSTEMS IT610 DQ1 ...It 610 colorado university, RELATIONAL DATABASE MANAGEMENT SYSTEMS IT610 DQ1 ...
It 610 colorado university, RELATIONAL DATABASE MANAGEMENT SYSTEMS IT610 DQ1 ...
 
BIS 245 OUTLET Introduction Education--bis245outlet.com
BIS 245 OUTLET Introduction Education--bis245outlet.comBIS 245 OUTLET Introduction Education--bis245outlet.com
BIS 245 OUTLET Introduction Education--bis245outlet.com
 
BIS 245 OUTLET Inspiring Innovation--bis245outlet.com
 BIS 245 OUTLET Inspiring Innovation--bis245outlet.com BIS 245 OUTLET Inspiring Innovation--bis245outlet.com
BIS 245 OUTLET Inspiring Innovation--bis245outlet.com
 
BIS 245 OUTLET Achievement Education--bis245outlet.com
BIS 245 OUTLET Achievement Education--bis245outlet.comBIS 245 OUTLET Achievement Education--bis245outlet.com
BIS 245 OUTLET Achievement Education--bis245outlet.com
 
BIS 245 HOMEWORK Introduction Education--bis245homework.com
BIS 245 HOMEWORK Introduction Education--bis245homework.comBIS 245 HOMEWORK Introduction Education--bis245homework.com
BIS 245 HOMEWORK Introduction Education--bis245homework.com
 
BIS 245 HOMEWORK Lessons in Excellence--bis245homework.com
BIS 245 HOMEWORK Lessons in Excellence--bis245homework.comBIS 245 HOMEWORK Lessons in Excellence--bis245homework.com
BIS 245 HOMEWORK Lessons in Excellence--bis245homework.com
 
BIS 245 HOMEWORK Become Exceptional--bis245homework.com
BIS 245 HOMEWORK Become Exceptional--bis245homework.comBIS 245 HOMEWORK Become Exceptional--bis245homework.com
BIS 245 HOMEWORK Become Exceptional--bis245homework.com
 
BIS 245 HOMEWORK Redefined Education--bis245homework.com
BIS 245 HOMEWORK Redefined Education--bis245homework.comBIS 245 HOMEWORK Redefined Education--bis245homework.com
BIS 245 HOMEWORK Redefined Education--bis245homework.com
 
CIS 336 (DEVRY) Entire Course NEW
CIS 336 (DEVRY) Entire Course NEWCIS 336 (DEVRY) Entire Course NEW
CIS 336 (DEVRY) Entire Course NEW
 
DBM 380 Education Organization / snaptutorial.com
DBM 380 Education Organization / snaptutorial.comDBM 380 Education Organization / snaptutorial.com
DBM 380 Education Organization / snaptutorial.com
 

Recently uploaded

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 

Recently uploaded (20)

The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 

CIS336 Oracle Database Class with Labs and Exams

  • 1. CIS336 (Introduction to Database w/LAB – Oracle) Complete Class https://homeworklance.com/downloads/cis336-introduction-to-database-wlab-oracle-complete-class/ CIS336 (Introduction to Database w/LAB – Oracle) Complete Class cis336 Full courses ( Discussion + ilab +Quiz+ Courses Projectand Final Exam) CIS336A Week 1 Discussion DQ 1 & DQ 2 DQ 1 Normal Forms and Entity Relationship Diagrams (graded) We hear the term database all the time. Give some examples ofdatabases thatyou interact with on a regular basis. What makes a database relational? Whatis a file storage system? How does a relational database differ from a file storage system? DQ 2 Lab Forum (graded) This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs or tips that you have discovered during your learning process.At a minimum,postatleastthree notes that highlight your experience or problems with this week’s lab. CIS336A Week 2 Discussion DQ 1 & DQ 2 DQ 1 Developing a Good Data Model (graded) The database data model is the communication link between the designer,applications programmer,and user. Contribute your views on what constitutes a good data model and why. DQ 2 Lab Forum (graded)
  • 2. This area is used to discuss the lab assignments and techniques. Please postanyquestions you have about the labs or tips that you have discovered during your learning process.At a minimum,postatleastthree notes that highlight your experience or problems with this week’s lab. CIS336A Week 3 Discussion DQ 1 & DQ 2 DQ 1 Building the Physical Model (graded) What is the importance ofconstraints in a physical model? Whatrole do different constraints playin maintaining referential integrity and data integrity? DQ 2 Lab Forum (graded) This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs or tips that you have discovered during your learning process.At a minimum,postatleastthree notes that highlight your experience or problems with this week’s lab. CIS336A Week 4 Discussion DQ 1 & DQ 2 DQ 1 Understanding the SELECT statement (graded) Reports are generated using queries to a database.The SELECT statementis used to retrieve data from one or many tables in a database.Justas in other programming languages,understanding the syntax of a selectstatement is key. Let’s first discuss the key clauses in a SELECT statementand the purpose ofeach. DQ 2 Lab Forum (graded) This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs or tips that you have discovered during your learning process.At a minimum,postatleastthree notes that highlight your experience or problems with this week’s lab.
  • 3. CIS336A Week 5 Discussion DQ 1 & DQ 2 DQ 1 Getting Data From Multiple Tables (graded) It is not uncommon to have to retrieve data that resides in several tables,especiallywhen formulating a report. Discuss some ofthe performance issues when querying three or four tables ata time. DQ 2 Lab Forum (graded) This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs or tips that you have discovered during your learning process.At a minimum,postatleast three notes that highlight your experience or problems with this week’s lab. CIS336A Week 6 Discussion DQ 1 & DQ 2 DQ 1 How Group Functions Differ From Single-Row Functions (graded) What are some examples ofgroup functions,and how do they differ from single-row functions? DQ 2 Lab Forum (graded) This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs or tips that you have discovered during your learning process.At a minimum,postatleastthree notes that highlight your experience or problems with this week’s lab. CIS336A Week 7 Discussion DQ 1 & DQ 2 DQ 1
  • 4. Database Views (graded) What are the advantages of selecting data from a view over selecting data from a base table? DQ 2 Lab Forum (graded) This area is used to discuss the lab assignments and techniques.Please postanyquestions you have about the labs or tips that you have discovered during your learning process.At a minimum,postatleast three notes that highlight your experience or problems with this week’s lab. cis336 week ALL ilab <pstyle=”font-size:14.784px;”=””>devry cis336 week 1 ilab laest 2016 march <pstyle=”font-size:14.784px;”=””> iLab> Required Software Lab 1 of 7: Normal Forms and Entity Relationship Diagrams (xx points) Listen What’s this? iLab Overview Scenario/Summary Download the iLab instructions and the Answer Sheetfor the necessarysteps to be completed for this lab. They can be found below.You will notice that the readings,including lectures,the examples we worked on during the lecture, and other audio and visual aids provided,will help you tackle this week’s lab.Remember to always follow the instructions to getmaximum credit,and use the weekly discussion related to the iLab and the Q & A Forum for additional help.Be specific and state the problem you are having clearly, including whatyou have done to resolve it, in the discussion. Microsoft Visio Tutorial—Important Information Important: Before starting,be sure to review the Logical Modeling Part 1video under Video Library to familiarize you with how to use MS Visio to draw Entity Relationship Diagrams. Deliverables NOTE Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read thesestep-by-step instructions. (See the Syllabus section “Due Dates for Assignments & Exams” for due dates.) The deliverable for this lab is a single MS Word documentnamed lab1_solutions_yourname.docx with the answers included for Steps 1–4. Required Software Microsoft Office: Word and Visio 2010 Use a personal copyor access the software athttps://lab.devry.edu. All Steps Lab Steps
  • 5. STEP 1: Download the Week 1 Lab Instructions Follow the instructions to complete the lab by downloading the following files:  CIS336Lab1_Instructions.docx  CIS336Lab1_StudentAnswerSheet.docx STEP 2: SubmitYour Answers on the Lab 1 Student Answer Sheet Use Visio or Word to draw the dependencydiagrams for Steps 1–3.Use Visio to draw the ERD for Step 4. This is the end of iLab #1 devry cis336 week 2 ilab iLab> Lab Steps Lab 2 of 7: The Expanded Entity Relationship Diagram What’s this? iLab Overview Scenario/Summary Download the iLab instructions and the Answer Sheetfor the necessarysteps to be completed for this lab. They can be found below.You will notice that the readings,including lectures,the examples we worked on during the lecture, and other audio and visual aids provided,will help you tackle this week’s lab.Remember to always follow the instructions to getmaximum credit,and use the weekly discussion related to the iLab and the Q & A Forum for additional help.Be specific and state the problem you are having clearly, including whatyou have d one to resolve it, in the discussion. Deliverables NOTE Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read thesestep-by-step instructions. (See the Syllabus section “Due Dates for Assignments & Exams” for due dates.) The deliverable for this lab will be your completed ERD as a single MS Word documentusing copy/paste from the MS Visio application and namedlab2_solutions_yourname.docx Required Software Microsoft Office: Word Use a personal copyor access the software athttps://lab.devry.edu. All Steps Microsoft Office: Visio Use a personal copyor access the software athttps://lab.devry.edu. All Steps Lab Steps STEP 1: Download the Week 2 Lab Instructions. Follow the instructions to complete the lab by downloading the following files:  CIS336Lab2_Instructions.docx STEP 2: SubmitYour Answers Use Visio to create your ERD. Copy and paste to a Word documentas indicated in the lab instructions. This is the end of lab #2 devry cis336 week 3 ilab
  • 6. iLab> Lab Steps Lab 3 of 7: Building the Physical Model Listen What’s this? iLab Overview Scenario/Summary Beginning with this lab,and continuing through the remaining weeks you will be doing all of your work in the MySQL EDUPE Environment.By now you have received your logon ID and password and should have at leastmade sure you can connect. If for any reason you have not done so, please do so now before continuing any further. If for any reason you cannotconnect, then you need to let the instructor know ASAP so that any problems can be resolved. In this lab you will transform a logical database design (data model) into a physical model (tables,constraints,and relationships).Your job will be to take the relationship diagram along with the meta data defined in the data dictionary and define the table structures and constraints to create the physical tables.Once this has been done,you will populate the tables with data. Lastly, you will write SELECT statements to query the tables and verify the data was populated. Deliverables NOTE Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read thesestep-by-step instructions. (See the Syllabus section “Due Dates for Assignments & Exams” for due dates.) 1. Your scriptfile. Create this file in Notepad,notWord. Make sure your name is in a commentarea at the top of the scriptfile. Use a double dash to create a one-line comment. —Jacob Smith —Lab 3 Required Software MySQL Access the software athttps://devry.edupe.net:8300 Lab Steps STEP 1: Download the Week 3 Lab Instructions Complete the lab by downloading the following files this week:  CIS336Lab3_Instructions.docx  CIS336Lab3_Files.zip STEP 2: SubmitYour SQL Command File Use Notepad to write the SQL statements and submitaccording the lab instructions. This is the end of Lab #3 devry cis336 week 4 ilab iLab> STEP 2: Download the Week 4 Lab Instructions and Answer Sheet Lab 4 of 7: Building the Physical Model Listen What’s this? iLab Overview Scenario/Summary
  • 7. Lab 4 will introduce the various aspects ofthe SQL SELECT statementand the methods ofretrieving data from the database tables.The lab will utilize a database with a set of tables that you will create and populate using the instructions and scriptfile found below.These tables will be used for the remaining labs in this class. Deliverables NOTE Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read thesestep-by-step instructions. (See the Syllabus section “Due Dates for Assignments & Exams” for due dates.) The deliverable for this lab will include the following.  The Student Answer Sheet file below provides a place for each query and the output of the query. You will copy and paste this information from your MySQL environment.Be sure your name,course number,and lab number are in your file which will be submitted to the iLab Dropbox for Week 4. Required Software Microsoft Office: Word Use a personal copyor access the software athttps://lab.devry.edu. All Steps MySQL Access the software athttps://devry.edupe.net:8300 Lab Steps STEP 1: Create the Database and Tables Create the database and tables (thatwill be used in labs 4–7) by downloading the following files.  CreateOMTables.docx(Instructions)  create_OM_db.sql(Database Script) STEP 2: Download the Week 4 Lab Instructions and Answer Sheet Follow the instructions to complete the lab by downloading the following files.  CIS336Lab4_Instructions.docx  CIS336Lab4_StudentAnswerSheet.docx Be sure to refer to the ERD for the database inOM_ERD.docxwhen creating your queries. STEP 3: SubmitYour Answer sheet Complete the Answer Sheet to show your queries and results and submitaccording to the lab instructions. This is the end of Lab#4. devry cis336 week 5 ilab iLab> STEP 1: Download the Week 5 Lab Instructions and Answer Sheet Lab 5 of 7: Retrieving Data From Multiple Tables (39 points) Listen What’s this? iLab Overview Scenario/Summary Lab 5 deals with writing queries using multiple tables as covered in the reading and lecture material this week.In some cases,you will be given the option to choose the JOIN syntax to use,in other cases,you will be asked to take a specific approach.Using the incorrectprocess when the process is specified will resultin points being taken off for that problem. Deliverables NOTE
  • 8. Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read thesestep-by-step instructions. (See the Syllabus section “Due Dates for Assignments & Exams” for due dates.) The deliverable for this lab will include: The Student Answer Sheet file that you will download below provides a place for each query and the output of the query. You will copy and paste this information from your MySQL environment.Be sure your name,course number, and lab number are in your file which will be submitted to the iLab Dropbox for Week 5. Required Software Microsoft Office: Word Use a personal copyor access the software athttps://lab.devry.edu. All Steps MySQL Access the software athttps://devry.edupe.net:8300 Lab Steps PRELIMINARY STEP: If You Have Not Created the Database Yet, Please Complete. This lab will utilize the tables that were created in Lab 4. If you have not yet created these tables,you can create the database and tables (used in labs 4–7) bydownloading the following files.  CreateOMTables.docx(Instructions)  create_OM_db.sql(Database Script) STEP 1: Download the Week 5 Lab Instructions and Answer Sheet Follow the instructions to complete the lab by downloading the following files.  CIS336Lab5_Instructions.docx  CIS336Lab5_StudentAnswerSheet.docx Be sure to refer to the ERD for the database inOM_ERD.docxwhen creating your queries. STEP 2: SubmitYour Answer sheet Complete the Answer Sheet to show your queries and results and submitaccording to the lab instructions. This is the end of Lab #5. devry cis336 week 6 ilab iLab> STEP 1: Download the Week 6 Lab Instructions and Answer Sheet Lab 6 of 7: Group Functions and Subqueries Listen What’s this? iLab Overview Scenario/Summary Lab 6 will introduce group or aggregate functions and subqueries.Make sure to follow the instructions provided by each step. Deliverables NOTE Submityour assignmentto the Dropbox, located at the top of this page. For instructions on how to use the Dropbox, read thesestep-by-step instructions. (See the Syllabus section “Due Dates for Assignments & Exams” for due dates.) The deliverable for this lab will include the following.
  • 9. The Student Answer Sheet file that you will download below provides a place for each query and the output of the query. You will copy and paste this information from your MySQL environment. Be sure your name,course number, and lab number are in your file which will be submitted to the iLab Dropbox for Week 5. Required Software Microsoft Office: Word Use a personal copyor access the software athttps://lab.devry.edu. All Steps MySQL Access the software athttps://devry.edupe.net:8300 Lab Steps PRELIMINARY STEP: If You Have Not Created the Database Yet, Please Complete. This lab will utilize the tables that were created in Lab 4. If you have not yet created these tables,you can create the database and tables (used in labs 4–7) bydownloading the following files.  CreateOMTables.docx (Instructions)  create_OM_db.sql (Database Script) STEP 1: Download the Week 6 Lab Instructions and Answer Sheet Follow the instructions to complete the lab by downloading the following files.  CIS336Lab6_Instructions.docx  CIS336Lab6_StudentAnswerSheet.docx Be sure to refer to the ERD for the database inOM_ERD.docx when creating your queries. STEP 2: SubmitYour Answer Sheet Complete the answer sheetto show your queries and results,and submitaccording to the lab instructions. This is the end of Lab #6 Devry CIS336 All Week Quiz <pclass=”msonormal”>DevryCIS336 Week 2 Quiz Latest 2016 March Devry CIS336 Week 2 Quiz Latest Question 1. Question : (TCO 2) Which statementis FALSE regarding a primary key? Only parenttables musthave a primarykey. The values mustbe unique. It can be made up of multiple attributes. The value cannotbe NULL. Question 2. Question : (TCO 2) _____ integrity insures thatthe value of a foreign key mustmatch a primary key value in the table to which it is related,or be null. Referential Entity Data Logical
  • 10. Question 3. Question : (TCO 2) A verb associating two nouns in a business rule usuallytranslates to a(n) ____ in the data model. entity attribute relationship constraint Question 4. Question : (TCO 4) A(n) _____ provides a graphical description ofa data model. entity relationship diagram data dictionary business rule pseudocode Question 5. Question : (TCO 2) A _____ primary key is made up of more than one attribute. composite foreign bridge linking Question 6. Question : (TCO 4) In the figure below,the OrderLineItems entityis there to implementwhattype of relationship between Orders and Products? One to one One to many Many to many No relationship Question 7. Question : (TCO 2) When designing a database,you should _____. make sure entities are in normal form before table structures are created create table structures then normalize the database only normalize the database when performance problems occur consider more importantissues,such as performance,before normalizing Question 8. Question : (TCO 2) A table that is in 1NF and includes no partial dependencies onlyis said to be in _____. 1NF 2NF 3NF BCNF Question 9. Question : (TCO 2) A table is not in 1NF if _____. it has a primarykey defined all of the key attributes are defined there are repeating groups in the table all attributes are dependenton the primarykey Question 10. Question : (TCO 2) Entity attributes and primary keys are not presentin the _____ data model. logical
  • 11. physical conceptual network Devry CIS336 Week 3 Quiz Devry CIS336 Week 3 Quiz Latest2016 March 1. Question : (TCO 3) The _____ column attribute will automaticallygenerate unique numbers in sequence. DEFAULT AUTO_INCREMENT AUTO_SEQUENCE NOT NULL Question 2. Question : (TCO 5) The _____ keyword is used in an ALTER statementto remove a column from an existing table. MODIFY COLUMN ADD COLUMN DELETE COLUMN DROP COLUMN Question 3. Question : (TCO 3) Which uses the leastamountofstorage? “Example” stored in a column of type CHAR(20) “Exam” stored in a column of type CHAR(20) “Ex” stored in a column oftype CHAR(20) They all use the same amountof storage. Question 4. Question : (TCO 3) The TIME data type in MySQL can store _____. dates only times only dates and times None of the above Question 5. Question : (TCO 3) Which statementis false regarding the creation ofa foreign key constraintat table level or with an ALTER statement? The parenttable mustalreadyexist. The field mustalreadybe defined in the table. The PK and FK fields musthave the same name. The PK and FK fields may have different names. Question 6. Question : (TCO 3) A foreign key constraintcan only reference a column in another table that has been assigned a(n) _____ constraint. NOT NULL UNIQUE PRIMARY KEY DEFAULT
  • 12. Question 7. Question : (TCO 3) You are creating a table called Department,with fields for the primary key DeptID (Integer) and departmentname (VARCHAR). What (if anything) is wrong with the following code? CREATE TABLE Department ( deptID PrimaryKey INTEGER , deptName NOTNULL VARCHAR(10) ); You mustuse curlybraces,not parentheses. The data type mustimmediatelyfollow the field name. The keywords cannotbe in upper case. Nothing is wrong. Question 8. Question : (TCO 3) What datatype is bestto store a person’s age? INTEGER VARCHAR DECIMAL FLOAT Question 9. Question : (TCO 5) Which statementwill remove the field STATUS from the CUSTOMERS table? ALTER TABLE customers REMOVE status; ALTER TABLE customers DROP status; ALTER TABLE customers DROP COLUMN status; ALTER TABLE customers DELETE status; Question 10. Question : (TCO 8) When you write an INSERT statementwith a column list,which columns can be omitted from the column list? AUTO_INCREMENT only DEFAULT only NOT NULL only AUTO_INCREMENT, DEFAULT, and fields that allow NULL Devry CIS336 Week 4 Quiz Latest Devry CIS336 Week 4 Quiz Latest2016 March Question 1. Question : (TCO 6) To retrieve all fields from a table, use SELECT ALL. SELECT ANY. SELECT (). SELECT *. Question 2. Question : (TCO 6) Which operator would be mostappropriate to determine books with a retail price in the range of $50 to $100? LIKE IN BETWEEN >
  • 13. Question 3. Question : (TCO 6) Which code returns the date field HIREDATE in the format:Friday, April 5th, 2015? DATE_FORMAT(HIREDATE, ‘%W, %m %d, %Y’) DATE_FORMAT(HIREDATE, ‘%a,%M %D, %Y’) DATE_FORMAT(HIREDATE, ‘%W, %M %D, %Y’) DATE_FORMAT(HIREDATE, ‘%a,%m %d, %y’) Question 4. Question : (TCO 6) Given a customer table with fields for firstname and lastname,which ofthe following will displaythe customer name as a single field in the format“Jones,Tom” with a heading? SELECT CONCAT(lastname,firstname) as “Name” FROM customer; SELECT CONCAT(firstname,lastname) as “Name” FROM customer; SELECT CONCAT(lastname,‘,‘, firstname) as “Name” FROM customer; SELECT CONCAT lastname ‘,‘ firstname as “Name” FROM customer; Question 5. Question : (TCO 8) The column to be updated by the UPDATE command is specified in the _____ clause. WHERE MODIFY ALTER SET Question 6. Question : (TCO 6) Given a table orders with fields for orderid,orderdate,and shipdate,which query will displaythe ordered for only those orders that have not shipped? SELECT orderid FROM orders WHERE shipdate = orderdate; SELECT orderid FROM orders WHERE shipdate IS NOT NULL; SELECT orderid FROM orders WHERE shipdate IS NULL; SELECT orderid FROM orders; Question 7. Question : (TCO 6) Which WHERE clause will return data on all employees with a lastname beginning with ‘S’? WHERE lastname = ‘S’ WHERE lastname = ‘S%’ WHERE lastname LIKE ‘S’ WHERE lastname LIKE ‘S%’ Question 8. Question : (TCO 6) Given a books table with fields of title, cost, and retail, what if anything is wrong with the following query(assuming all fields exist)? SELECT * FROM books WHERE cost> 20 ORDER BY retail; You mustsortand filter on the same field. You cannotuse ORDER BY and WHERE in the same query. The WHERE clause mustalways be last. Nothing is wrong. Question 9. Question : (TCO 8) You can delete one or more rows in a table by using the _____ command. UPDATE DROP DELETE ALTER
  • 14. Question 10. Question : (TCO 6) Given a books table with fields:title, category (such as ‘SPORTS’), cost, retail; what condition will return ‘COMPUTER’ books with a retail price between $50 and $100 ? WHERE retail > 50 AND < 100 AND category = ‘COMPUTER’ WHERE category = ‘COMPUTER’ AND (retail BETWEEN 100 and 50) WHERE category = ‘COMPUTER’ AND retail < 50 AND retail > 100 WHERE category = ‘COMPUTER’ AND ( retail BETWEEN 50 AND 100) Devry CIS336 Week 5 Quiz Devry CIS336 Week 5 Quiz Latest2016 March 1. Question : (TCO 7) The implicitinner join syntax is defined as _____. NATURAL JOIN JOIN ON JOIN USING WHERE clause Question 2. Question : (TCO 7) To join four tables would require _____ join conditions. 4 3 2 Cannottell withoutan ERD. Question 3. Question : (TCO 7) Given the two tables described below,which ofthe following JOIN queries (ifany) is not correct? customer:with the fields customerid(PK),lastname,firstname order: with the fields orderid(PK),orderdate,customerid(FK) SELECT lastname,orderdate from customer JOIN order ON customer.customerid = order.customerid; SELECT lastname,orderdate from customer JOIN order USING (customerid); SELECT lastname,orderdate from customer,orders; All of the above Question 4. Question : (TCO 7) In a join, column names need to be qualified only in inner joins. in outer joins. when the code is confusing. when the same column names existin both tables. Question 5. Question : (TCO 7) A left join returns rows in the left table that don’t satisfythe join condition. unmatched rows from both the left and right tables. rows in the right table that don’tsatisfy the join condition. the Cartesian productofthe two tables. Question 6. Question : (TCO 7) When you use the USING keyword for a join the join cannotbe an outer join.
  • 15. the join cannotbe based on more than one column. the join mustbe based on a column or columns thathave the sam e name in both tables. the join mustbe an inner join. Question 7. Question : (TCO 7) Consider the ERD below.How manytables would be required to create a query to displaythe customer firstand lastname along with orderdate ofeach order they placed? One Two Three Four Question 8. Question : (TCO 7) Consider the ERD below.What tables will be needed to create a report showing the firstname and lastname ofcustomers who have placed an order for any productwith keyboard in the description? customer, productonly customer,order,productonly customer,orderline only customer,order,orderline,product Question 9. Question : (TCO 7) Consider the ERD below.What tables will be needed to create a report showing customer firstand lastname along with order date? The report should show all customers even if they have never placed an order. SELECT firstname,lastname,orderdate from customer LEFTJOIN order; SELECT firstname,lastname,orderdate FROM customer RIGHTJOIN order ON customer.customerid = order.customerid; SELECT firstname,lastname,orderdate FROM customer JOIN order USING (customerID); SELECT firstname,lastname,orderdate FROM customer LEFTJOIN order ON customer.customerid = order.customerid; Question 10. Question : (TCO 7) Consider the ERD below.Note that there are some products produced in-house that do not require a vendor, thus their vendorID is NULL.Also note that not all vendors currently supplyproducts. Which query would be used to generate a report showing vendorname and productname,and will include ALL vendors even if they do not currently supplyany products? SELECT vendorname,productname FROM vendor LEFT JOIN product; SELECT vendorname,productname FROM vendor RIGHT JOIN product; SELECT vendorname,productname FROM vendor LEFT JOIN productON vendor.vendorID = product.vendorID; SELECT vendorname,productname FROM vendor RIGHT JOIN productON vendor.vendorID = product.vendorID; Devry CIS336 Week 6 Quiz Devry CIS336 Week 6 Quiz Latest2016 March 1. Question : (TCO 7) Which is NOT an aggregate function? SUM COUNT ROUND
  • 16. MAX Question 2. Question : (TCO 7) Which of the following statements is correct? WHERE operates on groups formed by aggregate functions and HAVING operates on individual rows. WHERE can only be used along with HAVING. HAVING can only be used along with WHERE. WHERE operates on individual rows and HAVING operates on groups formed byaggregate functions. Question 3. Question : (TCO 7) Given the books table described below,which ofthe following will dis playthe date of the book with the earliestpublication date? books:bookid(PK),ISBN, title, pubdate,cost, retail,category, pubid(FK) SELECT MIN(pubdate) FROM books; SELECT title FROM books WHERE pubdate = MIN(pubdate); SELECT title FROM books WHERE pubdate < MIN(pubdate); SELECT pubdate from books WHERE MIN(pubdate) IS NOT NULL; Question 4. Question : (TCO 7) Given the books table described below,which ofthe following will displaythe title and retail price of books that are priced higher than the average retail price of all books? books:bookid(PK),ISBN, title, pubdate,cost, retail,category, pubid(FK) SELECT title, retail FROm books WHERE retail IN (SELECT AVG(retail) FROM books); SELECT title, retail FROM books WHERE retail > (SELECT AVG(retail) FROM books); SELECT title, retail FROM books WHERE retail > AVG(retail); SELECT title, AVG(retail) FROM books; Question 5. Question : (TCO 7) Which of the values listed below can be returned by a subqueryreferenced as follows? WHERE vendorid = (subquery) A single value A column of one or more rows A table A subquerycan’t be used in this way. Question 6. Question : (TCO 7) What type of subqueryis executed once for each row processed bythe main query? Correlated Uncorrelated Inner Outer Question 7. Question : (TCO 7) Given the two tables described below,which ofthe following queries will displaythe names ofthe customers with orders shipped after December 1,2014? customer:with the fields customerid(PK),lastname,firstname order: with the fields orderid(PK),orderdate,shipdate,customerid(FK) SELECT lastname,firstname FROM customer WHERE customerid = (SELECTcustomerID FROM order WHERE shipdate > ‘2014-01-12’); SELECT lastname,firstname FROM customer WHERE customerid = (SELECTcustomerID FROM order WHERE shipdate < ‘2014-01-12’); SELECT lastname,firstname FROM customer WHERE customerid = (SELECTcustomerID FROM order WHERE shipdate > ‘2014-12-01’);
  • 17. SELECT lastname,firstname FROM customer WHERE customerid = (SELECTcustomerID FROM order WHERE shipdate < ‘2014-12-01’); Question 8. Question : (TCO 7) Given the two tables described below,which ofthe following queries will display each customerid along with the number oforders placed by that customer? customer:with the fields customerid(PK),lastname,firstname order: with the fields orderid(PK),orderdate,shipdate,customerid(FK) SELECT customerid,COUNT(customerid) FROM order; SELECT customerid,COUNT(ordered) FROM order; SELECT customerid,COUNT(orderid) FROM order GROUP BY customerid; SELECT customerid,COUNT(orderid) FROM order GROUP BY orderid; Question 9. Question : (TCO 7) Given the books table described below,which ofthe following will displayeach category along with the average retail price of books in that category? books:bookid(PK),ISBN, title, pubdate,cost, retail,category, pubid(FK) SELECT AVG(retail) FROM books; SELECT category, AVG(retail) FROM books GROUP BY category: SELECT category, AVG(retail) FROM books HAVING category; SELECT category, SUM(retail) FROM books GROUP BY category; Question 10. Question : (TCO 7) The expression below will be TRUE for what values of x? x > ALL(5, 9) 5 and below 5 to 9 5 and above 9 and above Devry CIS336 Final Exam answers Week 8 : Wk8 – Final Exam Top of Form Bottom of Form Multiple Choice Question1. 1. (TCO1) A DBMS performsseveral importantfunctionsthatguarantee the integrityand consistencyof the datain the database.Whichof the followingisNOTone of those functions?(Points : 4) Multiuser access control Data integrity management
  • 18. Database access languages End of month reports Question2. 2. (TCO1) A relational DBMSprovidesprotectionof the _____ through security,control, and recoveryfacilities.(Points:4) user network system database Question3. 3. (TCO2) A relationshipisanassociationbetween_____ (Points:4) objects. entities. databases. fields. Question4. 4. (TCO2) A _____ keyisa keythat iscomposedof more than one attribute.(Points:4) primary foreign composite domain Question5. 5. (TCO3) The PKmust uniquelyidentifyeachentityinstance.A primarykeymustbe able to guarantee unique values.Itcannotcontainnulls.Thisrationale belongsto_____ (Points:4) unique values. nonintelligent. preferably single-attribute. security complaint. Question6. 6. (TCO3) The extendedentityrelationshipmodel(EERM) issometimesreferredtoasthe _____ (Points:4) entity relationship model. enhanced entity relationship model. entity clustering relationship model. extended entity relationship doctrine. Question7. 7. (TCO3) A table that has all keyattributesdefined,hasnorepeatinggroups,andall its attributesare dependentonthe primarykey,issaidto be in_____ (Points:4) 1NF. 2NF.
  • 19. 3NF. 4NF. BCNF. Question8. 8. (TCO4) When a constraintiscreatedat the _____ level withthe CREATETABLE command,the constraintdefinitionissimplyincludedaspart of the columndefinition.(Points:4) table column database row Top of Form Top of Form Bottom of Form Page 2 – Multiple Choice Question1. 1. (TCO4) When creatinga table,whichof the followingstatementsisNOTcorrect? (Points:4) The schema of the table must be explicitly stated. A user can have two tables with the same name, as long as the column names are different. The column list must be enclosed in parentheses ( ). Default values cannot be assigned to all columns in a table. Question2. 2. (TCO4) Which of the followingSQLstatementswouldyouuse tocreate a table named DEVRY? (Points:4) CREATE Devry ( Student_id NUMBER (12), Student_name VARCHAR2 (15),
  • 20. Student_city VARCHAR2 (12) ); CREATE TABLE Devry ( Student_id NUMBER (12) Student_name VARCHAR2 (15) Student_city VARCHAR2 (12) ); CREATE TABLE Devry ( Student_id NUMBER (12), Student_name VARCHAR2 (15), Student_city VARCHAR2 (12) ); CREATE TABLE Devry Student_id NUMBER (12), Student_name VARCHAR2 (15), Student_city VARCHAR2 (12); Question3. 3. (TCO5) The Crow’sFootmodel ismore _____-orientedthanthe Chenmodel.(Points: 4) object user implementation processor Question4. 4. (TCO5) Knowingthe _____ numberof entityoccurrencesisveryhelpful atthe applicationsoftware level.(Points:4) maximum minimum exact maximum and minimum Question5. 5. (TCO6) The _____ statementcanbe usedto enable ordisable aconstraint.(Points:4) alter table modify table create table update table Question6. 6. (TCO6) When modifyingthe datacharacteristicsof a columninOracle,whichof the followingiscorrect?(Points:4)
  • 21. The column size can be increased. The size of the column can be decreased. Changing the default value of a column will change the values of data already in a table. If a NUMBER column is empty, its precision and scale cannot be changed. Question7. 7. (TCO6) Which of the followingkeywordscanbe usedtochange the size,datatype,or defaultvalue of anexistingcolumn?(Points:4) ADD MODIFY CHANGE RESET Question8. 8. (TCO7) Any type of subquerycanbe usedinthe _____ clause of a SELECT statement. (Points:4) WHERE HAVING FROM ORDER BY GROUP BY Top of Form Page 3 – Multiple Choice Question1. 1. (TCO7) Which of the followingsubqueriesreturnsmore thanone row of resultstothe outerquery?(Points:4) Multiple-column subquery Single-row subquery Multiple-row subquery Correlated subquery Question2. 2. (TCO7) To lista unique value,where the listwill produceonlyalistof those valuesthat are differentfromone another, youwill writethe command_____ (Points: 4) SELECT ONLY V-CODE FROM PRODUCT;. SELECT UNIQUE V-CODE
  • 22. FROM PRODUCT;. SELECT DIFFERENT V-CODE FROM PRODUCT;. SELECT DISTINCT V-CODE FROM PRODUCT;. Question3. 3. (TCO8) Based uponthe contentsof the BOOK_ORDER table shownbelow,whichof the followingSQLstatementswill displaythe shipdate fororder1006 as April 2, 2002? (Points : 4) SELECT order#, TO_CHAR(shipdate, ‘fmMonth DD, YYYY’) FROM book_order; SELECT order#, TO_DATE(shipdate, ‘fmMonth DD, YYYY’) FROM book_order; SELECT order#, TO_CHAR(shipdate, ‘Month DD, YYYY’) FROM book_order; SELECT order#, TO_DATE(shipdate, ‘Month DD, YYYY’) FROM book_order; Question4. 4. (TCO8) Which of the followingformatelementswill displayinsignificant leadingzeros? (Points:4) $999 0009999 99.999 9,999.990 Question5. 5. (TCO8) Which of the followingfunctionsdeterminesthe numberof charactersina character string?(Points:4) COUNT NUMBER LENGTH DECODE Question6. 6. (TCO9) The columnto be updatedbythe UPDATE command isspecifiedinthe _____ clause.(Points:4) UPDATE SET WHERE COL Question7. 7. (TCO9) Using the promotiontable shownbelow,whichof the followingSQLstatements will insertanewrowintothe PROMOTION table?
  • 23. (Points : 4) INSERT INTO promotion (gift, minretail, maxretail) VALUES (FREE BOOK, 75.01, 89.99); INSERT INTO promotion (gift, minretail, maxretail) VALUES (‘FREE BOOK’, 75.01, 89.99); INSERT INTO promotion VALUES (FREE BOOK, 75.01, 89.99); INSERT INTO promotion (gift, minretail) VALUES (FREE BOOK, 75.01, 89.99); Question8. 8. (TCO10) Whichof the followingcommandsisusedtoestablishauseraccount?(Points: 4) CREATE NEW USER username IDENTIFIED BY password; CREATE USERNAME username IDENTITY password; CREATE USER username PASSWORD password; CREATE USER username IDENTIFIED BY password; Question9. 9. (TCO10) Whichcommandwill delete auseraccountfromOracle9i? (Points:4) DELETE USER username; DELETE USER username IDENTIFIED BY password; DROP USER username IDENTIFIED BY password; DROP USER username; Top of Form Bottom of Form Page 4 – Essays Question1. 1. (TCO2) Explainwhatphysical independencemeans.(Points:15) Question 2. 2. (TCO 3) What is a composite primarykey and in whatsituation are they mostcommonlyused? Give an example.(Points : 15)
  • 24. Question 3. 3. (TCO 7) Sally needs to find all employees who have a date of hire between 01-JAN-2003 and 01- JAN-2005. She writes and executes the following query. SELECT emp_no,emp_lname,date_of_hire FROM emp WHERE date_of_hire BETWEEN ’01-JAN-2005′and ’01-JAN-2003′; When she looks atthe returned resultsetit is empty. Why? (Points : 15) Question 4. 4. (TCO 8) In a table named ORDER,there is a column named SHIPDATE that contains a date for each order that has been shipped.Write the query that would show the number of orders thathave been shipped.Listthe column name as Number ofOrders Shipped for this derived column.(Points : 15) Question 5. 5. (TCO 6) Write the SQL statementthatwill remove the database table EMPLOYEE. (Points : 15) Question1. 1. (TCO7) Write a joinquerythatfor everyorderplacedonSeptember5,1998, (use ’05- SEP-1998′) will listthe ordernumberandorderdate alongwiththe customernumber,lastname,and firstname of the customerwhoplacedthe order. (Points:15) Question 2. 2. (TCO 8) Write a query that will listthe part number,partdescription,and on-hand value (units on hand * unit price) for each part in item class AP. Give the expression an alias ofon-hand value. (Points : 15)
  • 25. Question 3. 3. (TCO 8) Write a subquerythat will listthe part number,part description,and units on hand of all parts where the number ofunits on hand is greater than the average of units on hand for all parts. (Points : 15) Question 4. 4. (TCO 7) Using the orders table,write a query that will listthe order number,date,and customer number for every order that was made prior to September 5,1998.Format the date in your resultsetto be in the same formatas above (i.e., September 5,1998). (Points : 15) Question 5. 5. (TCO 7) Using a NATURAL JOIN method,write a query that will list the customer number,lastname, and first name for every customer who currently has an order on file for an iron. (Points : 15) Top of Form Bottom of Form Bottom of Form Bottom of Form Bottom of Form Bottom of Form