How to use SQL Join Two Tables?
TableB
Code, Description
2 By Train
3 By Bus
4 By Fly
5 By Bike
TableA
Code ProductID Quantity
2 22 99
3 23 45
4 22 50
2 24 60
How Can I merge TableA and TableB, to TableC By SQL Query?
ProductID Train Bus Fly Bike
22 99 0 0 0
23 0 45 0 0
22 0 0 50 0
24 60 0 0 0