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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -