§ÚÌ¥i¥H¦b¦h©ó¤@Óªí¤¤¬d¸ß¡A³q±`³o¨Çªí¤À¨É¤@Ó¦r¸`¡C
³o¼Ëªº¬d¸ß¤]¬O¥Î SELECT »y¥y¥h°µ¡A¦Ó»yªk©M¤@Óªíªº¬d¸ß¤@¼Ë¡C¤£¹L¡A¦r¬qªº¦WºÙ¥²¶·¥]¬Aªíªº¦WºÙ¡]¼g¦¨ <ªíªº¦WºÙ>.<¦r¬q¦WºÙ>¡^¡A¥H¨¾²V²c¡C
¥H¤U¨Ò¤l®i¥Ü¦p¦ó¦b¼ÆÓªí¤¤¬d¸ß¡]«ö³oùØ¬Ý¬Ý s6a ¤Î books ¨âªíªº¤º®e¡^¡C
±q s6a ¤Î books ¨âªí¤¤®³¨ú¾Ç¥Í©m¦W¡B®Ñªº¯Á®Ñ¸¹¤ÎÁٮѤé´Á¡A¨ä¤¤ s6a ªº¾Ç¥Í½s¸¹©M books ªº¾Ç¥Í½s¸¹¤@¼Ë¡A¥H¤ÎÁٮѤé´Á¬O¦b¤@¤E¤E¤E¦~¤Q¤@¤ë¤Q¤¤é«e¡C§â³o¨Ç¶µ¥Ø¨ÌÁٮѤé´Á¥Ñ¥ý¦Ü«á±Æ§Ç¡C | |||||||||||||||||||||||||||||||||||||||||||||||||||
SELECT s6a.name, books.call_id,
books.due_date FROM s6a,
books WHERE s6a.stud_id = books.stud_id AND books.due_date < {11/15/99} ORDER BY books.due_date ASC | |||||||||||||||||||||||||||||||||||||||||||||||||||
¿é¥X¡J
|
±q s6a ¤Î books
¨âªí¤¤®³¨ú¾Ç¥Í©m¦W¡B®Ñªº¯Á®Ñ¸¹¡B¹q¶l¦a§}¤ÎÁٮѤé´Á¡A¨ä¤¤ s6a ªº¾Ç¥Í½s¸¹©M books
ªº¾Ç¥Í½s¸¹¤@¼Ë¡A¥H¤ÎÁٮѤé´Á¬O¦b¤@¤E¤E¤E¦~¤Q¤@¤ë¤@¤é«e¡C§â³o¨Ç¶µ¥Ø¨ÌÁٮѤé´Á¥Ñ«á¦Ü¥ý±Æ§Ç¡C
Retrieve the students' names, books' Call IDs, email addresses and due dates from the tables s6a and books where the Student ID in s6a is the same as that in books and the due date is before November 1, 1999. List these items in desscending order of the due dates. | ||||||||||||||||||||||||
SELECT s6a.name, s6a.email, books.call_id, books.due_date FROM s6a, books WHERE s6a.stud_id = books.stud_id AND books.due_date < {11/01/99} ORDER BY books.due_date DESC | ||||||||||||||||||||||||
Output:
|