This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
sku, | |
pen.brand AS brand_en, | |
COALESCE(po.en_title, pen.base_title) AS base_title_en, | |
COALESCE(JSON_EXTRACT_SCALAR(pen.attributes, '$.product_subtitle'), po.en_size_info, | |
CASE | |
WHEN JSON_EXTRACT_SCALAR(pen.attributes, '$.vsku_size_info') IS NOT NULL THEN JSON_EXTRACT_SCALAR(pen.attributes, '$.vsku_size_info') | |
WHEN JSON_EXTRACT_SCALAR(pen.attributes, '$.size_info') IS NOT NULL THEN JSON_EXTRACT_SCALAR(pen.attributes, '$.size_info') | |
WHEN JSON_EXTRACT_SCALAR(pen.attributes, '$.size') IS NOT NULL AND JSON_EXTRACT_SCALAR(pen.attributes, '$.size_unit') IS NOT NULL AND JSON_EXTRACT_SCALAR(pen.attributes, '$.quantity') IS NOT NULL THEN CONCAT(JSON_EXTRACT_SCALAR(pen.attributes, '$.size'), JSON_EXTRACT_SCALAR(pen.attributes, '$.size_unit'), ' x ', JSON_EXTRACT_SCALAR(pen.attributes, '$.quantity')) | |
WHEN JSON_EXTRACT_SCALAR(pen.attributes, '$.size') IS NOT NULL AND JSON_EXTRACT_SCALAR(pen.attributes, '$.size_unit') IS NOT NULL THEN CONCAT(JSON_EXTRACT_SCALAR(pen.attributes, '$.siz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
mu.id_partner, | |
mu.statement_date, | |
mu.statement_nr, | |
mu.currency_code, | |
ft.name_en as fee_name, | |
mu.unique_line_ref1 as item_nr, | |
mu.delta_amount as amount | |
from noonbiprosel.mpst_union.mpst_union mu | |
left join noondwh.mpst.fee_type_v2 ft on ft.zsku= mu.zsku |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["IAEF2I031TD873DBKA","IAEF2I14761WAJQDMA","ISAF2I244ROAHXO5SA","ISAF2I965FRLQCO4EA","IAEF2I7051MVASP1UA","IAEF2I7423CDZ3AUXA","IAEF2I151Q205TO47A","ISAF2I028LVR4NI8AA","IAEF2I147HYCB1Y6RA","ISAF2I0872L79OCUEA","IAEF2I905ML6SBKMFA","IAEF2I049XY6LHFMKA","IAEF2I674X85DZDB0A","ISAF2I030RWGGG8F1A","IAEF2I245RXDGFTFFA","IAEF2I2260JHW1FVQA","IAEF2I150IX63P5XLA","ISAF2I028XGB3JYBKA","IAEF2I864Q4IFL9JBA","ISAF2I2488GZ6UTZDA","IAEF2I122LK4OQ79YA","IAEF2I195Q3CRT3R9A","IAEF2I16551X5VTQ5A","ISAF2I654PMC2DGILA","IAEF2I1966P95AWZPA","ISAF2I027L1W50ZNHA","ISAF2I245A2G5YYGKA","IAEF2I122EX20YW1OA","ISAF2I248B3BI0I4ZA","ISAF2I2177DZH47J7A","IAEF2I129YRI5JZ8EA","IAEF2I2475RM1AJ4YA","IAEF2I1873NWHR41LA","ISAF2I104SKI9X0S0A","IAEF2I705A4YILCT8A","ISAF2I900ZHHS9ZEJA","IAEF2I739O5GST336A","IAEF2I740WR9EDJRVA","IAEF2I241N7BXYBGLA","IAEF2I863OH7U3R94A","IAEF2I147HGHGECSEA","IAEF2I032NTO9X0C5A","IAEF2I24394BP5EZ3A","IAEF2I145DPF1046UA","IAEF2I050REKEF4VJA","ISAF2I633X3SAGEE2A","IAEF2I286H3BCK3JXA","IAEF2I033J9N458KOA","IAEF2I863EAK8R |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"exref": { | |
"exref_type_code": "mp_instant_order", | |
"mp_code": "nooninstant", | |
"external_ref": "IAEF2C248QIDWF9E9A" | |
}, | |
"lines": [ | |
{ | |
"entity_from": "entity::partner::ae::9411", | |
"entity_to": "entity::customer_address::ae::683eaaa9ea66648d0da2cfc8e07e5f45::2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WITH vsku_category AS ( | |
SELECT DISTINCT vsku, category, 'AE' as country | |
FROM noondwh.instant_instant_order.virtual_sku_item vsi | |
JOIN noonbinimuae.ref.category_AE cae USING(sku) | |
UNION ALL | |
SELECT DISTINCT vsku, category as category_sa, 'SA' as country | |
FROM noondwh.instant_instant_order.virtual_sku_item vsi | |
JOIN noonbinimuae.ref.category_SA cae USING(sku) | |
), | |
vsku_conv AS( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Answer(util.NoonBaseModel): | |
question_code: str | |
bool_answer: str = None | |
file_url: str = None | |
text_answer: str = None | |
date_answer: datetime = None | |
class SubmitDSAudit(util.NoonBaseModel): | |
wh_code: str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"question_groups": [ | |
{ | |
"group_title": "Group A", | |
"group_position": 1, | |
"questions": [ | |
{ | |
"question_code": "Q1", | |
"question": "Question 1", | |
"bool_input_condition": "mandatory", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with page_catalog_events as ( | |
SELECT | |
session_id, | |
uid, | |
JSON_EXTRACT_SCALAR(event_misc, "$.hid") AS phid, | |
JSON_EXTRACT_SCALAR(event_misc, "$.st") AS search_term, | |
locale, | |
SUBSTR(locale, 4, 2) AS country_code, | |
event_date, | |
FROM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cc_emails": [], | |
"fwd_emails": [], | |
"reply_cc_emails": [], | |
"ticket_cc_emails": [], | |
"ticket_bcc_emails": [], | |
"fr_escalated": false, | |
"spam": false, | |
"email_config_id": null, | |
"group_id": 84000293974, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cc_emails": [], | |
"fwd_emails": [], | |
"reply_cc_emails": [], | |
"ticket_cc_emails": [], | |
"fr_escalated": false, | |
"spam": false, | |
"email_config_id": null, | |
"group_id": 84000195231, | |
"priority": 1, |
NewerOlder