You need to sign in to do that
Don't have an account?
JBerry
select field from table where Id IN select id from different table
Hi,
I am trying to do a SQL query, where my where clause is based on another SQL query. I want to do something like:
select ListPrice from OpportunityLineItem where OpportunityId IN (select Id from Opportunity where Status='Closed')
Does anyone know how to go about this?
Thanks!
I am trying to do a SQL query, where my where clause is based on another SQL query. I want to do something like:
select ListPrice from OpportunityLineItem where OpportunityId IN (select Id from Opportunity where Status='Closed')
Does anyone know how to go about this?
Thanks!
Select listPrice from OpportunityLineItem where Opportiunity.Status = 'closed'
Say i have a date range of March 20 - March 31st. I want to get all the opportunities within that date range. From there, I get the account id's of those opportunities.
After that, I get the ListPrice for a particular line item, for each opportunity that belongs to one of the original owners(accounts).
Basically, we want to see how much the owner(account) of the opportuntiy in that time range has spent with us so far that month.