full join alternative for h2

2,768 views
Skip to first unread message

Christian Master

unread,
Dec 24, 2016, 7:11:22 AM12/24/16
to H2 Database
Hi,
i have 
tableA (date, moneyIn)

tabelB (date, moneyOut)

i need
select a.date, a.moneyIn, b.moneyOut
from
tableA a
full join
tableB b
a.date=b.date

How to do it in H2, i think full join is not supported?
thx
chris

Steve McLeod

unread,
Dec 26, 2016, 4:56:50 AM12/26/16
to H2 Database
I guess this is what you want:

SELECT ... FROM tableA a OUTER JOIN tableB b on a.date = b.date

Christian Master

unread,
Dec 27, 2016, 5:13:15 PM12/27/16
to H2 Database
OUTER JOIN doesn not work.
But LEFT OUTER JOIN does.
So LEFT OUTER JOIN seems to be like FULL Join, or am i missing something?
thx

Thomas Mueller Graf

unread,
Jan 1, 2017, 4:02:59 PM1/1/17
to H2 Google Group

--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscribe@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages