posted 11 years ago
i have a scenario, in which i have to create a table with following fields
department_name, ministry_name, domain_name, coordinator_name, coordinator_email
now, for each department_name there can be more than one coordinator_name and corresponding to it more than one coordinator_email.
i can't do this in one table(department) because i can't store two coordinator name and their coordinator email in a single row of mysql.
so i planned to make one table(coordinator) with department_name(primary key), ministry_name, domain_name
and second table with department_name(primary key), coordinator_name, coordinator_email with a foreign key reference to department(department_name)
now how can i use insert statement so that the data gets inserted in both tables at once. and similarly how can i use delete and update statement...
please help... thankyou...