All pastes #967381 Raw Edit

Miscellany

public text v1 · immutable
·published 2008-04-02 11:32 UTC
rendered paste body
-- bring back the product assocation ids
-- get the associated product ids from those associations
-- get the info for those associatiod_product ids

SELECT fldProductID,fldProvider,fldAmount FROM defaqto_erc_fee_incentive WHERE 
fldProductID IN

(SELECT da.ASSOCIATED_PRODUCT_ID FROM defaqto_associations as da 

LEFT join defaqto_fixed_data AS d ON d.fldProductID = da.PRODUCT_ID

WHERE d.fldProductID = "189394")

-- AND fldFeeType != 'NULL'

AND fldFeeType IS NOT NULL
;