I have a table that reads day_sunday, day_monday, etc. I need what data is stored for today's column if the value is true. For example 17 may is Wednesday so the query will be
For example 17 may is a Wednesday so the query will be
select * from table where day_wednesday
Similarly for tomorrow the query won't change except it should use field day_thursday in the where clause.
I have written the query below but it is not working.
select restaurant_id from day_matrix where "day_"||lower(dayname(now())) = 1;
This data needs to get joined in another query.