Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2003
    Posts
    3

    Unanswered: maybe is a stupid question.. about CASE

    I have a little query in access ..now i must write it in T-Sql

    the original...
    (MSG.IDLINGUA = IIF( EXISTS
    (SELECT * FROM ESMESSAGGI AS MSG WHERE MSG.IDLINGUA = [@idLingua] AND MSG.IDMESSAGGIO = BITS.IDDESCR),
    [@idLingua], LDEF.IDLINGUA))


    I can't be able to assign a select value at my field... IDLINGUA to perform another select..
    Of course I have used the "select case when exists"

    Anyone could be help me ?

  2. #2
    Join Date
    Jun 2003
    Location
    Ohio
    Posts
    12,592
    Provided Answers: 1
    Post the code you tried that failed.
    If it's not practically useful, then it's practically useless.

    blindman
    www.chess.com: "sqlblindman"
    www.LobsterShot.blogspot.com

  3. #3
    Join Date
    Aug 2005
    Posts
    9
    By the reference on your where clause to a table or alias called "Bits", it seems this is part of a larger query.
    Please, post your whole query.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •