2. The Problem
With programs serving a diverse range of
children across multiple locations, how do
you ensure patrons are finding all of the
programs available to them?
3. The Users
• Patrons have the information needs that the database
must satisfy
• Staff are the intermediaries from whom the information is
sought
5. Sub-Queries, Wee!
SELECT * FROM PROGRAM PG
WHERE PG.ProgramID IN
(SELECT PS.ProgramID FROM PRESENTER PS
WHERE PS.Librarian IN
(SELECT LN.StaffID FROM LIBRARIAN LN
WHERE LN.LibraryName IN
(SELECT LY.LibraryName FROM LIBRARY LY
WHERE LY.Address LIKE '%Gothic Lane')));
6. Sub-Queries 2: The More Usefulling
CHECK-less Constraints
SELECT COUNT(*) AS CurrentSignUps FROM REGISTRATION R
WHERE R.ProgramID IN
(SELECT P.ProgramID FROM PROGRAM P
WHERE
P.ProgramName = 'Time for Tots' AND
P.Date = '2011-05-1');
<?php if($current < $limit) echo ‘Do it!’;
else echo ‘No way!’; ?>
7. Web Interface
http://studentweb.comminfo.rutgers.edu/
2011-1-557-01/arousos/programming.php