File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes if else in query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "if else in query" Watch "if else in query" New topic
Author

if else in query

Pranav Sharma
Ranch Hand

Joined: Oct 27, 2003
Posts: 258
i need to write a query which does the following.



Is this possible
Richard Green
Ranch Hand

Joined: Aug 25, 2005
Posts: 536
http://www.devx.com/tips/Tip/15633


MCSD, SCJP, SCWCD, SCBCD, SCJD (in progress - URLybird 1.2.1)
 
 
subject: if else in query
 
Similar Threads
Question of using SqlResultSetMapping
Hibernate: Different Join in Save() and Get()
Query help
Help required for hibernate query (HQL) calling stored procedure
Help required for hibernate query (HQL) calling stored procedure