SlideShare a Scribd company logo
1 of 9
Topic 1 Rubric: Standards Graphic Organizer
Criteria
% Value
1: Unsatisfactory
2: Less than Satisfactory
3: Satisfactory
4: Good
5: Excellent
% Scaling
0%
65%
75%
85%
100%
Content Subject Knowledge
50%
Chart is incomplete or missing.
Chart is missing 2 or more standards.
Chart is missing one of the standards.
Chart is complete with all standards.
Chart is complete with all standards required.
Content Comprehension
30%
Content is incomplete or omits most of the requirements stated
in the assignment criteria.
Content is incomplete or omits some requirements stated in the
assignment criteria.
Content is complete, but somewhat inaccurate and/or irrelevant.
Research is inadequate in relevance, quality, and/or timeliness.
Content is comprehensive and accurate. Research is adequate,
timely, and relevant, and addresses all of the issues stated in the
assignment criteria.
Content is comprehensive, accurate, and persuasive. Research is
adequate, timely, and relevant, and addresses all of the issues
stated in the assignment criteria.
Paper Format (1" Margins 12 point-font Double Spaced Times
New Roman, Arial, or Courier)
10%
GCU Template is not used appropriately or documentation
format is rarely followed correctly.
GCU Template is used, but some elements are missing or
mistaken; lack of control with formatting is apparent.
GCU Template is used; Formatting is correct, although some
minor errors may be present.
GCU Template is fully used; There are virtually no errors in
formatting style.
All format elements are correct.
Mechanics of Writing (includes spelling, punctuation,
grammar, language use)
5%
Surface errors are pervasive enough that they impede
communication of meaning. Inappropriate word choice and/or
sentence construction are employed.
Frequent and repetitive mechanical errors distract the reader.
Inconsistencies in language choice (register) and/or word choice
are present. Sentence structure is correct but not varied.
Some mechanical errors or typos are present, but are not overly
distracting to the reader. Correct and varied sentence structure
and audience-appropriate language are employed.
Prose is largely free of mechanical errors, although a few may
be present. The writer uses a variety of effective sentence
structures and figures of speech.
The writer is clearly in command of standard, written academic
English.
Research Citations (in-text citations for paraphrasing and direct
quotes, and references page listing and formatting, as
appropriate to assignment and style)
5%
No references page and no citations are included.
References page is present, but citations are inconsistently used.
References page is included. Sources are appropriately
documented, although some errors may be present.
References page is present and fully inclusive of all cited
sources. Documentation is appropriate and citation style is
usually correct.
In-text citations and a references page are complete. The
documentation of cited sources is free of errors.
© 2013. Grand Canyon University. All Rights Reserved.
CIS3010: Assignment 2 – S2 2013
CIS 3010: Assignment 2
Due date:
21 October 2013
Value:
30%
Please submit the CODE and OUTPUT for all programming
questions. You will submit this assignment electronically in the
ASSESSMENT area of the Study Desk.
For the output, a screen dump is highly encouraged.
IMPORTANT NOTES – PLEASE READ BEFORE YOU BEGIN
WORK
1. This assignment prepares you for the examination and you
should consider each hour devoted to the assignment as an hour
devoted to exam preparation.
2. I urge you not to give up if you are unable to do all the
questions. Do as many as you can and submit what you have
done.
In this assignment, you will use the CAR HIRE database. The
CAR HIRE database including appropriate data will be made
available on the USQ Oracle server. You can query these tables
as if they are in your own schema but you are not permitted to
insert or update data in these tables. The specification for the
CAR HIRE database is as follows:
The table descriptions appear below, including the column
names, datatypes and the meanings for values in the columns.
Familiarise yourself with the tables and the data.
I_CAR
I_CARGROUP
I_MODEL
I_CUSTOMER
I_BOOKING
Question 1 (25 marks)
Write a stored procedure that accepts the model name of a car
as the input parameter and provides the number of cars
belonging to that model as the output parameter. The procedure
should also display the description of the car model.
Procedure:
1. Create the procedure that should have one IN parameter
(p_model) and one OUT parameter (p_noofcars)
2. Use an implicit cursor and a SQL function to calculate the
number of cars belonging to the particular car model and assign
that value to the OUT parameter.
3. Use another implicit cursor to display the description
belonging to the particular car model.
Submit the code to create the procedure and the code to call the
procedure in a PL/SQL block. Value for the input parameter for
the procedure should be ‘FERR TR’. You should display the
value of the OUT parameter returned, i.e. the number of cars
belonging to the car model.
Provide a screen dump of the output when the calling PL/SQL
block is run.
Question 2 (25 marks)
Write a function that displays the most recent date of rental for
a particular car (registration) for all completed bookings made
for that car.
Write a second function that displays the maximum rental
period for a particular car (registration) for all completed
bookings made for that car.
For both the functions, you should check for completed
bookings, i.e. miles_in is not null.
Write ONE SQL statement that displays the registration, model
name and cost for each car and calls the two functions to
display the most recent date of rental and the maximum rental
period for that car.
Display the output of the SQL statement.
Question 3 (25 marks)
The car hire company is concerned about possible unauthorised
changes to customer details that may compromise the company's
security and privacy policies. You will create a database trigger
to monitor such changes to some important columns in the
I_CUSTOMER table.
1. Create a copy of the I_CUSTOMER table in your own schema
by using the following command:
CREATE TABLE N_CUSTOMER AS SELECT * FROM
I_CUSTOMER;
2. Also create a table to store change logs
(CUSTOMER_CHANGELOG) by using the following command:
CREATE TABLE CUSTOMER_CHANGELOG
(
cust_no NUMBER(5),
cust_name VARCHAR2(20),
contact VARCHAR2(20),
log_date DATE);
3. Create a database trigger with the following specification:
· fires AFTER an UPDATE on N_CUSTOMER table.
· fires if there is any change to cust_name or contact columns
of the N_CUSTOMER table.
· fires for each row.
· inserts a first row: the affected cust_no column, the OLD
values of the cust_name and contact columns and the current
date into the table CUSTOMER_CHANGELOG.
· inserts a second row: the affected cust_no column, the NEW
values of the cust_name and contact columns and the current
date into the table CUSTOMER_CHANGELOG.
4. Test the trigger with the following specification:
· Go ahead and make a change to N_CUSTOMER table by
issuing the following command:
UPDATE N_CUSTOMER
SET cust_name = 'Peter Davis', contact = 'Sam Bogdanovich'
WHERE cust_no = 2338;
5. Now, select all rows from the CUSTOMER_CHANGELOG
table. This should display the old and new values of the changes
you made due to firing of the trigger. Output all the rows of
CUSTOMER_CHANGELOG table.
Question 4 (25 marks)
Create a PL/SQL function called findtotalcarmodels to return
the total number of cars belonging to a particular model. The
function should have a single IN parameter as model_name. You
should then use an explicit cursor to count the number of cars
belonging to that car model and return the final count. You must
NOT use any implicit cursors, table joins, subqueries, set
operators, group functions or SQL functions (such as COUNT)
to create this function.
Now, write ONE PL/SQL anonymous block that provides a
report about car details.
The full specification to create the PL/SQL anonymous block is
as follows:
· Using an explicit cursor, retrieve all car registration, cost and
model name details (registration, cost & model_name) from the
I_CAR table.
· If the cost of the car is less than or equal to $50,000, we
determine car cost category as “Budget Car”. If the car cost is
between $50,000 and $100,000, the car cost category is
“Standard Car”. For all other cars costing more than $100,000;
the car cost category is “Premium Car”. Declare a local variable
v_carcategory as VARCHAR2(40) to store car cost category.
· Call the function findtotalcarmodels to get the total number of
cars belonging to the model name for the car and store them in a
local variable named v_totalcars.
· Use an explicit cursor with a parameter that accepts car
registration to find the most recent reservation made on the car.
You will have to look at the date_reserved column from
I_BOOKING table here. You cannot use the MAX function.
Compare all the relevant dates to find the most recent one.
· Display a report showing car registration, car cost category,
car model name, total number of cars belonging to that model
and the most recent reservation made on that car.
· Finally, create an exception handler which fires when no rows
are found. The exception handler should output the following
message to the screen: “No rows found”.
Important Notes:
· You must NOT use any implicit cursors, table joins,
subqueries, set operators, group functions or SQL functions
(such as COUNT) to create the PL/SQL function or the PL/SQL
anonymous block.
· The PL/SQL anonymous block must be ONE block only. Do
NOT write a block to perform each task of the specification
above.
MARKING CRITERIA
1. The code executes without error messages.
2. The code produces the required output.
3. The code addresses the specification and provides a solution
to every element in the specification.
4. The code is well structured and, where applicable, adopts an
optimal and sophisticated approach to PL/SQL.
1

More Related Content

Similar to Topic 1 Rubric Standards Graphic OrganizerCriteria Value.docx

Access tips access and sql part 6 dynamic reports
Access tips  access and sql part 6  dynamic reportsAccess tips  access and sql part 6  dynamic reports
Access tips access and sql part 6 dynamic reportsquest2900
 
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdfgratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdfNarReg
 
Oracle_Analytical_function.pdf
Oracle_Analytical_function.pdfOracle_Analytical_function.pdf
Oracle_Analytical_function.pdfKalyankumarVenkat1
 
BMGT 364 Project 4 (Week 7) - Controlling Purpose In thi
BMGT 364 Project 4 (Week 7) - Controlling Purpose In thiBMGT 364 Project 4 (Week 7) - Controlling Purpose In thi
BMGT 364 Project 4 (Week 7) - Controlling Purpose In thiJeniceStuckeyoo
 
IT 315 Project Description and Scoring Guide Overvie.docx
IT 315 Project Description and Scoring Guide  Overvie.docxIT 315 Project Description and Scoring Guide  Overvie.docx
IT 315 Project Description and Scoring Guide Overvie.docxpriestmanmable
 
Advanced plsql mock_assessment
Advanced plsql mock_assessmentAdvanced plsql mock_assessment
Advanced plsql mock_assessmentSaurabh K. Gupta
 
Database Design Project-Oracle 11g
Database Design  Project-Oracle 11g Database Design  Project-Oracle 11g
Database Design Project-Oracle 11g Sunny U Okoro
 
BUS 315 Success Begins /newtonhelp.com 
BUS 315 Success Begins /newtonhelp.com BUS 315 Success Begins /newtonhelp.com 
BUS 315 Success Begins /newtonhelp.com myblue119
 
75629 Topic prevention measures for vulneranbilitiesNumber of.docx
75629 Topic prevention measures for vulneranbilitiesNumber of.docx75629 Topic prevention measures for vulneranbilitiesNumber of.docx
75629 Topic prevention measures for vulneranbilitiesNumber of.docxsleeperharwell
 

Similar to Topic 1 Rubric Standards Graphic OrganizerCriteria Value.docx (12)

Access tips access and sql part 6 dynamic reports
Access tips  access and sql part 6  dynamic reportsAccess tips  access and sql part 6  dynamic reports
Access tips access and sql part 6 dynamic reports
 
Bis 345-week-4-i lab-new
Bis 345-week-4-i lab-newBis 345-week-4-i lab-new
Bis 345-week-4-i lab-new
 
Jazz
JazzJazz
Jazz
 
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdfgratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
gratisexam.com-Oracle.BrainDumps.1z0-061.v2016-10-10.by.Laura.75q.pdf
 
Oracle_Analytical_function.pdf
Oracle_Analytical_function.pdfOracle_Analytical_function.pdf
Oracle_Analytical_function.pdf
 
BMGT 364 Project 4 (Week 7) - Controlling Purpose In thi
BMGT 364 Project 4 (Week 7) - Controlling Purpose In thiBMGT 364 Project 4 (Week 7) - Controlling Purpose In thi
BMGT 364 Project 4 (Week 7) - Controlling Purpose In thi
 
IT 315 Project Description and Scoring Guide Overvie.docx
IT 315 Project Description and Scoring Guide  Overvie.docxIT 315 Project Description and Scoring Guide  Overvie.docx
IT 315 Project Description and Scoring Guide Overvie.docx
 
Advanced plsql mock_assessment
Advanced plsql mock_assessmentAdvanced plsql mock_assessment
Advanced plsql mock_assessment
 
1 z1 051
1 z1 0511 z1 051
1 z1 051
 
Database Design Project-Oracle 11g
Database Design  Project-Oracle 11g Database Design  Project-Oracle 11g
Database Design Project-Oracle 11g
 
BUS 315 Success Begins /newtonhelp.com 
BUS 315 Success Begins /newtonhelp.com BUS 315 Success Begins /newtonhelp.com 
BUS 315 Success Begins /newtonhelp.com 
 
75629 Topic prevention measures for vulneranbilitiesNumber of.docx
75629 Topic prevention measures for vulneranbilitiesNumber of.docx75629 Topic prevention measures for vulneranbilitiesNumber of.docx
75629 Topic prevention measures for vulneranbilitiesNumber of.docx
 

More from edwardmarivel

deadline 6 hours 7.3 y 7.47.4.docx
deadline  6 hours 7.3 y 7.47.4.docxdeadline  6 hours 7.3 y 7.47.4.docx
deadline 6 hours 7.3 y 7.47.4.docxedwardmarivel
 
Deadline 6 PM Friday September 27, 201310 Project Management Que.docx
Deadline 6 PM Friday September 27, 201310 Project Management Que.docxDeadline 6 PM Friday September 27, 201310 Project Management Que.docx
Deadline 6 PM Friday September 27, 201310 Project Management Que.docxedwardmarivel
 
DEADLINE 15 HOURS6 PAGES UNDERGRADUATECOURSEWORKHARV.docx
DEADLINE 15 HOURS6 PAGES UNDERGRADUATECOURSEWORKHARV.docxDEADLINE 15 HOURS6 PAGES UNDERGRADUATECOURSEWORKHARV.docx
DEADLINE 15 HOURS6 PAGES UNDERGRADUATECOURSEWORKHARV.docxedwardmarivel
 
De nada.El gusto es mío.Encantada.Me llamo Pepe.Muy bien, grac.docx
De nada.El gusto es mío.Encantada.Me llamo Pepe.Muy bien, grac.docxDe nada.El gusto es mío.Encantada.Me llamo Pepe.Muy bien, grac.docx
De nada.El gusto es mío.Encantada.Me llamo Pepe.Muy bien, grac.docxedwardmarivel
 
DDBA 8307 Week 4 Assignment TemplateJohn DoeDDBA 8.docx
DDBA 8307 Week 4 Assignment TemplateJohn DoeDDBA 8.docxDDBA 8307 Week 4 Assignment TemplateJohn DoeDDBA 8.docx
DDBA 8307 Week 4 Assignment TemplateJohn DoeDDBA 8.docxedwardmarivel
 
DDL 24 hours reading the article and writing a 1-page doubl.docx
DDL 24 hours reading the article and writing a 1-page doubl.docxDDL 24 hours reading the article and writing a 1-page doubl.docx
DDL 24 hours reading the article and writing a 1-page doubl.docxedwardmarivel
 
DCF valuation methodSuper-normal growth modelApplicatio.docx
DCF valuation methodSuper-normal growth modelApplicatio.docxDCF valuation methodSuper-normal growth modelApplicatio.docx
DCF valuation methodSuper-normal growth modelApplicatio.docxedwardmarivel
 
DDBA 8307 Week 2 Assignment ExemplarJohn Doe[footnoteRef1] .docx
DDBA 8307 Week 2 Assignment ExemplarJohn Doe[footnoteRef1] .docxDDBA 8307 Week 2 Assignment ExemplarJohn Doe[footnoteRef1] .docx
DDBA 8307 Week 2 Assignment ExemplarJohn Doe[footnoteRef1] .docxedwardmarivel
 
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docxDBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docxedwardmarivel
 
DBA CAPSTONE TEMPLATEThe pages in this template are correctl.docx
DBA CAPSTONE TEMPLATEThe pages in this template are correctl.docxDBA CAPSTONE TEMPLATEThe pages in this template are correctl.docx
DBA CAPSTONE TEMPLATEThe pages in this template are correctl.docxedwardmarivel
 
DB3.1 Mexico corruptionDiscuss the connection between pol.docx
DB3.1 Mexico corruptionDiscuss the connection between pol.docxDB3.1 Mexico corruptionDiscuss the connection between pol.docx
DB3.1 Mexico corruptionDiscuss the connection between pol.docxedwardmarivel
 
DB2Pepsi Co and Coke American beverage giants, must adhere to th.docx
DB2Pepsi Co and Coke American beverage giants, must adhere to th.docxDB2Pepsi Co and Coke American beverage giants, must adhere to th.docx
DB2Pepsi Co and Coke American beverage giants, must adhere to th.docxedwardmarivel
 
DB1 What Ive observedHave you ever experienced a self-managed .docx
DB1 What Ive observedHave you ever experienced a self-managed .docxDB1 What Ive observedHave you ever experienced a self-managed .docx
DB1 What Ive observedHave you ever experienced a self-managed .docxedwardmarivel
 
DB Response 1I agree with the decision to search the house. Ther.docx
DB Response 1I agree with the decision to search the house. Ther.docxDB Response 1I agree with the decision to search the house. Ther.docx
DB Response 1I agree with the decision to search the house. Ther.docxedwardmarivel
 
DB Response prompt ZAKChapter 7, Q1.Customers are expecting.docx
DB Response prompt  ZAKChapter 7, Q1.Customers are expecting.docxDB Response prompt  ZAKChapter 7, Q1.Customers are expecting.docx
DB Response prompt ZAKChapter 7, Q1.Customers are expecting.docxedwardmarivel
 
DB Topic of Discussion Information-related CapabilitiesAnalyze .docx
DB Topic of Discussion Information-related CapabilitiesAnalyze .docxDB Topic of Discussion Information-related CapabilitiesAnalyze .docx
DB Topic of Discussion Information-related CapabilitiesAnalyze .docxedwardmarivel
 
DB Instructions Each reply must be 250–300 words with a minim.docx
DB Instructions Each reply must be 250–300 words with a minim.docxDB Instructions Each reply must be 250–300 words with a minim.docx
DB Instructions Each reply must be 250–300 words with a minim.docxedwardmarivel
 
DB Defining White Collar CrimeHow would you define white co.docx
DB Defining White Collar CrimeHow would you define white co.docxDB Defining White Collar CrimeHow would you define white co.docx
DB Defining White Collar CrimeHow would you define white co.docxedwardmarivel
 
DAVID H. ROSENBLOOMSECOND EDITIONAdministrative Law .docx
DAVID H. ROSENBLOOMSECOND EDITIONAdministrative Law .docxDAVID H. ROSENBLOOMSECOND EDITIONAdministrative Law .docx
DAVID H. ROSENBLOOMSECOND EDITIONAdministrative Law .docxedwardmarivel
 

More from edwardmarivel (20)

deadline 6 hours 7.3 y 7.47.4.docx
deadline  6 hours 7.3 y 7.47.4.docxdeadline  6 hours 7.3 y 7.47.4.docx
deadline 6 hours 7.3 y 7.47.4.docx
 
Deadline 6 PM Friday September 27, 201310 Project Management Que.docx
Deadline 6 PM Friday September 27, 201310 Project Management Que.docxDeadline 6 PM Friday September 27, 201310 Project Management Que.docx
Deadline 6 PM Friday September 27, 201310 Project Management Que.docx
 
DEADLINE 15 HOURS6 PAGES UNDERGRADUATECOURSEWORKHARV.docx
DEADLINE 15 HOURS6 PAGES UNDERGRADUATECOURSEWORKHARV.docxDEADLINE 15 HOURS6 PAGES UNDERGRADUATECOURSEWORKHARV.docx
DEADLINE 15 HOURS6 PAGES UNDERGRADUATECOURSEWORKHARV.docx
 
De nada.El gusto es mío.Encantada.Me llamo Pepe.Muy bien, grac.docx
De nada.El gusto es mío.Encantada.Me llamo Pepe.Muy bien, grac.docxDe nada.El gusto es mío.Encantada.Me llamo Pepe.Muy bien, grac.docx
De nada.El gusto es mío.Encantada.Me llamo Pepe.Muy bien, grac.docx
 
DDBA 8307 Week 4 Assignment TemplateJohn DoeDDBA 8.docx
DDBA 8307 Week 4 Assignment TemplateJohn DoeDDBA 8.docxDDBA 8307 Week 4 Assignment TemplateJohn DoeDDBA 8.docx
DDBA 8307 Week 4 Assignment TemplateJohn DoeDDBA 8.docx
 
DDL 24 hours reading the article and writing a 1-page doubl.docx
DDL 24 hours reading the article and writing a 1-page doubl.docxDDL 24 hours reading the article and writing a 1-page doubl.docx
DDL 24 hours reading the article and writing a 1-page doubl.docx
 
DCF valuation methodSuper-normal growth modelApplicatio.docx
DCF valuation methodSuper-normal growth modelApplicatio.docxDCF valuation methodSuper-normal growth modelApplicatio.docx
DCF valuation methodSuper-normal growth modelApplicatio.docx
 
ddr-.docx
ddr-.docxddr-.docx
ddr-.docx
 
DDBA 8307 Week 2 Assignment ExemplarJohn Doe[footnoteRef1] .docx
DDBA 8307 Week 2 Assignment ExemplarJohn Doe[footnoteRef1] .docxDDBA 8307 Week 2 Assignment ExemplarJohn Doe[footnoteRef1] .docx
DDBA 8307 Week 2 Assignment ExemplarJohn Doe[footnoteRef1] .docx
 
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docxDBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
DBM380 v14Create a DatabaseDBM380 v14Page 2 of 2Create a D.docx
 
DBA CAPSTONE TEMPLATEThe pages in this template are correctl.docx
DBA CAPSTONE TEMPLATEThe pages in this template are correctl.docxDBA CAPSTONE TEMPLATEThe pages in this template are correctl.docx
DBA CAPSTONE TEMPLATEThe pages in this template are correctl.docx
 
DB3.1 Mexico corruptionDiscuss the connection between pol.docx
DB3.1 Mexico corruptionDiscuss the connection between pol.docxDB3.1 Mexico corruptionDiscuss the connection between pol.docx
DB3.1 Mexico corruptionDiscuss the connection between pol.docx
 
DB2Pepsi Co and Coke American beverage giants, must adhere to th.docx
DB2Pepsi Co and Coke American beverage giants, must adhere to th.docxDB2Pepsi Co and Coke American beverage giants, must adhere to th.docx
DB2Pepsi Co and Coke American beverage giants, must adhere to th.docx
 
DB1 What Ive observedHave you ever experienced a self-managed .docx
DB1 What Ive observedHave you ever experienced a self-managed .docxDB1 What Ive observedHave you ever experienced a self-managed .docx
DB1 What Ive observedHave you ever experienced a self-managed .docx
 
DB Response 1I agree with the decision to search the house. Ther.docx
DB Response 1I agree with the decision to search the house. Ther.docxDB Response 1I agree with the decision to search the house. Ther.docx
DB Response 1I agree with the decision to search the house. Ther.docx
 
DB Response prompt ZAKChapter 7, Q1.Customers are expecting.docx
DB Response prompt  ZAKChapter 7, Q1.Customers are expecting.docxDB Response prompt  ZAKChapter 7, Q1.Customers are expecting.docx
DB Response prompt ZAKChapter 7, Q1.Customers are expecting.docx
 
DB Topic of Discussion Information-related CapabilitiesAnalyze .docx
DB Topic of Discussion Information-related CapabilitiesAnalyze .docxDB Topic of Discussion Information-related CapabilitiesAnalyze .docx
DB Topic of Discussion Information-related CapabilitiesAnalyze .docx
 
DB Instructions Each reply must be 250–300 words with a minim.docx
DB Instructions Each reply must be 250–300 words with a minim.docxDB Instructions Each reply must be 250–300 words with a minim.docx
DB Instructions Each reply must be 250–300 words with a minim.docx
 
DB Defining White Collar CrimeHow would you define white co.docx
DB Defining White Collar CrimeHow would you define white co.docxDB Defining White Collar CrimeHow would you define white co.docx
DB Defining White Collar CrimeHow would you define white co.docx
 
DAVID H. ROSENBLOOMSECOND EDITIONAdministrative Law .docx
DAVID H. ROSENBLOOMSECOND EDITIONAdministrative Law .docxDAVID H. ROSENBLOOMSECOND EDITIONAdministrative Law .docx
DAVID H. ROSENBLOOMSECOND EDITIONAdministrative Law .docx
 

Recently uploaded

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
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
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 

Recently uploaded (20)

Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
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
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 

Topic 1 Rubric Standards Graphic OrganizerCriteria Value.docx

  • 1. Topic 1 Rubric: Standards Graphic Organizer Criteria % Value 1: Unsatisfactory 2: Less than Satisfactory 3: Satisfactory 4: Good 5: Excellent % Scaling 0% 65% 75% 85% 100% Content Subject Knowledge 50% Chart is incomplete or missing. Chart is missing 2 or more standards. Chart is missing one of the standards. Chart is complete with all standards. Chart is complete with all standards required. Content Comprehension 30% Content is incomplete or omits most of the requirements stated in the assignment criteria. Content is incomplete or omits some requirements stated in the assignment criteria. Content is complete, but somewhat inaccurate and/or irrelevant. Research is inadequate in relevance, quality, and/or timeliness. Content is comprehensive and accurate. Research is adequate,
  • 2. timely, and relevant, and addresses all of the issues stated in the assignment criteria. Content is comprehensive, accurate, and persuasive. Research is adequate, timely, and relevant, and addresses all of the issues stated in the assignment criteria. Paper Format (1" Margins 12 point-font Double Spaced Times New Roman, Arial, or Courier) 10% GCU Template is not used appropriately or documentation format is rarely followed correctly. GCU Template is used, but some elements are missing or mistaken; lack of control with formatting is apparent. GCU Template is used; Formatting is correct, although some minor errors may be present. GCU Template is fully used; There are virtually no errors in formatting style. All format elements are correct. Mechanics of Writing (includes spelling, punctuation, grammar, language use) 5% Surface errors are pervasive enough that they impede communication of meaning. Inappropriate word choice and/or sentence construction are employed. Frequent and repetitive mechanical errors distract the reader. Inconsistencies in language choice (register) and/or word choice are present. Sentence structure is correct but not varied. Some mechanical errors or typos are present, but are not overly distracting to the reader. Correct and varied sentence structure and audience-appropriate language are employed. Prose is largely free of mechanical errors, although a few may be present. The writer uses a variety of effective sentence structures and figures of speech. The writer is clearly in command of standard, written academic English. Research Citations (in-text citations for paraphrasing and direct
  • 3. quotes, and references page listing and formatting, as appropriate to assignment and style) 5% No references page and no citations are included. References page is present, but citations are inconsistently used. References page is included. Sources are appropriately documented, although some errors may be present. References page is present and fully inclusive of all cited sources. Documentation is appropriate and citation style is usually correct. In-text citations and a references page are complete. The documentation of cited sources is free of errors. © 2013. Grand Canyon University. All Rights Reserved. CIS3010: Assignment 2 – S2 2013 CIS 3010: Assignment 2 Due date: 21 October 2013 Value: 30% Please submit the CODE and OUTPUT for all programming questions. You will submit this assignment electronically in the ASSESSMENT area of the Study Desk. For the output, a screen dump is highly encouraged.
  • 4. IMPORTANT NOTES – PLEASE READ BEFORE YOU BEGIN WORK 1. This assignment prepares you for the examination and you should consider each hour devoted to the assignment as an hour devoted to exam preparation. 2. I urge you not to give up if you are unable to do all the questions. Do as many as you can and submit what you have done. In this assignment, you will use the CAR HIRE database. The CAR HIRE database including appropriate data will be made available on the USQ Oracle server. You can query these tables as if they are in your own schema but you are not permitted to insert or update data in these tables. The specification for the CAR HIRE database is as follows: The table descriptions appear below, including the column names, datatypes and the meanings for values in the columns. Familiarise yourself with the tables and the data. I_CAR I_CARGROUP I_MODEL I_CUSTOMER I_BOOKING Question 1 (25 marks) Write a stored procedure that accepts the model name of a car
  • 5. as the input parameter and provides the number of cars belonging to that model as the output parameter. The procedure should also display the description of the car model. Procedure: 1. Create the procedure that should have one IN parameter (p_model) and one OUT parameter (p_noofcars) 2. Use an implicit cursor and a SQL function to calculate the number of cars belonging to the particular car model and assign that value to the OUT parameter. 3. Use another implicit cursor to display the description belonging to the particular car model. Submit the code to create the procedure and the code to call the procedure in a PL/SQL block. Value for the input parameter for the procedure should be ‘FERR TR’. You should display the value of the OUT parameter returned, i.e. the number of cars belonging to the car model. Provide a screen dump of the output when the calling PL/SQL block is run. Question 2 (25 marks) Write a function that displays the most recent date of rental for a particular car (registration) for all completed bookings made for that car. Write a second function that displays the maximum rental period for a particular car (registration) for all completed bookings made for that car. For both the functions, you should check for completed bookings, i.e. miles_in is not null. Write ONE SQL statement that displays the registration, model name and cost for each car and calls the two functions to display the most recent date of rental and the maximum rental period for that car. Display the output of the SQL statement. Question 3 (25 marks)
  • 6. The car hire company is concerned about possible unauthorised changes to customer details that may compromise the company's security and privacy policies. You will create a database trigger to monitor such changes to some important columns in the I_CUSTOMER table. 1. Create a copy of the I_CUSTOMER table in your own schema by using the following command: CREATE TABLE N_CUSTOMER AS SELECT * FROM I_CUSTOMER; 2. Also create a table to store change logs (CUSTOMER_CHANGELOG) by using the following command: CREATE TABLE CUSTOMER_CHANGELOG ( cust_no NUMBER(5), cust_name VARCHAR2(20), contact VARCHAR2(20), log_date DATE); 3. Create a database trigger with the following specification: · fires AFTER an UPDATE on N_CUSTOMER table. · fires if there is any change to cust_name or contact columns of the N_CUSTOMER table. · fires for each row. · inserts a first row: the affected cust_no column, the OLD values of the cust_name and contact columns and the current date into the table CUSTOMER_CHANGELOG.
  • 7. · inserts a second row: the affected cust_no column, the NEW values of the cust_name and contact columns and the current date into the table CUSTOMER_CHANGELOG. 4. Test the trigger with the following specification: · Go ahead and make a change to N_CUSTOMER table by issuing the following command: UPDATE N_CUSTOMER SET cust_name = 'Peter Davis', contact = 'Sam Bogdanovich' WHERE cust_no = 2338; 5. Now, select all rows from the CUSTOMER_CHANGELOG table. This should display the old and new values of the changes you made due to firing of the trigger. Output all the rows of CUSTOMER_CHANGELOG table. Question 4 (25 marks) Create a PL/SQL function called findtotalcarmodels to return the total number of cars belonging to a particular model. The function should have a single IN parameter as model_name. You should then use an explicit cursor to count the number of cars belonging to that car model and return the final count. You must NOT use any implicit cursors, table joins, subqueries, set operators, group functions or SQL functions (such as COUNT) to create this function. Now, write ONE PL/SQL anonymous block that provides a report about car details. The full specification to create the PL/SQL anonymous block is as follows: · Using an explicit cursor, retrieve all car registration, cost and model name details (registration, cost & model_name) from the
  • 8. I_CAR table. · If the cost of the car is less than or equal to $50,000, we determine car cost category as “Budget Car”. If the car cost is between $50,000 and $100,000, the car cost category is “Standard Car”. For all other cars costing more than $100,000; the car cost category is “Premium Car”. Declare a local variable v_carcategory as VARCHAR2(40) to store car cost category. · Call the function findtotalcarmodels to get the total number of cars belonging to the model name for the car and store them in a local variable named v_totalcars. · Use an explicit cursor with a parameter that accepts car registration to find the most recent reservation made on the car. You will have to look at the date_reserved column from I_BOOKING table here. You cannot use the MAX function. Compare all the relevant dates to find the most recent one. · Display a report showing car registration, car cost category, car model name, total number of cars belonging to that model and the most recent reservation made on that car. · Finally, create an exception handler which fires when no rows are found. The exception handler should output the following message to the screen: “No rows found”. Important Notes: · You must NOT use any implicit cursors, table joins, subqueries, set operators, group functions or SQL functions (such as COUNT) to create the PL/SQL function or the PL/SQL anonymous block. · The PL/SQL anonymous block must be ONE block only. Do NOT write a block to perform each task of the specification above.
  • 9. MARKING CRITERIA 1. The code executes without error messages. 2. The code produces the required output. 3. The code addresses the specification and provides a solution to every element in the specification. 4. The code is well structured and, where applicable, adopts an optimal and sophisticated approach to PL/SQL. 1