Forum Replies Created

Viewing 15 posts - 6,046 through 6,060 (of 10,144 total)

  • RE: update statment help

    Luis Cazares (7/12/2012)


    In my experience, Smash would need a slightly different approach if he needs the total due for each contact, because Chris' query will only return the total from...

  • RE: Help on SQL query

    GSquared (7/12/2012)


    Jeff Moden (7/10/2012)


    @Gus,

    Ok... I've been looking at this thread for a bit for "Sam's view definition" and I'm not finding any "SAM" that posted. Did you mean "Chris'...

  • RE: update statment help

    UPDATE c SET

    TotalDue = s.Freight + s.SubTotal + s.TaxAmt

    FROM #Contact c

    INNER JOIN #Sales s ON s.ContactID = c.ContactID

  • RE: Woohoo MCTS passed

    Well done Mark 🙂

  • RE: Sql query to get recursive count

    Hello and welcome to ssc. Please have a read of the best practices / forum etiquette article here[/url].

    This looks straightforward - if you can post some easily-consumable data as suggested...

  • RE: Using CASE for quieries via a Linked Server (MySQL)

    The constant 'UK' in the command string will need extra quotes:

    CASE siteId WHEN 91 THEN '''UK''' END

    There are two flavours of CASE statement, simple and searched. This is a searched...

  • RE: Running Total

    jerome.morris (7/11/2012)


    There is lots of selects in this so I am not 100% where to put the date part. I also want to use Variables form from C# app.

    (Docket_Date...

  • RE: Running Total

    jerome.morris (7/11/2012)


    I found out the Row grouping was incorrect in my report so its working now. I will eventually select Docket_Date also but will try a figure out where to...

  • RE: Loop within a Loop

    Or like this:

    ;WITH Numbers AS (SELECT * FROM (VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12),(13),(14),(15),(16),(17),(18),(19),(20),(21),(22),(23),(24),(25),(26),(27)) d(n))

    SELECT CHAR(a.n+64) + CAST(b.n AS VARCHAR(2))

    FROM Numbers a CROSS JOIN Numbers b

    WHERE a.n < 27

  • RE: Running Total

    jerome.morris (7/11/2012)


    When I execute this in SQL the results are perfect and in the correct order, I use a stored procedure and then drag to my DataSet designer in VS2010...

  • RE: Running Total

    Jay, don't be afraid to ask - so long as you're willing to put in some effort, which you certainly have done so far, then folks will chip in to...

  • RE: Running Total

    jerome.morris (7/11/2012)


    That what I cant do I need to make a that column and add the totals together

    so the last column would look like this

    53

    70

    79

    88

    95

    98

    100

    Like this?

    ; WITH OrderedData AS...

  • RE: Running Total

    Jay, using the sample data you posted yesterday, your query above generates the following result:

    Docket_CategoryDocketsPct_To_Total

    Mechanical 440 ...

  • RE: An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown.

    krishnaprasad14 (7/11/2012)


    Really can't modify anything.

    [My self I think 23,000 row count is not big for GB Ram server....]

    Thank you.

    It's the client limit, not the server, as Anthony pointed...

  • RE: An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown.

    krishnaprasad14 (7/11/2012)


    Hi Thank you for your replay. I was done this. I can execute if I change query results to text o file but geting an error when I choose...

Viewing 15 posts - 6,046 through 6,060 (of 10,144 total)