Created
July 4, 2016 09:12
-
-
Save garo/807e50db39d27b0ccfb7864342b4a71b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE test ( | |
office text, | |
office_team text, | |
ts timestamp, | |
team_member text, | |
action text, | |
is_team_active boolean static, | |
PRIMARY KEY ((office, office_team), ts, team_member) | |
); | |
INSERT INTO test (office, office_team, ts, team_member, action, is_team_active) VALUES('finland', 'dbas', '2016-06-04T12:00:00Z', 'Garo', 'Entered office', true); | |
INSERT INTO test (office, office_team, ts, team_member, action) VALUES('finland', 'dbas', '2016-06-04T13:00:00Z', 'Garo', 'Exitted office'); | |
UPDATE test SET is_team_active = false WHERE office = 'finland' and office_team = 'dbas'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment