TorrediPisa
Programmer
Hello people.
Suppose you have a Clients Table
ID Name
01 Smith
02 Johnson
03 Brown
And two Tables: Orders1 and Orders2 like:
ORDERS1
ID ID_Client Description
01 01 Beer
02 01 Wine
03 02 Whisky
04 03 Brandy
ORDERS2
ID ID_Client Description
01 02 Beer
02 02 Lemonade
03 03 Whisky
04 03 CocaCola
I would like to obtain this report:
ID Client Orders1 Orders2
01 Beer
01 Wine
02 Whisky Beer
02 Lemonade
03 Brandy Whisky
03 CocaCola
If I link the Clients Table to both the Orders1 & Orders2 Tables I obtain a cartesian report.
Is there a way to do that in SQL?
Thanks for yr help.
Regards
TdP
Suppose you have a Clients Table
ID Name
01 Smith
02 Johnson
03 Brown
And two Tables: Orders1 and Orders2 like:
ORDERS1
ID ID_Client Description
01 01 Beer
02 01 Wine
03 02 Whisky
04 03 Brandy
ORDERS2
ID ID_Client Description
01 02 Beer
02 02 Lemonade
03 03 Whisky
04 03 CocaCola
I would like to obtain this report:
ID Client Orders1 Orders2
01 Beer
01 Wine
02 Whisky Beer
02 Lemonade
03 Brandy Whisky
03 CocaCola
If I link the Clients Table to both the Orders1 & Orders2 Tables I obtain a cartesian report.
Is there a way to do that in SQL?
Thanks for yr help.
Regards
TdP