This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Domain Relational Calculus Overview b An Introduction b Domain calculus – Syntax b Suppliersparts database b Examples b Languages Based on Relational Calculus b SQL b QUEL b QBE An introduction b Another variation of relational calculus called the domain relational calculus, or simply, domain calculus is equivalent to tuple calculus and to relational algebra. b Domain calculus differs from tuple calculus in the type of variables used in formulas: s Rather than having variables range over tuples, the variables range over single values from domains of attributes. b To form a relation of degree n for a query result, we must have n of these domain variables— one for each attribute. An introduction b Domain calculus – range variables ranges over domains (types) b Supports an additional form of <bool exp> called membership condition. b SHIPMENTS { SUPPLIER_NUMBER SUPPLIER_NUMBER('S1'), PART_NUMBER PART_NUMBER('P1') } b SHIPMENTS { SUPPLIER_NUMBER SX, PART_NUMBER PX } Domain calculus b Range variables: b Some examples of domain calculus expressions: Examples b Get the supplier number and cities of suppliers who supply part p2 Examples b Get the supplier number and name of suppliers who supply part p2 Examples b 2. Get supplier numbers for suppliers in Chennai with status > 20. Examples...
View
Full
Document
This note was uploaded on 04/01/2012 for the course CSE,IT 101 taught by Professor Mirunaalini during the Spring '12 term at Indian Institute of Technology, Chennai.
 Spring '12
 Mirunaalini

Click to edit the document details