Viewing 15 posts - 3,481 through 3,495 (of 5,502 total)
Robert.Weeden (5/18/2010)
May 18, 2010 at 2:48 pm
Untested, so you definitely need to verify in detail:
UPDATE [shiptype]
SET [shiptype].[Order Type] = [EDI_T]
CASE
WHEN ([shiptype].[EDI_T]) LIKE 'web%' THEN 'WEB'
WHEN ([shiptype].[FrctStnd]) = '1' THEN 'EDI'
WHEN ([shiptype].[EDI_T]) IS NULL THEN 'MAN'
ELSE...
May 18, 2010 at 2:42 pm
Would something like the following help?
SELECT * FROM
(
SELECT 'Smith John' AS lastname UNION ALL
SELECT 'S#ith Jane' UNION ALL
SELECT '\ Jim' UNION ALL
SELECT 'Anderson Ken' UNION ALL
SELECT 'Smith-Barny Andre'''
) a
WHERE lastname...
May 18, 2010 at 2:34 pm
Robert.Weeden (5/18/2010)
Most commonly I will get data like thisLastName
SmithJohn
???
Seems like the page formatting eat up all your "special" character... Maybe you could provide a (small) screen shot as an image?
May 18, 2010 at 2:22 pm
Several questions:
How do you calculate the duration?
Example:
If you exclude the second occurance of event 1 for Odometer 194780 (Date = 2010-03-26 08:32:00.000), how do you get 32minutes (I'd expect...
May 18, 2010 at 2:16 pm
You might want to look into the wildcards used in a LIKE query.
For details please see BOL, section "LIKE", examples.
Another option would be to check if the string contains an...
May 18, 2010 at 2:00 pm
duplicate post.
Please continue discussion here
May 18, 2010 at 12:57 pm
duplicate post.
Please continue discussion here
May 18, 2010 at 12:54 pm
duplicate post.
Please continue discussion here
May 18, 2010 at 12:52 pm
Jeff Moden (5/17/2010)
Nice job. It was only your second post and you came right around with some really nice test data. A lot of people squawk about doing...
May 18, 2010 at 11:45 am
nsontag (5/17/2010)
That's great!
Thanks for all your...
May 17, 2010 at 4:53 pm
Here's a tested version based on your sample data. That's the advantage of providing ready to use sample data the way you did! Excellent job!!
Side note: the concept below is...
May 17, 2010 at 4:11 pm
Another option not depending on the CONCAT_NULL_YIELDS_NULL setting would be using (col1 IS NULL OR col2 IS NULL) instead of (col1 +col2) IS NULL...
May 17, 2010 at 3:06 pm
I'm sorry!! I missed the second part of the requirement...
Here's the expanded constraint:
ALTER TABLE #temp
ADD CONSTRAINT chkCol1Col2 CHECK ( (ISNULL(col1,col2) IS NOT NULL) AND (col1 + col2 IS NULL));
It...
May 17, 2010 at 3:00 pm
Viewing 15 posts - 3,481 through 3,495 (of 5,502 total)