Forum Replies Created

Viewing 15 posts - 1,156 through 1,170 (of 2,007 total)

  • RE: Modulo operator problem

    memymasta (12/12/2011)


    Cadavre (12/12/2011)


    Try these changes and test again (it's a little difficult without an actual execution plan)

    ========== Jim-720070 version ==========

    Warning: Null value is eliminated by an aggregate or other SET...

  • RE: Modulo operator problem

    memymasta (12/12/2011)


    Here's the result with real data:

    ========== Jim-720070 version ==========

    Warning: Null value is eliminated by an aggregate or other SET operation.

    (3336 row(s) affected)

    Table 'Worktable'. Scan count 0, logical reads 0,...

  • RE: Resume font ?

    Dev (12/12/2011)


    Trust me, if you can prove your skills resume font doesnโ€™t matter.

    Use Wingdings next time and see how that works out for you ๐Ÿ˜‰

  • RE: Modulo operator problem

    Next time, I might even read the whole thread before I post!!

    Corrected.

    SELECT userid, firstname, lastEndDate AS lastJob, DATEDIFF(dd, lastEndDate, GETDATE()) AS daysSinceLastJob,

    MAX(jobname) AS jobname

    FROM (SELECT a.id AS userid, a.firstname, a.lastlogin,...

  • RE: create ipaddress table

    This article discusses the options[/url]

  • RE: Return SQL Server service user in T-SQL

    Phil Parkin (12/12/2011)


    Thanks, but that returns the current user - not quite what I am after.

    I want the name of the user which is running the SQL Server service for...

  • RE: Modulo operator problem

    memymasta (12/12/2011)


    It seems like it works! In a single SQL, thats amazing...

    Ty, you guys rock!

    *christmas hug*

    No problem.

    Out of curiosity, which performs better on your real data? (I won't be offended...

  • RE: Return SQL Server service user in T-SQL

    Assuming I understand you correctly

    SELECT SUSER_NAME()

  • RE: Modulo operator problem

    You're right, I did miss that requirement.

    Here's the corrected version for my code: -

    SELECT userid, firstname, lastEndDate AS lastJob, DATEDIFF(dd, lastEndDate, GETDATE()) AS daysSinceLastJob,

    MAX(jobname) AS jobname

    FROM (SELECT a.id AS userid,...

  • RE: Split the values from ('1,2,3,4') to ('1','2','3','4') or (1,2,3,4)

    DECLARE @str NVARCHAR(MAX) = '1,2,3,4'

    SET @str = '''' + REPLACE(@str,',',''',''') + ''''

    SELECT *

    FROM emp

    WHERE empid IN (@str)

  • RE: Are the posted questions getting worse?

    GilaMonster (12/10/2011)


    Cadavre (12/9/2011)


    Sorry if it feels like I'm pestering you Gail, I just like to understand why. For me, what you're describing contradicts what I believed as the why,...

  • RE: Variant Order 3

    Surprisingly difficult, especially considering the % of correct answers!

    Thanks for the question and the point ๐Ÿ˜€

  • RE: Modulo operator problem

    memymasta (12/12/2011)


    Jim-720070 (12/9/2011)


    Hmmm... I have to disagree with you...

    Oh, i just run the code without removing the "WHERE RecentJob = 1" part.

    The code works exellent and has alot better...

  • RE: Need help creating a new table from rows of existing table

    BEGIN TRAN

    --Create sample data to play with

    SELECT Identifier, priority, accountnumber

    INTO #SampleData

    FROM (SELECT 123456, 1, 9999999999

    UNION ALL SELECT 123456, 1, 8888888888

    ...

  • RE: Are the posted questions getting worse?

    GilaMonster (12/9/2011)


    Kiara (12/9/2011)


    GilaMonster (12/9/2011)


    It seemed to be, because

    Surname BETWEEN @Letter + '%' ...

    and

    Surname BETWEEN CAST(@Letter AS Varchar(50)) + '%' ...

    produced different results. Didn't spend weeks investigating though...

    Hm... that would...

Viewing 15 posts - 1,156 through 1,170 (of 2,007 total)