SQL Problem

Results 1 to 2 of 2

Thread: SQL Problem

  1. #1
    Join Date
    Dec 1969

    Default SQL Problem

    I know that this isn&#039;t the right forum, but answers seem to come quicker here.<BR><BR>I&#039;m trying to write an SQL statement that will give me the average number of entries that get placed in a certain table in a week.<BR><BR>My problem comes with getting the average per week. Is there some sort of week date function that I don&#039;t know of? How could I do this?

  2. #2
    Culture Guest

    Default RE: SQL Problem

    Hum - depends what database you are using (to which functions is supports).<BR>But if you want to be database generic then do:<BR><BR>"Select count(*) from table where......."<BR><BR>then do the count(*) divided by 7 :/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts