add sample build of new target logic
This commit is contained in:
		
							parent
							
								
									e9bd81f352
								
							
						
					
					
						commit
						6e2e806f9b
					
				| @ -6,7 +6,7 @@ FROM pricequote.single_price_call( | ||||
|     'HCA10000B661100', | ||||
|     'v1:T..CSE..D', | ||||
|     50000 | ||||
| ) f | ||||
| ) f; | ||||
| 
 | ||||
| SELECT | ||||
| 	ui_json->'details' | ||||
| @ -16,7 +16,7 @@ FROM pricequote.single_price_call( | ||||
|     'HZP3E103E21D050', | ||||
|     'v1:C..BDL..', | ||||
|     50000 | ||||
| ) f | ||||
| ) f; | ||||
| 
 | ||||
| SELECT | ||||
| 	ui_json | ||||
| @ -26,9 +26,9 @@ FROM pricequote.single_price_call( | ||||
|     'HTI10754B12B024LXB04', | ||||
|     'v1:L.L.PLT..', | ||||
|     172000 | ||||
| ) f | ||||
| ) f; | ||||
| 
 | ||||
| SELECT * FROM pricequote.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100' | ||||
| SELECT * FROM pricequote.lastpricedetail l WHERE customer = 'HYBELS' AND l.partgroup = 'HZP3E100'; | ||||
| 
 | ||||
| SELECT | ||||
| 	pc.expl | ||||
| @ -39,8 +39,23 @@ FROM | ||||
| 	) pc ON TRUE | ||||
| WHERE | ||||
| 	qid  = 113173 | ||||
| 	AND qrn = 32 | ||||
| 	AND qrn = 32; | ||||
| 
 | ||||
| -- SELECT | ||||
| --     c.compset, | ||||
| --     c.stlc, | ||||
| --     c.floor, | ||||
| --     b.ds, | ||||
| --     b.chan, | ||||
| --     b.tier, | ||||
| --     b.vol, | ||||
| --     b.val, | ||||
| --     b.price, | ||||
| --     json_pretty(to_json(b.math)) math | ||||
| -- FROM | ||||
| --     pricequote.core_target c | ||||
| --     LEFT JOIN LATERAL pricequote.build_pricing_path_base (options||jsonb_build_object('entity','Anchor','attr',c.stlc,'val',c.floor,'func','Price')) b ON b.lastflag | ||||
| -- LIMIT 10000; | ||||
| 
 | ||||
| -- SELECT | ||||
| --     stlc, ds, chan, tier, vol, price, math | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user