System generated commit, initial commit
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
SELECT testhist_id AS id,
|
||||
wo_number || '-' || wo_subnumber || '-' || testhist_product_id AS wo,
|
||||
testhist_testwith_version AS firmware_version,
|
||||
testhist_testwith_buildinfo_id AS firmware_build_id,
|
||||
MAX(CASE
|
||||
WHEN (char_name = 'M/S') AND charass_value LIKE 'MS%' THEN 'true'
|
||||
ELSE NULL
|
||||
END) AS multimodule,
|
||||
MAX(CASE
|
||||
WHEN (char_name = 'Series') THEN charass_value
|
||||
ELSE NULL
|
||||
END) AS product_type,
|
||||
MAX(CASE
|
||||
WHEN (char_name = 'Configuration-Product') THEN charass_value
|
||||
ELSE NULL
|
||||
END) AS product_config,
|
||||
to_char(testhist_timestamp, 'YYYY-MM-DD') AS date
|
||||
FROM wo
|
||||
LEFT JOIN charass ON wo_id = charass_target_id
|
||||
JOIN char ON charass_char_id = char_id
|
||||
JOIN itemsite ON wo_itemsite_id = itemsite_id
|
||||
JOIN item ON itemsite.itemsite_item_id = item.item_id
|
||||
JOIN mpe.testhist ON wo_id = mpe.testhist.testhist_wo_id
|
||||
WHERE char_name IN ('Series', 'M/S', 'Configuration-Product')
|
||||
AND testhist_testwith_item_number = '28207'
|
||||
GROUP BY wo_number,
|
||||
wo_subnumber,
|
||||
testhist_testwith_version,
|
||||
testhist_id,
|
||||
testhist_product_id,
|
||||
testhist_testwith_buildinfo_id
|
||||
ORDER By id DESC
|
||||
Reference in New Issue
Block a user