Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Data modeling issue

Hello folks,

can someone please say..what i did is correct or wrong??

datamodelling.png2.png

please let me know...what i did is correct or not..?

thanks

Venky

8 Replies
Anonymous
Not applicable
Author

The corrected version looks much better than the original.  Still there are issues.

1. Instead of using the composite key, I'd rather linked them by ProductID and removed UnitPrice from the Product table.  The reason - price is most likely the attribute of the order detail than of the Product.  Same Product may have different price in different orders.

2. Employee table is a data island - is it intentional?

Not applicable
Author

3.png

is this correct bro????

maxgro
MVP
MVP

2

there are 2 employee fields but with different names

maybe they are the same?

Anonymous
Not applicable
Author

Data model looks reasonable now.

I possibly would join orders and order details in one table - but maybe not...  You can keep it this way of course.

Not applicable
Author

do you mean first name and last name?

Not applicable
Author

if i join both orders table and order details..i am getting different values..so i didnt join them mov

Anonymous
Not applicable
Author

Yes, if you join them, you need to take special measures to avoid data distortion because it is one-to-many relation.  You'll be fine without joining

Anonymous
Not applicable
Author

I assume maxgro meant EmployeeID in Orders but EmpID in Employees.  You've fixed it already.