| Multiple Queries into different columns [message #576133] |
Thu, 31 January 2013 22:59  |
 |
nibugeorge
Messages: 5 Registered: January 2013 Location: USA
|
Junior Member |
|
|
I am trying to validate a monthly report so was trying to write queries to get different criteria into one table.
So my first query returns all the product,second query returns all the enrolled customers, 3rd query returns all the cancelled customers and 4th query returns all the newly enrolled for a month. Is there a way I can pass the first query results into 1st column, 2 query results into 2nd column, 3 query results into 3rd column and so on.
I tired writing the SQL several different ways and have spent a day on it and still cannot figure it out. If anybody could help with this it will be highly appreciated. I am using SQL Developer.
Thanks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Multiple Queries into different columns [message #576154 is a reply to message #576149] |
Fri, 01 February 2013 00:57  |
 |
Michel Cadot
Messages: 54236 Registered: March 2007 Location: Nanterre, France, http://...
|
Senior Member Account Moderator |
|
|
Please read OraFAQ Forum Guide and How to use [code] tags and make your code easier to read.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code, use code tags and align the columns in result.
Use the "Preview Message" or "Preview Quick Reply" button to verify.
Also always post your Oracle version, with 4 decimals.
With any SQL or PL/SQL question, please, Post a working Test case: create table and insert statements along with the result you want with these data then we will be able work with your table and data. Explain with words and sentences the rules that lead to this result.
Do NOT use SELECT in SELECT clause until you'll be an expert in SQL and know what you do.
Regards
Michel
|
|
|
|