I need to select in my database all printers that are compatible with a particular selected supply, for example, the 155 code supply that is called 50FOZ00 . I make the query
below to select all supported printers:
SELECT suprimento
,modelo
FROM public.suprimento
,public.modelosuprimento
,public.impressoramodelo
WHERE public.suprimento.codigo = public.modelosuprimento.codigosuprimento
AND public.modelosuprimento.codigomodelo = public.impressoramodelo.codigo
AND public.suprimento.codigo = 155
And my return is coming correctly, this being displayed to me:
Can this return be displayed differently? Where in the first column is the supply and for each compatible printer model a new column is created? Getting something similar to this:
SUPRIMENTO | MODELO | MODELO | MODELO | MODELO | MODELO | MODELO | MODELO | MODELO | MODELO | MODELO |
50FOZ00 | MS310 | MS312 | MS315 | MS410 | MS415 | MS610 | MX310 | MX410 | MX511 | MX611 |