Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 12a52b1

Browse files
committed
Select from multiple tables instead
1 parent 09a2dad commit 12a52b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

coderd/database/queries.sql.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/database/queries/workspaceagentstats.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ WITH agent_stats AS (
6969
FROM workspace_agent_stats
7070
) AS a WHERE a.rn = 1
7171
)
72-
SELECT * FROM agent_stats CROSS JOIN latest_agent_stats;
72+
SELECT * FROM agent_stats, latest_agent_stats;

0 commit comments

Comments
 (0)