Viewing 15 posts - 5,926 through 5,940 (of 26,490 total)
Here is my take on this solution:
select
gla.id as GLAcct,
gla.descr as GLDesc,
sum(case when cast(gl.transaction_date as DATE) between dateadd(year,datediff(year,0,getdate()),0) ...
September 4, 2014 at 7:10 pm
CELKO (9/4/2014)
The highlighted (bolded) pattern for validation will allow for INVALID MONTHS. Since when do we have a 13th, 14th, 15th, 16th, 17th, 18th, or 19th month in ANY...
September 4, 2014 at 3:38 pm
Yes, I actually threw one of Mr. Celko's own arguments back at him in a post talking about dates.
I liked the COBOL reference since he likes to use it when...
September 4, 2014 at 1:30 pm
CELKO (9/4/2014)
... The pattern for validation is '[12][0-9][0-9][0-9]-00-00' and '[12][0-9][0-9][0-9]-[01][0-9]-00'
Your mindset is still back in FORTRAN and BASIC with UDF and procedural programing. Aas you have been told, they have...
September 4, 2014 at 1:27 pm
Solomon Rutzky (9/4/2014)
Jeff Moden (9/3/2014)
September 4, 2014 at 1:01 pm
CELKO (9/4/2014)
rental_month CHAR(10) NOT NULL
CHECK (rental_month LIKE '[12],[0-9][0-9][0-9]-[01][0-9]-00')
Why not do it like this? It uses less space and ensures you don't get any invalid months or...
September 4, 2014 at 10:21 am
CELKO (9/3/2014)
the truncated YYYY-MM-DD is allowed in ISO 8061. But DD is constrained to be in the range 01 to 31 so the CELKO YYYY-MM-00 is guaranteed non-conformant...
September 3, 2014 at 8:03 pm
Looks like several of the games this week could be really close.
[font="Arial Black"]Any given Sunday![/font]
September 3, 2014 at 4:36 pm
CELKO (9/3/2014)
Vastly more important, "we" do not store editing chars within the data! Even if one insists on storing dates as (var)char, why on earth would there ever...
September 3, 2014 at 4:21 pm
Welsh Corgi (9/3/2014)
Edit:
The off shore people did not create the table that I needed until today so...
September 3, 2014 at 3:39 pm
Welsh Corgi (9/3/2014)
My query works until I try and add the WHERE Clause.
I finally got the real Table from...
September 3, 2014 at 12:06 pm
SreeSql (9/3/2014)
September 3, 2014 at 10:39 am
SQLRNNR (9/3/2014)
Luis Cazares (9/3/2014)
xsevensinzx (9/3/2014)
Koen Verbeeck (9/3/2014)
xsevensinzx (9/3/2014)
September 3, 2014 at 9:55 am
Give this a try:
with basedata as ( -- creating test data
select
*
from
(values ('INTERNAL COMMUNICATIONS:' + Char(13) + 'Blah blah blah blah'),
...
September 2, 2014 at 5:04 pm
Viewing 15 posts - 5,926 through 5,940 (of 26,490 total)