Professional Documents
Culture Documents
mysql> create table check_up(doc_id char(22) not null, pat_id char(22) not
null, cdate date not null, diagnosis char(240) not null, fee numeric(22,2)
not null, foreign key (doc_id) references doctor (doc_id) on delete cascade,
foreign key (pat_id) references patient (pat_id) on delete cascade,primary
key(doc_id,pat_id,cdate));
Query OK, 0 rows affected (0.10 sec)
mysql> select pname, address, dob from patient where pname like 'r%';
+-------+---------+------------+
| pname | address | dob |
+-------+---------+------------+
| Rahul | Calcuta | 1991-01-01 |
+-------+---------+------------+
1 row in set (0.00 sec)
mysql> notee;