This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Salesforce

How to Query Salesforce Database

Updated on:
May 25, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to run SOQL queries against your Salesforce database.

Quick summary

This demo walks you through how to query the Salesforce database using SOQL inside the Developer Console, from opening the console to executing a query and retrieving results.


Steps

  1. Click the gear icon at the top right menu of the Salesforce dashboard to open settings.
  2. Select Developer Console from the dropdown menu.
  3. In the new window, navigate to the lower part of the interface and click Query Editor.
  4. In the Query text box, type a basic SOQL query using the template: SELECT Id, Name FROM <your object name> LIMIT <input number>.
  5. For example, query the Id from the Account object for up to 200 records; SOQL will display the matching data results. Repeat with different objects to extract additional data.
  6. For every query, click Execute at the bottom left corner of the interface to run it.
  7. Salesforce will process the request and retrieve all available data related to your query.

📌 Why this matters

Querying the Salesforce database with SOQL (Salesforce Object Query Language) is a core skill for admins, developers, and analysts who need to extract, audit, or manipulate CRM data at scale. The Developer Console's built-in Query Editor makes it possible to run targeted SOQL queries directly against any Salesforce object without writing custom code or installing third-party tools. Mastering this workflow lets teams pull precise records, validate data integrity, and accelerate reporting cycles — all from within the native Salesforce interface. For any organization managing large volumes of CRM data, efficient SOQL querying directly reduces time spent on manual data tasks.
Your product deserves an interactive demo
Start free
Similar Articles
Salesforce

How to Use Salesforce Inspector Reloaded

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Share Dashboards in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
Salesforce

How to Send Mass Emails in Salesforce

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Events & webinars
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it