Date: 02/15/06 (MySQL Communtiy) Keywords: mysql, html, sql Given the following schema, the following datasets are defined: CREATE TABLE `procedures` ( `id` int(10) unsigned NOT NULL auto_increment, `procedure_name` varchar(80) NOT NULL default '', PRIMARY KEY (`id`), UNIQUE KEY `procedure_name` (`procedure_name`) ); CREATE TABLE `testcases` ( `id` int(10) unsigned NOT NULL auto_increment, `procedure_id` int(10) unsigned NOT NULL default '0', `procedure_steps` text NOT NULL, `expected_results` text NOT NULL, PRIMARY KEY (`id`) ); CREATE TABLE `plan_procedures` ( `id` int(10) unsigned NOT NULL auto_increment, `procedure_id` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id`) ); CREATE TABLE `plan_testcases` ( `id` int(10) unsigned NOT NULL auto_increment, `plan_procedure_id` int(10) unsigned NOT NULL default '0', `testcase_id` int(10) unsigned NOT NULL default '0', PRIMARY KEY (`id`) ); I am trying to follow the examples from http://dev.mysql.com/doc/refman/4.1/e
|