Queries needed to export to excel // Get all students and details SELECT * FROM students s left join users u on u.username = s.users_username SELECT * FROM students s left join users u on u.username = s.users_username left join drivers d on s.drivers_idDrivers = d.idDrivers left join classes c on c.idClasses = s.classes_idClasses // Get all drivers SELECT * FROM drivers d left join users u on u.username = d.users_username