Thank you 1nickt for showing this handy trick. It's a lot there! I am new to DBIC and SQL in general so that's appreciated.
But I would prefer 2 different tables: Play, Concert. Because the search is like "select all comments for this concert". Unless a JOIN can take additional conditions (like a WHERE comment_type='play' - excuse my lameness?) I can perhaps use an intermediate table which holds comment ids, comment types and foreign key ids (e.g. for play or concert) or even get all comments for a specific event type, then find those with the specific concert id.
In reply to Re^2: DB: what kind of relationship?
by bliako
in thread DB: what kind of relationship?
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |