what does the m. and r . mean? Is it referencing to a table name by its first letter?also other commands like dayname
i have tables called room,employee,meeting, and participants.
select dayname(m.date), count(*) from meeting m, room r where m.room_id=r.room_id group by weekday(m.date) order by weekday(m.date);
Thanks for taking your time on this to answer me
EMPLOYEE: +-----------+----------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------+----------+------+-----+---------+-------+ | staff_id | int(11) | NO |PRI | NULL | | | seniority | int(11) | YES | | NULL | | | lastname | char(30) | YES | | NULL | | | firstname | char(30) | YES | | NULL | | +-----------+----------+------+-----+---------+-------+
MEETING: +------------+----------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +------------+----------+------+-----+---------+-------+ | meeting_id | int(11) | NO |PRI | NULL | | | room_id | int(11) | YES |MUL | NULL | | | name | tinytext | YES | | NULL | | | date | date | YES | | NULL | | +------------+----------+------+-----+---------+-------+
PARTICIPANT: +------------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +------------+---------+------+-----+---------+-------+ | meeting_id | int(11) | YES |MUL | NULL | | | staff_id | int(11) | YES |MUL | NULL | | +------------+---------+------+-----+---------+-------+
ROOM: +---------+----------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +---------+----------+------+-----+---------+-------+ | room_id | int(11) | NO |PRI | NULL | | | name | char(50) | YES | | NULL | | +---------+----------+------+-----+---------+-------+