I have this picture:
As you can see the field \"promet\" can go from 1 to 9. However for tipprod = \"02\" promet has values of 1, 2, 3, 5 and 7.
I want to a
Going for a pure SQL answer:
First, create a query that returns the dummy variables:
SELECT A.tipprod, B.promet FROM (SELECT DISTINCT tipprod FROM T11_nezbirni) AS A, (SELECT DISTINCT promet FROM T11_nezbirni) AS B
And then just left join the rest of your query to that on tipprod and promet