Databases
Question #2: How many babies with birth weights > 2.5 kg have been delivered by each physician?
Results of Join with Table 2
| B# | BWt | M# | MHt | MBirth | Ph# |
|---|---|---|---|---|---|
| 941830 | 3.6 | 392382 | 177 | 4912 | 220 |
| 743920 | 3.4 | 392382 | 177 | 4912 | 220 |
| 840238 | 2.7 | 238427 | 162 | 5204 | 123 |
| 230484 | 3.4 | 123456 | 150 | 4605 | 123 |
| 749200 | 2.9 | 649308 | 174 | 5409 | 123 |
| 530284 | 3.7 | 123456 | 150 | 4605 | 123 |
| 638201 | 3.1 | 649308 | 174 | 5409 | 123 |
Now we can count the babies for each physician.
We've done 3 relational
operations.
Slide show generated from dbms.html by Weasel 2007 Mar 21