Use Datalog to ?nd all students who took all classes ever o?ered by Professor Joe Public.
What will be an ideal response?
Answer(?SN) :- Student(?Id,?SN,?Addr,?Status),
not StudWhoDidNotTakeSomeClass(?Id).
StudWhoDidNotTakeSomeClass(?Id) :-
Student(?Id,?SN,?Addr,?Status),
Teaching(?PId,?Crs,?Sem),
Professor(?PId,’Joe Public’,?Dept),
not TookClass(?Id,?Crs,?Sem).
TookClass(?Id,?Crs,?Sem) :- Transcript(?Id,?Crs,?Sem,?Gr).
Computer Science & Information Technology
You might also like to view...
If print(x) is replaced by print(x+1) in the previous question, the above problem disappears. Why? ________
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology
A(n) ________ bar is useful to quickly identify higher and lower numbers within a large group of data
Fill in the blank(s) with correct word
Computer Science & Information Technology
How many colors can a 24-bit video adapter display?
A) 256 B) 512 C) 64K D) 16M E) None of the above
Computer Science & Information Technology
Describe the main advantages of using the prototyping approach when building a database system.
What will be an ideal response?
Computer Science & Information Technology