Skip to content

Instantly share code, notes, and snippets.

View Radhikaba's full-sized avatar

Radhika-Bansal Radhikaba

  • Accenture
  • Pune, India
View GitHub Profile
public with sharing class WeekFiveHomework {
public static void soqlPractice() {
//1. Below is a SOQL query that should be returning the top 5 Accounts in our org based on Annual Revenue.
//Something's not quite right, can you fix the query?
List<Account> topFiveAccounts = [SELECT Id, Name, AnnualRevenue FROM Account WHERE AnnualRevenue != 0];
System.debug('This should be 5: ' + topFiveAccounts.size());