using SELECT commands you need to display as in the picture2 
Closed due to the fact that off-topic participants Denis , aleksandr barakin , Nicolas Chabanovsky ♦ Nov 14 '16 at 7:30 .
- Most likely, this question does not correspond to the subject of Stack Overflow in Russian, according to the rules described in the certificate .
|

type_id? - Viktorov