How to Schedule an Apex Class to run every 30 minutes?

12:45 PM

Too many query rows 50001 with aggregate function

11:24 AM