3
I have these queries below, independent, and I’m having difficulty grouping them a same query result, IE, leave the 6 columns requested by select
in the same consultation.
SELECT codigo_processo
,nome_produto_processo
,aprovado_uso
FROM pqin
WHERE codigo_processo = 22;
SELECT caminho_arquivo AS boletim tecnico
FROM pqaq
WHERE tipo_arquivo = 'BT'
AND codigo_processo = 22;
SELECT caminho_arquivo AS fispq
FROM pqaq
WHERE tipo_arquivo = 'MS'
AND codigo_processo = 22;
SELECT caminho_arquivo AS ficha de compensacao
FROM pqaq
WHERE tipo_arquivo = 'FC'
AND codigo_processo = 22;
Observing: codigo_processo
of pqin
corresponds with codigo_processo
of pqaq
Was the answer helpful to you? Don’t forget to mark it so it can be used if someone has a similar question!
– Sorack