How to reformat Oracle SQL quadratic-equation solver script?
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;