Forum Replies Created

Viewing 15 posts - 1,846 through 1,860 (of 5,502 total)

  • RE: Output all data in single column.

    See my reply in your original thread.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Output all data in single column

    There's no need to post in the 2000 forum in this case.

    A cte is nothing but a subquery in this specific case.

    You could use the following code insted:

    SELECT ...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Output all data in single column

    Logic like this usually should be done at the presentation layer.

    However, if you need to do it at the DB layer, you could use

    ;WITH cte AS

    (

    SELECT 1 AS pos,Code,DATA FROM...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to join data in one field

    What exactly do you consider being a problem that needs to get resolved?

    Based on your requirement

    I have to join this one line with the results of all the remarks...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Index Strategy for OLTP Tables

    TheSQLGuru (2/25/2011)


    And what is your preference when you notice that an index gets fragmented from 0% to say 90% after 24hrs? Do you reorganize it on a daily basis or...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Issue - Dynamic Columns(may be one column or 10 columns or 100 columns) depends on the DateParameter we specify.

    Did you try to assign a default value to the @CloseDate parameter?



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: SQL Server 2008 has issues with data import if it has embedded tags - what is the workaround?

    It doesn't look like a database issue. It seems more like an issue of the app sending the data to the DB.

    Did you try to run the stored procedure that...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to solve this 2 query

    Sounds like homework.

    Since most of us already have their degree we don't need to answer those questions anymore. 😉

    But we'd be glad to help you understand how it works if...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Tricky Query Needed

    Bhuvnesh (2/24/2011)


    i got solution for this but this is not nice one 🙁

    select * from

    (

    select

    english as [john_english],

    social as [john_social]

    from @t where name = 'john') a

    ,

    (select english as...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Entities and relationships

    Since you decided to double post, here's a copy of my reply, still awaiting your reply (on either thread).

    LutzM (2/24/2011)


    David,

    dont' you see some kind of a contradiction when reading the...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: ERD Tools

    David,

    dont' you see some kind of a contradiction when reading the following two statements?

    "I will be very much grateful if you can help solve this problem of mine."

    vs.

    "You are to...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Tricky Query Needed

    Have a look at the CrossTab and DynamicCrossTab articles referenced in my signature.

    as a side note: Pivoting and the like usually should be done at the presentation layer, not at...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: Loading XML Data into SQL Server (SQL Spackle)

    jorge_gomes98,

    please open a separate thread for the issue you're struggling with.

    The section you posted in should be realated to the article. More related than "it's an xml issue"....



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How to sort using DateTime

    My pleasure. 😀

    But all the honor belongs to Jeff for posting this solution and continuously improving it.

    As a side note: do you completely understand how it works and when you...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • RE: How can I parse this character string into separate records?

    please search this site for DelimitedSplit8K. It will point you to a function that will be much more efficient than your loop. The function mentioned above could be used as...



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 15 posts - 1,846 through 1,860 (of 5,502 total)