Course Tutorial Site
Written by michaelmclaughlin
June 29th, 2014 at 4:24 pm
Posted in
Subscribe to comments with RSS or TrackBack to 'Lab #11: Oracle'.
Copyright © 2025 Michael McLaughlin All rights reserved.
The Journalist template by Lucian E. Marin — Built for WordPress
should rental item after merge have 11,532 items after the merge? because there are 12 rows in the rental item table before the merge that places 11520 rows into it.
Davies
1 Jul 14 at 8:34 pm
Where is step 5?
Kent
1 Jul 14 at 11:56 pm
Row count for step 2 says 11,520. Should it not be 11,532?
Kent
1 Jul 14 at 11:58 pm
Kent, Good catch. I’ve updated it.
michaelmclaughlin
2 Jul 14 at 12:28 am
Item #6 should have been #5.
michaelmclaughlin
2 Jul 14 at 12:31 am
On #5 you are asking us to query for 2010, but the validation shows 2009.
Cordon Davies
9 Jul 14 at 1:29 pm
Brother McLaughlin,
Are the numbers as shown in the table under “Oracle Validation” correct for our lab? I’m getting values nearly double.
Thanks.
Abel Goodwin
17 Jul 14 at 7:58 pm
You can ignore my previous comment. I had a mistake in my merge statement which was causing duplicate insertion.
Abel Goodwin
17 Jul 14 at 8:31 pm
The
AND
in the merge statements is not working for me. I was able to get it working by replacing with a comma, however. Is this okay?Justin Jaynes
25 Nov 14 at 1:41 pm
I think the “
115532
” is supposed to be “115533
” for merge #2 … and cross referencing lab 10 … and from trying to do lab 11 myselfBenjamin Walker
28 Nov 14 at 11:12 pm
I meant “11533” not “115533”, this occurs twice btw …
another problem I think …
is supposed to be
Benjamin Walker
28 Nov 14 at 11:51 pm
Benjamin, Yes, you’re right. I’ve made the change.
michaelmclaughlin
29 Nov 14 at 11:02 am
Benjamin, Yes, you’re right. We added an insert in an earlier lab and I forgot to update this page.
michaelmclaughlin
29 Nov 14 at 11:05 am
Justin, You’re right. It should always be a comma.
michaelmclaughlin
29 Nov 14 at 11:06 am
The result set for part one will print out a comma at the thousandths place.
Sam Graham
1 Dec 14 at 4:49 pm
PART 3
You can use the following
MERGE
statement shell for theRENTAL_ITEM
table:should be for transaction
RJ
2 Dec 14 at 7:35 pm
If we are NOT calling lab 10, then shouldn’t we create the unique indexes in lab 11 as well?
RJ
2 Dec 14 at 9:45 pm
Sam, good catch. It’s fixed.
michaelmclaughlin
21 Dec 14 at 2:36 pm
RJ, yes, it is corrected.
michaelmclaughlin
21 Dec 14 at 2:47 pm
RJ, you’re right the indexes should be migrated but without calling Lab 10. I’ve added two sentences to Lab 11 with the instructions to migrate the indexes from Lab 10 to Lab 11.
michaelmclaughlin
21 Dec 14 at 3:21 pm
The template for the apply_oracle_lab11.sql file is calling lab 9 from the wrong folder. It currently reads:
when it should be:
Sam Barney
17 Mar 15 at 5:05 pm
This seems inconsistent with the output we are to compare against holding data from 2009. Is it 2009 or 2010?
Cole
17 Mar 15 at 8:48 pm
In step 5:
“Create a query that prints the following types of data for the year 2010.”
Should be:
“Create a query that prints the following types of data for the year 2009.”
Chis
20 Mar 15 at 3:55 pm
Chis, You’re right!
michaelmclaughlin
22 Mar 15 at 7:40 pm
Cole, I’ve updated it from 2010 to 2009.
michaelmclaughlin
22 Mar 15 at 7:43 pm
Sam, Great catch! I’ve made the change.
michaelmclaughlin
22 Mar 15 at 7:46 pm
Just noticed that in both step two and step three, there is an AND in the UPDATE SET statement instead of a “,”. The merge statement only worked for me when I changed the AND to a comma.
JImmy`
1 Jul 15 at 8:59 am
Jimmy, Good catch.
michaelmclaughlin
17 Sep 15 at 7:37 pm
I recieved an “unable to get a stable set of rows in the source tables” error
it was fixed after changing
to
Is this correct?
Chad Austin
15 Mar 16 at 8:26 pm
Chad, Yes. The change has been made in the page.
michaelmclaughlin
29 Apr 16 at 2:04 am
“you’re three Potter users” should contain ‘your’ not ‘you’re’.
Cam
24 Nov 17 at 6:12 pm
Yes, changed.
michaelmclaughlin
23 Dec 17 at 2:55 pm
In steps 4c and 4e, shouldn’t Rental Item Count be 11,533 (not 11,532)?
Tyler
3 Jul 18 at 7:31 pm