Viewing 15 posts - 5,971 through 5,985 (of 26,490 total)
dwain.c (9/1/2014)
DECLARE @system_log TABLE(
PK_ID int PRIMARY KEY
,Sequence_ID int null
)
INSERT @system_log(
PK_ID
,Sequence_ID
)VALUES
(1035590, 35587),
(1035589, NULL),
(1035586, NULL),
(1035585, NULL),
(1035584,...
September 1, 2014 at 7:10 pm
Here is a potential solution. It works with the sample data provided.
DECLARE @system_log TABLE(
PK_ID int PRIMARY KEY
,Sequence_ID int null
)
INSERT @system_log(
PK_ID
,Sequence_ID
)VALUES
(1035590, 35587),
(1035589, NULL),
(1035586, NULL),
(1035585, NULL),
(1035584, NULL),
(1035583, 35583),
(1035582, NULL),
(1035581, NULL),
(1035579, NULL),
(1035578,...
September 1, 2014 at 5:29 pm
luboxing (8/30/2014)
DATE LOCATN_K ...
August 30, 2014 at 8:04 pm
It would help if you provided some DDL (CREATE TABLE statement) for the table(s) involved, some sample data representative of the problem domain for the tables (as INSERT INTO statements)...
August 30, 2014 at 5:04 pm
LutzM (8/30/2014)
Lynn Pettis (8/30/2014)
...Page 1 is now ALL spam.
Steve wrote a couple of days ago that developers will have a look at it.
I truly hope that's not the result of...
August 30, 2014 at 4:59 pm
Eirikur Eiriksson (8/30/2014)
Lynn Pettis (8/30/2014)
The active thread view reminds me of a Monty Python skit: Spam, spam, spam, spam ... :-P;-):w00t:
The Menu (translated to SSC'lect)
Post...
August 30, 2014 at 10:46 am
The active thread view reminds me of a Monty Python skit: Spam, spam, spam, spam ... :-P;-):w00t:
August 30, 2014 at 9:50 am
I am jaded. I just read a reopened old thread by one of my favorite people. How, I ask you, can you work with SQL Server and in...
August 30, 2014 at 7:48 am
Interesting thing about storing the DOB as a character string in mmddyyyy format, it is easy to flip it to yyyymmdd and then convert to a date:
create table dbo.names (name...
August 29, 2014 at 7:18 pm
ScottPletcher (8/29/2014)
Lynn Pettis (8/29/2014)
ScottPletcher (8/29/2014)
August 29, 2014 at 1:42 pm
ScottPletcher (8/29/2014)
August 29, 2014 at 1:03 pm
ScottPletcher (8/29/2014)
Eirikur Eiriksson (8/29/2014)
ScottPletcher (8/29/2014)
patrickmcginnis59 10839 (8/29/2014)
CELKO (8/22/2014)
What do you use for the PK on lookup tables?
I use the encoding that is being used. The IDENTITY property (not a...
August 29, 2014 at 11:24 am
HowardW is correct. The only reason I mentioned the CAST(DateColumn as DATE) alternative is because it is still SARGable. I had to prove it to myself a while...
August 29, 2014 at 9:33 am
amns (8/29/2014)
HowardW - Thanks for your tip!Lynn Pettis
Will this
cast(DateColumn as DATE) = cast(@DateToFind as DATE);
???
August 29, 2014 at 8:14 am
amns (8/29/2014)
I have a datetime column, to which I just need to compare the date part.
Which is the way that performs better to get the rows with a specific date,...
August 29, 2014 at 7:53 am
Viewing 15 posts - 5,971 through 5,985 (of 26,490 total)