Hi! Could we please enable some services and cookies to improve your experience and our website?
create table products (id int, val_a int, image_id int);
insert into products values (1, 100, 32);
create table images (id int, image varchar(255));
insert into images values (32, 'path_to_images/32.jpg');
select p.id, i.image
from products p
join images i on i.id = p.image_id;