knowj;10970212 wrote:Can you provide an example database/table structure and data.
Generally the idea is to prevent data replication across the database/databases whilst not creating performance issues or bottle necks.
Try reading up on Normalization for a better understanding if I understand your problem: http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html
Actual situation :
News and Blog are both of publication type, so in MySQL i have:
tbl publication{idpub, section, title, subtitle, author... }
#section is ENum ('news', 'blog') and idNews and IdBlog refer to idpub in other tables
tbl News {idNews, htmlText, template, iconurl...}
tbl Blog{idBlog, theme, topic...}
#the specific fields of News and Blog above are just for gratia exempli.... not really matter now
a Different approach :
no tbl publication
and have
tbl News {idpub, title, subtitle, author, htmlText, template, iconurl...}
tbl Blog {idpub, title, subtitle, author, theme, topic...}
as u can see the fields idpub, title, subtitle, author, before where grouped in one father table now separated in different table
in the first approach queries for order and 1st level searchin are easier
but if u like to select more than common details (the ones that are on the specific tables News and blog) u have to perform different queries to have everything...
or one big union Select with many null values...
i hope this help to understand my situation