File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes equivalent query Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "equivalent query" Watch "equivalent query" New topic

equivalent query

Anandh Ramesh
Ranch Hand

Joined: Dec 15, 2004
Posts: 61
hi all,

i have to write a sql server query equivalent to the query given below. i am totally stuck at what to do... can someone help me out???, esp with that iif?
[ March 11, 2005: Message edited by: Anandh Ramesh ]

cheers,<br />Anandh
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

That's a very ugly query. But as far as I am aware, that is in a syntax SQL Server will understand. Someone may correct me, but IIF will only work on SQL Server.

Perhaps you can describe "Maintable" and what you are trying to select from it, then maybe someone can offer a suggestion of a better wayt of doing it.
[ March 01, 2005: Message edited by: Paul Sturrock ]

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
I agree. Here's the link:
subject: equivalent query
jQuery in Action, 3rd edition