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?
28 articles posted by this person
Showing 28 of 684 articles.
Currently 16 other people reading this forum.


 UWA week 43 (2nd semester, study break) ↓
SVG not supported 9:30am Thu 24th Oct, Mengxi L.

It's important to follow the instructions closely and use a subquery where indicated, as failure to do so may lead to losing marks.


SVG not supported 10:00pm Mon 21st Oct, Mengxi L.

ANONYMOUS wrote If you know how to perform a left outer join, understanding a right outer join becomes easy because the logic is essentially the same but reversed.


SVG not supported 4:09pm Mon 21st Oct, Mengxi L.

BCNF requires that for any non-trivial functional dependency in a relation, X must be a superkey. This means that the left-hand side of the functional dependency must be a superkey for the relation. The answer should be d. Because in all o...


 UWA week 41 (2nd semester, week 11) ↓
SVG not supported 2:42pm Tue 8th Oct, Mengxi L.

For Q5, I recommend closely following both the ERD model and the case study.


SVG not supported 2:36pm Tue 8th Oct, Mengxi L.

For the SQL section, you receive marks instantly because you can check your answers in your first attempt. And MCQs allow only one attempt.


 UWA week 39 (2nd semester, week 9) ↓
SVG not supported 3:05pm Tue 24th Sep, Mengxi L.

I think these two pictures you provided describe the same concept regarding a 1 1 relationship with mandatory participation on one side. Client is designated as the parent (since every client exists, even if they don't have a preference).Preference is...


SVG not supported 1:50pm Tue 24th Sep, Mengxi L.

You can have a look at Week 7 slide, these are very helpful.


 UWA week 38 (2nd semester, week 8) ↓
SVG not supported 3:00pm Tue 17th Sep, Mengxi L.

Yes, you can do project 2 with someone else.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported
lab query 👍x1  (both)
8:17pm Sat 14th Sep, Mengxi L.

You can use "SELECT FROM" table name to take a look.


SVG not supported 8:08pm Sat 14th Sep, Mengxi L.

You are correct in using EXCEPT with IN, as it achieves the same goal. The hint suggests using UNION likely for clarity or to explicitly combine job types 'R' and 'H' before filtering. It is simply an exercise in using UNION, but both approaches shou...


SVG not supported 5:32pm Thu 12th Sep, Mengxi L.

It is typically sufficient to connect the entities (tables) themselves.


SVG not supported 3:15pm Wed 11th Sep, Mengxi L.

I think being a nominated driver does not constitute "doing business" with the company, nominated drivers are recorded as part of a vehicle hire transaction, only their information is recorded.


SVG not supported 3:09pm Wed 11th Sep, Mengxi L.

Dr. Nasim has provided some good samples of how to write these dictionaries in the slides on LMS.


SVG not supported 10:53am Wed 11th Sep, Mengxi L.

You should not write down the Foreign Keys in your dictionaries; all four of your dictionaries should match your conceptual ERD diagram.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported 9:21pm Fri 6th Sep, Mengxi L.

GROUP BY in SQL is to group rows that share a common value in one or more columns so that you can apply aggregate functions (like AVG(),COUNT(), etc.) on each group separately. Without GROUP BY, aggregate functions will operate on the entire result s...


SVG not supported 7:35pm Fri 6th Sep, Mengxi L.

I think youou can solve the problem both ways,using a subquery with NOT IN,or using a LEFT JOIN to achieve the same result. But the hint encourages the use of a subquery to practice that method. You can have a try with both approaches in your terminal...


SVG not supported 7:27pm Fri 6th Sep, Mengxi L.

"Where" filters rows before any grouping or aggregation is done,you cannot use aggregate functions (like AVG, COUNT, etc.) directly in the "WHERE" clause because the aggregation happens after the filtering is done. "Having" is used specifically to fi...


SVG not supported 8:55pm Thu 5th Sep, Mengxi L.

yeah, I know what you mean. Our expected output based on the given data should be both IRN and IWS. But when we're intersecting the results of two queries,there are no common item ids between these two, this part of the query is returning nothing,as ...


SVG not supported 8:08pm Thu 5th Sep, Mengxi L.

I think it s great that you are considering the billing and invoicing aspect. It makes sense to include an invoice or billing table to link all the relevant data together (e.g., client, vehicle, tariffs, number of days hired, insurance details),whi...


SVG not supported 7:52pm Thu 5th Sep, Mengxi L.

1.Yes, there can be relationships between multiple entities.For example, as per the case study, a vehicle can be related to a depot (where it is stored or picked up) and a client (who hires it).You are free to infer and add additional relationships a...


SVG not supported 7:44pm Thu 5th Sep, Mengxi L.

Based on the limited data provided, we would get the output "IWS." For this question, we need to select the item ids that are either IRN (associated with 'INK-RESIN') or IWS (associated with 'INK-WRSOL'), and then remove(we should use another operati...


SVG not supported 10:32pm Tue 3rd Sep, Mengxi L.

If you're unsure how to write the data types in the dictionary, you can refer to a lab previous database file (such as DreamHomeRental.db or printing.db) and use the ".schema" to review them. The notation (N x) should indicate an integer with a lengt...


 UWA week 35 (2nd semester, week 6) ↓
SVG not supported
CITS1402 👍x1  (all 5)
7:13pm Thu 29th Aug, Mengxi L.

I think the correct answer shoulb be 6. First we compute the projection a,b from R, we can get (1,2) and (2,2)(we will delete the duplicate row), then the projection a,c from T (3,2)(2,2)and(1,2), lastly we perform the Cartesian product,which involves ...


SVG not supported 6:15pm Thu 29th Aug, Mengxi L.

Project will be graded based on the performance in the take home test.


SVG not supported 5:52pm Thu 29th Aug, Mengxi L.

You are encouraged to identify fan trap and chasm trap in the first project. But don't worry, you will be provided a solution ERD after project1. You can proceed with Project 2 using this ERD.


SVG not supported 5:39pm Thu 29th Aug, Mengxi L.

As you said An entity type is a broader classification that groups similar entities together, it contains structure and properties. An entity, we can see it as a single instance of entity type. In ER diagrams we can use the rectangle labeled (e.g "St...


SVG not supported 4:30pm Wed 28th Aug, Mengxi L.

yes, C is the correct answer.


SVG not supported 12:01pm Tue 27th Aug, Mengxi L.

All column names in SELECT list must appear in GROUP BY clause unless name is used only in an aggregate function. For this solution, we "SELECT job id, po date", but only "GROUP BY job id".

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