Forum Replies Created

Viewing 15 posts - 10,486 through 10,500 (of 15,374 total)

  • RE: Merging rows

    Still nothing to test with but I think this might be close to what you want...

    select A, b, MAX(C), MAX(D), MAX(E), MAX(F), g

    from

    (

    SELECT distinct

    BASE1.AssetID AS a

    ,BASE1.Name As b

    ,case when BASE2.AssetID...

  • RE: loop and insert

    The logic that Praveena suggested is far better than looping for this. There is no need for looping here at all. There is no reason to be concerned by the...

  • RE: CAN we?

    raghavender.2369 (10/4/2012)


    ThanQ for your reply and please look at my question once, you would know what exactly i need.

    What you want is simply not possible using the proper datatype. I...

  • RE: CAN we?

    haiao2000 (10/4/2012)


    raghavender.2369 (10/4/2012)


    I agree with you, we can display the result in any desired format using convert or someother functions,

    my friend said it is possible to store date in this...

  • RE: CAN we?

    raghavender.2369 (10/4/2012)


    Thanq for your suggestion, but there is a requirement to store date in 'dd-mm-yyyy' in this format only(use only date datatype, dont use varchar), i googled about it ,...

  • RE: CAN we?

    raghavender.2369 (10/4/2012)


    by default date is stored in table 'yyyy-mm-dd' format , but I want to store date in 'dd-mm-yyyy' format, am i clear?

    Yes....don't use varchar. Use datetime. Then there is...

  • RE: CAN we?

    raghavender.2369 (10/4/2012)


    I have a table(dates) with one column(Todate), I used to store date.The format of the date should be 'DD-MM-YYYY'

    ex:

    data stored in the table in the following format

    Todate

    -----------

    01-02-1988

    03-06-1980

    select * from...

  • RE: Dynamic Filter and Order By

    Jeff Moden (10/4/2012)


    Sean Lange (10/2/2012)


    It will work but referring to columns by ordinal position is fraught with maintenance issues.

    Not to mention that (IIRC) it's been deprecated.

    And something I have...

  • RE: Update query question

    cphite (10/4/2012)


    Sean Lange (10/4/2012)


    The first time I ran the query below I thought it didn't update correctly (as I suspected). But subsequent runs are successful every time.

    You think it...

  • RE: Update query question

    Randy Doub (10/4/2012)


    Sorry, when I said fail, I meant the final result set wasn't correct, not that it logged an error. A failure with the logic.

    It's updating a person's...

  • RE: Passing multiple values through one parameter in a stored procedure

    You're welcome. Hope my posts helped. Post back if you run into any issues or need a little help.

  • RE: XML data type

    PiMané (10/4/2012)


    Hi,

    Is it safe to say that XML data type should be used to store data, instead of creating more columns on the table, data that won't be searched. If...

  • RE: Update query question

    The first time I ran the query below I thought it didn't update correctly (as I suspected). But subsequent runs are successful every time.

    You think it didn't work or...

  • RE: Design Question for Discriminator Column

    I agree this process sounds like it was not well designed. How do you handle things like credit card rejections or simply typing in bad info? By that point the...

  • RE: Find sub-tree nodes

    haiao2000 (10/4/2012)


    Eventually I run into performance issue when number records being so large. Could you suggest another method of doing tree drill down?

    Thanks!

    You do realize this thread is 5 years...

Viewing 15 posts - 10,486 through 10,500 (of 15,374 total)