Domain_Calculus - Domain Relational Calculus Overview b An...

Info iconThis preview shows pages 1–10. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Domain Relational Calculus Overview b An Introduction b Domain calculus – Syntax b Suppliers-parts 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

Page1 / 30

Domain_Calculus - Domain Relational Calculus Overview b An...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online