Forum Replies Created

Viewing 15 posts - 8,851 through 8,865 (of 10,144 total)

  • RE: POOR QUERY PERFORMANCE

    Thanks...also the view limit_set_view please.

    Views of views can be performance hogs. Others have pointed out the correlated subqueries - they may not be much of a problem however combining the...

  • RE: importing from excel

    Since data imported from Excel almost always requires tweaking, it makes sense to import it into a staging table where it can be manipulated in isolation from the rest of...

  • RE: how to access whole row in a cursor

    Can you post all or part of the code which you are currently attempting to use, with an explanation of what you are trying to achieve?

  • RE: POOR QUERY PERFORMANCE

    Please can you post the structure of the view test_result_view?

  • RE: Looping in select query

    How about setting up some sample data for folks to test against?

    Cheers

    ChrisM

  • RE: CASE ISNULL

    Philip Horan (1/31/2009)


    Chris my code runs without error? What can I do to help? Let me explain further. The user may enter multiple custom fields on the app screens (SalesOrders...

  • RE: Are the posted questions getting worse?

    Jeff Moden (1/30/2009)


    Sounds like a lot of fun but, consider this, would you like it if your post and name showed up on a "Twit List". Bad enough they...

  • RE: 'Conditional aggregate'

    Ramesh (1/30/2009)


    Chris Morris (1/30/2009)


    simonjw83 (1/30/2009)


    Of course !! Thanks Ramesh. My excuse is it's late Friday afternoon in London - long day !!

    Not only is it late afternoon, it's friday...

  • RE: 'Conditional aggregate'

    simonjw83 (1/30/2009)


    Of course !! Thanks Ramesh. My excuse is it's late Friday afternoon in London - long day !!

    Not only is it late afternoon, it's friday and it's almost...

  • RE: Stored proc to count rows in a table based on a foreigh key different values

    Surprisingly, no:

    DROP TABLE #TableA

    CREATE TABLE #TableA (idstatus INT)

    INSERT INTO #TableA (idstatus)

    SELECT TOP 500000 CAST(LEFT(number, 1) AS INT)

    FROM dbo.Numbers

    WHERE CAST(LEFT(number, 1) AS INT) < 7

    ORDER BY NEWID()

    ----------------------------------------------------------------------------

    -- Lowell's

    SELECT

    ...

  • RE: CASE ISNULL

    Hi Philip

    The code you posted doesn't run, it generates the error message:

    'Msg 8124, Level 16, State 1, Line 38

    Multiple columns are specified in an aggregated expression containing an outer...

  • RE: Need Help!!!!! - Data manipulation

    Try this...

    DROP TABLE #Temp

    CREATE TABLE #Temp (Users VARCHAR(10), [DateTime] DATETIME, Sections VARCHAR(1), Title VARCHAR(1))

    INSERT INTO #Temp (Users, [DateTime], Sections, Title)

    SELECT 'Client1', '2009-01-30 08:00 AM', 'I', 'A' UNION ALL ...

  • RE: CASE ISNULL

    I can see three WHERE's and only one FROM. You can only have one WHERE per FROM.

    SELECT...

    FROM...

    WHERE...

  • RE: Are the posted questions getting worse?

    Greg Edwards (1/29/2009)


    The Thread (1/29/2009)


    We do not know fear or pain or mercy. We will not stop. Ever.

    So when The Thread gets a 100 posts or so, does...

  • RE: Are the posted questions getting worse?

    The Thread (1/29/2009)


    We do not know fear or pain or mercy. We will not stop. Ever.

    Hah! Prepare to meet...CARDINAL SCISSORHANDS!! 😛

Viewing 15 posts - 8,851 through 8,865 (of 10,144 total)