SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
create table t ( id int primary key auto_increment, employee_id int, office_id int ); insert into t values (1, 1, 1), (2, 2,1); select office_id, json_arrayagg(employee_id) employee_ids from t group by office_id
Stuck with a problem? Got Error? Ask ChatGPT!
Copy Clear