I need to create a 24/7 table in mysql, like the rows should be days(mon, tue…sunday) and the columns should be 24 hours(columns) like(1,2,3,…24).
what i did is created individual tables for days like one table for monday, one table for tuesday and so on, and their columns are 1,2,3,…24.
and finally did a UNION ALL to get all the rows together in the way i wanted, but the problem is the row(table) names are not getting displayed, because the union is only combining the columns and not the table names.
i exactly want 7 rows as days and 24 columns as hours, any help on how to do this.
Add an extra column to all your
SELECTs with the name of the day