Forum Replies Created

Viewing 15 posts - 3,781 through 3,795 (of 5,109 total)

  • RE: Are the posted questions getting worse?

    jasona.work - Wednesday, May 3, 2017 8:14 AM

    So, the talk about what people do or don't know about SQL got me thinking...
    How...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Procedure Doing Only Select

    Rechana Rajan - Wednesday, May 3, 2017 5:42 AM

    Thanks Thom,

    No :w00t:

    Ok, before ANYTHING you need to look at that. As...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Are the posted questions getting worse?

    Grant Fritchey - Wednesday, May 3, 2017 5:31 AM

    Brandie Tarvin - Wednesday, May 3, 2017 4:58 AM

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Find highest number in a column of strings

    Ok, well you'll want to split the number out of the string first then. If your data is always going to be in the same format, this makes it a...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Procedure Doing Only Select

    Rechana Rajan - Wednesday, May 3, 2017 4:58 AM

    Thanks Gail,

    The procedure takes two values as input , the writes happen only...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Find highest number in a column of strings

    What do you define as the highest number in your example, 9 or 348? Will your strings always be in the format of XXX000? What have you tried so far?

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Get first day of quarter based on quarter

    Fairly simple this one.
    DECLARE @Quarters int = 0;
    SELECT DATEADD(QUARTER,DATEDIFF(QUARTER,0,GETDATE()) + @Quarters,0);

    The value of Quarters can be changed to be a positive or negative integer....

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Converting output to horizontal

    Luis Cazares - Tuesday, May 2, 2017 1:40 PM

    Not exactly a Cross Tab. It's a simple aggregate, I just needed something...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Converting output to horizontal

    I was honestly wondering how long it would be before you came along with a Cross Tab style query, Luis. 😉

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Converting output to horizontal

    One option is using UNPIVOT (Using PIVOT and UNPIVOT). For example:
    USE TestDB;
    GO

    CREATE TABLE SampleTable (RandomDate date);
    GO

    INSERT INTO SampleTable

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Invalid length paramter passed to substring function

    Although this doesn't work for string literals, it works fine when using a dataset. For example:
    CREATE TABLE #test (string varchar(20));
    GO

    INSERT INTO #test
    VALUES ('LOHAUANIA');

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Query for status

    sqlenthu 89358 - Tuesday, May 2, 2017 7:01 AM

    I need user and his status based on the latest status (can check with...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Query for status

    I notice your dates in your data are in the format ddMMMMyyyy. Is this actually how they are stored; are you using a varchar to store them?

    Can we...

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: Procedure Doing Only Select

    GilaMonster - Tuesday, May 2, 2017 6:33 AM

    Thom A - Tuesday, May 2, 2017 5:13 AM

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

  • RE: http://supplement4help.com/ultimate-alpha-extreme-side-effects/

    Spam 🙁 (reported)

    Thom~

    Excuse my typos and sometimes awful grammar. My fingers work faster than my brain does.
    Larnu.uk

Viewing 15 posts - 3,781 through 3,795 (of 5,109 total)