• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Mock Exam Q.12.page 428 HFEJB

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
THe question 12 on page 428 says answer D is correct. Does not this answer return all the order even the ones that have no line items.
Thanks

Here is the reference of the question
Given CMP beans
CustomerBean (1) <-----> OrderBean(n)
OrderBean (1) <------> LineItemBean(n)

Which will return all the orders that have line items?

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(o0
FROM Order o
 
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with you, Girija. The book seems wrong.
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This issue has been answered here.
 
Girija Siva
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Simon and Roger
 
pie. tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic