How to reformat Oracle SQL quadratic-equation solver script? I was wondering how I might be able to tweak this SQL script:

ALTER SESSION
SET NLS_NUMERIC_CHARACTERS='. ';

SELECT 'Not a quadratic equation.' ans
FROM dual
WHERE &amp;&amp;A = 0
UNION
SELECT 'x = ' || to_char(-&amp;&amp;B/2/&amp;A)
FROM dual
WHERE &amp;A != 0
  AND &amp;B*&amp;B-4*&amp;A*&amp;&amp;C = 0
UNION
SELECT 'x1 = ' || to_char((-&amp;B+sqrt(&amp;B*&amp;B-4*&amp;A*&amp;C))/2/&amp;A) || ', x2 = ' || to_char(-&amp;B-sqrt(&amp;B*&amp;B-4*&amp;A*&amp;C))/2/&amp;A
FROM dual
WHERE &amp;A != 0
  AND &amp;B*&amp;B-4*&amp;A*&amp;C &gt; 0
UNION
SELECT 'x1 = (' || to_char(-&amp;B/2/&amp;A) || ',' || to_char(sqrt(-&amp;B*&amp;B+4*&amp;A*&amp;C)/2/&amp;A) || '), ' || 'x2 = (' || to_char(-&amp;B/2/&amp;A) || ',' || to_char(-sqrt(-&amp;B*&amp;B+4*&amp;A*&amp;C)/2/&amp;A) || ')'
FROM dual
WHERE &amp;A != 0
  AND &amp;B*&amp;B-4*&amp;A*&amp;C &lt; 0;


to treat the quadratic equation solver-output from the inputs (a=1, b=5, c=1) displayed in the below image:



as separate values contained within separate columns denoted "Answer 1" and "Answer 2" respectively; so "Answer 1" column contains -2.0871... and "Answer 2" column contains -4.791...   

I took a few hacks at it but I couldn't quite format according to the aforementioned.
Well i got the following to get the output in two columns:

SELECT 'Not a quadratic equation.' as "ans1", '0' as "ans2"
FROM dual
WHERE &amp;&amp;A = 0
UNION
SELECT 'x = ' || to_char(-&amp;&amp;B/2/&amp;A) as "ans1", '0' as "ans2"
FROM dual
WHERE &amp;A != 0
  AND &amp;B*&amp;B-4*&amp;A*&amp;&amp;C = 0
UNION
SELECT 'x1 = ' || to_char((-&amp;B+sqrt(&amp;B*&amp;B-4*&amp;A*&amp;C))/2/&amp;A) as "ans1", 'x2 = ' || to_char(-&amp;B-sqrt(&amp;B*&amp;B-4*&amp;A*&amp;C))/2/&amp;A as "ans2"
FROM dual
WHERE &amp;A != 0
  AND &amp;B*&amp;B-4*&amp;A*&amp;C &gt; 0
UNION
SELECT 'x1 = (' || to_char(-&amp;B/2/&amp;A) || ',' || to_char(sqrt(-&amp;B*&amp;B+4*&amp;A*&amp;C)/2/&amp;A) || '), ' as "ans1", 'x2 = (' || to_char(-&amp;B/2/&amp;A) || ',' || to_char(-sqrt(-&amp;B*&amp;B+4*&amp;A*&amp;C)/2/&amp;A) || ')' as "ans2"
FROM dual
WHERE &amp;A != 0
  AND &amp;B*&amp;B-4*&amp;A*&amp;C &lt; 0;