***********做查询100天,遇到的最难问题**************
如何写出如下条件的Query
t_Customer:
id CustCode
1 John
2 Mike
3 Jully
t_Product:
id ProductCode
1 Bike
2 Car
3 Tractor
t_CustomerProductCombination:
CustomerCode ProductCode Tax
John Bike 2
John Car 500
Mike Tractor 149
Jully Bike 2
Jully Car 388
Jully Tractor 149
要查询出下面的结果集:
(No column name) John Mike Jully
Bike 2 2
Car 500 388
Tractor 149 149
形式有点像三维表...
实在不知道该如何去做