I have a job table that holds jobs and leaddate is the field for the job entry.
The result I want to get is the number of jobs I have in each quarter. My query count
you can use the Quarter function to get a quarter from date:
select count(jobid) as jobcount, QUARTER(leaddate) as qt, YEAR(leaddate) as year from jobs where contactid='19249' group by year,qt