79488318

Date: 2025-03-06 05:12:20
Score: 1
Natty:
Report link

I think the sql is being broken up like this:

--this select statement has 3 columns

select staff.staffid, staff.staffname, staff.department from staff left join department on staff.departmentid = department.departmentid

union all

--this select statement has 2 columns

select department.departmentname, department.domain from department left join staff on department.departmentid = staff.departmentid;

A union should be between selects with the same number of columns

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user78090