Skip to main content

conditional maptips

Comments

1 comment

  • John Nerge
    You can do this using a one-to-one data link that uses the CASE expression:

     

    SELECT

     

    CASE

     

    WHEN Category = 'A'  THEN Field2

     

    WHEN Category = 'B' THEN Field3

     

    WHEN Category = 'C' THEN Field3

     

    END AS Field2

     

    Same expression, but condensed:

     

    SELECT

     

    CASE

     

    WHEN Category = 'B' OR Category = 'C' THEN Field3

     

    ELSE Field 2

     

    END AS Field2
    0

Please sign in to leave a comment.