# 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.md)
- [Data 360 Object-Specific APIs](/docs/data/data-cloud-query-guide/guide/obj-specific-apis.md)
