You need to sign in to do that
Don't have an account?

Help with SOQL query
I'm trying to fetch opportunities with the opp owner's full name
List<Opportunity> opps = [SELECT Amount, CloseDate, (SELECT Fullname, Id from User where Id = :OwnerId) FROM Opportunity LIMIT 100];
I know my query is wrong, but it may help explain what I'm trying to achieve.
List<Opportunity> opps = [select amount, closeDate, Owner.Name from Opportunity limit 100]