asked on
"SELECT * from interviewees";
+------------+-------------+----------------------------+-----+-------------+---------------+
| firstname | lastname | emailaddress | RID | candidateid | interviewdate |
+------------+-------------+----------------------------+-----+-------------+---------------+
I am trying (in the same query) to count the number of times the "candidateid" for each result appears in table 'timetable' then join the result as "ScheduleCount". As individual queries I can get it to work, but not as one!
select candidateid,Count(*) as schedulecount from timetable group by candidateid order by candidateid;
Databases are organized collections of data, most commonly accessed through management systems including schemas, tables, queries and processes that allow users to enter and manipulate the information or utilize it in other fashions, such as with web applications or for reporting purposes.
TRUSTED BY
ASKER