We have the following table.
We need a query to implement two criteria to extract the following records:
1- Show lectureplace A AND politics lecturesubject
2- Show only those with lectureplace B regardless of the subject
In case the query is run we will have the following result:
Thank you very much
Code:
ID studentname lectureplace lecturesubject
1 jack A Biology
2 steve A politics
3 jack B math
4 steve A math
5 jack B politics
6 joe A politics
. . . .
. . . .
154 Jane B Geography
1- Show lectureplace A AND politics lecturesubject
2- Show only those with lectureplace B regardless of the subject
In case the query is run we will have the following result:
Code:
ID studentname lectureplace lecturesubject
2 steve A politics
3 jack B math
5 jack B politics
6 joe A politics
. . . .
. . . .
154 Jane B Geography
Thank you very much