> ## Content Index
> Fetch the complete content index at: https://www.namastesalesforce.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# 03 · SOQL: asking the database questions
- URL: https://www.namastesalesforce.com/courses/apex-beginners/soql-asking-the-database-questions/
- Published: 2025-05-28T09:00:00.000Z
- Updated: 2025-05-28T09:00:00.000Z
- Description: SELECT is not SQL — no joins, no wildcards, relationship dots instead. Write your first twenty queries in the Query Editor.
- Author: Swarnil Singhai
- Tags: Apex for Absolute Beginners, #lesson, #duration-25m, #lesson-layout-wide, #Import 2026-09-03 19:13

SELECT is not SQL — no joins, no wildcards, relationship dots instead. Write your first twenty queries in the Query Editor.

## Relationships replace joins

Contact.Account.Name walks up; (SELECT ... FROM Contacts) walks down. Once relationship queries click, you will stop missing joins.

## Query in loops is the cardinal sin

One SOQL query per record is how orgs die at scale. We commit the rule to memory now, two lessons before triggers make it dangerous.

## Practice in your org

- Open your Developer Edition org and follow along step by step
- Change one thing at a time and note what happens
- When something breaks, read the error before searching for it