Source: http://www.patentsencyclopedia.com/app/20130007067
Timestamp: 2018-12-13 08:58:06
Document Index: 661493479

Matched Legal Cases: ['art 160', 'art 160', 'art 260', 'art 260', 'art 260', 'art 260', 'art 160', 'art 162', 'art 160', 'art 162']

SYSTEM AND METHOD FOR IMPLEMENTING MULTI-TEMPORAL DATABASE FUNCTIONALITY - Patent application
Patent application title: SYSTEM AND METHOD FOR IMPLEMENTING MULTI-TEMPORAL DATABASE FUNCTIONALITY
Inventors: Ullas Balan Nambiar (Haryana, IN) Prasad Manikarao Deshpande (Mumbai, IN) Ramanujam Seshadri Halasipuram (Bangalore, IN) Balakrishna Raghavendra Iyer (San Jose, CA, US)
Patent application number: 20130007067
A computer-implemented method, computer program product, and computing system for implementing multi-temporal tables in a database is described. One or more databases are utilized, wherein the one or more databases implement a first temporal table that includes a first and a second time domain. The one or more databases are enabled to implement a second temporal table that includes at least a third time domain, wherein the second temporal table is associated with the first temporal table.
1. A computer-implemented method comprising: utilizing, by a computing device, one or more databases, wherein the one or more databases implement a first temporal table that includes a first and a second time domain; and enabling, by the computing device, the one or more databases to implement a second temporal table that includes at least a third time domain, wherein the second temporal table is associated with the first temporal table.
2. The computer-implemented method of claim 1 wherein at least the first temporal table includes one or more tuples of data, wherein the one or more tuples of data are uniquely identified by a tuple identifier.
3. The computer-implemented method of claim 2 wherein enabling the one or more databases to implement the second temporal table further comprises: copying, at least in part, the one or more tuples of data from the first temporal table to the second temporal table; and linking the one or more tuples of data of the first temporal table to the one or more tuples of data of the second temporal table based, at least in part, upon the tuple identifier.
4. The computer-implemented method of claim 1 wherein: the first time domain defines a valid time; and the second time domain defines a system time.
5. The computer-implemented method of claim 4 wherein the third time domain defines a visibility time.
6. The computer-implemented method of claim 3 further comprising one or more of: selecting the one or more tuples of data based, at least in part, upon one or more of the first, second, and third time domain; inserting the one or more tuples of data into one or more of the first and second temporal table; and updating the one or more tuples of data within one or more of the first and second temporal table.
7. The computer-implemented method of claim 3 further comprising: ordering the one or more tuples of data based, at least in part, upon selecting only the one or more tuples of data that are active as of a start of the third time domain.
8. A computer program product residing on a computer readable medium having a plurality of instructions stored thereon which, when executed by a processor, cause the processor to perform operations comprising: utilizing, by a computing device, one or more databases, wherein the one or more databases implement a first temporal table that includes a first and a second time domain; and enabling, by the computing device, the one or more databases to implement a second temporal table that includes at least a third time domain, wherein the second temporal table is associated with the first temporal table.
9. The computer program product of claim 8 wherein at least the first temporal table includes one or more tuples of data, wherein the one or more tuples of data are uniquely identified by a tuple identifier.
10. The computer program product of claim 9 wherein enabling the one or more databases to implement the second temporal table further comprises: copying, at least in part, the one or more tuples of data from the first temporal table to the second temporal table; and linking the one or more tuples of data of the first temporal table to the one or more tuples of data of the second temporal table based, at least in part, upon the tuple identifier.
11. The computer program product of claim 8 wherein: the first time domain defines a valid time; and the second time domain defines a system time.
12. The computer program product of claim 11 wherein the third time domain defines a visibility time.
13. The computer program product of claim 10 further comprising one or more of: selecting the one or more tuples of data based, at least in part, upon one or more of the first, second, and third time domain; inserting the one or more tuples of data into one or more of the first and second temporal table; and updating the one or more tuples of data within one or more of the first and second temporal table.
14. The computer program product of claim 10 further comprising: ordering the one or more tuples of data based, at least in part, upon selecting only the one or more tuples of data that are active as of a start of the third time domain.
15. A computing system comprising: a processor; a memory module coupled with the processor; a first software module executable by the processor and the memory module, wherein the first software module is configured to utilize one or more databases, wherein the one or more databases implement a first temporal table that includes a first and a second time domain; and a second software module executable by the processor and the memory module, wherein the second software module is configured to enable the one or more databases to implement a second temporal table that includes at least a third time domain, wherein the second temporal table is associated with the first temporal table.
16. The computing system of claim 15 wherein at least the first temporal table includes one or more tuples of data, wherein the one or more tuples of data are uniquely identified by a tuple identifier.
17. The computing system of claim 16 wherein the second software module configured to enable the one or more databases to implement the second temporal table is further configured to: copy, at least in part, the one or more tuples of data from the first temporal table to the second temporal table; and link the one or more tuples of data of the first temporal table to the one or more tuples of data of the second temporal table based, at least in part, upon the tuple identifier.
18. The computing system of claim 15 wherein: the first time domain defines a valid time; and the second time domain defines a system time.
19. The computing system of claim 18 wherein the third time domain defines a visibility time.
20. The computing system of claim 17 further comprising one or more of: a third software module executable by the processor and the memory module, wherein the third software module is configured to select the one or more tuples of data based, at least in part, upon one or more of the first, second, and third time domain; a fourth software module executable by the processor and the memory module, wherein the fourth software module is configured to insert the one or more tuples of data into one or more of the first and second temporal table; and a fifth software module executable by the processor and the memory module, wherein the fifth software module is configured to update the one or more tuples of data within one or more of the first and second temporal table.
[0001] This disclosure relates to temporal databases and, more particularly, to a system and method of implementing multiple time domains within databases employing bi-temporal tables.
[0002] Conventional temporal database systems generally allow users to store data that may be associated with up to two temporal domains. Typically, these systems may provide users with the ability to, e.g., manage data based upon the system time associated with the data and/or a business time associated with the data. Often, users of such conventional temporal database systems may desire to employ additional temporal domains with their data. Implementing such additional temporal domains, however, may not be possible for efficiency and cost reasons. This may lead to a condition where users decide to forgo such enhanced functionality. It may often be useful for a multi-temporal system to be effectively integrated into conventional database systems.
[0003] According to a first implementation, a computer-implemented method includes utilizing, by a computing device, one or more databases, wherein the one or more databases implement a first temporal table that includes a first and a second time domain. The computing device enables the one or more databases to implement a second temporal table that includes at least a third time domain, wherein the second temporal table is associated with the first temporal table.
[0004] One or more of the following features may be included. At least the first temporal table may include one or more tuples of data, wherein the one or more tuples of data may be uniquely identified by a tuple identifier. The one or more tuples of data from the first temporal table may be copied, at least in part, to the second temporal table. The one or more tuples of data of the first temporal table may be linked to the one or more tuples of data of the second temporal table based, at least in part, upon the tuple identifier. The first time domain may define a valid time, and the second time domain may define a system time. The third time domain may define a visibility time.
[0005] Further, the one or more tuples of data may be selected based, at least in part, upon one or more of the first, second, and third time domain. The one or more tuples of data may be inserted into one or more of the first and second temporal table. The one or more tuples of data within one or more of the first and second temporal table may be updated. The one or more tuples of data may be ordered based, at least in part, upon selecting only the one or more tuples of data that may be active as of a start of the third time domain.
[0006] According to another implementation, a computer program product includes a computer readable medium having a plurality of instructions stored on it. When executed by a processor, the instructions cause the processor to perform operations including utilizing, by a computing device, one or more databases, wherein the one or more databases implement a first temporal table that includes a first and a second time domain. The computing device enables the one or more databases to implement a second temporal table that includes at least a third time domain, wherein the second temporal table is associated with the first temporal table.
[0007] One or more of the following features may be included. At least the first temporal table may include one or more tuples of data, wherein the one or more tuples of data may be uniquely identified by a tuple identifier. The one or more tuples of data from the first temporal table may be copied, at least in part, to the second temporal table. The one or more tuples of data of the first temporal table may be linked to the one or more tuples of data of the second temporal table based, at least in part, upon the tuple identifier. The first time domain may define a valid time, and the second time domain may define a system time. The third time domain may define a visibility time.
[0008] Further, the one or more tuples of data may be selected based, at least in part, upon one or more of the first, second, and third time domain. The one or more tuples of data may be inserted into one or more of the first and second temporal table. The one or more tuples of data within one or more of the first and second temporal table may be updated. The one or more tuples of data may be ordered based, at least in part, upon selecting only the one or more tuples of data that may be active as of a start of the third time domain.
[0009] According to yet another implementation, a computing system includes a processor and a memory module coupled with the processor. A first software module is executable by the processor and the memory module. The first software module is configured to utilize one or more databases, wherein the one or more databases implement a first temporal table that includes a first and a second time domain. A second software module is executable by the processor and the memory module. The second software module is configured to enable the one or more databases to implement a second temporal table that includes at least a third time domain, wherein the second temporal table is associated with the first temporal table.
[0010] One or more of the following features may be included. At least the first temporal table may include one or more tuples of data, wherein the one or more tuples of data may be uniquely identified by a tuple identifier. The second software module configured to enable the one or more databases to implement the second temporal table may be further configured to copy, at least in part, the one or more tuples of data from the first temporal table to the second temporal table. Additionally, the second software module configured to enable the one or more databases to implement the second temporal table may also be configured to link the one or more tuples of data of the first temporal table to the one or more tuples of data of the second temporal table based, at least in part, upon the tuple identifier. The first time domain may define a valid time, and the second time domain may define a system time. The third time domain may define a visibility time.
[0011] A third software module may be executable by the processor and the memory module. The third software module may be configured to select the one or more tuples of data based, at least in part, upon one or more of the first, second, and third time domain. A fourth software module may be executable by the processor and the memory module. The fourth software module may be configured to insert the one or more tuples of data into one or more of the first and second temporal table. A fifth software module may be executable by the processor and the memory module. The fifth software module may be configured to update the one or more tuples of data within one or more of the first and second temporal table.
[0013] FIG. 1 diagrammatically depicts a multi-temporal process coupled to a distributed computing system.
[0014] FIG. 2 is a flow chart of a process performed by the multi-temporal process of FIG. 1.
[0015] FIG. 3 diagrammatically depicts a temporal domain that may be utilized by the multi-temporal process of FIG. 1.
[0016] FIG. 4 diagrammatically depicts a temporal domain that may be utilized by the multi-temporal process of FIG. 1.
[0017] FIG. 5 diagrammatically depicts the effects of ordering based, at least in part, upon various temporal domains that may be utilized by the multi-temporal process of FIG. 1.
[0019] Any suitable computer usable or computer readable medium may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer-usable, or computer-readable, storage medium (including a storage device associated with a computing device or client electronic device) may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device. In the context of this document, a computer-usable, or computer-readable, storage medium may be any tangible medium that can contain, or store a program for use by or in connection with the instruction execution system, apparatus, or device.
[0020] A computer readable signal medium may include a propagated data signal with computer readable program coded embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
[0024] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
[0026] Referring to FIG. 1, there is shown multi-temporal process 10 that may reside on and may be executed by server computer 12, which may be connected to network 14 (e.g., the Internet or a local area network). Examples of server computer 12 may include, but are not limited to: a personal computer, a server computer, a series of server computers, a mini computer, and a mainframe computer. Server computer 12 may be a database server (or a series of servers) running a network operating system, examples of which may include but are not limited to: Microsoft® Windows® Server; Novell® NetWare® or Red Hat® Linux®, for example. (Microsoft and Windows are registered trademarks of Microsoft Corporation in the United States, other countries or both; Novell and NetWare are registered trademarks of Novell Corporation in the United States, other countries or both; Red Hat is a registered trademark of Red Hat Corporation in the United States, other countries or both; and Linux is a registered trademark of Linus Torvalds in the United States, other countries or both.) Additionally/alternatively, the arrival time process may reside on and be executed, in whole or in part, by a client electronic device, such as a personal computer, notebook computer, personal digital assistant, or the like.
[0027] As will be discussed below in greater detail, multi-temporal process 10 may utilize one or more databases, wherein the one or more databases may implement a first temporal table that may include a first and a second time domain. Multi-temporal process 10 may enable the one or more databases to implement a second temporal table that may include at least a third time domain, wherein the second temporal table may be associated with the first temporal table.
[0028] The instruction sets and subroutines of multi-temporal process 10, which may include one or more software modules, and which may be stored on storage device 16 coupled to server computer 12, may be executed by one or more processors (not shown) and one or more memory modules (not shown) incorporated into server computer 12. Storage device 16 may include but is not limited to: a hard disk drive; a solid state drive, a tape drive; an optical drive; a RAID array; a random access memory (RAM); and a read-only memory (ROM).
[0029] For the purpose of the following description, server computer 12 may be discussed. However, this is for illustrative purposes only and should not be construed as a limitation of the present disclosure, as one of skill in the art will appreciate that any computing device capable of performing the functions of multi-temporal process 10 may be utilized.
[0030] Server computer 12 may also execute a database management system (e.g., database application 20) that, e.g., may be stored on storage device 16, examples of which may include but are not limited to: DB2 from IBM, Oracle DBMS, or SQL Server from Microsoft, that, e.g., control the creation, maintenance, and the use of a database (e.g., database 64) that may be stored on server computer 12 (IBM is a trademark of IBM Corporation in the United States, other countries, or both; Oracle is a registered trademark of Oracle Corporation in the United States, other countries, or both; and Microsoft is a registered trademark of Microsoft Corporation in the United States, other countries, or both). Network 14 may be connected to one or more secondary networks (e.g., network 18), examples of which may include but are not limited to: a local area network; a wide area network; or an intranet, for example.
[0031] Multi-temporal process 10 may be a stand alone application, or may be an applet/application/script that may interact with and/or be executed within database application 20. In addition/as an alternative to being a server-side process, the multi-temporal process may be a client-side process (not shown) that may reside on a client electronic device (described below) and may interact with a multi-temporal client application (e.g., one or more of multi-temporal applications 22, 24, 26, 28). Further, the multi-temporal process may be a hybrid server-side/client-side process that may interact with database application 20 and a multi-temporal client application (e.g., one or more of scheduling client applications 22, 24, 26, 28). As such, the multi-temporal process may reside, in whole, or in part, on server computer 12 and/or one or more client electronic devices.
[0032] The instruction sets and subroutines of database application 20, which may be stored on storage device 16 (e.g., the database) coupled to server computer 12 may be executed by one or more processors (not shown) and one or more memory modules (not shown) incorporated into server computer 12.
[0033] The instruction sets and subroutines of multi-temporal client applications 22, 24, 26, 28, which may be configured as one or more software modules, and which may be stored on storage devices 30, 32, 34, 36 (respectively) coupled to client electronic devices 38, 40, 42, 44 (respectively), may be executed by one or more processors (not shown) and one or more memory modules (not shown) incorporated into client electronic devices 38, 40, 42, 44 (respectively). Storage devices 30, 32, 34, 36 may include but are not limited to: hard disk drives; solid state drives; tape drives; optical drives; RAID arrays; random access memories (RAM); read-only memories (ROM), compact flash (CF) storage devices, secure digital (SD) storage devices, and memory stick storage devices. Examples of computing devices 38, 40, 42, 44 may include, but are not limited to, personal computer 38, laptop computer 40, personal digital assistant 42, notebook computer 44, a data-enabled, cellular telephone (not shown), and a dedicated network device (not shown), for example. Using multi-temporal client applications 22, 24, 26, 28, users 46, 48, 50, 52 may, for example, implement multi-temporal tables in a database employing bi-temporal tables.
[0034] Users 46, 48, 50, 52 may access multi-temporal process 10 directly through the device on which the client application (e.g., credential store client applications 22, 24, 26, 28) is executed, namely client electronic devices 38, 40, 42, 44, for example. Users 46, 48, 50, 52 may access multi-temporal process 10 directly through network 14 or through secondary network 18. Further, server computer 12 (i.e., the computer that executes credential store process 10) may be connected to network 14 through secondary network 18, as illustrated with phantom link line 54.
[0037] Client electronic devices 38, 40, 42, 44 may each execute an operating system, examples of which may include but are not limited to Microsoft® Windows®, Microsoft Windows CE®, Red Hat® Linux®, or a custom operating system (Windows CE is a registered trademark of Microsoft Corporation in the United States, other countries, or both).
[0038] For the purpose of the following description, multi-temporal client application 22 may be discussed. However, this is for illustrative purposes only and should not be construed as a limitation of the present disclosure, as other client applications (e.g., multi-temporal client applications 24, 26, 28) may be equally utilized.
[0039] Referring also to FIG. 2, multi-temporal process 10 may utilize 100 (via, e.g., server computer 12) one or more databases, wherein the one or more databases may implement 102 a first temporal table that includes a first and a second time domain. Multi-temporal process 10 may also enable 104 the one or more databases to implement 106 a second temporal table that includes at least a third time domain, wherein the second temporal table is associated 108 with the first temporal table. As used herein, utilizing 100 and/or enabling 104 database(s) (e.g., stored in storage device 16) may involve the use of server computer 12, database application 20, or both. Further, a database that provides temporal tables may mean that it may have built-in time aspects. Specifically, for example, such built-in support may manage temporal data such that it may reduce application logic and may ensure consistent handling of time-related events across applications.
[0040] To further illustrate this concept, and referring also to FIG. 3, an exemplary temporal table (e.g., first temporal table 150) may be shown. At least first temporal table 150 may include 110 one or more tuples of data (e.g., tuple 152), wherein the one or more tuples of data may be uniquely identified 112 by a tuple identifier (described below). In this example of an illustrative banking transaction, however, tuple 152 may include a bank identifier (e.g., "1") that may uniquely identify 112 one or more tuples of data corresponding to a given bank (e.g., "1").
[0041] Additionally, multi-temporal process 10 may utilize 100 one or more databases (e.g., database 64), wherein the one or more databases may implement 102 a first temporal table (e.g., first temporal table 150) that may include a first and a second time domain (e.g., first time domain 156 and second time domain 158). Moreover, the first time domain (e.g., first time domain 156) may define 114 a valid time (including, e.g., valid start 160 and valid end 162), and the second time domain (e.g., second time domain 158) may define 116 a system time (e.g., system time 164).
[0042] Thus, continuing with the above-stated banking example, a temporal table (e.g., first temporal table 150) implementing 102 a first and second time domain (e.g., first time domain 156 and second time domain 158) may result in tuple 152 including other pieces of data relevant to the banking transaction, which may include, but are not limited to, a banking interest rate (e.g., interest rate 166).
[0043] Accordingly, and as will be appreciated by one of skill in the art, certain users of such a system (e.g., banking institutions) may have business needs requiring their data be associated with more than one time domain. Specifically, in the example above, a banking institution may wish to track, publish, etc., the interest rates for which it offers its customers. However, that banking institution may wish to assign a given interest rate (e.g., interest rate 166) to a particular period of time (e.g., first time domain 156), which may not begin on the date and time on which the banking institution entered interest rate 166 into first temporal table 150. In other words, for example, without first time domain 156 (e.g., valid date 160 and valid date 162), the banking institution may be limited to the interest rate becoming effective as of system time 164 (e.g., second time domain 158), which may automatically be set by a database management system (e.g., database application 20).
[0044] More specifically, in this particular example, assume the banking institution identified by bank identifier 154 as "1" may have entered a change to interest rate 166 (i.e., 7%) into tuple 152. Moreover, assume this change may have been entered on Aug. 31, 2011 at 2:15 pm, as denoted by system time 164. However, assume that this banking institution did not want the interest rate to go into effect (i.e., become valid) until the next day, Sep. 1, 2011. Accordingly, e.g., valid start 160 and valid end 162 of first time domain 156 may enable the banking institution to provide a valid time period (e.g., first time domain 156) that may be other than the time period in which the interest rate change was entered into the system (e.g., second time domain 158).
[0045] One of skill in the art will appreciate that the number, nature, and organization of first time domain 156, second time domain 158, tuple identifier 154, and interest rate 166 within first temporal table 150 may vary depending on programming/design requirements. As such, first time domain 156, second time domain 158, tuple identifier 154, and interest rate 166 are merely illustrative and are not intended to impart any limitation on the number or nature of elements to a given tuple (e.g., tuple 152) or temporal table (e.g., first temporal table 150). Moreover, the dissection of time domains is not intended to be a limitation of this disclosure. For example, and akin to first time domain 156, while second time domain 158 may only be illustrated with a single time (e.g., system time 164), second time domain 158 may also embody, e.g., an end time for, e.g., describing the time in which a given tuple was modified.
[0046] Referring to FIG. 4, multi-temporal process 10 may enable 104 the one or more databases (e.g., database 64) to implement 106 a second temporal table (e.g., second temporal table 250) that includes at least a third time domain (e.g., third time domain 252), wherein the second temporal table is associated 108 with the first temporal table (e.g., first temporal table 150').
[0047] Keeping with the spirit of the above recited example regarding banking institutions (although describing a modified version of first temporal table 150 as first temporal table 150'), such users may additionally wish to maintain a third time domain (e.g., third time domain 252) relative to their data (e.g., interest rate changes). One illustrative reason for doing so may be to "mask" or "hide" a change to an interest rate, even though the interest rate change may have been entered into the database (e.g., database 64).
[0048] Accordingly, the third time domain (e.g., third time domain 252) may define 122 a visibility time (e.g., including visibility start 260 and visibility end 262). As one of skill in the art will appreciate, the range provided by visibility start 260 and visibility end 260 of multi-temporal process 10 may enable a user to define a time period within which a given tuple of data may be visible (e.g., a given interest rate change), such that the data may be entered into a database (e.g., database 64) prior to its presence being publicized.
[0049] In doing so, the one or more tuples of data (e.g., tuples 254) from the first temporal table (e.g., first temporal table 150') may be copied 118, at least in part, to the second temporal table (e.g., second temporal table 250). Moreover, the one or more tuples of data (e.g. tuples 254) of the first temporal table may be linked 120 to the one or more tuples of data (e.g., tuples 256) of the second temporal table based, at least in part, upon the tuple identifier (e.g., tuple identifier 258).
[0050] To accomplish such, and as a representative example only, the following may be an illustrative SQL statement that may be employed to implement a first temporal table (e.g., first temporal table 150'):
TABLE-US-00001 CREATE TABLE RATETABLE_BUS ( ROW_ID INT NOT NULL, BANKID INT NOT NULL, RATE VARCHAR(4) NOT NULL, VALID_START DATE NOT NULL, VALID_END DATE NOT NULL, EVIS_START DATE NOT NULL, EVIS_END DATE NOT NULL, EXE_START TIMESTAMP(12) GENERATED ALWAYS AS ROW BEGIN NOT NULL, EXE_END TIMESTAMP(12) GENERATED ALWAYS AS ROW END NOT NULL, TRANS_START TIMESTAMP(12) GENERATED ALWAYS AS TRANSACTION START ID IMPLICITLY HIDDEN, PERIOD SYSTEM_TIME (EXE_START, EXE_END), PERIOD BUSINESS_TIME (VALID_START, VALID_END), PRIMARY KEY (ROW_ID) )
[0051] Similarly, and as a representative example only, the following may be an illustrative SQL statement that may be employed to implement a second temporal table (e.g., second temporal table 250):
TABLE-US-00002 CREATE TABLE RATETABLE_VIS ( ROW_ID INT NOT NULL, VIS_START DATE NOT NULL, VIS_END DATE NOT NULL, VEXE_START TIMESTAMP(12) GENERATED ALWAYS AS ROW BEGIN NOT NULL IMPLICITLY HIDDEN, VEXE_END TIMESTAMP(12) GENERATED ALWAYS AS ROW END NOT NULL IMPLICITLY HIDDEN, TRANS_START TIMESTAMP(12) GENERATED ALWAYS AS TRANSACTION START ID IMPLICITLY HIDDEN, PERIOD SYSTEM_TIME (VEXE_START, VEXE_END), PERIOD BUSINESS_TIME(VIS_START, VIS_END), PRIMARY KEY(ROW_ID), CONSTRAINT RATETABLE_VIS_ROWID_FK FOREIGN KEY (ROW_ID) REFERENCES RATETABLE_BUS (ROW_ID) ON DELETE CASCADE )
[0052] As one of skill in the art will appreciate, the above exemplary SQL statements may demonstrate that second temporal table 250 (e.g., RATETABLE_VIS) may be linked 120 to first temporal table 150' (e.g., RATETABLE_BUS) by virtue of, e.g., a primary-foreign key relation based, at least in part, upon the tuple identifier (e.g., tuple identifier 258).
[0053] Thus, multi-temporal process 10 may enable 104, e.g., database 64 to implement 106 a second temporal table (e.g., second temporal table 250) that includes third time domain 252. Further, second temporal table 250 may be associated 108 with first temporal table 150' based, at least in part, upon tuple identifier 258.
[0054] One of skill in the art will appreciate that the number, nature, and organization of first temporal table 150' and second temporal table 250 may vary depending on programming/design requirements. As such, first temporal table 150' and second temporal table 250 are merely illustrative and are not intended to impart any limitation on the number or nature of temporal tables that may be implemented. Moreover, one of skill in the art will appreciate that additional temporal tables may be implemented to, e.g., provide additional time domains.
[0055] Illustratively, and continuing with the above-stated banking example, a user (e.g., banking institution) may wish to implement further time-based functionality in addition to, e.g., a visibility time (e.g., visibility start 260 and visibility end 262, discussed hereinbelow). In such an instance, multi-temporal process 10 may be used to, e.g., implement a third temporal table (not shown) that may enable the banking institution to further refine time-based functionality by providing for, e.g., a fourth time domain (not shown).
[0056] Stated in exemplary mathematical terms, this non-limited additional temporal functionality (i.e., "m") may be interpreted as increasing the number of functional time domains from, e.g., 2 to an infinitely greater number, depending on a user's needs:
[0057] n-timedomains (where, e.g., n>=2) to n+m (where m>0).
[0058] Additionally, one of skill in the art will also appreciate that the implementation of additional time domains via, e.g., multiple temporal tables may not be the only means by which such implementation may be achieved. For example, multi-temporal process 10 may utilize a single temporal table (e.g., first temporal table 150') in conjunction with, e.g., multiple time-based columns (e.g., SQL DATE columns), as well as any necessary logic for, e.g., ensuring that data integrity and/or overlap may be properly implemented for each additional time domain.
[0059] To accomplish such, and as a representative example only, the following may be an illustrative SQL statement that may be employed to implement multiple time domains using a single temporal table (not shown):
TABLE-US-00003 CREATE TABLE RATETABLE ( BANKID INT NOT NULL, RATE VARCHAR(4) NOT NULL, EFF_START DATE NOT NULL, EFF_END DATE NOT NULL, VIS_START DATE NOT NULL, VIS_END DATE NOT NULL, EXE_START TIMESTAMP(12) GENERATED ALWAYS AS ROW BEGIN NOT NULL, EXE_END TIMESTAMP(12) GENERATED ALWAYS AS ROW END NOT NULL, TRANS_START TIMESTAMP(12) GENERATED ALWAYS AS TRANSACTION START ID IMPLICITLY HIDDEN, PERIOD SYSTEM_TIME (EXE_START, EXE_END), PERIOD BUSINESS_TIME(EFF_START, EFF_END) )
[0060] Accordingly, and continuing with the above-described banking example, if, at 10:00 am on 9 Sep. 2011, a banking institution implementing a single temporal table solution wished to change the interest rate from 7% to 6% with an effective date of 3 Sep. 2011--but, e.g., only wished such change to be visible from 12 Sep. 2011--it may employ the following illustrative SQL statement:
TABLE-US-00004 UPDATE RATETABLE FOR PORTION OF BUSINESS_TIME FROM `2011-09-03` TO `9999-12-31` SET RATE = `6`, VIS_START = `2011-09-12`, VIS_END = `9999-12-31` WHERE BANKID = '1` AND T_OVERLAPS('2011-09-12','2011-09-13',VIS_START, VIS_END)=1
[0061] This is not intended to impart any limitation on this disclosure, however. One of skill in the art will appreciate that many other means of implementing such functionality may be employed.
[0062] Moreover, and continuing with the above-stated banking example, third time domain 252 of second temporal table 250 may include visibility start 260 and visibility end 262 such that a given tuple (e.g., one or more of tuples 254) may not be publicized outside of third time domain 252.
[0063] Additionally, the one or more tuples of data (e.g., tuples 254/256) may be ordered 130 based, at least in part, upon selecting 132 only the one or more tuples of data that may be active as of a start of the third time domain (e.g., third time domain 252).
[0064] For example, and continuing with the above-stated banking example, the updating 128 of one or more tuples of data (e.g., tuples 254) may require a notion of transaction ordering to determine what data will be affected. As a consequence of associating 108 multiple time domains (e.g., first time domain 156', second time domain 158', and third time domain 252) with tuples 254, the portion of tuples 254 that may be affected may be determined on any of the multiple time domains (e.g., first time domain 156', second time domain 158', and third time domain 252).
[0065] Referring also to FIG. 5, there may be shown a consequence of ordering 130 of one or more tuples of data (tuples 254) by multi-temporal process 10 when a user may choose to select 132, e.g., tuples 254 based upon, e.g., third time domain 252 (on left) and second time domain 158' (on right).
[0066] Specifically, the left part of the figure may depict the portion of data that may be updated based upon two illustrative update scenarios. For example, assume for the first update that the date is 9 Sep. 2011, and the time is 10:00 am. There, the banking institution lowered the interest rate from 7% to 6%, with the change in interest rate being valid as of 3 Sep. 2011, and visible as of 12 Sep. 2011. Additionally, for example, assume for the second update that the date remains 9 Sep. 2011, yet the time is now 11:00 am. There, the banking institution lowered the interest rate to 5%, with the change in interest rate being effective from 10 Sep. 2011, and immediately visible.
[0067] As one of skill in the art will recognize, the leftmost chart may depict the consequence of updating 128 of the temporal tables (e.g., first temporal table 150' and second temporal table 250) by multi-temporal process 10 if the updates may be ordered 130 employing, e.g., third time domain 252. In contrast, the rightmost chart may depict the consequence of updating 128 of the temporal tables (e.g., first temporal table 150' and second temporal table 250) by multi-temporal process 10 if the updates may be ordered 130 employing, e.g., second time domain 158'.
[0068] This is not intended to be construed as a limitation of this disclosure, however. One of skill in the art will appreciate that any number of other methods may be employed to order tuples of data within one or more temporal tables (e.g., first temporal table 150' and second temporal table 250).
[0069] Continuing with the above-stated example, the one or more tuples of data (e.g., tuples 254) may be selected 124 based, at least in part, upon one or more of the first, second, and third time domain (e.g., first time domain 156', second time domain 158', and third time domain 252). For illustrative purposes only, and as is known in the art, a SELECT statement may allow data to be retrieved and a user may be able to specify what data should be retrieved using predicates. For example, some databases may support, e.g., a BUSINESS_TIME clause to specify data along the BUSINESS_TIME domain (e.g., the range of valid start 160' to valid start 162').
[0070] However, upon implementing an additional time domain (e.g., third time domain 252), this support may need to be extended to permit users to specify the desired domain. As an exemplary solution, multi-temporal process 10 may, e.g., implement native SQL syntax in the following manner:
TABLE-US-00005 SELECT * FROM RT_BUS FOR BUSINESS_TIME 1 FROM `2010/01/01` TO `9999/12/31` FOR BUSINESS_TIME 2 FROM <vis_start> TO <vis_end>
[0071] This is not intended to be construed as a limitation of this disclosure, however. One of skill in the art will appreciate that any number of other methods may be employed to specify tuples in additional domains. For example, multi-temporal process 10 may implement a predicate generated within a stored procedure interface.
[0072] The one or more tuples of data (e.g., tuples 254) may be inserted 126 into one or more of the first and second temporal table (e.g., first temporal table 150' and second temporal table 250). For illustrative purposes only, and as is known in the art, additional time periods may be considered a normal DATE column, so no additional support may necessary to provide support for inserting 126 tuples (e.g., tuples 254) into such.
[0073] Continuing with the above stated example, multi-temporal process 10 may, e.g., implement the following native SQL syntax to achieve this functionality:
TABLE-US-00006 INSERT INTO RATETABLE_BUS(BANKID, RATE, VAL_START, VAL_END, VIS_START, VIS_END) VALUES (1, `7`, `2010-09-01`, `9999-12-31`, `2010-09-01`, `9999-12-31`)
[0074] This is not intended to be construed as a limitation of this disclosure, however. One of skill in the art will appreciate that any number of other methods may be employed to insert tuples of data into one or more temporal tables (e.g., first temporal table 150' and second temporal table 250).
[0075] The one or more tuples of data (e.g., tuples 254) within one or more of the first and second temporal table (e.g., first temporal table 150' and second temporal table 250) may be updated 128. For illustrative purposes only, and as is known in the art, an UPDATE statement may be specified as part of the above-mentioned BUSINESS_TIME clause (e.g., for the range of valid start 160' to valid start 162'), which may determine the data to be updated.
[0076] However, upon implementing an additional time domain (e.g., third time domain 252), this support may need to be extended to permit users to specify the desired domain. As an exemplary solution, multi-temporal process 10 may, e.g., implement native SQL syntax in the following manner:
TABLE-US-00007 UPDATE RATETABLE_BUS FOR PORTION OF BUSINESS_TIME 1 FROM `2011-9-3` TO `9999-12-31` FOR PORTION OF BUSINESS_TIME 2 AS OF <vis_start> SET RATE = <new_rate> WHERE BANKID = B_ID
[0077] This is not intended to be construed as a limitation of this disclosure, however. One of skill in the art will appreciate that any number of other methods may be employed to update 128 one or more tuples of data (e.g., tuples 254). For example, multi-temporal process 10 may generate a predicate within a stored procedure interface.
[0081] Having thus described the invention of the present application in detail and by reference to embodiments thereof, it will be apparent that modifications and variations are possible without departing from the scope of the invention defined in the appended claims.
Patent applications by Ullas Balan Nambiar, Haryana IN
2008-12-18 Scanning x-ray radiation
2008-10-23 Multi-tool unit
2008-12-18 Sensor apparatus and method for noise reduction
2008-12-18 Multi-level flash diffuser
2012-12-20 Dynamically reconfiguring predictive analytics within workflows using selective user feedback
2012-12-20 Dynamic product and service bundling