当前位置:高等教育资讯网  >  中国高校课件下载中心  >  大学文库  >  浏览文档

《数据库系统概念 Database System Concepts》原书教学资源(第六版,PPT课件讲稿,英文版)Chapter 25 Advanced Data Types and New Applications

资源类别:文库,文档格式:PPT,文档页数:50,文件大小:1.2MB,团购合买
Temporal Data Spatial and Geographic Databases Multimedia Databases Mobility and Personal Databases
点击下载完整版文档(PPT)

Chapter 25:Advanced Data Types and New Applications Temporal Data Spatial and Geographic Databases Multimedia Databases Mobility and Personal Databases Database System Concepts-6th Edition 25.2 @Silberschatz,Korth and Sudarshan

Database System Concepts - 6 25.2 ©Silberschatz, Korth and Sudarshan th Edition Chapter 25: Advanced Data Types and New Applications Temporal Data Spatial and Geographic Databases Multimedia Databases Mobility and Personal Databases

Time In Databases While most databases tend to model reality at a point in time (at the "current"time),temporal databases model the states of the real world across time. Facts in temporal relations have associated times when they are valid, which can be represented as a union of intervals. The transaction time for a fact is the time interval during which the fact is current within the database system. In a temporal relation,each tuple has an associated time when it is true; the time may be either valid time or transaction time. A bi-temporal relation stores both valid and transaction time. Database System Concepts-6th Edition 25.3 ©Silberschat乜,Korth and Sudarshan

Database System Concepts - 6 25.3 ©Silberschatz, Korth and Sudarshan th Edition Time In Databases While most databases tend to model reality at a point in time (at the “current” time), temporal databases model the states of the real world across time. Facts in temporal relations have associated times when they are valid, which can be represented as a union of intervals. The transaction time for a fact is the time interval during which the fact is current within the database system. In a temporal relation, each tuple has an associated time when it is true; the time may be either valid time or transaction time. A bi-temporal relation stores both valid and transaction time

Time In Databases(Cont.) Example of a temporal relation: ID name dept name salary from to 10101 Srinivasan Comp.Sci. 61000 2007/1/1 2007/12/31 10101 Srinivasan Comp.Sci. 65000 2008/1/1 2008/12/31 12121 Wu Finance 82000 2005/1/1 2006/12/31 12121 Wu Finance 87000 2007/1/1 2007/12/31 12121 Wu Finance 90000 2008/1/1 2008/12/31 98345 Kim Elec.Eng. 80000 2005/1/1 2008/12/31 Temporal query languages have been proposed to simplify modeling of time as well as time related queries. Database System Concepts-6th Edition 25.4 @Silberschatz,Korth and Sudarshan

Database System Concepts - 6 25.4 ©Silberschatz, Korth and Sudarshan th Edition Time In Databases (Cont.) Example of a temporal relation: Temporal query languages have been proposed to simplify modeling of time as well as time related queries

Time Specification in SQL-92 date:four digits for the year(1--9999),two digits for the month(1--12), and two digits for the date(1--31). time:two digits for the hour,two digits for the minute,and two digits for the second,plus optional fractional digits. timestamp:the fields of date and time,with six fractional digits for the seconds field. Times are specified in the Universal Coordinated Time,abbreviated UTC(from the French);supports time with time zone. interval:refers to a period of time (e.g.,2 days and 5 hours),without specifying a particular time when this period starts;could more accurately be termed a span. Database System Concepts-6th Edition 25.5 @Silberschatz,Korth and Sudarshan

Database System Concepts - 6 25.5 ©Silberschatz, Korth and Sudarshan th Edition Time Specification in SQL-92 date: four digits for the year (1--9999), two digits for the month (1--12), and two digits for the date (1--31). time: two digits for the hour, two digits for the minute, and two digits for the second, plus optional fractional digits. timestamp: the fields of date and time, with six fractional digits for the seconds field. Times are specified in the Universal Coordinated Time, abbreviated UTC (from the French); supports time with time zone. interval: refers to a period of time (e.g., 2 days and 5 hours), without specifying a particular time when this period starts; could more accurately be termed a span

Temporal Query Languages Predicates precedes,overlaps,and contains on time intervals. Intersect can be applied on two intervals,to give a single(possibly empty)interval;the union of two intervals may or may not be a single interval. A snapshot of a temporal relation at time t consists of the tuples that are valid at time t,with the time-interval attributes projected out. Temporal selection:involves time attributes Temporal projection:the tuples in the projection inherit their time- intervals from the tuples in the original relation. Temporal join:the time-interval of a tuple in the result is the intersection of the time-intervals of the tuples from which it is derived.It intersection is empty,tuple is discarded from join. Database System Concepts-6th Edition 25.6 @Silberschatz,Korth and Sudarshan

Database System Concepts - 6 25.6 ©Silberschatz, Korth and Sudarshan th Edition Temporal Query Languages Predicates precedes, overlaps, and contains on time intervals. Intersect can be applied on two intervals, to give a single (possibly empty) interval; the union of two intervals may or may not be a single interval. A snapshot of a temporal relation at time t consists of the tuples that are valid at time t, with the time-interval attributes projected out. Temporal selection: involves time attributes Temporal projection: the tuples in the projection inherit their time￾intervals from the tuples in the original relation. Temporal join: the time-interval of a tuple in the result is the intersection of the time-intervals of the tuples from which it is derived. It intersection is empty, tuple is discarded from join

Temporal Query Languages(Cont.) Functional dependencies must be used with care:adding a time field may invalidate functional dependency A temporal functional dependency x>Y holds on a relation schema R if,for all legal instances r of R,all snapshots of r satisfy the functional dependency X->Y. SQL:1999 Part 7(SQL/Temporal)is a proposed extension to SQL:1999 to improve support of temporal data. Database System Concepts-6th Edition 25.7 @Silberschatz,Korth and Sudarshan

Database System Concepts - 6 25.7 ©Silberschatz, Korth and Sudarshan th Edition Temporal Query Languages (Cont.) Functional dependencies must be used with care: adding a time field may invalidate functional dependency A temporal functional dependency x → Y holds on a relation schema R if, for all legal instances r of R, all snapshots of r satisfy the functional dependency X →Y. SQL:1999 Part 7 (SQL/Temporal) is a proposed extension to SQL:1999 to improve support of temporal data. 

☒无法显示该图片。 Spatial and Geographic Databases Database System Concepts,6th Ed. @Silberschatz,Korth and Sudarshan See www.db-book.com for conditions on re-use

Database System Concepts, 6th Ed. ©Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use Spatial and Geographic Databases

Spatial and Geographic Databases Spatial databases store information related to spatial locations,and support efficient storage,indexing and querying of spatial data. Special purpose index structures are important for accessing spatial data,and for processing spatial join queries. Computer Aided Design(CAD)databases store design information about how objects are constructed E.g.:designs of buildings,aircraft, layouts of integrated-circuits Geographic databases store geographic information(e.g.,maps): often called geographic information systems or GIS. Database System Concepts-6th Edition 25.9 @Silberschatz,Korth and Sudarshan

Database System Concepts - 6 25.9 ©Silberschatz, Korth and Sudarshan th Edition Spatial and Geographic Databases Spatial databases store information related to spatial locations, and support efficient storage, indexing and querying of spatial data. Special purpose index structures are important for accessing spatial data, and for processing spatial join queries. Computer Aided Design (CAD) databases store design information about how objects are constructed E.g.: designs of buildings, aircraft, layouts of integrated-circuits Geographic databases store geographic information (e.g., maps): often called geographic information systems or GIS

Represented of Geometric Information Various geometric constructs can be represented in a database in a normalized fashion. Represent a line segment by the coordinates of its endpoints. Approximate a curve by partitioning it into a sequence of segments Create a list of vertices in order,or Represent each segment as a separate tuple that also carries with it the identifier of the curve(2D features such as roads). Closed polygons List of vertices in order,starting vertex is the same as the ending vertex.or Represent boundary edges as separate tuples,with each containing identifier of the polygon,or Use triangulation-divide polygon into triangles Note the polygon identifier with each of its triangles. Database System Concepts-6th Edition 25.10 @Silberschatz,Korth and Sudarshan

Database System Concepts - 6 25.10 ©Silberschatz, Korth and Sudarshan th Edition Represented of Geometric Information Various geometric constructs can be represented in a database in a normalized fashion. Represent a line segment by the coordinates of its endpoints. Approximate a curve by partitioning it into a sequence of segments Create a list of vertices in order, or Represent each segment as a separate tuple that also carries with it the identifier of the curve (2D features such as roads). Closed polygons List of vertices in order, starting vertex is the same as the ending vertex, or Represent boundary edges as separate tuples, with each containing identifier of the polygon, or Use triangulation — divide polygon into triangles  Note the polygon identifier with each of its triangles

Representation of Geometric Constructs line segment (x1y1),(x2y2)} 1 3 triangle {x1y1),(x2y2),(x3y3)} 3 polygon {(x1y1),(x2,y2),(x3,y3),(x4,y4),(x5y5)} 4 5 2 3 {(x1,y1),(x2,y2),(x3,y3),D1 polygon (x1,y1),(x3,y3),(x4,y4),D1 {(x1,y1),(x4,y4),(x5,y5),D1 4 5 object representation Database System Concepts-6th Edition 25.11 @Silberschatz,Korth and Sudarshan

Database System Concepts - 6 25.11 ©Silberschatz, Korth and Sudarshan th Edition Representation of Geometric Constructs

点击下载完整版文档(PPT)VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
共50页,可试读17页,点击继续阅读 ↓↓
相关文档

关于我们|帮助中心|下载说明|相关软件|意见反馈|联系我们

Copyright © 2008-现在 cucdc.com 高等教育资讯网 版权所有