Den 2012-03-20 10:50 skrev nathanelrick såhär: > > sorry, my fault i want to say > > Select > (select ...) AS MyFIELD2 > IIF(MyField2 is null, select ...., Null) As MYField3 > From > >
Can't refer to a column like that, no. You could perhaps wrap it in a subquery: select ... MyFIELD2, case when MyFIELD2 is null then select ... end As MYField3 from ( Select (select ...) AS MyFIELD2 IIF(MyField2 is null, select ...., Null) As MYField3 From ) Subq Kjell -- -------------------------------------- Kjell Rilbe DataDIA AB E-post: [email protected] Telefon: 08-761 06 55 Mobil: 0733-44 24 64 [Non-text portions of this message have been removed] ------------------------------------ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Visit http://www.firebirdsql.org and click the Resources item on the main (top) menu. Try Knowledgebase and FAQ links ! Also search the knowledgebases at http://www.ibphoenix.com ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/firebird-support/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/firebird-support/join (Yahoo! ID required) <*> To change settings via email: [email protected] [email protected] <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
