Is there a way to JOIN fields from the dummy DUAL table in MySQL?
Say I have a
SELECT 1 as n1 FROM DUAL
n1
--
1
and a
SELECT 2 as n2 FROM DUAL
n2
--
2
Can I join both selects with a Join in some kind of query as...
SELECT 1 as n1 FROM DUAL JOIN (SELECT 2 as n2 FROM DUAL) ON 1=1
?
Here's one way...
Here's another
and you could just do
but I assume there's a reason you need the joins.