Forum Replies Created

Viewing 15 posts - 2,071 through 2,085 (of 15,381 total)

  • RE: Are the posted questions getting worse?

    Steve that is the usual transition from Summer to Winter here in KC. Fall is usually right around 5-6 hours followed by a long and cold winter. 😛

  • RE: summing alpha columns

    fmarler (11/17/2015)


    I know. Not the way I would have designed it but I inherited this and am stuck using it.

    Understand. Did you see this part?

    If you really want some help...

  • RE: summing alpha columns

    fmarler (11/17/2015)


    SELECT

    [transaction_detail_id]

    ,[transaction_code]

    ,[transaction_short_desc]

    ,[transaction_desc]

    [highlight=#ffff11] ...

  • RE: Are the posted questions getting worse?

    Luis Cazares (11/17/2015)


    Lynn Pettis (11/17/2015)


    OMG

    Step 1: Prepare 3 envelopes. :hehe:

    ROFL.

  • RE: A Case FOR Cursors...

    Alan.B (11/16/2015)


    The Dixie Flatline (11/16/2015)


    Without using specific examples to test, it is hard to explain why set-based processing outperforms cursor-based code. ..."It depends" to coin a cliche. ...

  • RE: Shrinking Database

    luissantos (11/16/2015)


    Hello comunity

    I read that is not best practice to Shrink database due to index defragmentation,

    but my DATA file occupies in disk 39 GB when in fact the size is...

  • RE: Are the posted questions getting worse?

    robert.sterbal 56890 (11/16/2015)


    Along with the answer to a persistently "lazy" person, it might be nice to put out a resource you can send them to that goes over the expectation...

  • RE: Are the posted questions getting worse?

    Ed Wagner (11/16/2015)


    Sean Lange (11/16/2015)


    Lynn Pettis (11/16/2015)


    Sorry, got snippy with an OP.

    50 lashes with a noodle please.

    I didn't think it was that snippy. I wouldn't have given them the code...

  • RE: Are the posted questions getting worse?

    Lynn Pettis (11/16/2015)


    Sorry, got snippy with an OP.

    50 lashes with a noodle please.

    I didn't think it was that snippy. I wouldn't have given them the code though. 😀

  • RE: How to get date after specific number of days

    sqlinterset (11/16/2015)


    sorry for confusion. 4/14 mean either 4 months or 14 months.

    Then use DATEADD. https://msdn.microsoft.com/en-us/library/ms186819.aspx

  • RE: Need to remove a "group by" function from this SQL statement

    Let's start with some formatting so it is legible.

    SELECT t00.ScenarioID

    ,t01.[GROUP]

    ,'' AS GroupName

    ,t01.companygroupaccount

    ,t01.accountnum

    ,t01.accountname

    ,SUM(t00.ActualValue + t00.Forecast) AS Forecast

    ,0 AS ForecastPercentage

    ,SUM(t00.BudgetValue) AS Budget

    ,0 AS BudgetPercentage

    ,SUM(t00.BudgetValue - (t00.ActualValue + t00.Forecast)) AS Variance

    ,0 AS VariancePercentage

    FROM...

  • RE: Add current date to a bulk insert

    vavfam 50321 (11/16/2015)


    Here is the error I get. I also max out on errors and it fails at that point.

    Bulk load data conversion error (type mismatch or invalid character...

  • RE: How to get date after specific number of days

    sqlinterset (11/16/2015)


    I need to calculate a date from specific date. For e.g. If my date is 2015-10-08 and i want to see date after 4/14 months. How can i do...

  • RE: Variance in 2 fields

    sharonsql2013 (11/16/2015)


    I need to calculate the difference in two adjacent fields and if the variance is +20% or -20% or more than flag it.

    Say the fields are JanTotal and Febtotal.

    Can...

  • RE: Add current date to a bulk insert

    vavfam 50321 (11/16/2015)


    I have a text file that I receive from a partner. The file gets imported into our SQL using a temp table in a SQL Job. ...

Viewing 15 posts - 2,071 through 2,085 (of 15,381 total)