Viewing 15 posts - 21,376 through 21,390 (of 26,484 total)
Looks like I deleted the group by from my original code as I cleaned it up for posting, sorry. But, yes, we were definately thinking along the same lines.
April 21, 2009 at 12:35 pm
If you don't mind me asking, which version did you select?
April 21, 2009 at 11:48 am
I had to fix some of the data in the second data set you PM'ed as the number of columns did not match. Some of the selct statements only...
April 21, 2009 at 11:44 am
James.N (4/17/2009)
Can any one help me with T-SQL correct syntax for this logic.
I wanted to upsert my destination(D) table...
April 21, 2009 at 11:39 am
does this accomplish what you are looking to do?
with MessageCount (
ID1,
MsgCount,
StartDate,
EndDate
) as (
select
...
April 21, 2009 at 10:40 am
Brain_Killer (4/21/2009)
Christopher Stobbs (4/21/2009)
--Month
WHERE [YourDate] BETWEEN
DATEADD(mm, DATEDIFF(mm,0,DATEADD(mm,-1,GETDATE())), 0)
AND DATEADD(ms,-3,DATEADD(mm, DATEDIFF(mm,0,GETDATE()), 0))
The from part of the date:
Step 1: DATEADD(mm,-1,GETDATE() = get the...
April 21, 2009 at 9:09 am
I need related sample data between the two tables. The data previously provided results in an empty result set. I'm not sure what values to actually change or...
April 21, 2009 at 8:35 am
Jeff Moden (4/20/2009)
April 20, 2009 at 10:57 pm
Here is another attempt at solving your problem:
CREATE TABLE #CheckIn
(
CheckInID INT IDENTITY(1,1)
,UserID INT
,Comment VARCHAR(50)
)
-- insert some sample data
INSERT...
April 20, 2009 at 10:19 pm
Sounds like you need to redefine your problem somewhat. How about providing something closer to the actual problem we are working on. Can you give me something closer...
April 20, 2009 at 9:28 pm
Instead of searching through 300+ posts, could we get bruce t's problem posted to a new forum thread and a link added here for anyone interested to follow to that...
April 20, 2009 at 8:22 pm
Is there more to the real world data that would support the sequence of data entered? is there a date field or other form of identification that signifies the...
April 20, 2009 at 8:08 pm
Goldie Graber (4/20/2009)
It works well on tables with up to a few million records. Takes a minute or two.
When I had...
April 20, 2009 at 8:04 pm
Mr Dassin,
You really have missed the point. Stop with the hyperbole and attacks on SQL Server (and all its cousins). Provide straight, well supported facts. Provide actual...
April 20, 2009 at 7:59 pm
Paul White (4/20/2009)
dphillips (4/20/2009)
And by the way Steve Dassin, you may want to go re-read Snarky's comments.Let it go dude 🙂
ooommmmmmmmmmmmmmmm
April 20, 2009 at 4:33 pm
Viewing 15 posts - 21,376 through 21,390 (of 26,484 total)