Professional Documents
Culture Documents
File: /media/chandresh/Chandresh/Co .E.C.O. Sem 6/DD/Fragmentation Page 1 of 4
File: /media/chandresh/Chandresh/Co .E.C.O. Sem 6/DD/Fragmentation Page 1 of 4
File: /media/chandresh/Chandresh/Co .E.C.O. Sem 6/DD/Fragmentation Page 1 of 4
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Database changed
MariaDB [Hospital_11co35]> show tables;
+---------------------------+
| Tables_in_Hospital_11co35 |
+---------------------------+
| Bill |
| Branch |
| Doctor |
| Employee |
| Patient |
| Pharmacy |
| Test |
+---------------------------+
7 rows in set (0.00 sec)
####################--------Horizontal Fragmentation----------#######################
MariaDB [Hospital_11co35]> create table Branch11 as (select * from Branch where address="Glassgow"
OR address="Nashville");
Query OK, 1 row affected (0.09 sec)
Records: 1 Duplicates: 0 Warnings: 0
####################----------Vertical Fragmentation----------#######################
####################-----------Dry Fragmentation-----------#######################
MariaDB [Hospital_11co35]> create table ammount_info as (select * from Pharmacy where ammount<500);
Query OK, 7 rows affected (0.05 sec)
Records: 7 Duplicates: 0 Warnings: 0
####################-----------Hybrid Fragmentation-----------#######################
+-------------+------+------+
| particulars | rate | qty |
+-------------+------+------+
| Tablets | 113 | 1 |
| Tablets | 156 | 3 |
| Tablets | 50 | 4 |
| Tablets | 92 | 3 |
+-------------+------+------+
4 rows in set (0.00 sec)