Trying to get the average number of a value by day in SQL -


i trying average number of posted jobs day , cannot figure out of similar prior questions asked on site. seems pretty basic reason isn't working. can please help? thank you!

select avg(count(*)  select (count(*), to_char(thedate, 'mm/dd/yyyy') date       jobs companyid = 1) 

try this:

select avg(jobnumber), date select (count(*) jobnumber, to_char(thedate, 'mm/dd/yyyy') date  jobs  companyid = 1  group to_char(thedate, 'mm/dd/yyyy') ) innerselect group date 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -