This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Convert this SQL to EJB QL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Convert this SQL to EJB QL" Watch "Convert this SQL to EJB QL" New topic
Author

Convert this SQL to EJB QL

kaliappan durairaj
Greenhorn

Joined: Nov 24, 2008
Posts: 9
Hi can anyone help me out in converting the following SQL query to EJB QL, the following nvl fuction is not valid for EJB QL and i am searching for an equivalent function that work in EJB QL.

select * from table1 where primarycolumn like '123%' and nvl(column2, '###') like '%'
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Convert this SQL to EJB QL