Forum Replies Created

Viewing 15 posts - 10,381 through 10,395 (of 15,374 total)

  • RE: Extract string before character occurrence.

    vikingDBA (10/11/2012)


    I know some will cringe, but here are some UDF's that I have created for this type of manipulation. When you are in a time crunch, they really...

  • RE: HEELLLP with query please

    mamzy.rahman (10/12/2012)


    i havent need help please not sure how to go about it never used sql in my life

    But what have you tried? I have to agree this looks a...

  • RE: Help with Logic

    This has to be one of the strangest processes I have ever seen. You have a table to record the rowcount from every table. Why? It will always be out...

  • RE: Recursive function - sql2008

    Can you post what you want for desired output? Just create a temp table and hard code inserts into it. I can't understand your explanation very well and the data...

  • RE: Best way to handle Null values

    The Dixie Flatline (10/11/2012)


    If I understand you, you want to have a default value to be returned whenever no value is specified.

    Select order_nbr, field1, field2, field3

    from table

    where order_nbr = isnull(@Ord_nbr,'xxxxxx')

    That...

  • RE: Recursive function - sql2008

    I am guessing that you didn't read through the article I suggested and understand this code. You can't reference the cte by multiple statements after it is declared. You need...

  • RE: Best way to handle Null values

    Cheryl McLaughlin-385812 (10/11/2012)


    It works too a point, but it pulls all the records. If I substitute @Ord_Nbr ='12345' the script still pulls all the records and not the record that...

  • RE: Best way to handle Null values

    where order_nbr = isnull(@Ord_nbr, 'xxxx') maybe????

  • RE: Creating a cumulative count by ordered month

    This is a running total problem. Jeff has a great article about it here. http://www.sqlservercentral.com/articles/T-SQL/68467/%5B/url%5D

    If you can't figure out how to put that all together post back here. In order...

  • RE: T-SQL Coding Help

    Thanks for ddl and data. Makes this a lot easier.

    Your data structures don't allow for anything like a join because there is nothing to tie a status to a phase....

  • RE: T-SQL Coding Help

    a4apple (10/11/2012)


    Sean Lange (10/11/2012)


    Please help me with the sql code.

    All of them are Varchars (Status and Phase even though they look like Integers).

    Please don't ask me to change my Datamodel.....

  • RE: T-SQL Coding Help

    Please help me with the sql code.

    All of them are Varchars (Status and Phase even though they look like Integers).

    Please don't ask me to change my Datamodel.. Thanks everyone in...

  • RE: Help on MDX Query ...Very Urgent

    sainatth.wagh (10/11/2012)


    Hi,

    Can somebody sent me syntax for the mdx query for with a drillthrough option, and to find data for the specific month.

    Let me know if somebody would provide any...

  • RE: TSQL - Recursive Call

    A recursive cte can do what you want here. Something like this.

    create table #Parts

    (

    Part varchar(10),

    ExtPart varchar(10)

    )

    insert #Parts

    select 'ABC', '123' union all

    select 'DEF', '001' union all

    select 'XYZ', '456' union all

    select '123',...

  • RE: Function To convert large string to small values

    Adding a scalar function to the where is not going to make anything faster, in fact it will most likely make it slower.

    Do you have an index on this...

Viewing 15 posts - 10,381 through 10,395 (of 15,374 total)