Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Employees With Perfect Attendance

Return the emp_ids of employees who were present on every distinct working day in the table. Order by emp_id.

Table schema

Attendance(emp_id INT, day DATE, present INT)

Sample data

emp_id | day | present
1 | 2026-10-01 | 1
1 | 2026-10-02 | 1
1 | 2026-10-03 | 1
2 | 2026-10-01 | 1
2 | 2026-10-02 | 0
2 | 2026-10-03 | 1

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.