> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bytebase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Step 7: Query Data

Bytebase also provides a web-based SQL Editor for querying data. Unlike traditional client-side SQL clients, this server-side SQL Editor can enforce [fine-grained data access control](/security/database-permission/overview/), [data masking](/security/data-masking/overview/), [audit logging](/security/audit-log/), etc.

## Access SQL Editor

SQL Editor can be accessed from the **SQL Editor** button in the top bar.

<img src="https://mintcdn.com/dbx/WRsRJ8OrRtuwKJOX/content/docs/get-started/step-by-step/query-data/access-sql-editor-top.webp?fit=max&auto=format&n=WRsRJ8OrRtuwKJOX&q=85&s=083d06e0b8d425be04ce243848f41537" alt="SQL Editor button in the top bar" width="1600" height="60" data-path="content/docs/get-started/step-by-step/query-data/access-sql-editor-top.webp" />

It's also available from a database's detail page.

<img src="https://mintcdn.com/dbx/WRsRJ8OrRtuwKJOX/content/docs/get-started/step-by-step/query-data/access-sql-editor-database.webp?fit=max&auto=format&n=WRsRJ8OrRtuwKJOX&q=85&s=7b9bec2ef48debc58de7b82542b4f947" alt="SQL Editor link on the database detail page" width="1600" height="190" data-path="content/docs/get-started/step-by-step/query-data/access-sql-editor-database.webp" />

## Query data

Select a database to start.

<img src="https://mintcdn.com/dbx/WRsRJ8OrRtuwKJOX/content/docs/get-started/step-by-step/query-data/select-database.webp?fit=max&auto=format&n=WRsRJ8OrRtuwKJOX&q=85&s=a376c2c5b2313f12d32d3eff1e42987d" alt="Selecting the hr_prod database in SQL Editor" width="1600" height="1000" data-path="content/docs/get-started/step-by-step/query-data/select-database.webp" />

Run the query.

<img src="https://mintcdn.com/dbx/WRsRJ8OrRtuwKJOX/content/docs/get-started/step-by-step/query-data/query.webp?fit=max&auto=format&n=WRsRJ8OrRtuwKJOX&q=85&s=4ce19f31c7ac42737d6ca6f71117a037" alt="Query result in SQL Editor" width="1600" height="1000" data-path="content/docs/get-started/step-by-step/query-data/query.webp" />

Check out the detailed [SQL Editor](/sql-editor/overview) docs to explore other features.
