I am new to Databases. I came across a peculiar problem with two tables. Please let me know the solution. Please fnd the scenario below
a ProductCentre table prdcntrId (primary key), prdcntrname
a ApplicationType table apptypeid (primary key) prdcntreid(foreign key to ProductCentre ) apptypname
ProductCentre table || ApplicationType table
||
prdcntrId prdcntrname || apptypeid prdcntreid apptypname
001 Delhi || 11 001 Busines
002 Mumbai || 12 003 Engg
003 Hyd || 13 001 Soft
14 002 Science
The end result should be like this A productcentre can have any type of applications like Delhi can have many busines, soft applications same with mumbai, hyd
--------------------------------------------------------------------- prdcntrname Busines Engg Soft Science --------------------------------------------------------------------- Delhi 1 0 1 0 --------------------------------------------------------------------- Mumbai 0 1 0 1 --------------------------------------------------------------------- Hyd 0 1 0 0 ---------------------------------------------------------------------
Is this solution possible from these two tables. Please help me in this scenario
Thanks, KK