I have 3 tables items, item_sizes, sizes with this fields:
items
id
name
item_sizes
item_id
size_id
sizes
id
size
The sizes have this values ex: S, M, XL, XXL etc I want to make a join or whatever to get this result:
item_id | name | S | M | XL ...
--------------------------------------------
1 shirt 1 0 1
2 dress 0 1 1
3 jacket 1 1 1
And so on. The values 1 means that this item has this size. Is it possible to do this?