About Question enthuware.oce-jpad.v6.2.575 :

Moderator: admin

Post Reply
stiekemaj
Posts: 8
Joined: Sun Jan 25, 2015 6:08 am
Contact:

About Question enthuware.oce-jpad.v6.2.575 :

Post by stiekemaj »

In my opinion, the second answer is incorrect, because the order entity is inner joined, not outer joined.
When all customers with a specific state does not have any placed orders, this state will not appear in the result. Because the question states that you want to find out the states from which customers placed orders and the number of orders for those states, I also want to see the states where there are no placed orders.

admin
Site Admin
Posts: 10045
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.oce-jpad.v6.2.575 :

Post by admin »

Since the question says that you want to find out the states from which customers placed orders, it clearly implies that you don't want the states from where no order was placed. So outer join is not valid here.
If you like our products and services, please help us by posting your review here.

stiekemaj
Posts: 8
Joined: Sun Jan 25, 2015 6:08 am
Contact:

Re: About Question enthuware.oce-jpad.v6.2.575 :

Post by stiekemaj »

Oh, never mind :) You're right!

Post Reply

Who is online

Users browsing this forum: No registered users and 34 guests