Forum Replies Created

Viewing 15 posts - 7,666 through 7,680 (of 10,144 total)

  • RE: Today's Random Word!

    Exsanguination

    "Come on in, the blood's lovely" attributed to a British MP entering a cabinet meeting of the last government.

  • RE: Character type number convert

    Paul White NZ (7/14/2010)


    Eugene Elutin (7/14/2010)


    Paul, have you seen my post #951618 (using UDF), bottom of page 3?

    Do you think this approach is viable for most of scenarious?...

  • RE: Optimizing query

    Comment out this section, it isn't referenced in the SELECT:

    LEFT OUTER JOIN

    ( SELECT p.EntityCode,

    SUM(t.[On-Sale Rate]) AS OnSale,

    SUM(t.[Off-Sale Rate]) AS OffSale

    FROM aztec.dbo.ProductTaxRules p, aztec.dbo.TaxRules t

    WHERE (p.TaxRule1 = t.[Index No]...

  • RE: Name,Name1 --Name1,Name2

    /*

    i need result like

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

    sriram Thiru

    Thiru Hari

    Hari KSS

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

    */

    DROP table #emp

    create table #emp

    (

    eno int,

    ename varchar(20),

    designation varchar(20),

    report_to int

    )

    insert into #emp values (1000,'Sriram','STE',100)

    insert into #emp values (100,'Thiru','PL',10)

    insert into #emp values (10,'Hari','PM',5)

    insert into #emp values...

  • RE: Between Statment only for current day

    jon pill (7/14/2010)


    SELECT min(upvolume),min(downvolume),Max(upvolume),Max(downvolume)

    FROM

    (SELECT upvolume,downvolume,TotalTrades from DBVaskVbid WITH (NOLOCK) where BarStamp >= '7/13/2010') as XDtable

    WHERE TotalTrades

    BETWEEN

    (SELECT MAX(TotalTrades)FROM DBVaskVbid WITH (NOLOCK)) -1000

    AND

    (SELECT MAX(TotalTrades)FROM DBVaskVbid WITH...

  • RE: Return distinct results where multiple rows have different values

    /*

    I need to return distinct OrderIDs where the following conditions are met:

    • The order is just for Bananas (ie just the one row exists for an OrderID)

    • The order is...

  • RE: Today's Random Word!

    To have and to hold your cake and eat it.

  • RE: Character type number convert

    Eugene Elutin (7/13/2010)


    Looks like there is no simple way (set-based) to do it in SQL2005.

    DBCC GetGapsInSpec

    Depends on the fillfactor of the spec - if it's less than 50%, you have...

  • RE: Today's Random Word!

    The Mamas and the Papas

  • RE: Character type number convert

    Paul White NZ (7/13/2010)


    Chris Morris-439714 (7/13/2010)


    It's great ... but...the order of the output doesn't match the order specified by the OP 😛

    Yeah, but the OP got it wrong!

    TWICE! 😀

  • RE: Character type number convert

    Paul White NZ (7/13/2010)


    Eugene Elutin (7/13/2010)


    I knew it wouldn't work, however it does look nice (as result of creative thinking

    It does indeed look very pretty 😎

    I'm going with the upgrade...

  • RE: not in operator with multiple columns

    thava (7/13/2010)


    wow that's great simple and easy chris

    i got it thanks for your reply

    Gosh :blush: you're welcome, thanks for the feedback!

  • RE: Character type number convert

    Thanks Paul, that was interesting - if challenging - reading. I've not yet used rCTEs to resolve hierarchies in anger. This would be a good place to start, given a...

  • RE: not in operator with multiple columns

    Have you tried a left join?

    FROM BatchStock b

    LEFT JOIN #Tmp t ON t.slno = b.slno AND t.itemid = b.itemid

    WHERE b.PurId = @PurID AND b.DocRef = @DocRef

    AND t.slno IS...

  • RE: Character type number convert

    Paul White NZ (7/13/2010)


    skcadavre (7/13/2010)


    Paul White NZ (7/13/2010)


    Where should 1.2.10 sort, I wonder...?

    Chris Morris-439714 (7/13/2010)


    Or 1.1.3, even...

    I think the OP specified the location of that.

    He did.

    I took Chris' post as...

Viewing 15 posts - 7,666 through 7,680 (of 10,144 total)