It's UWAweek 47

help1402

This forum is provided to promote discussion amongst students enrolled in CITS1402 Relational Database Management Systems.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
42 articles posted by this person
Showing 42 of 684 articles.
Currently 39 other people reading this forum.


 UWA week 44 (2nd semester, 1st exam week) ↓
SVG not supported 4:01pm Mon 28th Oct, Adam W.

If you look on the lecture content section of the LMS it states in the Transactions section 'Transactions are not included in the final exam.'


 UWA week 42 (2nd semester, week 12) ↓
SVG not supported 4:54pm Wed 16th Oct, Adam W.

I just had a student come to the support session showing that there was still issues with the way the question was checked, and if your instance of the quiz is for some reason using an older version of the question, and does not have the same error m...


SVG not supported 4:54pm Wed 16th Oct, Adam W.

I just had a student come to the support session showing that there was still issues with the way the question was checked, and if your instance of the quiz is for some reason using an older version of the question, and does not have the same error m...


SVG not supported 8:36pm Tue 15th Oct, Adam W.

The issue should be fixed, removing any reference to line numbers, you should now get Trigger failed as expected due to related po items Cannot delete pos record with associated po items job id po id po date vendor id ... 002 HHH...


SVG not supported 8:36pm Tue 15th Oct, Adam W.

The issue should be fixed, removing any reference to line numbers, you should now get Trigger failed as expected due to related po items Cannot delete pos record with associated po items job id po id po date vendor id ... 002 HHH...


SVG not supported 8:20pm Tue 15th Oct, Adam W.

The issue is now being looked into to see if the Python code is to blame, I'll report back on the progress.


SVG not supported 8:19pm Tue 15th Oct, Adam W.

This may be due to the way the question is checking for the expected output, also remember it is checking to make sure that the records cant be deleted, if there are any issues with line numbers, you can try remove any blank lines in your code. I'll l...


SVG not supported 6:46am Mon 14th Oct, Adam W.

What was suggested above would be the best guide, aside for that, there aren't any formatting checks in the embedded Python code, so as long as you select the po id and an aggregate function AS total cost, that side of it should be fine. If it can be ...


 UWA week 41 (2nd semester, week 11) ↓
SVG not supported 5:20pm Wed 9th Oct, Adam W.

At the earliest it would have to wait until after everyone has finished, and any students that may have requested extensions resits of the exam. It would also give out the answers to all of the questions which would potentially make them unusable in ...


SVG not supported 11:14am Tue 8th Oct, Adam W.

You shouldn't use any AS operations here, you only need to select the attribute mentioned, some Questions have Python code embedded using to lowercase sentence case etc. on student answers to standardise output, and attempt to make the questions case...


SVG not supported 11:08am Tue 8th Oct, Adam W.

We have turned off the penalties, you should be able to test repeatedly.


SVG not supported 11:07am Tue 8th Oct, Adam W.

There was a solution provided I believe, and the questions mention any ambiguous attributes entities that may exist. I would suggest trying the questions, and observing the output, that will show what the expected attributes are, and the question woul...


 UWA week 40 (2nd semester, week 10) ↓
SVG not supported 11:46am Thu 3rd Oct, Adam W.

Drops, Creates, Inserts, and a few Selects primarily, I believe the wording suggested that you can include triggers and views, but it wasn't compulsory. I would have to check with Mehwish, but if you have your own test data, that may be sufficient, as...


SVG not supported 11:43am Thu 3rd Oct, Adam W.

I beleive the assignment description mentions you need test dummy data to make sure the database works, so you would need to include the insert statements, of sufficient numbers to make sure it can test the database (so maybe 10 rows per table? or a ...


SVG not supported 11:39am Thu 3rd Oct, Adam W.

When there isnt a suitable natural key present, you would normally make a surrogate key like a unique ID number, so approach 1 would be best.


SVG not supported 10:23am Thu 3rd Oct, Adam W.

this may have been solved already by the original poster, but the intent of the 'use .txt .sql' files is to submit a script file (.sql extension but it is essentially just a .txt file and opens in notepad easily), the script file will be able to be r...


SVG not supported 10:19am Thu 3rd Oct, Adam W.

I would suggest that in the case of a natural key not being able to be used (like the example mentioned about multiple cars at the same time for the same client), you would create a surrogate primary key, such as HireID etc.


 UWA week 38 (2nd semester, week 8) ↓
SVG not supported
Lab 4 Q5 👍x1  (both)
3:23pm Thu 19th Sep, Adam W.

Hi, The question is incorrect, a more appropriate version of the question would be Find the item ids that are either 'IRN' (INK-RESIN) or 'IWS' (INK-WRSOL) from the po items table, but exclude any items that also exist in other purchase orders. However...


SVG not supported 3:05pm Wed 18th Sep, Adam W.

Hi, You are correct, the question appears to be flawed, and includes a situation that could not happen, but adjusting at this stage may cause everyone who attempted and got it right to have to re-do it at this late stage. the answer is still achievabl...


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported 2:41pm Wed 11th Sep, Adam W.

That is a good point, I didn't add in the check to make sure you need to use a sub-query, but it was a hint, and the question text didn't specifically say it HAD to be a sub-query, so use whatever works. One of the interesting things about SQL in gene...


SVG not supported 2:34pm Wed 11th Sep, Adam W.

A practical example could be if you had a table of student table with names, degree, and grade, you want to get the average grade for each different degree the students are taking. You would add GROUP BY degree, so it would get the AVERAGE(grade) for ...


SVG not supported 2:29pm Wed 11th Sep, Adam W.

I altered the question to give an error message referencing the unnecessary parenthesis as the reason for the error. It does appear SQLite doesn't like the use of them in SET statements and will raise an exception. Adam.


SVG not supported 2:02pm Wed 11th Sep, Adam W.

Yes it does appear to be an issue with the parenthesis, I tried adding them into the correct solution on the test interface and it does appear to break it, I'll investigate if this is an SQLite issue, or to do with the testing code implemented on the...


SVG not supported 12:49pm Wed 11th Sep, Adam W.

Well the book listed is very helpful with understanding the content, you may be able to find various versions of the text book online too.


SVG not supported 12:48pm Wed 11th Sep, Adam W.

Aliases would be any alternative names for the relationship.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported 5:40pm Wed 4th Sep, Adam W.

Hi, Yes you can, as long as you use the UML style notation that has been used in class. Thanks, Adam.


SVG not supported 3:31pm Wed 4th Sep, Adam W.

Well if the combination of attributes makes up the primary key, then it would be a composite primary key so you would show it as the key. It just also gets partially used by another table as the foreign key so it would just not be labelled as the for...


SVG not supported 4:19pm Tue 3rd Sep, Adam W.

Hi Jieh Chia, When identifying primary keys, you may encounter a situation where there are no natural primary keys, or the ones available aren't suitable, so you can essentially make a surrogate key (which is what you're suggesting). A surrogate key is...


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported 7:28pm Thu 29th Aug, Adam W.

Hi, Best to check which type of ER diagrams you will need to use, those are crow's feet notation https vertabelo.com blog crow-s-foot-notation If you want to model using UML https www.tutorialspoint.com uml uml basic notations.htm Have a look thro...


SVG not supported 7:24pm Thu 29th Aug, Adam W.

Hi, Having guides cheat-sheets can be really useful, so have a look at pages like this for reference https www.tutorialspoint.com uml uml basic notations.htm Thanks, Adam. ANONYMOUS wrote


SVG not supported 7:23pm Thu 29th Aug, Adam W.

Hi Harrison, 'Entity Entity is a concept to abstractly represent all instances of a group of similar things . Entity Type It is collection of entity having common attribute. Entity Instance An entity instance is a single occurrence of an entity....


SVG not supported 7:19pm Thu 29th Aug, Adam W.

Hi, One obvious way to identify fan traps early, is the M 1 M relations, and for Chasm is there being the presence of optional participations, this is a good post to look over that goes into some detail https stackoverflow.com questions 14328319 fa...


SVG not supported 3:34pm Wed 28th Aug, Adam W.

Hi, This has also been updated, there is an issue with the way the conditions in the having are evaluated. HAVING count(cust id) 2 AND city OR phone IS NOT NULL should be HAVING COUNT(cust id) 2 AND (city IS NOT NULL OR phone IS NOT NULL) You need to ...


SVG not supported 3:32pm Wed 28th Aug, Adam W.

Hi, Additionally, not using the GUI tools to generate SQL and automatically do a lot of the tasks can be beneficial with knowing how the SQL works. Thanks, Adam.


SVG not supported 3:26pm Wed 28th Aug, Adam W.

Hi, This has also been updated, there is an issue with the way the conditions in the having are evaluated. HAVING count(cust id) 2 AND city OR phone IS NOT NULL should be HAVING COUNT(cust id) 2 AND (city IS NOT NULL OR phone IS NOT NULL) You need to ...


 UWA week 34 (2nd semester, week 5) ↓
SVG not supported 10:06am Wed 21st Aug, Adam W.

Was anyone still having issues? If you want to break the question down into what it is asking for each part of the SQL statement for the SELECT part, it is asking to use one of the aggregate functions (https www.w3schools.com sql sql aggregate funct...


 UWA week 33 (2nd semester, week 4) ↓
SVG not supported 1:38pm Thu 15th Aug, Adam W.

I agree, it will be more beneficial to use SQLite instead of MYSQL, although it would be worth trying both for your own study purposes if you already have MYSQL installed to see the difference, but to use only the code that works in SQLite for use in...


SVG not supported 1:33pm Thu 15th Aug, Adam W.

Lab 3 should be set to release by Monday, 19 August 2024, 12 00 AM, the questions are ready, we are just checking over the content to make sure there are no issues. Thanks, Adam. ANONYMOUS wrote


SVG not supported
RDMS  (both)
4:07pm Wed 14th Aug, Adam W.

Hi, The late submission quiz is for anyone who couldn't submit the quiz by the original due date, if you have done it already, you don't need to do that one as well. Thanks, Adam.


 UWA week 32 (2nd semester, week 3) ↓
SVG not supported
SQL DATA TYPE 👍x2  (both)
8:23am Mon 5th Aug, Adam W.

There is also the fact we are using the SQLite implementation of SQL, which has a few slight differences, one of which is DATE types (from https www.sqlite.org datatype3.html) ... 2.2. Date and Time Datatype SQLite does not have a storage class set a...


SVG not supported 8:13am Mon 5th Aug, Adam W.

There were a few issues regarding the question text referring to the wrong data type, those have been fixed, each question that involved creating attributes will mention the required type and length due to very specific checking of output enabled. Whi...


 UWA week 31 (2nd semester, week 2) ↓
SVG not supported 4:14pm Wed 31st Jul, Adam W.

Hi Liang Yap, The questions will have a variable amount of checks on the structure of the SQL code, the initial ones such as the question mentioned do not specifically check for NOT NULL or any other restrictions. This is to give a little flexibility ...

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy