{
id:1,
name:'vasya',
age:20
},
{
id:2,
name:'petya',
age:22
},
{
id:3,
name:'zina',
age:18
}
{
id:1,
name:'vasya',
age:20,
hobby: 'none'
},
{
id:2,
name:'petya',
age:22б
hobby:'box'
},
{
id:3,
name:'zina',
age:18,
hobby:'tennis'
}
SELECT u.id, u.name, u.age, h.hobby
FROM users u
LEFT JOIN hobbies h
ON u.id = h.user_id;