mysql - JOIN skipping duplicates -
select `bilder_w2l`.filnamn, `bilder_w2l`.md5_hash, `bilddata_w2l`.bildkategori `bilder_w2l` inner join `bilddata_w2l` on `bilder_w2l`.bildid = `bilddata_w2l`.bildid `bilder_w2l`.status = 0
bilddata_w2l has 28 rows. bilder_w2l has 21 rows.
i want row data bilddata_w2l on 21 rows... rows in bilddata_w2l can have duplicate bildid.
it's issue inner join, say. i'm not sure 1 use or how change sql.
select `bilder_w2l`.filnamn, `bilder_w2l`.md5_hash, `bilddata_w2l`.bildkategori `bilder_w2l` left outer join `bilddata_w2l` on `bilder_w2l`.bildid = `bilddata_w2l`.bildid `bilder_w2l`.status = 0
is looking for?
Comments
Post a Comment