仓酷云

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 1668|回复: 8

[学习教程] MSSQL网页设计我的第一次数据库功课:标题原文

[复制链接]
老尸 该用户已被删除
发表于 2015-1-16 22:40:42 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
导致了一个使用几乎和mSQL一样的API接口的用于他们的数据库的新的SQL接口的产生,这样,这个API被设计成允许为用于mSQL而写的第三方代码更容易移植到MySQL。数据|数据库
TakeAssessment:Exercise1






RelationalDatabases
DesignthefollowingtwotablesandturninyoursubmissionsinanHTMLfilenamedBookPublisher.html.



BOOK:


PrimaryAuthor

Title

ISBN

PublisherID

Edition

DateofPublication

Price

BookDescription


PUBLISHER:


PublisherID

Name

Address


PartI



1.Identifythekeysinyourtablesasfollows.Forthisexercise,ignoretheperformanceconsiderationswhilechoosingyourkeys.



1.Foreachtable,indicatethePrimaryKey(s)(PKs).IfthereisnoPK,stateso.Fullyjustifyyouranswer.



2.Foreachtable,indicatetheAlternateKey(s)(AKs).IfthereisnoAK,stateso.Fullyjustifyyouranswer.



3.Foreachtable,identifytheForeignKey(s)(FKs)andtheintegrityconstraints.Fullyjustifyyouranswer.



2.Listallcolumnsofyourtables,andthedomains(thedatatypesandformats)ofthesecolumns.Fullyjustifyyouranswer.



InanHTMLtable,listatleastfourrowswithvalidvaluesineachofthetables.TurninyoursubmissioninafilenamedBookPublisher.html.



PartII



WriteSQLstatementsasspecifiedbelow.YoumayfindthishelponsettingupyourDBMSuseful.SubmityourSQLstatementsinafilenamedcreateDB.sql.



1.WritetheDDLstatementstocreatethetwotablesusingtheCREATETABLEstatement.Besuretoidentifyyourprimarykeysandalternatekeysinthestatement.



2.WritetheINSERTstatementstoinsertthefourrowsintoeachtable.



3.WritetheSQLstatementtoretrievethetitleandpriceofallbookspublishedbyeitheroftwopublishers(say"AddisonWesley"and"McGrawHill").InthefileRel-ops.txt,listwhichrelationaloperationsyouused,fromamongtheselect/project/joinoperations,inordertoperformthisquery.Explaintheroleofeachoperationinyourquery.



4.WritetheSQLstatementtoretrievethePublishernameofaparticularbooktitle(say"FundamentalsofDatabaseSystems").



PartIII



Inthefilenamedpart3.txt,provideanswerstothefollowingquestions.



1.In1.2.2RelationalOperations,therewasanexampleofthesetdifferenceoperation:theresultofr-swasprovidedtoyou.Providetheresultofthesetdifferenceoperations-r.



2.Intheclassnotes,thefollowingUNIONexamplewasdiscussed.Giveaprosaicdescriptionoftheresultsthatwillberetrievedbyreplacing
UNION
withEXCEPTinthefollowingquery:



3.(SELECTMemNo



4.FROMMEMBER,BOOK



5.WHEREMemNo=BorrowerMemNoAND



6.CallNumber=QA76.9.D26C66



7.)



8.
UNION




9.(SELECTMemNo



10.FROMMEMBER,BOOK



11.WHEREMemNo=BorrowerMemNoAND



12.CallNumber=QA76.9.D7E53



13.);



Yoursubmissionforthisexerciseshouldconsistofthefollowingfiles:BookPublisher.htmlandcreateDB.sql,Rel-ops.txt,andpart3.txt.



Tohelpyourselfdoyourbestonthisassessment,consultthisgenerallistofgradingguidelines.










修复过程包含最多4个阶段,在下面描述。在你开始前,你应该cd到数据库目录和检查表文件的权限,确保他们可被运行mysqld的Unix用户读取(和你,因为你需要存取你正在检查的文件)。如果它拒绝你修改文件,他们也必须是可被你写入的。
分手快乐 该用户已被删除
发表于 2015-1-17 14:59:53 | 显示全部楼层
varchar(max)\\\\nvarchar(max)类型的引入大大的提高了编程的效率,可以使用字符串函数对CLOB类型进行操作,这是一个亮点。
小女巫 该用户已被删除
发表于 2015-1-20 19:47:44 | 显示全部楼层
大侠们有推荐的书籍和学习方法写下吧。
简单生活 该用户已被删除
发表于 2015-1-29 18:00:09 | 显示全部楼层
入门没那么困难,精通没那么容易
第二个灵魂 该用户已被删除
发表于 2015-2-6 03:06:31 | 显示全部楼层
XML字段类型更好的解决了XML数据的操作。XQuery确实不错,但是个人对其没好感。(CSDN的开发者应该是相当的熟了!)
柔情似水 该用户已被删除
发表于 2015-2-15 07:14:28 | 显示全部楼层
换言之,只有在不断的失败中尝试成功,而关于失败的总结却是很少的
小魔女 该用户已被删除
发表于 2015-3-4 11:23:07 | 显示全部楼层
还不是性能有问题!否则面向对象的数据库早就实现了!建议使用CLR的地方一般是和应用的复杂程度或操作系统环境有很高的耦合度的场景。如你想构建复杂的算法,并且用到了大量的指针和高级数据模型。
爱飞 该用户已被删除
发表于 2015-3-19 07:52:52 | 显示全部楼层
其实可以做一下类比,Oracle等数据库产品老早就支持了java编程,而且提供了java池参数作为用户配置接口。但是现在有哪些系统大批使用了java存储过程?!连Oracle自己的应用都不用为什么?!
再见西城 该用户已被删除
发表于 2015-3-27 15:09:56 | 显示全部楼层
记得在最开始使用2k的时候就要用到这个功能,可惜2k没有,现在有了作解决方案的朋友会很高兴吧。
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|仓酷云 鄂ICP备14007578号-2

GMT+8, 2024-3-29 23:14

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表