---
schema_version: "1"
id: 3df1343ac25b30069dc0d19eabc27409e72dfda8af52808581fa4560ebe31a2d
title: Using the Salesforce Object Query Language (SOQL) to Query Data in Data 360
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/data-cloud/data-cloud-query-guide/guides/dc-soql.md
canonical_url: https://developer.salesforce.com/docs/data/data-cloud-query-guide/guide/dc-soql.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 8f6d3a6a71fbed7016213a32ee075517094d32fc7c40ae09402e659c7e80d915
products:
  - Data 360 Query Guide
  - Data 360 Developer Documentation
---
# Using the Salesforce Object Query Language (SOQL) to Query Data in Data 360

Similar to how you use SOQL to query Salesforce objects, you can also use SOQL to query Data 360 objects, such as DLOs and DMOs, with some limitations. SOQL is Salesforce's proprietary query language to query Salesforce objects. You can run SOQL in Apex or by using tools such as the Query Editor and SOQL Builder.

To learn about querying DMOs in Apex with SOQL, see [Data 360 in Apex](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/DataCloudInApex.htm) in the _Apex Developer Guide_. Also see [Mock SOQL Tests for Data 360 Data Model Objects](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/MockSOQLTestsForDMOs.htm) in the _Apex Developer Guide_.

## Differences Between SQL and SOQL

SOQL is similar to SQL, but here are a few differences between the two.

- SOQL statements can execute in Apex on the Salesforce Platform, and not only using an API.
- SOQL doesn’t support the asterisk (`*`) character to retrieve all fields in the `SELECT` statement. To retrieve all fields, use the `FIELDS(ALL)` keyword or retrieve specific fields.
- SOQL provides parent and child relationships instead of `JOIN` statements. These relationships aren't supported in the current implementation of SOQL in Data 360.

For the SOQL language reference, see [_Salesforce Object Query Language (SOQL)_](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql.htm).
To learn about the use of SOQL in general with Salesforce objects, see the [_SOQL for Admins_](https://trailhead.salesforce.com/content/learn/modules/soql-for-admins) Trailhead module.

**See Also**

- [_SOQL and SOSL Reference_: SOQL Object Limits and Limitations](https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_limits.htm)
- [_Apex Developer Guide_: SOQL and SOSL Queries](https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/langCon_apex_SOQL.htm)
- [_Salesforce Help_: Developer Console](https://help.salesforce.com/s/articleView?id=code_dev_console.htm&type=5)
- [_Salesforce Extensions for Visual Studio Code_: SOQL Builder](https://developer.salesforce.com/docs/platform/sfvscode-extensions/guide/soql-builder.html)
- [Data 360 Object-Specific APIs](https://developer.salesforce.com/docs/data/data-cloud-query-guide/guide/obj-specific-apis.md)
