customs columns in select statement and combinations of selects (Oracle)
Hi,
I am trying to combine two reports (select statements) into one. Say I have one report, which has columns named A,B,C coming from some tables and a second report with columns B,C,D coming from some other tables. Now I want a report with columns A,B,C,D.
My first Idea (don't know, if this is the right way to do it), is to use somehow a union statement with the two selects I have.
For this I need to to expand the first select by a custom column named D and the second by a custom column named A.
How do I use a "select" together with custom columns. In Access I can do something like
"select A,B,C, null as "D" from some_table".
This would give me
A |B |C |D|
some value |some value |some value | |
some value |some value |some value | |
Then I do the same with my second select expanding it by an "A"-column and use a union.
How can I do this with an oracle database (later I will use Crystal Reports to generate the report)
Bookmarks