Skip to content

Instantly share code, notes, and snippets.

@jkremser
Created May 7, 2024 08:37
Show Gist options
  • Save jkremser/ac5044a3305fb4d057bd66af22683c3a to your computer and use it in GitHub Desktop.
Save jkremser/ac5044a3305fb4d057bd66af22683c3a to your computer and use it in GitHub Desktop.
# clusterId, agentId and cluster name
SELECT
clusters.name,
agents.id AS agentId,
clusters.id AS clusterId
FROM clusters JOIN agents
ON clusters.id = agents.cluster_id;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment