-5
I have 3 tables, I would like the return of select comes with value 0 when it is not in the related table.
the example shows the option data it contains in the poll table, the more I would like q to show 0 if it does not contain in the poll table.
These tables refer to a satisfaction survey, I would like to get the result of select to insert in the Chart.
has several questions and 3 options to choose, I have to show as per the image below, even if ñ has vote I have to show the name.
Just choose the right Join, and use
coalesce(coluna, 0)
. You can learn more about Joins right here on the website.– Bacco