Usted está aquí:
Funciones SQL anidadas
Una consulta SQL anidada en Data 360 es una consulta en otra consulta SQL integrada en una cláusula WHERE.

Utilice términos de búsqueda más generales.
Seleccione menos filtros para ampliar su búsqueda.
Usted está aquí:
Una consulta SQL anidada en Data 360 es una consulta en otra consulta SQL integrada en una cláusula WHERE.
| Disponible en: Todas las ediciones compatibles con Data 360. Consulte Disponibilidad de Data 360. |
Se utiliza una subconsulta para devolver datos en la consulta original como una condición de modo que pueda restringir qué datos recuperar.
SELECT
avg(SalesOrder__dlm.GrandTotalAmount__c) as avg__c,
SubQuery1.Id as customer_id__c
from SalesOrder__dlm
JOIN (select Individual__dlm.Id__c as Id from Individual__dlm
where year(Individual__dlm.BirthDate__c) > 1980) as SubQuery1
on SalesOrder__dlm.SoldToCustomerId__c = SubQuery1.Id
group by
customer_id__c;

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.