Here is the complete code. I do have a table named lecturer. If they aren't joined properly, how can I fix it so they are properly joined? Thanks.
select attendance.student_id as "StudentID", substr(student_fname,1,1) || '-' || student_lname as "Name",
company_name as "Comany_Name"...