wood burning stoves 2.0*
The moose likes JDBC and the fly likes equivalent query 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 » Databases » JDBC
Bookmark "equivalent query" Watch "equivalent query" New topic
Author

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
Bartender

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: http://aspose.com/file-tools
 
subject: equivalent query