{"paragraphs":[{"title":"Create a new database","text":"%mariadb\n\nCREATE DATABASE accounting;\n","user":"anonymous","dateUpdated":"2020-03-26T14:12:22+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"Database":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585065832325_764911294","id":"20200324-160352_592975270","dateCreated":"2020-03-24T16:03:52+0000","dateStarted":"2020-03-26T14:12:22+0000","dateFinished":"2020-03-26T14:12:22+0000","status":"FINISHED","progressUpdateIntervalMs":500,"focus":true,"$$hashKey":"object:81724","results":{"code":"SUCCESS","msg":[{"type":"TEXT","data":"Query executed successfully. Affected rows : 1"}]}},{"title":"Create a new bitemporal table","text":"%mariadb\n\nCREATE TABLE accounting.employees (\n id INT NOT NULL AUTO_INCREMENT,\n first_name VARCHAR(100) NOT NULL,\n last_name VARCHAR(100) NOT NULL,\n department VARCHAR(25) NOT NULL,\n salary DECIMAL(9,2) NOT NULL,\n date_start DATE NOT NULL,\n date_end DATE NOT NULL DEFAULT '9999-12-31',\n PERIOD FOR emp_period(date_start, date_end),\n PRIMARY KEY (id)\n) WITH SYSTEM VERSIONING;\n","user":"anonymous","dateUpdated":"2020-03-26T14:12:26+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"id":"string","first_name":"string","last_name":"string","department":"string","salary":"string","date_start":"string","date_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585064575704_-1680557328","id":"20200324-154255_1444580934","dateCreated":"2020-03-24T15:42:55+0000","dateStarted":"2020-03-26T14:12:26+0000","dateFinished":"2020-03-26T14:12:26+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81725","results":{"code":"SUCCESS","msg":[{"type":"TEXT","data":"Query executed successfully. Affected rows : 0"}]}},{"title":"Insert values","text":"%mariadb\n\nINSERT INTO accounting.employees (first_name, last_name, department, salary, date_start) \nVALUES \n ('Tracy', 'Smith', 'HR', 65000.00, '2016-01-01'),\n ('James', 'Brown', 'MKT', 45000.00, '2016-04-15'),\n ('Stacy', 'Crowder', 'ENG', 80000.00, '2017-08-23'),\n ('Kim', 'Martin', 'PM', 75000.00, '2017-08-23'),\n ('Zachary', 'Quinto', 'SALES', 55000.00, '2019-01-08');","user":"anonymous","dateUpdated":"2020-03-26T14:12:32+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585064594174_1816822916","id":"20200324-154314_1434900945","dateCreated":"2020-03-24T15:43:14+0000","dateStarted":"2020-03-26T14:12:32+0000","dateFinished":"2020-03-26T14:12:32+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81726","results":{"code":"SUCCESS","msg":[{"type":"TEXT","data":"Query executed successfully. Affected rows : 5"}]}},{"title":"Verify the data has been inserted","text":"%mariadb\n\nSELECT * FROM accounting.employees;","user":"anonymous","dateUpdated":"2020-03-26T14:12:39+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"id":"string","first_name":"string","last_name":"string","department":"string","salary":"string","date_start":"string","date_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","tableHide":false,"editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585064637845_201532895","id":"20200324-154357_83239763","dateCreated":"2020-03-24T15:43:57+0000","dateStarted":"2020-03-26T14:12:39+0000","dateFinished":"2020-03-26T14:12:39+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81727","results":{"code":"SUCCESS","msg":[{"type":"TABLE","data":"id\tfirst_name\tlast_name\tdepartment\tsalary\tdate_start\tdate_end\n1\tTracy\tSmith\tHR\t65000.00\t2016-01-01\t9999-12-31\n2\tJames\tBrown\tMKT\t45000.00\t2016-04-15\t9999-12-31\n3\tStacy\tCrowder\tENG\t80000.00\t2017-08-23\t9999-12-31\n4\tKim\tMartin\tPM\t75000.00\t2017-08-23\t9999-12-31\n5\tZachary\tQuinto\tSALES\t55000.00\t2019-01-08\t9999-12-31\n"}]}},{"title":"Show invisible system columns","text":"%mariadb\n\nSELECT *, row_start, row_end FROM accounting.employees;","user":"anonymous","dateUpdated":"2020-03-26T14:13:05+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"id":"string","first_name":"string","last_name":"string","department":"string","salary":"string","date_start":"string","date_end":"string","row_start":"string","row_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585064673286_-1320019599","id":"20200324-154433_1061364857","dateCreated":"2020-03-24T15:44:33+0000","dateStarted":"2020-03-26T14:13:05+0000","dateFinished":"2020-03-26T14:13:05+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81728","results":{"code":"SUCCESS","msg":[{"type":"TABLE","data":"id\tfirst_name\tlast_name\tdepartment\tsalary\tdate_start\tdate_end\trow_start\trow_end\n1\tTracy\tSmith\tHR\t65000.00\t2016-01-01\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n2\tJames\tBrown\tMKT\t45000.00\t2016-04-15\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n3\tStacy\tCrowder\tENG\t80000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n4\tKim\tMartin\tPM\t75000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n5\tZachary\tQuinto\tSALES\t55000.00\t2019-01-08\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n"}]}},{"title":"Update a record","text":"%mariadb\n\n/* Updating records */\n\nUPDATE \n accounting.employees\nSET\n department = 'ENG'\nWHERE\n first_name = 'Kim' AND\n last_name = 'Martin'","user":"anonymous","dateUpdated":"2020-03-26T14:13:41+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585065059116_1220660323","id":"20200324-155059_837291643","dateCreated":"2020-03-24T15:50:59+0000","dateStarted":"2020-03-26T14:13:41+0000","dateFinished":"2020-03-26T14:13:41+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81729","results":{"code":"SUCCESS","msg":[{"type":"TEXT","data":"Query executed successfully. Affected rows : 1"}]}},{"title":"Select all","text":"%mariadb\n\nSELECT * FROM accounting.employees;","user":"anonymous","dateUpdated":"2020-03-26T14:14:05+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"id":"string","first_name":"string","last_name":"string","department":"string","salary":"string","date_start":"string","date_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585219193392_18728220","id":"20200326-103953_171419324","dateCreated":"2020-03-26T10:39:53+0000","dateStarted":"2020-03-26T14:14:05+0000","dateFinished":"2020-03-26T14:14:05+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81730","results":{"code":"SUCCESS","msg":[{"type":"TABLE","data":"id\tfirst_name\tlast_name\tdepartment\tsalary\tdate_start\tdate_end\n1\tTracy\tSmith\tHR\t65000.00\t2016-01-01\t9999-12-31\n2\tJames\tBrown\tMKT\t45000.00\t2016-04-15\t9999-12-31\n3\tStacy\tCrowder\tENG\t80000.00\t2017-08-23\t9999-12-31\n4\tKim\tMartin\tENG\t75000.00\t2017-08-23\t9999-12-31\n5\tZachary\tQuinto\tSALES\t55000.00\t2019-01-08\t9999-12-31\n"}]}},{"title":"Select all record history","text":"%mariadb\n\nSELECT \n *, row_start, row_end \nFROM \n accounting.employees\nFOR SYSTEM_TIME ALL;","user":"anonymous","dateUpdated":"2020-03-26T14:14:39+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"id":"string","first_name":"string","last_name":"string","department":"string","salary":"string","date_start":"string","date_end":"string","row_start":"string","row_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585162661085_-760439612","id":"20200325-185741_788812261","dateCreated":"2020-03-25T18:57:41+0000","dateStarted":"2020-03-26T14:14:39+0000","dateFinished":"2020-03-26T14:14:39+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81731","results":{"code":"SUCCESS","msg":[{"type":"TABLE","data":"id\tfirst_name\tlast_name\tdepartment\tsalary\tdate_start\tdate_end\trow_start\trow_end\n1\tTracy\tSmith\tHR\t65000.00\t2016-01-01\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n2\tJames\tBrown\tMKT\t45000.00\t2016-04-15\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n3\tStacy\tCrowder\tENG\t80000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n4\tKim\tMartin\tPM\t75000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:12:32.208386\t2020-03-26 14:13:41.479071\n4\tKim\tMartin\tENG\t75000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:13:41.479071\t2038-01-19 03:14:07.999999\n5\tZachary\tQuinto\tSALES\t55000.00\t2019-01-08\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n"}]}},{"title":"Select point in time record history","text":"%mariadb\n\nSELECT \n *, row_start, row_end \nFROM \n accounting.employees\nFOR SYSTEM_TIME \n AS OF '2020-03-26 14:15';","user":"anonymous","dateUpdated":"2020-03-26T14:15:41+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"id":"string","first_name":"string","last_name":"string","department":"string","salary":"string","date_start":"string","date_end":"string","row_start":"string","row_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585065089728_1360783316","id":"20200324-155129_1147982860","dateCreated":"2020-03-24T15:51:29+0000","dateStarted":"2020-03-26T14:15:41+0000","dateFinished":"2020-03-26T14:15:41+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81732","results":{"code":"SUCCESS","msg":[{"type":"TABLE","data":"id\tfirst_name\tlast_name\tdepartment\tsalary\tdate_start\tdate_end\trow_start\trow_end\n1\tTracy\tSmith\tHR\t65000.00\t2016-01-01\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n2\tJames\tBrown\tMKT\t45000.00\t2016-04-15\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n3\tStacy\tCrowder\tENG\t80000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n4\tKim\tMartin\tENG\t75000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:13:41.479071\t2038-01-19 03:14:07.999999\n5\tZachary\tQuinto\tSALES\t55000.00\t2019-01-08\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n"}]}},{"title":"Delete a record","text":"%mariadb\n\nDELETE \nFROM \n accounting.employees \nWHERE \n first_name = 'Kim' AND \n last_name = 'Martin'\n ","user":"anonymous","dateUpdated":"2020-03-26T14:15:55+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585227905512_-222925780","id":"20200326-130505_341897323","dateCreated":"2020-03-26T13:05:05+0000","dateStarted":"2020-03-26T14:15:55+0000","dateFinished":"2020-03-26T14:15:55+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81733","results":{"code":"SUCCESS","msg":[{"type":"TEXT","data":"Query executed successfully. Affected rows : 1"}]}},{"title":"Select all records","text":"%mariadb\n\nSELECT \n *, row_start, row_end \nFROM \n accounting.employees\nFOR SYSTEM_TIME ALL;","user":"anonymous","dateUpdated":"2020-03-26T14:16:11+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"id":"string","first_name":"string","last_name":"string","department":"string","salary":"string","date_start":"string","date_end":"string","row_start":"string","row_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585169870238_-1575218208","id":"20200325-205750_476271147","dateCreated":"2020-03-25T20:57:50+0000","dateStarted":"2020-03-26T14:16:11+0000","dateFinished":"2020-03-26T14:16:11+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81734","results":{"code":"SUCCESS","msg":[{"type":"TABLE","data":"id\tfirst_name\tlast_name\tdepartment\tsalary\tdate_start\tdate_end\trow_start\trow_end\n1\tTracy\tSmith\tHR\t65000.00\t2016-01-01\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n2\tJames\tBrown\tMKT\t45000.00\t2016-04-15\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n3\tStacy\tCrowder\tENG\t80000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n4\tKim\tMartin\tPM\t75000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:12:32.208386\t2020-03-26 14:13:41.479071\n4\tKim\tMartin\tENG\t75000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:13:41.479071\t2020-03-26 14:15:55.273453\n5\tZachary\tQuinto\tSALES\t55000.00\t2019-01-08\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n"}]}},{"title":"Pruning historical records","text":"%mariadb\n\nDELETE HISTORY FROM accounting.employees;","user":"anonymous","dateUpdated":"2020-03-26T14:16:43+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585169568397_2099234171","id":"20200325-205248_768881626","dateCreated":"2020-03-25T20:52:48+0000","dateStarted":"2020-03-26T14:16:43+0000","dateFinished":"2020-03-26T14:16:43+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81735","results":{"code":"SUCCESS","msg":[{"type":"TEXT","data":"Query executed successfully. Affected rows : 2"}]}},{"title":"Select all record history","text":"%mariadb\n\nSELECT \n *, row_start, row_end \nFROM \n accounting.employees\nFOR SYSTEM_TIME ALL;","user":"anonymous","dateUpdated":"2020-03-26T14:16:50+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"id":"string","first_name":"string","last_name":"string","department":"string","salary":"string","date_start":"string","date_end":"string","row_start":"string","row_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585228277797_-78515165","id":"20200326-131117_409193005","dateCreated":"2020-03-26T13:11:17+0000","dateStarted":"2020-03-26T14:16:50+0000","dateFinished":"2020-03-26T14:16:50+0000","status":"FINISHED","progressUpdateIntervalMs":500,"$$hashKey":"object:81736","results":{"code":"SUCCESS","msg":[{"type":"TABLE","data":"id\tfirst_name\tlast_name\tdepartment\tsalary\tdate_start\tdate_end\trow_start\trow_end\n1\tTracy\tSmith\tHR\t65000.00\t2016-01-01\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n2\tJames\tBrown\tMKT\t45000.00\t2016-04-15\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n3\tStacy\tCrowder\tENG\t80000.00\t2017-08-23\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n5\tZachary\tQuinto\tSALES\t55000.00\t2019-01-08\t9999-12-31\t2020-03-26 14:12:32.208386\t2038-01-19 03:14:07.999999\n"}]}},{"title":"Truncate table","text":"%mariadb\n\nTRUNCATE accounting.employees;","user":"anonymous","dateUpdated":"2020-03-26T14:17:19+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"first_name":"string","last_name":"string","department":"string","salary":"string","row_start":"string","row_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585064716860_-1839112079","id":"20200324-154516_1936751554","dateCreated":"2020-03-24T15:45:16+0000","dateStarted":"2020-03-26T14:17:19+0000","dateFinished":"2020-03-26T14:17:19+0000","status":"ERROR","progressUpdateIntervalMs":500,"$$hashKey":"object:81737","results":{"code":"ERROR","msg":[{"type":"TEXT","data":"java.sql.SQLException: (conn=164195) System-versioned tables do not support TRUNCATE TABLE\n\tat org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:261)\n\tat org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:171)\n\tat org.mariadb.jdbc.MariaDbStatement.executeExceptionEpilogue(MariaDbStatement.java:248)\n\tat org.mariadb.jdbc.MariaDbStatement.executeInternal(MariaDbStatement.java:338)\n\tat org.mariadb.jdbc.MariaDbStatement.execute(MariaDbStatement.java:389)\n\tat org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291)\n\tat org.apache.commons.dbcp2.DelegatingStatement.execute(DelegatingStatement.java:291)\n\tat org.apache.zeppelin.jdbc.JDBCInterpreter.executeSql(JDBCInterpreter.java:736)\n\tat org.apache.zeppelin.jdbc.JDBCInterpreter.interpret(JDBCInterpreter.java:819)\n\tat org.apache.zeppelin.interpreter.LazyOpenInterpreter.interpret(LazyOpenInterpreter.java:103)\n\tat org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$InterpretJob.jobRun(RemoteInterpreterServer.java:632)\n\tat org.apache.zeppelin.scheduler.Job.run(Job.java:188)\n\tat org.apache.zeppelin.scheduler.ParallelScheduler$JobRunner.run(ParallelScheduler.java:162)\n\tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\nCaused by: java.sql.SQLException: System-versioned tables do not support TRUNCATE TABLE\n\tat org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readErrorPacket(AbstractQueryProtocol.java:1594)\n\tat org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readPacket(AbstractQueryProtocol.java:1453)\n\tat org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.getResult(AbstractQueryProtocol.java:1415)\n\tat org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:228)\n\tat org.mariadb.jdbc.MariaDbStatement.executeInternal(MariaDbStatement.java:332)\n\t... 16 more\n"}]}},{"title":"Update record for (application) time period","text":"%mariadb\n\nUPDATE accounting.employees \n FOR PORTION OF emp_period\n FROM '2018-06-01' \n TO '9999-12-31'\nSET \n salary = 100000.00\nWHERE \n first_name = 'Stacy' AND \n last_name = 'Crowder';","user":"anonymous","dateUpdated":"2020-03-26T13:24:16+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":true,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585064790970_-1687434071","id":"20200324-154630_1925074865","dateCreated":"2020-03-24T15:46:30+0000","dateStarted":"2020-03-26T10:45:49+0000","dateFinished":"2020-03-26T10:45:49+0000","status":"FINISHED","errorMessage":"","progressUpdateIntervalMs":500,"$$hashKey":"object:81738"},{"title":"Select all records","text":"%mariadb\n\nSELECT \n *\nFROM\n accounting.employees\nWHERE\n first_name = 'Stacy' AND \n last_name = 'Crowder';\n","user":"anonymous","dateUpdated":"2020-03-26T13:24:16+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"id":"string","first_name":"string","last_name":"string","department":"string","salary":"string","date_start":"string","date_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":true,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585065034125_-2096877662","id":"20200324-155034_1886359465","dateCreated":"2020-03-24T15:50:34+0000","dateStarted":"2020-03-26T10:46:27+0000","dateFinished":"2020-03-26T10:46:27+0000","status":"FINISHED","errorMessage":"","progressUpdateIntervalMs":500,"$$hashKey":"object:81739"},{"title":"Update record for (application) time period","text":"%mariadb\n\nUPDATE accounting.employees \n FOR PORTION OF emp_period\n FROM '2019-06-01' \n TO '9999-12-31'\nSET \n salary = 110000.00\nWHERE \n first_name = 'Stacy' AND \n last_name = 'Crowder';","user":"anonymous","dateUpdated":"2020-03-26T13:24:16+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":true,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585218717363_-1137613692","id":"20200326-103157_1857628698","dateCreated":"2020-03-26T10:31:57+0000","dateStarted":"2020-03-26T10:46:36+0000","dateFinished":"2020-03-26T10:46:36+0000","status":"FINISHED","errorMessage":"","progressUpdateIntervalMs":500,"$$hashKey":"object:81740"},{"title":"Select all (including invisible system columns) records","text":"%mariadb\n\nSELECT \n *, row_start, row_end\nFROM\n accounting.employees\nWHERE\n first_name = 'Stacy' AND \n last_name = 'Crowder';","user":"anonymous","dateUpdated":"2020-03-26T13:24:17+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"id":"string","first_name":"string","last_name":"string","department":"string","salary":"string","date_start":"string","date_end":"string","row_start":"string","row_end":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":true,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585065293787_-2069181478","id":"20200324-155453_219421060","dateCreated":"2020-03-24T15:54:53+0000","dateStarted":"2020-03-26T10:46:59+0000","dateFinished":"2020-03-26T10:46:59+0000","status":"FINISHED","errorMessage":"","progressUpdateIntervalMs":500,"$$hashKey":"object:81741"},{"title":"Delete records by (application) time period","text":"%mariadb\n\nDELETE FROM accounting.employees \n FOR PORTION OF emp_period\n FROM '2018-10-01'\n TO '2018-10-31'\nWHERE \n first_name = 'Stacy' AND \n last_name = 'Crowder'\n","user":"anonymous","dateUpdated":"2020-03-26T13:24:17+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":true,"title":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585065320654_-147847794","id":"20200324-155520_1028810612","dateCreated":"2020-03-24T15:55:20+0000","dateStarted":"2020-03-26T10:46:54+0000","dateFinished":"2020-03-26T10:46:54+0000","status":"FINISHED","errorMessage":"","progressUpdateIntervalMs":500,"$$hashKey":"object:81742"},{"text":"%mariadb\n","user":"anonymous","dateUpdated":"2020-03-26T13:24:17+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false,"completionKey":"TAB","completionSupport":true},"editorMode":"ace/mode/sql","editorHide":true},"settings":{"params":{},"forms":{}},"apps":[],"jobName":"paragraph_1585170384080_-1147965783","id":"20200325-210624_1787726974","dateCreated":"2020-03-25T21:06:24+0000","status":"READY","errorMessage":"","progressUpdateIntervalMs":500,"$$hashKey":"object:81743"}],"name":"Bitemporal Table Demo","id":"2F6WVQE11","noteParams":{},"noteForms":{},"angularObjects":{"mariadb:shared_process":[],"spark:shared_process":[]},"config":{"isZeppelinNotebookCronEnable":false,"looknfeel":"default","personalizedMode":"false"},"info":{}}