Skip to content

Commit 2d8ac81

Browse files
committed
Fixing up example queries
We don't do ORDER and best bet we aren't doing that yet
1 parent aee4355 commit 2d8ac81

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

QPEOMP

1.81 KB
Binary file not shown.

data-generation/commands_50k.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:b1a736a51b0cdfca2914157135c4b10067b73baa0fd6c8030fe0b54bb307f4e9
3-
size 5952942
2+
oid sha256:7c2d04cdf140bed36876349e391502d695fcadd97ea930c515d2ba874d5a272f
3+
size 5927092

sample-queries.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,17 @@ WHERE sudo_used = FALSE AND user_name = "student1030";
77
# -- Sample 2:
88
SELECT command_id, raw_command, user_name, risk_level, timestamp
99
FROM Commands
10-
WHERE sudo_used = TRUE AND risk_level > 2
11-
ORDER BY risk_level ASC;
10+
WHERE sudo_used = TRUE AND risk_level > 2;
1211

1312
# -- Sample 3:
1413
SELECT raw_command, exit_code, timestamp, sudo_used, user_name, risk_level
1514
FROM Commands
16-
WHERE risk_level > 3
17-
ORDER BY timestamp DESC;
15+
WHERE risk_level > 3;
1816

1917
# -- Sample 4:
2018
SELECT *
2119
FROM Commands
22-
WHERE risk_level = 5
23-
ORDER BY timestamp DESC;
20+
WHERE risk_level = 5;
2421

2522
# -- Sample 5:
2623
INSERT INTO Commands VALUES (999999, "echo 'test insert'", "echo", "bash", 0, "2025-12-01T12:00:00.000Z", "FALSE", "/home/test", 1000, "testuser", "test-host", 1);

0 commit comments

Comments
 (0)