I'm helping someone do homework for their databases class, but the syllabus has changed since I took it. Specifically there is one problem about selectivity that I have no background knowledge for and relentless Google-ing isn't turning up proper results. If anyone could look at the problem and point me towards an online resource that covers this type of problem I would be really grateful!
"Let R be a relation instance with schema(NAME, GENDER, AGE, INCOME). The selectivity of δGENDER='F'(R) is 0.4, the selectivity of δAGE<=30(R) is 0.3 and the selectivity of δINCOME>90,000(R) is 0.6. What is the selectivity of δGENDER='F' AND (AGE<=30 OR INCOME<=90,000)(R)"
To me this looks like a probabilities problem (Which meshes with what little I can find of selectivity, it's just the ratio of things that survive a filter) so my first instinct is to say that the answer to this is 0.4 * (0.3 + 0.6) but I have no idea if I'm in the right ballpark.