- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
HowtoWriteCorrectSQLandKnowItARelationalApproach.ppt
How to Write Correct SQL and Know It:
A Relational Approach to SQL
;THESIS :;USING SQL RELATIONALLY :;PREREQUISITES :;FOR EXAMPLE :;What’s a relation variable?
What’s prenex normal form?
Can a relation have an attribute whose values are themselves relations?
Is SQL relationally complete?
What’s The Information Principle?
How does XML fit with the relational model?;Relational terms when discussing relational theory—
relation, tuple, attribute (etc.); SQL terms when discussing
SQL—table, row, column (etc.)
Note: The equivalences are not exact!
One term I’ll use in connection with both relational theory
and SQL: operator (SQL uses operator, function,
procedure, routine, method, but they all mean the same
thing, pretty much)
Thus, e.g., =, :=, +, SELECT,
DISTINCT, UNION, SUM, operators
GROUP BY, etc., etc.;WHY DO YOU NEED TO KNOW
RELATIONAL THEORY ??? ;Those who are enamored of practice without theory are
like a pilot who goes into a ship without rudder or
compass and never has any certainty where he [sic] is
going. Practice should always be based on a sound
knowledge of theory.
—Leonardo da Vinci (1452-1519)
Languages die ... mathematical ideas do not.
—G. H. Hardy (1877-1947);THEORY
IS
PRACTICAL !;The gap between theory and practice
is not as wide in theory
as it is in practice
—Anon.;CODD’S ORIGINAL RELATIONAL MODEL :
AN OVERVIEW ;CODD’S ORIGINAL RELATIONAL ALGEBRA :
AN OVERVIEW ;SP SNO PNO QTY
S1 P1 300 S1 P2 200 S1 P3 400 S1 P4 200 S1 P5 100 S1 P6 100 S2 P1 300 S2 P2 400 S3 P2 200 S4 P2 200 S4 P4 300 S4 P5 400;MODEL vs. IMPLEMENTATION :;MODEL vs. IMPLEMENTATION (cont.) :;MODEL vs. IMPLEMENTATION (cont.) :;E.g., JOINS ARE SLOW :
MAKES NO SENSE !!!;PROPERTIES OF RELATIONS : ;· Every subset of a tuple is a tuple ... Every subset of a
heading is a heading ... Every subset of a body is a body
· Tuple equality: Two tuples EQUAL iff (= if and only if)
?
您可能关注的文档
- DDJStateoftheITUnionSurveyNovember2009.ppt
- DellOpenManageITAssistantUnderstandingEvents--.doc
- DevelopingPublicTransitinYourCommunity.doc
- DEVELOPMENTANDVALIDATIONOFTHETELEPHONE.doc
- DirectorofIT-10minutesoverviewtoz-tree.ppt
- DiscreteLogarithm(s)(DLs).ppt
- Discusswhatitmeanstobesociallyresponsibleandwhat.ppt
- DoYouReallyNeedIt.ppt
- DrugFormulationinPediatricsIfittastesbaditmustbegood.ppt
- DSN系列电磁锁一、概述.doc
- IEEERailTransitVehicleInterfaceStandardsCommittee.doc
- IfDevelopmentisnotEngendered,itisEndangered.ppt
- Ifyouusethemenucommanditwilleraseyourother.doc
- ImpactFactorshowtogetone,howtoimproveit,howto.ppt
- ImpactsofIT.ppt
- IndiaVision2010WhatDrivethIT.ppt
- InformationaboutBH4Whatitisandhowitworks.docx
- InstructionsLookatyourpictureanddescribeittoyourpartner.doc
- INTELCPU系列.doc
- IntheNameoftheFatherandoftheSonandoftheHolySpirit.doc
文档评论(0)