Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: How to write this query

    You can use grouping to denormalize more efficiently, like so:

    SELECT

        MAX(CASE WHEN caption = 'lname' THEN value END) AS lname,

        MAX(CASE WHEN caption = 'charge' THEN value END) AS charge

    FROM test

    GROUP BY...

Viewing post 1 (of 1 total)