I want to use union all with manual value, not from another table. And the values are:
|cSatuan1|cSatuan2|nkonversi|
=============================
| LTR | PCS | 1 |
| PCS | LTR | 1 |
I've made the query with my own way, but it gets error. here is the query:
SELECT csatuan2, csatuan1, nkonversi
FROM ms_metriks union all select 'LTR','PCS','1','PCS','LTR','1'
Can you tell me what's wrong with my query, and what is the right query?
Try this:
Here is one way you can do it:
I dare to add my experince with Oracle. I had there very similar problem, how to select usernames from table and add to result value 'admin':
There was a problem that this query:
returned a error:
As solution I add added 'dummy' from part with the same table:
And it works.
J.