Here is a query i have and need to display results in column wise. But from this query i am getting all results in one column.
SELECT 
     ( SELECT COUNT(DISTINCT asn) 
         FROM table_name  
        WHERE 1=1 
          AND status IN('Failure','saved','Successful') 
          AND DATE(created_on) BETWEEN '20161020' AND '20161130'
     ) status
But i need result some thing like
Failure | saved | Successful
12           10         15
How can i acheive this ? Any help would be greatly appreciated.
 
    