Forum Replies Created

Viewing 15 posts - 256 through 270 (of 2,452 total)

  • RE: Number of integers where digits are not repeating.

    ben.brugman - Thursday, March 2, 2017 9:04 AM

    But there is no limitation for the length.

    there must be a limit...if you have no...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Detecting Issues

    Steve Jones - SSC Editor - Wednesday, March 1, 2017 9:01 AM

    Jeff Moden - Wednesday, March 1,...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Calculating sales by stock during sales periods

    maybe ?


    SELECT sp.Stockcode,
       sp.Date,
       sp.Price,
       sp.UnitSold,
         sp.Price*sp.UnitSold as SalesAmount
    FROM stockandprice AS sp
      INNER JOIN salestable AS s...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Issue while inserting hardcode value into column

    something like this maybe?   (your declared variables didnt match your inserts)

    DECLARE @starttime DATETIME, @Endtime DATETIME;
    SET @starttime = GETDATE();
    WAITFOR DELAY '00:00:02';
    SET @Endtime =...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Searching for date and weekday counts within Nvarchar column

    frederico_fonseca - Sunday, February 26, 2017 6:00 AM

    Just a bit of an exercise to show what can be done, and some of...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Searching for date and weekday counts within Nvarchar column

    JaybeeSQL - Saturday, February 25, 2017 1:56 PM

    Thom A - Saturday, February 25, 2017 11:25 AM

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Searching for date and weekday counts within Nvarchar column

    Thom A - Saturday, February 25, 2017 2:51 PM

    If it were only so simple for me, J, but those American style dates...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Searching for date and weekday counts within Nvarchar column

    just some thoughts.....


    CREATE TABLE #Sample (YourOnlyColumn VARCHAR(MAX));
    GO

    INSERT INTO #Sample
    VALUES
    ('02-28-2017, 04:03 AM'),
    ('TheNatty replied to a thread Piketted: Bottom 50%...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Lag and Lead Function - Populate Column with Values

    walter.dziuba - Saturday, February 25, 2017 9:15 AM

    Morning,
    Now that I have a successful sql statement, thanks to the help of others, I...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Splitting data into two columns

    Senchi - Saturday, February 25, 2017 7:06 AM

    Wow, Thom....wonderful ..
    What if I have the case when numbers and letters are separated like...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Lag and Lead Function - Populate Column with Values

    walter.dziuba - Friday, February 24, 2017 11:37 AM

    Gents,
    I can't seem to get this sql statement to work:

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Lag and Lead Function - Populate Column with Values

    suggest 

    lead(value,1) over (order by date) from [GIS_EDMS].[sde].[Precip_Acc] - value as result

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Report Query

    Suth - Friday, February 24, 2017 8:44 AM

    John Mitchell-245523 - Friday, February 24, 2017 8:33 AM

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Report Query

    Suth - Friday, February 24, 2017 8:40 AM

    J Livingston SQL - Friday, February 24, 2017 8:26 AM

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

  • RE: Report Query

    does this help you in getting closer to your requirements?


    CREATE TABLE #yourtable(
    thedate DATETIME NOT NULL
    ,agent INT NOT NULL
    ,AgentName VARCHAR(11)...

    ________________________________________________________________
    you can lead a user to data....but you cannot make them think
    and remember....every day is a school day

Viewing 15 posts - 256 through 270 (of 2,452 total)