Applying two membership filters

A recreation centre tests two alternative filters on its membership table. Apply each rule independently to every member, and enter keep or omit in each answer cell.

  • Rule P keeps a row when Age is at least 18 AND Fee paid is Yes.
  • Rule Q keeps a row when Age is at least 18 OR Fee paid is Yes. Here, OR includes rows that satisfy both conditions.


Member

Age (years)

Fee paid

A1

17

Yes

A2

21

No

A3

18

Yes

A4

16

No

MemberRule PRule Q
A1
A2
A3
A4

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Relational Database Operations Questions: