MSSQL网页设计我的第一次数据库功课:标题原文
导致了一个使用几乎和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用户读取(和你,因为你需要存取你正在检查的文件)。如果它拒绝你修改文件,他们也必须是可被你写入的。 varchar(max)\\\\nvarchar(max)类型的引入大大的提高了编程的效率,可以使用字符串函数对CLOB类型进行操作,这是一个亮点。 大侠们有推荐的书籍和学习方法写下吧。 入门没那么困难,精通没那么容易 XML字段类型更好的解决了XML数据的操作。XQuery确实不错,但是个人对其没好感。(CSDN的开发者应该是相当的熟了!) 换言之,只有在不断的失败中尝试成功,而关于失败的总结却是很少的 还不是性能有问题!否则面向对象的数据库早就实现了!建议使用CLR的地方一般是和应用的复杂程度或操作系统环境有很高的耦合度的场景。如你想构建复杂的算法,并且用到了大量的指针和高级数据模型。 其实可以做一下类比,Oracle等数据库产品老早就支持了java编程,而且提供了java池参数作为用户配置接口。但是现在有哪些系统大批使用了java存储过程?!连Oracle自己的应用都不用为什么?! 记得在最开始使用2k的时候就要用到这个功能,可惜2k没有,现在有了作解决方案的朋友会很高兴吧。
页:
[1]