- Generic SQL parameters not working in an SqlDataSource for a MySQL connector in ASP.NET
- select case when r.id is null then 'Not Scanned' else 'Scanned' end as status,
- count(*) as count
- from scanned_items as s
- left join required_items as r
- on s.barcode = r.barcode and s.fk_load_id = r.fk_load_id
- where s.fk_load_id = @LoadId
- group by 1