student table
|----------------------|
| student_id | name    |
|------------|---------|
| 1          | Richard |
| 2          | Emily   |
| 3          | Hans    |
|------------|---------|
lecturer table
|--------------------|
| lecturer_id | name |
|-------------|------|
| 1           | John |
| 2           | Mike |
|-------------|------|
classes table
|-----------------------------------------------|
| class_id | lecturer_id | material             |
|----------|-------------|----------------------|
| 1        | 1           | Basic of algorithm   |
| 2        | 1           | Basic of programming |
| 3        | 2           | Database  Essentials |
| 4        | 2           | Basic of SQL         |
|----------|-------------|----------------------|
attendance table
|-----------------------|
| class_id | student_id |
|----------|------------|
| 1        | 1          |
| 1        | 2          |
| 1        | 3          |
| 2        | 1          |
| 2        | 2          |
| 3        | 1          |
| 3        | 2          |
| 3        | 3          |
| 4        | 1          |
| 4        | 2          |
|----------|------------|
how to show classes records (from classes table) that not attended by Hans (student) in MySQL?
desired result :
|-----------------------------------------------|
| class_id | lecturer_id | material             |
|----------|-------------|----------------------|
| 2        | 1           | Basic of programming |
| 4        | 2           | Basic of SQL         |
|----------|-------------|----------------------|
 
     
     
    