Viewing 15 posts - 76 through 90 (of 26,487 total)
I am just going to say that it doesn't seem like you are really trying that hard to figure out your solutions. Having said that, here is a solution that...
January 1, 2021 at 7:49 am
Won't help if the WHERE clause just happens to include the entire table. Seen it, had to help recover 10 years of data as a result of an incorrect date...
December 31, 2020 at 4:23 am
I'll be back next season! Still seeking my elusive third title!
So will I. I want a fifth title!
December 30, 2020 at 6:35 pm
Try the following as your WHERE clause:
WHERE
tdate >= dateadd(hour,17,dateadd(week,datediff(week,0,getdate()),0)) and tdate < dateadd(hour,17,dateadd(week,datediff(week,0,getdate()) + 1,0))
and cast(dateadd(hour,7,tdate) as time) >= cast('00:00' as time) and cast(dateadd(hour,7,tdate) as time) <...
December 29, 2020 at 8:19 pm
So, every Monday you start at that Monday at 17:00. This means that you get nothing when run during the first shift on Monday. Is this correct or do you...
December 29, 2020 at 7:38 pm
>> I remember learning Algol during a teacher strike while I was in High School back when dinosaurs still roamed the land. I actually liked the language. <<
I learned...
December 29, 2020 at 5:39 pm
Congrats, Steve!
In other news -- my rivalry with Lynn continues! 🙂
Of course I still lead where it matters, First Place Trophies!
??????????
December 29, 2020 at 5:33 pm
Could be that I need more sleep (doubt that as I slept almost 12 hours last night) so I am still confused. You really aren't providing the information needed to...
December 29, 2020 at 5:25 pm
So, you are pulling data for an entire week, and just want the data for the second shift (17:00 to 05:00). Is this query only run once a week and...
December 29, 2020 at 4:47 pm
A little bit of history here. The ANSI/ISO Standards committee decided that the grammar for SQL would be LALR(1). One of the committee members had access to a...
December 29, 2020 at 4:40 pm
Looks like I will be losing to Ray tomorrow. Two of my wide receivers didn't show up today.
December 28, 2020 at 6:07 am
For anyone trying to get to the original article, here is the link: https://www.sqlservercentral.com/articles/lookup-table-madness
December 24, 2020 at 10:47 pm
Playoffs are in full swing, my bid to meet Ray in the Consolation bracket finals failed miserably.
The Ravens and Bulldogs square off, with the always interesting matchup of a...
December 22, 2020 at 6:30 am
You mean something like this?
create table #gen
(
zplid int,
CodetypId int,
ZfeatureKey nvarchar(20)
)
insert into #gen(zplid,CodetypId,ZfeatureKey)
values
(9714,849774,1501290046),
(9714,849774,1501099991),
(9714,849774,1501555555),
(9823,9732410,1501290046),
(9823,9732410,1501099991),
(9823,9732410,NULL),
(5890,838651,1501290046),
...
December 19, 2020 at 10:00 pm
I still have an outside shot at a playoff spot. I need to win my matchup, and I need Lynn and Old Cats to lose!
Go Steve and Green Machine!!!
I...
December 9, 2020 at 8:00 pm
Viewing 15 posts - 76 through 90 (of 26,487 total)