Viewing post 1 (of 1 total)
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...
June 19, 2003 at 4:53 pm
#462301