Using postgresql 7.4

I'm attempting my first union query in my site. Is this even close to being correct syntax?

SELECT Sum(tbl95.col28) AS SumOfcol28, "cleared" AS status
FROM tbl95
GROUP BY tbl95.col2, tbl95.col13, tbl95.col17, tbl95.col39
HAVING ((tbl95.col2=8478) AND (tbl95.col17=0) AND (tbl95.col39 Is Not Null))


UNION ALL SELECT Sum(tbl95.col28) AS SumOfcol28, "voided" AS status
FROM tbl95
GROUP BY tbl95.col2, tbl95.col13, tbl95.col17, tbl95.col39
HAVING ((tbl95.col2=8478) AND (tbl95.col17=1))


UNION ALL SELECT Sum(tbl95.col28) AS SumOfcol28, "outstanding" AS status
FROM tbl95
GROUP BY tbl95.col2, tbl95.col13, tbl95.col17, tbl95.col39
HAVING ((tbl95.col2=8478) AND (tbl95.col17=0) AND (tbl95.col39 Is Null));