Viewing 15 posts - 496 through 510 (of 3,957 total)
Lynn Pettis (1/15/2015)
Stephanie Giovannini (1/15/2015)
BEGIN CATCH
DECLARE
...
January 15, 2015 at 5:56 pm
Luis Cazares (1/13/2015)
SELECT CustomerID,
DATEDIFF( MM,
...
January 15, 2015 at 5:49 pm
Mark Cowne (1/13/2015)
This is a gaps and islands problem
Correct!
My solution suggestion:
SELECT CustomerID, COUNT(*)
FROM
(
SELECT CustomerID, ReadDate, Usage
,rn=DATEDIFF(month, ReadDate, 0)...
January 15, 2015 at 5:40 pm
Luis Cazares (1/14/2015)
Congratulations Koen! When I grow up I want to be like you. :hehe:
I'll second this.
Congratulations Koen!
January 14, 2015 at 4:41 pm
Good question Jeff.
Another question: So I've been away from the forum for 6 months and everyone has already forgotten how to use a pattern splitter?
create table
#tbl_1
(txt varchar (max))
insert into...
January 11, 2015 at 6:38 pm
Emil Bialobrzeski (1/9/2015)
dwain.c (1/8/2015)
Emil Bialobrzeski (1/8/2015)
SELECT
EMPLOYEE_ID
, LAST_NAME
, SALARY
, JOB_ID
...
January 9, 2015 at 1:17 am
Jeff Moden (1/8/2015)
dwain.c (1/8/2015)
Luis Cazares (1/8/2015)
Maddave (1/8/2015)
Jeff Moden (1/8/2015)
January 8, 2015 at 6:15 pm
You might want to consider using a dynamic search stored procedure for this:
January 8, 2015 at 6:07 pm
rash3554 (1/8/2015)
I have a table with values 10,22,11,15,14,14,13,12,12,11,11,11
Create table test(testno int not null);
insert into test values(10);
insert into test values(22);
insert into test values(11);
insert into test values(15);
insert into test values(14);
insert into...
January 8, 2015 at 5:59 pm
Look into using CASE/WHEN/ELSE/END.
January 8, 2015 at 5:53 pm
Emil Bialobrzeski (1/8/2015)
SELECT
EMPLOYEE_ID
, LAST_NAME
, SALARY
, JOB_ID
,...
January 8, 2015 at 5:50 pm
CHOOSE your poison:
WITH Tally (n) AS
(
SELECT TOP 20 ROW_NUMBER() OVER (ORDER BY (SELECT NULL))
FROM sys.all_columns
)
SELECT CHOOSE(n, 'a', 'e', 'i', 'o', 'u', 'y')
...
January 8, 2015 at 5:46 pm
aaron.reese (1/8/2015)
Wow Dwain that is some complex code! I have only scanned it and like Nevyn says, it requires the user to seed it with a set of predefined...
January 8, 2015 at 5:06 pm
Luis Cazares (1/8/2015)
Maddave (1/8/2015)
Jeff Moden (1/8/2015)
January 8, 2015 at 4:57 pm
I will need to retain the INTriguing BIT[/i] of knowledge in this thread should it ever come INTo play for me.
January 8, 2015 at 3:10 am
Viewing 15 posts - 496 through 510 (of 3,957 total)