Forum Replies Created

Viewing 15 posts - 1,786 through 1,800 (of 2,007 total)

  • RE: Concurrent Data Flows

    Have each one be dependant on a previous one completing before starting?

  • RE: String Manipulatiom

    DECLARE @TEST AS DECIMAL(19,11)

    SET @TEST = 55.32178699281

    SELECT @TEST

    ,SUBSTRING(CONVERT(VARCHAR(MAX),@TEST),CHARINDEX('.',@TEST),LEN(@TEST))

    ,CONVERT(DECIMAL(19,11),SUBSTRING(CONVERT(VARCHAR(MAX),@TEST),CHARINDEX('.',@TEST),LEN(@TEST)))*60

    /*

    55.32178699281.3217869928119.30721956860

    */

  • RE: Insert enddate using startdate

    Aspg (8/10/2010)


    SEE IF THIS HELPS ....

    Better 😉

    CREATE TABLE #sample

    (

    code VARCHAR(2),

    stardate DATE NOT NULL,

    ...

  • RE: Insert enddate using startdate

    Aspg (8/10/2010)


    Hi ,

    Here is the sample data .

    Enddate is currently null .

    What i want is the endate of 1st row should be the yesterday (from startdate ) of 2nd row...

  • RE: Insert enddate using startdate

    The reason no-one has posted a response is because you've not made it easy to help you 😉

    Read this[/url], post us some sample data and expected results in the format...

  • RE: Format varchar value to numeric

    Aspg (8/10/2010)


    Here it is

    First of all, a complaint.

    When you get asked to post sample data, I should be able to copy it into my query window and execute to get...

  • RE: Division Formula

    DECLARE @TABLE AS TABLE(

    [TIME] INT)

    INSERT INTO @TABLE

    SELECT 1

    UNION ALL SELECT 60

    UNION ALL SELECT 3600

    UNION ALL SELECT 7200

    SELECT totmin / 3600 AS [Total Hours]

    FROM (SELECT CONVERT(DECIMAL(19, 5), SUM([TIME])) AS...

  • RE: Remove Character -- a comma from a number

    SELECT CONVERT(decimal, REPLACE('5,000',',',''))

  • RE: Inception

    My best ideas come when I'm sat on the toilet :blush:

    Normal solutions simply come to me as I work through a problem.

  • RE: T-SQL only Solution for gathering disk size info?

    jeff.mason (8/5/2010)


    We did look at that. But there are two problems with it -- 1) we'd like to not enable OLE access if we could avoid it (we see...

  • RE: T-SQL only Solution for gathering disk size info?

    How's this?

    IF EXISTS (SELECT *

    FROM sys.objects

    WHERE...

  • RE: Null Fun

    Steve Cullen (8/5/2010)


    Note that you can do this:

    SELECT 1 WHERE NULL is NULL

    Indeed. Or even

    SELECT CASE

    WHEN NULL IS NULL THEN...

  • RE: Null Fun

    Jeff Moden (8/5/2010)


    Nulls cannot be compared to anything, not even other Nulls. NULL = NULL returns false. NOT IN is like saying NULL <> NULL and even that...

  • RE: Need correct answer

    Try this

  • RE: generate the header after every unique rows

    It sounds like you posted in the wrong forum then, because this solution works for SQL Server 2008. If you're using a different version of SQL Server, you should've posted...

Viewing 15 posts - 1,786 through 1,800 (of 2,007 total)