Answer the question
In order to leave comments, you need to log in
How to remove duplicates when using Left Join?
Good afternoon, task: display tags for the image.
I know to use GROUP_CONCAT but don't know how to adapt it.
Three imgage tables are used - images, key relationship (imgId, tagId) and tag - the tags themselves
SELECT * FROM image
LEFT JOIN key ON key.ImgId= image.imId
LEFT JOIN tag ON tag.id = key.tagId where author='1'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question