1
Good,
I have 2 tables:
Cars:
- id;
- model;
- Comb;
- price;
Carros_img:
- id;
- id_fk; (Foreign key of Cars)
- img;
I do this research:
SELECT DISTINCT carros.id, carros.modelo, carros_img.img, carros_desc.comb, carros_desc.preco
from carros, carros_desc, carros_img
where carros.id = carros_desc.id_fk
AND carros.id = carros_img.id_fk
order by carros.id ASC
And appears:
In id (table id cars) appears some equal id’s as I do to only appear 1 of each type: