Èý¼¶¡ª¡ªÊý¾Ý¿â
µÚÈý·¶Ê½3NF£ºÈç¹û¹ØϵRΪ2NF£¬ÇÒÿ¸ö·ÇÖ÷ÊôÐÔ²»´«µÝº¯ÊýÒÀÀµÓڹؼü×Ö¡£
¼´Ã¿¸ö·ÇÖ÷ÊôÐԼȲ»²¿·Öº¯ÊýÒÀÀµÒ²²»´«µÝº¯ÊýÒÀÀµÓڹؼü×Ö¡£
¸Ä½øµÄµÚÈý·¶Ê½BCNF£º¹ØϵRÖУ¬Èôÿ¸ö¾ö¶¨ÒòËض¼Êǹؼü×Ö¡£ µÚËÄ·¶Ê½4NF£º
²¹³äÒ»×éÍÆÀí¹æÔò£º´ÓÒ»×麯ÊýÒÀÀµÇóËùÔ̺µÄº¯ÊýÒÀÀµ
1¡¢ ÈôY°üº¬ÓÚX(¼´YÊÇXµÄ×Ó¼¯),ÔòX¡ª>Y(×Ô·´ÂÉ) 2¡¢ ÈôX¡ª>Y£¬ÔòXW¡ª>YÇÒ/»òXW¡ª>YW(Ôö¹ãÂÉ) 3¡¢ ÈôX¡ª>Y£¬Y¡ª>Z,ÔòX¡ª>Z(´«µÝÂÉ)
4¡¢ ÈôX¡ª>Y£¬YW¡ª>Z,ÔòXW¡ª>Z(α´«µÝÂÉ) 5¡¢ ÈôX¡ª>Z£¬X¡ª>Y,ÔòX¡ª>YZ(ºÏ²¢ÂÉ) 6¡¢ ÈôX¡ª>YZ£¬ÔòX¡ª>Y,X¡ª>Z(·Ö½âÂÉ)
£¨03´º£©40.ijÉ̳¡²Ö¿âµÄ»õ¼Ü´æ·Åן÷ÖÖÉÌÆ·£¬ÓÉ´Ëд³öÏÂÁйØϵģʽ£º
£¨1£©.£¨ÉÌÆ·ºÅ£¬Éú²ú³§¼Ò£¬²úµØ£¬»õ¼ÜºÅ£¬ÊýÁ¿£© £¨2£©.£¨ÉÌÆ·ºÅ£¬»õ¼ÜºÅ£¬ÊýÁ¿£© £¨3£©.£¨ÉÌÆ·ºÅ£¬Éú²ú³§¼Ò£¬²úµØ£© £¨4£©.£¨ÉÌÆ·ºÅ£¬Éú²ú³§¼Ò£© £¨5£©.£¨Éú²ú³§¼Ò£¬²úµØ£©
ÔòÊôÓÚµÚÈý·¶Ê½¶¨ÒåµÄÊÇ__________¡£ A.£¨1£© B.£¨2£©¡¢£¨3£© C.£¨2£©¡¢£¨3£©¡¢£¨5£© D.£¨2£©¡¢£¨4£©¡¢£¨5£© £¨03Ç40.ÉèÓйØϵR£¨A£¬B£¬C£¬D£©£¬AÊÇÖ÷¹Ø¼ü×Ö£¬Æ亯ÊýÒÀÀµ¼¯F={A¡úB£¬A¡úC£¬C¡úD}£¬Ôò¹ØϵRÖÁÉÙÂú×ã__________¡£ A.1NF B.2NF C.3NF D.BCNF £¨04Ç41.Èô R(x,y) ÊÇÒ»¸ö¶þÄ¿¹Øϵ,x¡¢yÊǵ¥ÊôÐÔÇÒ x¡úy£¬Ôò_________¡£
A.RÒ»¶¨ÊôÓÚBCNF B.RÒ»¶¨²»ÊôÓÚBCNF
C.R²»Ò»¶¨ÊôÓÚBCNF D.R²»Ò»¶¨ÊôÓÚBCNF ,µ«Ò»¶¨ÊôÓÚ3NF £¨05´º£©39£®ÒÑÖª¹ØϵģÐÍR£¨A£¬B£¬C£¬D£©£¬Æ亯ÊýÒÀÀµ¼¯F={A¡úB£¬B¡úCD£¬A¡úD}
ÔòÏÂÁк¯ÊýÒÀÀµ²»³ÉÁ¢µÄÊÇ___________¡£
A£®AB¡úC B.AB¡úD C.B¡úACD D.A¡úBCD £¨06Ç41£®¹Øϵģʽ¹æ·¶»¯ÖеÄɾ³ýÒì³£ºÍ²åÈëÒì³£·Ö±ðÊÇÖ¸ £¬
A£®²»¸Ãɾ³ýµÄÊý¾Ý±»É¾³ýºÍÓ¦¸Ã²åÈëµÄÊý¾Ý±»²åÈë B£®²»¸Ãɾ³ýµÄÊý¾Ý±»É¾³ýºÍÓ¦¸Ã²åÈëµÄÊý¾Ýδ±»²åÈë C£®Ó¦¸Ãɾ³ýµÄÊý¾Ýδ±»É¾³ýºÍ²»¸Ã²åÈëµÄÊý¾Ý±»²åÈë
D. Ó¦¸Ãɾ³ýµÄÊý¾Ýδ±»É¾³ýºÍÓ¦¸Ã²åÈëµÄÊý¾Ýδ±»²åÈë¡£
£¨07Ç41£®ÔÚ¹ØϵµÄ¹æ·¶»¯¹ý³ÌÖУ¬´Ó2NFÏò3NF±ä»»£¬Ïû³ýÁË______
A£®·ÇÖ÷ÊôÐԶԹؼü×ֵIJ¿·Öº¯ÊýÒÀÀµ B. ·ÇÖ÷ÊôÐԶԹؼü×ֵĴ«µÝº¯ÊýÒÀÀµ C£®Ö÷ÊôÐԶԹؼü×ֵIJ¿·Öº¯ÊýÒÀÀµ D. Ö÷ÊôÐԶԹؼü×ֵĴ«µÝº¯ÊýÒÀÀµ £¨09Ç45¡¢ÉèÓÐѧÉú¿Î³Ì³É¼¨¹ØϵSC£¨Ñ§ºÅ£¬¿Î³ÌºÅ£¬³É¼¨£©£¬ÆäÖÐÿ¸öѧÉúÿÃÅ¿Î³Ì ¶¼ÓÐÒ»¸ö³É¼¨£¬Ôò¹ØϵSC´ïµ½_________¡£ A¡¢1NF B¡¢2NF C¡¢3NF D¡¢BCNF £¨10´º£©45¡¢¹ØϵÊý¾Ý¿â¹æ·¶»¯ÊÇΪ½â¾ö¹ØϵÊý¾Ý¿âÖÐ_________µÈÎÊÌâ¶øÒýÈëµÄ¡£ A¡¢²åÈëÒì³£¡¢É¾³ýÒì³£ºÍÊý¾ÝÈßÓà B¡¢Ìá¸ß²éѯËÙ¶È C¡¢ÊµÏÖÊý¾Ý¼äµÄÁªÏµ D¡¢±£Ö¤Êý¾ÝµÄ°²È«ÐÔ £¨11Ç45¡¢ÉèѧÉúÑ¡¿ÎµÄ¹ØϵģʽR=£¨Ñ§ºÅ£¬ÐÕÃû£¬¿Î³ÌºÅ£¬¿Î³ÌÃû£©£¬´Ë¹ØϵģʽÊô
9 / 20
Èý¼¶¡ª¡ªÊý¾Ý¿â
ÓÚ____·¶Ê½¡£ A¡¢1NF B¡¢2NF C¡¢3NF D¡¢BCNF (12´º)45¡¢ÈÎÒâÒ»¸ö¶þÄ¿¹Øϵ£¬ÔÚº¯ÊýÒÀÀµµÄ·¶Î§ÄÚÂú×ãµÄ×î¸ß·¶Ê½Îª_______¡£ A¡¢1NF B¡¢2NF C¡¢3NF D¡¢BCNF (12Çï)45¡¢Ò»¸ö¹ØϵRÖУ¬ËùÓÐÊôÐÔ¶¼ÊÇÖ÷ÊôÐÔ£¬ÔòRÒÑ´ïµ½µÄ·¶Ê½ÊÇ___________. A¡¢1NF B¡¢2NF C¡¢3NF D¡¢BCNF
4.5 ½á¹¹»¯²éѯÓïÑÔSQL
4.5.1 Êý¾Ý²éѯ
(02Çï)39.¼ÙÉèѧÉú¹ØϵÊÇS£¨S#£¬SNAME£¬SEX£¬AGE£©£¬¿Î³Ì¹ØϵÊÇC£¨C#£¬CNAME£¬TEACHER£©£¬Ñ§ÉúÑ¡¿Î¹ØϵÊÇSC£¨S#£¬C#£¬GRADE£©£¬Òª²éÕÒÑ¡Ð޿γÌÃûΪ¡°COMPUTER¡±µÄÅ®ÉúµÄÐÕÃû£¬½«Éæ¼°µ½¹Øϵ_______ ¡£ÆäÖÐS#ºÍC#·Ö±ðΪѧºÅºÍ¿Î³ÌºÅ£¬SNAMEΪѧÉúÃû£¬SEXΪÐÔ±ð£¬CNAMEΪ¿Î³ÌÃû¡£
A.S B.C£¬SC C.S£¬SC D.S£¬C£¬SC 42.ÔÚVFP ÖУ¬½«³É¼¨±íCJ.DBFÖгɼ¨ (CJ) ÔÚ 60·Ö¼°60·ÖÒÔÉϵÄËùÓÐѧºÅ£¨XH£©Ë͵½Êý×é A ÖеÄÃüÁîÊÇ_________¡£
A.SELECT XH FROM CJ WHERE CJ>=60 INTO A
B.SELECT XH FROM CJ HAVING CJ>=60 TO ARRAY A C.SELECT XH FROM CJ WHERE CJ>=60 INTO ARRAY A D.SELECT XH FROM CJ HAVING CJ>=60 TO A
£¨05Ç43¡¢ÔÚVFPÖУ¬´ÓÊý¾Ý±íSÖмìË÷ËùÓбȡ°Íõ»ª¡±ÄêÁä´óµÄѧÉúÐÕÃû¡¢ÄêÁäºÍÐÔ±ð£¨×Ö¶ÎÃûΪSN¡¢AGEºÍSEX£©¡£ÕýÈ·µÄSELECTÓï¾äÊÇ£¨£©
A.SELECT SN£¬AGE£¬SEX FROM S WHERE SN=¡®Íõ»ª¡¯ B.SELECT SN£¬AGE£¬SEX FROM S£»
WHERE AGE>(SELECT AGE FROM S WHERE SN=¡®Íõ»ª¡¯) C.SELECT SN£¬AGE£¬SEX FROM S;
WHERE AGE>(SELECT AGE WHERE SN=¡®Íõ»ª¡¯) D.SLECT SN£¬AGE£¬SEX FROM S WHERE AGE>¡®Íõ»ª¡¯
£¨09´º£©48¡¢ÔÚSELECT-SQLÓï¾äµÄÏÂÁÐ×Ó¾äÖУ¬Í¨³£ºÍHAVING¶ÌÓïͬʱʹÓõÄÊÇ______. A¡¢ORDER BY ×Ó¾ä B¡¢WHERE×Ó¾ä
C¡¢GROUP BY×Ó¾ä D¡¢ÒÔÉϾù²»ÐèÒª
£¨10´º£©48¡¢ÉèÓкÏͬÐÅÏ¢±ícontract(ºÏͬºÅ£¬¿Í»§ºÅ£¬ÒµÎñÔ±£¬Ç©¶¨ÈÕÆÚ£¬½ð¶î)£¬²éѯ2009ÄêËùÇ©ºÏͬµÄÐÅÏ¢£¬²¢°´½ð¶î½µÐòÅÅÐò£¬ÕýÈ·µÄSQLÃüÁîÊÇ________¡£ A¡¢SELECT * FROM CONTRACT WHERE YEAR£¨Ç©¶¨ÈÕÆÚ£©=2009 ORDER BY ½ð¶î DESC B¡¢SELECT * FROM CONTRACT WHILE YEAR£¨Ç©¶¨ÈÕÆÚ£©=2009 ORDER BY ½ð¶î ASC C¡¢SELECT * FROM CONTRACT WHERE YEAR£¨Ç©¶¨ÈÕÆÚ£©=2009 ORDER BY ½ð¶î ASC D¡¢SELECT * FROM CONTRACT WHILE YEAR£¨Ç©¶¨ÈÕÆÚ£©=2009
ORDER BY ½ð¶î DESC
10 / 20
Èý¼¶¡ª¡ªÊý¾Ý¿â
4.5.2 Êý¾Ý¶¨Òå 4.5.3 Êý¾Ý²Ù×Ý
£¨11´º£©48¡¢ÉèÓÐѧÉú±íS£¨no£¬name,age£©½«±íÖÐѧºÅnoΪ¡°n110¡±µÄѧÉúÄêÁäage¼Ó4 µÄÃüÁîÊÇ_________. A¡¢update s set age=age+4 where no=¡±n110¡± B¡¢update s add age+4 where no=¡±n110¡± C¡¢update s set age=age+4 for no=¡±n110¡± D¡¢update s add age+4 for no=¡±n110¡± £¨11Ç47¡¢ÉèstÊÇѧÉú±í£¬Ö´ÐÐSQLÓï¾äINSERT INTO ST(no,name,sex) values(?01101?,?ÀîºÍ?,?ÄÐ?)ºóµÄ½á¹ûÊÇ______. A¡¢²éÕÒ¸ø¶¨¼Ç¼ B¡¢¸üмǼÊý¾Ý C¡¢É¾³ýÒ»Ìõ¼Ç¼ D¡¢²åÈëÒ»Ìõ¼Ç¼ £¨12´º£©46¡¢SQLÓïÑÔÖУ¬¿ÉʹÓÃ_______Óï¾ä½¨Á¢Ë÷Òý¡£ A¡¢CREATE DATABASE B¡¢CREATE INDEX C¡¢CREATE TABLE D¡¢CREATE VIEW 47¡¢ÔÚÏÂÁÐÓйØSQLÃüÁîµÄÐðÊöÖУ¬´íÎóµÄÊÇ________. A¡¢ÀûÓÃALTER TABLE-SQLÃüÁî¿ÉÒÔÐÞ¸ÄÊý¾Ý±íµÄ½á¹¹ B¡¢ÀûÓÃDELETE-SQL ÃüÁî¿ÉÒÔÖ±½Óɾ³ý±íÖеÄ×ֶΠC¡¢ÀûÓÃUPDATE-SQLÃüÁî¿ÉÒÔ¸üÐÂÒ»¸ö±íÖеĶà¸ö×ֶεÄÄÚÈÝ D¡¢ÀûÓÃSELECT-SQLÃüÁîʵÏÖ¶ÔÊý¾Ý±íµÄ¶àÖÖ²éѯҪÇó
4.5.4 Êý¾Ý¿ØÖÆ
Êý¾Ý¿ØÖÆÒ²³ÆÊý¾Ý±£»¤£¬°üÀ¨Êý¾ÝµÄ°²È«ÐÔ¡¢ÍêÕûÐÔ¡¢²¢·¢¿ØÖƺͻָ´¡£
(03´º)38.Êý¾Ý¿â¶ÔÊý¾ÝµÄ±£»¤Ó¦°üÀ¨ÏÂÃæ³ý______ÍâµÄËùÓй¦ÄÜ¡£
A°²È«ÐÔºÍÍêÕûÐÔ B.²¢·¢¿ØÖÆ C.¶ÀÁ¢ÐÔ D.¹ÊÕϻָ´
£¨10´º£©43¡¢ÔÚÊý¾Ý¿â¹ÜÀíϵͳÖУ¬Êý¾Ý¿â°²È«ÐÔºÍÍêÕûÐÔÔ¼ÊøÊÇÓÉÊý¾Ý¿â¹ÜÀíϵͳµÄ_______¹¦ÄÜÀ´¹ÜÀí¡£
A¡¢¶¨Òå B¡¢²Ù×Ý C¡¢¿ØÖÆ D¡¢Î¬»¤
4.6 Êý¾Ý¿âÉè¼Æ
Êý¾Ý¿âÉè¼Æ¹ý³Ì·ÖΪ£ºÐèÇó·ÖÎö½×¶Î¡¢¸ÅÄîÉè¼Æ½×¶Î¡¢Âß¼Éè¼Æ½×¶Î¡¢ÎïÀíÉè¼Æ½×¶Î¡¢ ʵʩÔËÐн׶κÍÊý¾Ý¿âά»¤½×¶Î¡£
4.6.1 ÐèÇó·ÖÎö½×¶Î
»ù±¾²½Ö裺ÐèÇóµÄÊÕ¼¯¡¢ÐèÇóµÄ·ÖÎöºÍÕûÀí¡¢ÐèÇóµÄÃèÊö¡£ ¹¤×÷½á¹û£ºÐèÇó˵Ã÷Ê飨°üÀ¨·Ö²ãµÄÊý¾ÝÁ÷³Ìͼ¡¢Êý¾Ý×ֵ䣩
11 / 20
Èý¼¶¡ª¡ªÊý¾Ý¿â
£¨09Ç43¡¢ÔÚÊý¾Ý¿âÉè¼Æ¹ý³ÌÖУ¬Êý¾Ý×ÖµäÊÇÏÂÁÐ________½×¶ÎµÄ¹¤×÷³É¹û¡£ A¡¢ÐèÇó·ÖÎö B¡¢¸ÅÄîÉè¼Æ C¡¢Âß¼Éè¼Æ D¡¢ÊµÊ©ºÍÊÔÔËÐÐ
4.6.2 ¸ÅÄîÉè¼Æ½×¶Î
»ù±¾²½Ö裺µÃµ½¾Ö²¿ÊÓͼ¡¢Ôٺϲ¢³ÉÈ«¾ÖÊÓͼ ¹¤×÷½á¹û£º¸ÅÄîÄ£ÐÍ£¨E¡ªRͼ£©
£¨07´º£©38¡¢¸ÅÄîÉè¼ÆµÄ½á¹ûÊǵõ½Ò»¸ö______¡£ A¡¢ÓëDBMSÓйصÄÂß¼½á¹¹ B¡¢ÓëDBMSÎ޹صĸÅÄîÄ£ÐÍ C¡¢ÓëDBMSºÍÓ²¼þÓйصÄÊý¾Ý½á¹¹ D¡¢ÓëDBMSºÍÓ²¼þÎ޹صÄÊý¾Ý½á¹¹
4.6.3 Âß¼Éè¼Æ½×¶Î
»ù±¾²½Ö裺³õʼģʽÐγɡ¢×ÓģʽÉè¼Æ¡¢Ä£Ê½ÆÀ¼ÛºÍģʽÓÅ»¯¡£ ¹¤×÷½á¹û£º½«E¡ªRͼת»¯Îª¹Øϵģʽ£¨Ä£Ê½¡¢×Óģʽ£©¡£ ¹ØϵģÐÍת»»ÔÔò¡£
(08Çï¡¢10´º) 42¡¢Êý¾Ý¿âÂß¼Éè¼ÆµÄÖ÷ÒªÈÎÎñÊÇ__________¡£
A¡¢½¨Á¢E-RͼºÍ˵Ã÷Êé B¡¢½«E-Rͼת»¯Îª¹Øϵģʽ²¢½øÐй淶»¯ C¡¢½¨Á¢Êý¾ÝÁ÷ͼ D¡¢°ÑÊý¾ÝËÍÈëÊý¾Ý¿â £¨05Ç39¡¢ÔÚ¹ØϵÊý¾Ý¿âÉè¼ÆÖУ¬×ÓģʽÉè¼ÆÊÇÔÚ£¨£©½×¶Î½øÐеġ£
A.ÎïÀíÉè¼Æ B.Âß¼Éè¼Æ C.¸ÅÄîÉè¼Æ D.³ÌÐòÉè¼Æ £¨11´º£©43¡¢¶Ô¹ØϵģʽµÄ¹æ·¶»¯ÊÇÔÚ________½×¶Î½øÐеġ£ A¡¢ÐèÇó½×¶Î B¡¢¸ÅÄîÉè¼Æ C¡¢Âß¼Éè¼Æ D¡¢ÎïÀíÉè¼Æ £¨11Ç43¡¢Êý¾Ý¿âÉè¼ÆÖУ¬¹ØϵģʽµÄÓÅ»¯ÊÇÔÚ________½×¶ÎÍê³ÉµÄ¡£ A¡¢ÐèÇó·ÖÎö B¡¢¸ÅÄîÉè¼Æ C¡¢Âß¼Éè¼Æ D¡¢ÎïÀíÉè¼Æ
4.6. 4ÎïÀíÉè¼Æ½×¶Î
»ù±¾²½Ö裺½á¹¹Éè¼Æ¡¢Ô¼ÊøºÍ½á¹¹ÆÀ¼Û¡£
¹¤×÷½á¹û£ºÎïÀíÉè¼Æ˵Ã÷Êé¡¢¸ø³öÈíÓ²¼þµÄÒªÇóºÍÔ¼ÊøÌõ¼þ¡£
£¨07Ç39£®¹ØÓÚÊý¾Ý¿âϵͳÉè¼Æ²½ÖèµÄ˵·¨ÖУ¬ÕýÈ·µÄÊÇ_______
A.Êý¾Ý¿âϵͳµÄ¸ÅÄîÉè¼ÆÏÈÓÚÂß¼Éè¼Æ½øÐÐ B.Êý¾Ý¿â¸ÅÄîÉè¼ÆÒÀÀµÓÚDBMS C.ÎïÀíÉè¼ÆÏÈÓÚÂß¼Éè¼Æ½øÐÐ
D.¸ÅÄîÉè¼Æ½×¶Î£¬Ó¦Íê³É¶Ô¹Øϵ½øÐй淶»¯´¦Àí
4.6.5 ʵʩºÍά»¤½×¶Î
°²È«ÐÔ£ºÖ¸±£»¤Êý¾Ý¿âÒÔ·ÀÖ¹²»ºÏ·¨µÄʹÓᣠÍêÕûÐÔ£ºÊÇÖ¸Êý¾ÝµÄÕýÈ·ÐÔºÍÒ»ÖÂÐÔ¡£
ÍêÕûÐÔ·ÖÀࣺʵÌåÍêÕûÐÔ£º±£Ö¤¹ØϵÖÐÔª×éÊÇΨһµÄ¡£Óùؼü×ÖÔ¼Êø£¬Ö÷¹Ø¼ü×Ö²»ÄÜΪ¿ÕÖµ¡£
²ÎÕÕÍêÕûÐÔ£º±£Ö¤Ïà¹Ø±íÊý¾ÝµÄÕýÈ·ÐÔºÍÒ»ÖÂÐÔ¡£
12 / 20