Hi Friends,
The Q.12 is
Given CMP beans CustomerBean, OrderBean and LineItemsBean with the following relationships:
CustomerBean (1) <--> OrderBean (n)
OrderBean(1) <--> LineItemsBean(n)
Which will return all orders that have line items? (Choose all that apply.)
A. SELECT DISTINCT o FROM Order o, IN (o.lineItems)li
B. SELECT DISTINCT OBJECT(O) FROM Order o, IN(o.lineItems) li
C. SELECT OBJECT(o) FROM Order o WHERE o.lineItems = 0
D. SELECT OBJECT(o) FROM Order o
The correct answers are listed as B and D.
B is fine. But how the answer D is TRUE?
Could anybody please explain?
Thanks.