Spatial and Temporal Database
Spatial and Temporal Database
And
Temporal Database
By,
K.SATHISHKUMAR,
G.SUBBA REDDY.
Introduction
Union Intersection
Advantages of Spatial Databases
addgeometrycolumn(‘beer_db’,'pubs','location’
,2167,'POINT',3);
Insert data
name | net_price
---------------+------------------
Garricks Head | 5.16938910560989
Black Sheep | 5.19685978338474
Big Bad Daves | 5.65744654387888
Old Bailys | 5.69720919478127
Fireside | 5.73410275160491
The Forge | 5.86306553480468
Slap Happy | 6.38231910168298
Rumours | 6.50200097907794
Temporal Database
Introduction
• Temporal database stores data relating to
time instances.
• Most applications of database technology
are temporal in nature:
– Financial apps.: portfolio management,
accounting & banking
– Record-keeping apps.: personnel, medical
record and inventory management
– Scientific apps.: weather monitoring
Definition
• Temporal operators:
– BEGIN(A), END(A)
– T_BEFORE(A,B)
– INTERVAL (start-time, end-time)
Example:
Temporal Tables
• Two types of temporal tables: