If you want to include products that do not have all of the customvars defined, you need use the second format, so change the inner join to left join and you will get an entry for all products, whether they have the customvars defined or not.
Personally I think you would be better using Kev's SQL, it looks neater to me, particularly as you have so many customvars.
I am assuming that his SQL will return rows whether the customvars are present of not, haven't tried it though.
Regards,
Personally I think you would be better using Kev's SQL, it looks neater to me, particularly as you have so many customvars.
I am assuming that his SQL will return rows whether the customvars are present of not, haven't tried it though.
Regards,
Comment