-1
In a single line:
548721 125 2 20836 20836 77821 77821 9999******9999 0 0 MASTERCARD 200 Cartao de Credito a Vista
My query:
SELECT
CASE data_id WHEN 17 THEN data_value ELSE 0 END AS bin_cartao,
CASE data_id WHEN 18 THEN data_value ELSE 0 END AS rede,
CASE data_id WHEN 96 THEN data_value ELSE 0 END AS bandeira,
CASE data_id WHEN 203 THEN data_value ELSE 0 END AS nsu_sitef,
CASE data_id WHEN 204 THEN data_value ELSE 0 END AS nsu_host,
CASE data_id WHEN 205 THEN data_value ELSE 0 END AS nsu_credito,
CASE data_id WHEN 160 THEN data_value ELSE 0 END AS autorizacao,
CASE data_id WHEN 16 THEN data_value ELSE 0 END AS aprovacao,
CASE data_id WHEN 16 THEN data_value ELSE 0 END AS aprovacao_adm,
CASE data_id WHEN 104 THEN data_value ELSE 0 END AS cartao,
CASE data_id WHEN 240 THEN data_value ELSE 0 END AS descricao,
CASE data_id WHEN 294 THEN data_value ELSE 0 END AS cod_modalidade,
CASE data_id WHEN 295 THEN data_value ELSE 0 END AS desc_modalidade
FROM
sale_media_data
WHERE
store_key = 2
AND pos_number = 52
AND ticket_number = 734701
AND DATE(start_time) = '2020-03-02';