Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/llm_benchmark/sql/query.md
Original file line number Diff line number Diff line change
@@ -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