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?
Displaying the 7 articles in this topic
Showing 7 of 684 articles.
Currently 142 other people reading this forum.


 UWA week 38 (2nd semester, week 8) ↓
SVG not supported

Login to reply

👍?
helpful
12:38pm Mon 16th Sep, Liang Y.

Good day, Would like to confirm that the logic behind this question is to find the item id that only exist once in the po_item table? Cheers Yap


SVG not supported

Login to reply

👍x5
helpful
1:01pm Mon 16th Sep, ANONYMOUS

I have constructed a query which when entering into SQLite3 correctly returns the output displayed in the expected results. However when I enter my answer into the lab submission page it gives me some error involving parenthesis. Could there be an issue with the automatic checking system?


SVG not supported

Login to reply

👍?
helpful
6:24pm Mon 16th Sep, Jejomar M.

Mee too I have accomplished to run it on my SQLite3 correctly but it is seems giving me an error about the unnecessary parentheses.


SVG not supported

Login to reply

👍?
helpful
6:30pm Mon 16th Sep, ANONYMOUS

I encountered the same problem, I was thinking to UNION first and EXCEPT the descr which INTERSECT both by using subquery, but it keeps showing unnecessary parenthesis, am I doing something wrong?


SVG not supported

Login to reply

👍?
helpful
3:44pm Tue 17th Sep, Tyson R.

I thought that I had it with this hint from https://stackoverflow.com/questions/58451528/parenthesis-in-sqlite-when-combining-union-and-except-statements

However; even with reformatting using what is mentioned in that post, and performing an intersection on a selection from (a union of exceptions), despite it running fine in my terminal - I'm getting the same 'you've used parenthesis incorrectly' error on moodle. I'm assuming this one may be because of the union within brackets, again...

Sadly it didn't solve it for me, but feels like it's getting closer anyway (assuming the moodle checker is correctly operating), but hopefully it helps someone else get theirs over the mark.


SVG not supported

Login to reply

👍?
helpful
11:19am Thu 19th Sep, ANONYMOUS

Hello, Still am getting the same error with "unexpected parentheses around UNION, INTERSECT or EXCEPT statements" Everything I've tried has worked with sqlite3 and is giving the right output, however the moodle submission just returns this error. Am I doing something wrong? Some guidance would be greatly appreciated.


SVG not supported

Login to reply

👍?
helpful
1:04pm Thu 19th Sep, Tyson R.

Hey all,

Managed to get this to run correctly with some guidance from the lab facilitator:

What was changed to remove this parentheses error:

  • Removed all parentheses from the query
  • As such, didn't nest/make any subqueries

The workflow was [with square brackets for legibility]: select -> intersect -> [[select -> except -> select] -> union -> [select -> except -> select]]`

GL

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