Je hebt left join
nodig in plaats van right join
of je kunt ook de positie van tabellen veranderen
SELECT sum(steps), date(from_unixtime(td.db_date)) as stepdate
FROM time_dimension td
LEFT JOIN userdata u
ON date(from_unixtime(u.in_date)) = td.db_date
WHERE user_id = 8
GROUP BY date(from_unixtime(td.db_date))
ORDER BY stepdate DESC;
Dit veronderstelt echter time_dimension
tafel die als kalendertabel fungeert.