From 11e288a34a9f012d169e72c520e8fd35d684c7fe Mon Sep 17 00:00:00 2001 From: TurinTech Bot Date: Tue, 4 Feb 2025 17:09:55 +0000 Subject: [PATCH] Artemis Changes --- src/llm_benchmark/sql/query.md | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/llm_benchmark/sql/query.md b/src/llm_benchmark/sql/query.md index 6c1cebc..06e1294 100644 --- a/src/llm_benchmark/sql/query.md +++ b/src/llm_benchmark/sql/query.md @@ -1,15 +1,14 @@ -# SqlQuery +# SqlQuery ## QueryAlbum -Check if an album exists by performing a SELECT/WHERE +Check if an album exists by using COUNT in a SELECT/WHERE -- Selecting every column can be inefficient -- SQL can count +- Use COUNT when checking existence instead of selecting columns +- SQL COUNT provides efficient existence checks ## JoinAlbums Join 3 of the tables -- Explicit join is better - +- Use explicit JOIN syntax with proper ON conditions \ No newline at end of file