mysql - Database schema of video (item) having multiple categories -
i have designed schema web application stores videos , each video comes under categories.single video can have multiple categories.i create following relations..
relation1: video_detail(v_id,v_name,v_details);
relation2: video_category(cat_id,cat_name);
now want relate each video in video_details video_category .. have following option:- create relation each category cat_entertainment(v_id) , on...
is efficient way doing work...or there way same without redundancy, thank ..??
assuming 1 video can have many categories , category can set number of videos, need bridge table called video_detail_category
contain:
video_detail_category(v_id, cat_id, primary key (v_id, cat_id))
Comments
Post a Comment