× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Il 04/01/2020 08:27, Booth Martin ha scritto:
exec sql set :weekNbr = week('2020-01-05');

sets weekNbr at 2?
From Sql Week Help:

The WEEK function returns an integer between 1 and 54 that represents the week of the year. The week starts with Sunday, and January 1 is always in the first week.

Since a new week starts every Sunday, and 05.01.2020 is a Sunday, this is 2d week (first is up to 04.01).

If you use week_iso it will put 05.01 in the 1st week. Note, however, that FWICR 01/01/2021 will be in the 53th week of 2020...



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.