Course Tutorial Site
Written by michaelmclaughlin
June 4th, 2014 at 12:05 am
Posted in
Subscribe to comments with RSS or TrackBack to 'Lab #9: MySQL'.
Copyright © 2025 Michael McLaughlin All rights reserved.
The Journalist template by Lucian E. Marin — Built for WordPress
Looks like you may need to reconcile the Transaction account numeric types with the numeric types that are showing in your check results, for example you say float for
TRANSACTION_AMOUNT
in the diagram, but your result returns a double type.Abel Goodwin
18 Jun 14 at 7:45 pm
“transaction | 3 | transaction_type | varchar”
from the result to check the Transaction table should show an INT, as the common_lookup_id is an int data type and the transaction_type is a foreign key of common_lookup_id.
Abel Goodwin
18 Jun 14 at 7:54 pm
Abel, All of your reported items are fixed.
michaelmclaughlin
18 Jun 14 at 8:00 pm
For the data types of the
AIRPORT
table your desired results for character data type for all three string type columns. Should only the code beCHAR(3)
and the rest beVARCHAR2(30)
?Abel Goodwin
18 Jun 14 at 8:22 pm
I don’t see the changes from Oracle Lab #9 here. Are we still awaiting these changes?
Brandon
18 Jun 14 at 8:38 pm
Brandon, Step #4 is completely new and contains the change.
michaelmclaughlin
19 Jun 14 at 2:34 pm
Yes, that’s correct. Only one column is limited to 3 characters.
michaelmclaughlin
19 Jun 14 at 3:17 pm
There is no Step #4 as you previously said in a comment.
As the information is not here is there a possibility of extending the deadline to Monday for full credit?
Abel Goodwin
19 Jun 14 at 3:41 pm
We’re missing the update_member_account create script with it’s check statement.
Abel Goodwin
19 Jun 14 at 3:57 pm
Just curious, when will the MYSQL part of lab9 be finished? THANKS!
Bryce Franzen
19 Jun 14 at 7:20 pm
Abel, It’s there now.
michaelmclaughlin
20 Jun 14 at 1:23 am
Bryce, It’s got the basics for grading. There are some indexes that I’ll need to add.
michaelmclaughlin
20 Jun 14 at 1:24 am
Abel, It’s a time consuming process with all the changes to have parallel documents with the different dialect. Step #4 is there now.
michaelmclaughlin
20 Jun 14 at 1:25 am
3.b reads, “You need to create the AIRPORT table.”
it should be, “You need to create the Unique Index for the AIRPORT table, named nk_airport”.
Abel Goodwin
20 Jun 14 at 12:58 pm
Abel, great catch. I’ve fixed it.
michaelmclaughlin
22 Jun 14 at 12:08 am
There is a mistake in path to the reference to the previous lab8 sql file. Instead it calls the lab9 file in the lab8 folder. This mistake is at the beginning of this post.
Matthew Ary
23 Jun 14 at 6:55 pm
Matthew, Good catch, it’s fixed.
michaelmclaughlin
24 Jun 14 at 12:03 pm
Step 3g has the initial instructions from step 3e.
Matthew Mason
24 Jun 14 at 9:44 pm
Matt, Great catch, it was wrong in both Oracle and MySQL versions. They’re both fixed.
michaelmclaughlin
25 Jun 14 at 12:31 am
In step 3G I needed to add this to the top of your setup script for mine to run properly.
Nathan Birch
7 Nov 14 at 5:55 pm
Nathan, That’s not where you should have made the change. You should insert those two lines at the beginning of Lab #9, Step 3(g). That means the it should be in the
apply_mysql_lab9.sql
script.michaelmclaughlin
8 Nov 14 at 2:25 am
In step 2, the table representing the rows to be inserted includes three rows for the
RENTAL_ITEM
table. But these rows already exist in the database.Justin Jaynes
14 Nov 14 at 2:01 pm
There’s a discrepancy on the first transaction instruction. we are instructed to create
payment_account_number
asvarchar(19)
, but the expected result shown isvarchar(20)
.Robert Thorne
7 Mar 15 at 4:21 pm
Robert, Thanks for catching that, it’s now fixed.
michaelmclaughlin
7 Mar 15 at 6:15 pm
Step 2 says 9 rows in set, but there are less in the query.
Jeremy
13 Mar 15 at 9:40 am
Jeremy, Yes, the row count was inccorect. Now, it’s fixed.
michaelmclaughlin
13 Mar 15 at 9:50 am
The seed account list procedure and the update member account procedure need to have the who audit columns changed from 2 to 1002 if the students are working in
_ri2
otherwise it violates the foreign key constraints.Jeremy
13 Mar 15 at 10:13 am
Jeremy, Lab #9 is fixed for the
created_by
andlast_updated_by
columns.michaelmclaughlin
24 Mar 15 at 10:43 pm