How will we work together with SQL repetitions?
-
There are two tables: tab1 tab2
trans# data price 1 01.10.2021 500 2 01.10.2021 600 3 02.10.2021 700
seller# data 1 01.10.2021 2 01.10.2021
What' returns?
Select tab1.trans#, tab1.data, tab1.price, tab2.seller# from tab1 LEFT JOIN tab2 on tab1.data = tab2.data
-
Always. http://sqlfiddle.com/
http://sqlfiddle.com/#!9/96c677/1 Five records will be returned records, it's coming.
data=01.10.2021
andtrans=1
Two records will be found (2 rows), then the same will be found for.data=01.10.2021
andtrans=2
andtrans=3
It'll be with null in joining, because there's no match.