Forum Replies Created

Viewing 15 posts - 4,666 through 4,680 (of 5,502 total)

  • RE: cross apply

    Did you consider BOL (BokksOnLine, the SQL Server help file) as a source?

    Please see chapter "cross apply" for details. There is an example as well.

    Even though the example shows 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: XML to relational

    The beginning of the XML (<bookstore='MomnPop' ) is not considered as a well formed xml.

    For two reasons:

    1) you cannot assign a value to an element if you assign attributes 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: Moving Average -For 4 weeks

    Several questions:

    1) Does "4 weeks" mean to calculate the average for full weeks or is 4 weeks = last 28 days? Based on your example: Dec. 15th is a Tuesday....



    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: Hi!

    You might want to have a look at BOL (BooksOnLine, the SQL Server help system installed together with SQL Server).

    Search for CREATE FUNCTION (Transact-SQL) , Example A.



    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: Retrieving Data as XML from SQL Server

    Did you read the articles I referred to in my previous post?

    What help do you need exactly? If it's a "how to" in general, I would recommend you try 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: Group by error

    closing bracket before the GROUP BY is missing.

    AND ( [tblGL code percent cost allocation].[GL Code] = [tblGL Codes (Determine GL 2)].[GL 2] )

    Note: This would be much easier to find...



    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: Data to be split in different column

    Would you mind sharing some sample data for column [description] representing some input scenarios (e.g. 10 to 20) together with expected results per row?

    Do you have a guaranteed order of...



    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: Bit wise in sql server

    Even though I still don't know why an integer column needs to be converted into a character data type... Here's how I'd do it if I'd be forced to:

    Step 0:

    Verify,...



    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: Data to be split in different column

    Sandy,

    like Chris mentioned before, we'd like to see your input data as well as your expected results. The "sample" you provided is everything but clear.

    Example:

    Sample1

    XYZ

    111,29th Main, ABCD - 10002

    What does...



    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: Bit wise in sql server

    Update YourTable

    SET YourTable.Col1 = ' '

    WHERE YourTable.Col1 < 0

    But there are (at least) two remaining question:

    If you care about performance, why do you want to use a character (space) within...



    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: Retrieving Data as XML from SQL Server

    You can receive the data from SQL Server by using the FOR XML clause. With some additional effort it's even possible to get complete html pages (but text formatting would...



    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: Different collation

    Try to query as unicode data format:

    like N'??????????' (or like N'%????????%' if you'd need to use wildcards)

    instead of

    like '??????????'

    Hope that helps.



    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: Select non-English records only

    As asked for before: table def and some sample data, please.

    Preferred in a ready to use format as described in the aforementioned article.

    And no, there is no function like...



    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: Select non-English records only

    Please provide table structure and sample data as described in the first link in my signature.

    Since we don't know the structure of your table, one answer might be:

    SELECT [columns] 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 convert views to tables en masse

    From the limited information that's available:

    From my point of view the vendor is right with his advice since otherwise any change on a source table would affect your querys .

    However,...



    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 - 4,666 through 4,680 (of 5,502 total)