Afficher un message
Vieux 10/09/2007, 03h17   #3
Ray
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Multiple records in one row

The number of products will be determined by the "items" table. Here
is the query as I have it before any rotating and such. The select *
is for ease of use while in development.

select permutations.location_key, permutations.location_name,
permutations.item, permutations.Currency_Code, pp.price --
permutations.*, pp.*
from
(select * from item
cross join location) permutations
left join productPrice pp
on permutations.item_key = pp.item_key and
permutations.location_key = pp.location_key
order by permutations.location_key, permutations.Item_key

  Réponse avec citation
 
Page generated in 0,05203 seconds with 9 queries