* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 *                                                                                                               * 
 
 *                 D E S :   D a t a l o g   E d u c a t i o n a l   S y s t e m   v . 3 . 0                     * 
 
 *                                                                                                               * 
 
 *                                                                                                               * 
 
 *   T y p e   " / h e l p "   f o r   h e l p   a b o u t   c o m m a n d s                                     * 
 
 *   T y p e   " d e s . "   t o   c o n t i n u e   i f   y o u   g e t   o u t   o f   D E S                   * 
 
 *       f r o m   a   P r o l o g   i n t e r p r e t e r                                                       * 
 
 *                                                                                                               * 
 
 *                                         F e r n a n d o   S a e n z - P e r e z   ( c )   2 0 0 4 - 2 0 1 1   * 
 
 *                                                                                   G P D   D I S I A   U C M   * 
 
 *                           P l e a s e   s e n d   c o m m e n t s ,   q u e s t i o n s ,   e t c .   t o :   * 
 
 *                                                                           f e r n a n @ s i p . u c m . e s   * 
 
 *                                                                                           W e b   s i t e :   * 
 
 *                                                       h t t p : / / d e s . s o u r c e f o r g e . n e t /   * 
 
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 
 
 
 D E S >   / p r o c e s s   e x a m p l e s / S Q L D e b u g g e r / a w a r d s 1 
 
 
 
 I n f o :   P r o c e s s i n g   f i l e   ' e x a m p l e s / S Q L D e b u g g e r / a w a r d s 1 . s q l '   . . . 
 
 
 
 D E S >   - -   S Q L   D e b u g g e r 
 
 
 
 
 
 D E S >   - -   N o v e m b e r   2 0 1 1 
 
 
 
 
 
 D E S >   - -   E x a m p l e   1   A w a r d s 
 
 
 
 
 
 D E S >   - -   M i s s i n g   t u p l e   ' A n n a ' ,   c . f .   S e c t i o n   4   o f   F L O P S   p a p e r 
 
 
 
 
 
 D E S >   - -   R e f e r   t o   a w a r d s 1 U s e r T r a c e . t x t   f o r   a   u s e r   t r a c e   a n d   a w a r d s 1 D e v e l o p m e n t T r a c e . t x t   f o r   a   d e v e l o p m e n t   t r a c e 
 
 
 
 
 
 D E S >   - - 
 
 
 
 
 
 D E S >   - -   D e c l a r a t i v e   D e b u g g i n g   o f   W r o n g   a n d   M i s s i n g   A n s w e r s   f o r   S Q L   V i e w s 
 
 
 
 
 
 D E S >   - -   F L O P S   2 0 1 2 
 
 
 
 
 
 D E S >   
 
 
 
 
 
 D E S >   / a b o l i s h 
 
 
 
 
 
 D E S >   / m u l t i l i n e   o n 
 
 
 
 
 
 D E S >   / d e v e l o p m e n t   o f f 
 
 
 
 I n f o :   D e v e l o p m e n t   l i s t i n g s   a r e   a l r e a d y   d i s a b l e d . 
 
 
 
 D E S >   / *   T a b l e s   * / 
 
 
 
 
 
 D E S >   D R O P   T A B L E   I F   E X I S T S   r e g i s t r a t i o n ,   c o u r s e s ,   a l l I n O n e C o u r s e ; 
 
 
 
 
 
 D E S >   C R E A T E   T A B L E   a l l I n O n e C o u r s e   ( 
 
     s t u d e n t   v a r c h a r ( 4 5 )   N O T   N U L L , 
 
     p a s s   i n t e g e r , 
 
     P R I M A R Y   K E Y   ( s t u d e n t ) 
 
 ) ; 
 
 
 
 
 
 D E S >   C R E A T E   T A B L E   c o u r s e s   ( 
 
     i d   v a r c h a r ( 1 1 )   N O T   N U L L , 
 
     l e v e l   i n t ( 1 1 )   D E F A U L T   N U L L , 
 
     P R I M A R Y   K E Y   ( i d ) 
 
 ) ; 
 
 
 
 
 
 D E S >   C R E A T E   T A B L E   r e g i s t r a t i o n   ( 
 
     s t u d e n t   v a r c h a r ( 4 5 )   N O T   N U L L , 
 
     c o u r s e   v a r c h a r ( 1 1 )   N O T   N U L L , 
 
     p a s s   i n t e g e r , 
 
     F O R E I G N   K E Y ( c o u r s e )   r e f e r e n c e s   c o u r s e s ( i d ) , 
 
     P R I M A R Y   K E Y   ( s t u d e n t , c o u r s e ) 
 
 ) ; 
 
 
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' A d r i a n ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' A l b a ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' A l i s h a ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' A m a y a ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' A r a b e l l a ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' A v a ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' D e x t e r ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' E m m a ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' E v e l y n ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' G a b r i e l ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' G a v i n ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' G e o r g e ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' H a r p e r ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' H e n r y ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' J a m e s ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' J e n n i f e r ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' M a g g y ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' M i g u e l ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' N i c o l a s ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' N o a h ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' O l i v i a ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' O w e n ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' P a u l ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' R o c c o ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' S h a n e ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' S t e l l a ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' T o s c a ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   a l l I n O n e C o u r s e ( s t u d e n t , p a s s )     V A L U E S   ( ' V i o l e t ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   c o u r s e s ( i d , l e v e l )     V A L U E S   ( ' c 1 ' ,     1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   c o u r s e s ( i d , l e v e l )     V A L U E S   ( ' c 2 ' ,     2 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   c o u r s e s ( i d , l e v e l )     V A L U E S   ( ' c 3 ' ,     3 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   c o u r s e s ( i d , l e v e l )     V A L U E S   ( ' c 4 ' ,     4 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   c o u r s e s ( i d , l e v e l )     V A L U E S   ( ' c 5 ' ,     5 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   c o u r s e s ( i d , l e v e l )     V A L U E S   ( ' c 0 ' ,     0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S   ( ' A l b a ' , ' c 1 ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' A l b a ' , ' c 2 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' A n n a ' , ' c 0 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' A n n a ' , ' c 1 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' A n n a ' , ' c 2 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' A n n a ' , ' c 3 ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' C a r l a ' , ' c 0 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' J a m e s ' , ' c 0 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' J a m e s ' , ' c 1 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' J a m e s ' , ' c 2 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' J a m e s ' , ' c 3 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' J u a n ' , ' c 1 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' J u a n ' , ' c 2 ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' J u a n ' , ' c 5 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' M i c a ' , ' c 1 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' M i c a ' , ' c 2 ' , 0 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' M i g u e l ' , ' c 2 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' P a u l ' , ' c 0 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   I N S E R T   I N T O   r e g i s t r a t i o n ( s t u d e n t , c o u r s e , p a s s )   V A L U E S     ( ' P e d r o ' , ' c 2 ' , 1 ) ; 
 
 
 
 I n f o :   1   t u p l e   i n s e r t e d .                                           
 
 
 
 D E S >   / *   V i e w s   * / 
 
 
 
 
 
 D E S >   / *   S t u d e n t s ,   l e v e l   o f   t h e i r   c o u r s e s   a n d     p a s s / f f a i l   f l a g   * / 
 
 
 
 
 
 D E S >   c r e a t e   o r   r e p l a c e   v i e w   s t a n d a r d ( s t u d e n t ,   l e v e l ,   p a s s )   a s 
 
       s e l e c t   R . s t u d e n t ,   C . l e v e l ,   R . p a s s 
 
       f r o m   c o u r s e s   C ,   r e g i s t r a t i o n   R 
 
       w h e r e   C . i d   =   R . c o u r s e ; 
 
 
 
 
 
 D E S >   / *   S t u d e n t s   f r o m   t h e   b a s i c   c o u r s e   ( l e v e l   =   0 )   * / 
 
 
 
 
 
 D E S >   c r e a t e   o r   r e p l a c e   v i e w   b a s i c ( s t u d e n t )   a s 
 
       s e l e c t   S . s t u d e n t 
 
       f r o m   s t a n d a r d   S 
 
       w h e r e   S . l e v e l   =   0   a n d   S . p a s s = 1 ; 
 
 
 
 
 
 D E S >   / *   I n t e n s i v e   s t u d e n t s   * / 
 
 
 
 
 
 D E S >   c r e a t e   o r   r e p l a c e   v i e w   i n t e n s i v e ( s t u d e n t )   a s 
 
       ( s e l e c t   A . s t u d e n t 
 
         f r o m   a l l I n O n e C o u r s e   A     w h e r e   A . p a s s = 1 ) 
 
       u n i o n 
 
       ( s e l e c t   A 1 . s t u d e n t 
 
         f r o m   s t a n d a r d   A 1 ,   s t a n d a r d   A 2 ,   s t a n d a r d   A 3 
 
         w h e r e   A 1 . s t u d e n t   =   A 2 . s t u d e n t   a n d   A 2 . s t u d e n t   =   A 3 . s t u d e n t 
 
                     a n d 
 
                     A 1 . l e v e l   =   1     a n d   A 2 . l e v e l   =   2   a n d   A 3 . l e v e l   =   3 ) ; 
 
 
 
 
 
 D E S >   / *   A w a r d s   a r e   o n l y   f o r   s t u d e n t s   f r o m   t h e   b a s i c   l e v e l   * / 
 
 
 
 
 
 D E S >   c r e a t e   o r   r e p l a c e   v i e w   a w a r d s ( s t u d e n t )   a s 
 
     s e l e c t   s t u d e n t   f r o m     b a s i c 
 
     e x c e p t 
 
     s e l e c t   s t u d e n t   f r o m     i n t e n s i v e ; 
 
 
 
 
 
 D E S >   / * 
 
 c r e a t e   o r   r e p l a c e   v i e w   a w a r d s ( s t u d e n t )   a s 
 
 s e l e c t   s t u d e n t 
 
     f r o m     b a s i c 
 
     w h e r e   s t u d e n t   n o t   i n   ( s e l e c t   s t u d e n t   f r o m   i n t e n s i v e ) ; 
 
 * / 
 
 
 
 
 
 I n f o :   B a t c h   f i l e   p r o c e s s e d . 
 
 
 
 D E S >   / d e b u g _ s q l   a w a r d s       
 
 
 
 I n f o :   D e b u g g i n g   v i e w   ' a w a r d s ' . 
 
     ( 
 
         S E L E C T   A L L   s t u d e n t 
 
         F R O M   
 
             b a s i c 
 
     ) 
 
     E X C E P T 
 
     ( 
 
         S E L E C T   A L L   s t u d e n t 
 
         F R O M   
 
             i n t e n s i v e 
 
     ) ; 
 
 {                                                                                       
 
     1   -   a w a r d s ( ' C a r l a ' ) 
 
 } 
 
 I n p u t :   I s   t h i s   t h e   e x p e c t e d   a n s w e r   f o r   v i e w   ' a w a r d s ' ?   ( y / n / m / m T / w / w N / a / h )   [ n ] :   m ' A n n a ' 
 
 I n f o :   D e b u g g i n g   v i e w   ' i n t e n s i v e ' .                       
 
     ( 
 
         S E L E C T   A L L   A . s t u d e n t 
 
         F R O M   
 
             a l l I n O n e C o u r s e   A S   A 
 
         W H E R E   A . p a s s   =   1 
 
     ) 
 
     U N I O N 
 
     ( 
 
         S E L E C T   A L L   A 1 . s t u d e n t 
 
         F R O M   
 
             s t a n d a r d   A S   A 1 ,   
 
             s t a n d a r d   A S   A 2 ,   
 
             s t a n d a r d   A S   A 3 
 
         W H E R E   ( ( ( ( A 1 . s t u d e n t   =   A 2 . s t u d e n t   A N D   A 2 . s t u d e n t   =   A 3 . s t u d e n t )   A N D   A 1 . l e v e l   =   1 )   A N D   A 2 . l e v e l   =   2 )   A N D   A 3 . l e v e l   =   3 ) 
 
     ) ; 
 
 I n p u t :   S h o u l d   ' i n t e n s i v e '   i n c l u d e   a   t u p l e   o f   t h e   f o r m   ' A n n a ' ?   ( y / n / a )   [ y ] :   n 
 
 I n f o :   D e b u g g i n g   v i e w   ' s t a n d a r d ' .                         
 
     S E L E C T   A L L   R . s t u d e n t ,   C . l e v e l ,   R . p a s s 
 
     F R O M   
 
         c o u r s e s   A S   C ,   
 
         r e g i s t r a t i o n   A S   R 
 
     W H E R E   C . i d   =   R . c o u r s e ; 
 
 I n p u t :   S h o u l d   ' s t a n d a r d '   i n c l u d e   a   t u p l e   o f   t h e   f o r m   ' A n n a , 1 , 1 ' ?   ( y / n / a )   [ y ] :   
 
 I n f o :   D e b u g g i n g   v i e w   ' s t a n d a r d ' .                         
 
     S E L E C T   A L L   R . s t u d e n t ,   C . l e v e l ,   R . p a s s 
 
     F R O M   
 
         c o u r s e s   A S   C ,   
 
         r e g i s t r a t i o n   A S   R 
 
     W H E R E   C . i d   =   R . c o u r s e ; 
 
 I n p u t :   S h o u l d   ' s t a n d a r d '   i n c l u d e   a   t u p l e   o f   t h e   f o r m   ' A n n a , 2 , 1 ' ?   ( y / n / a )   [ y ] :   
 
 I n f o :   D e b u g g i n g   v i e w   ' s t a n d a r d ' .                         
 
     S E L E C T   A L L   R . s t u d e n t ,   C . l e v e l ,   R . p a s s 
 
     F R O M   
 
         c o u r s e s   A S   C ,   
 
         r e g i s t r a t i o n   A S   R 
 
     W H E R E   C . i d   =   R . c o u r s e ; 
 
 I n p u t :   S h o u l d   ' s t a n d a r d '   i n c l u d e   a   t u p l e   o f   t h e   f o r m   ' A n n a , 3 , 0 ' ?   ( y / n / a )   [ y ] :   
 
 I n f o :   B u g g y   r e l a t i o n   f o u n d :   i n t e n s i v e 
 
 
 
 D E S >   
 
 