diff --git a/docs/docs/guides/database-queries.md b/docs/docs/guides/database-queries.md index 2b4f27cfceaa5..0e58d84f90c01 100644 --- a/docs/docs/guides/database-queries.md +++ b/docs/docs/guides/database-queries.md @@ -98,6 +98,10 @@ SELECT * FROM "move_history"; SELECT * FROM "users"; ``` +```sql title="Get owner info from asset ID" +SELECT "users".* FROM "users" JOIN "assets" ON "users"."id" = "assets"."ownerId" WHERE "assets"."id" = 'fa310b01-2f26-4b7a-9042-d578226e021f'; +``` + ## System Config ```sql title="Custom settings"