Forum Replies Created

Viewing 15 posts - 1,861 through 1,875 (of 2,894 total)

  • RE: Coding Standards

    CELKO (3/19/2012)


    I wonder what kind of coding standards do You refer to? Are any industry-wide recognised standards available? What is ISO number for them?

    The ISO-11179 is one. MS also...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Coding Standards

    Artoo22 (3/19/2012)


    ...

    Why doesn't Microsoft use T-SQL coding standards?

    ...

    Microsoft wants to show by example, that not using coding standards, ends up with great "dog's breakfast" :hehe:

    I wonder what kind of...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to get YTD & Quarterly sales??? Any help please?

    gerald.hoole (3/19/2012)


    how to calculate YTD sales values

    Here is a sample query and not sure how to get last year sales values for the same date as current year

    ...

    AND TRANDATE >=...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to maintain two digit values in sp?

    Charmer (3/16/2012)


    Eugene Elutin (3/16/2012)


    You don't need to change anything.

    It's not producing just 2-digit numbers

    if you supply 0, the next value generated will be 1, one digit of Base36 will hold...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to maintain two digit values in sp?

    You don't need to change anything.

    It's not producing just 2-digit numbers

    if you supply 0, the next value generated will be 1, one digit of Base36 will hold any decimal upto...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to maintain two digit values in sp?

    Looks like you didn't look what -base encoding is. As you don't care of order in which values are incrementing, that is definitely would work for you.

    As promised yesterday, here...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: How to maintain two digit values in sp?

    The easiest and most elegant way to achieve what you ask is to implement 36-based encoding. I have no time today to show how it can be done in T-SQL,...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Selecting minimum value per ID from Table.

    Yep! It works!

    Now is only performance left.

    Yours give:

    Table 'Worktable'. Scan count 6, logical reads 70, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0,...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Selecting minimum value per ID from Table.

    ColdCoffee (3/15/2012)


    Eugene Elutin (3/15/2012)


    I'm not sure what OP wants for "UNION ALL SELECT 400 ,10 ,10 " data sample, I've read his requirements as: he only want to see the...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Accessing SQL Server with other Client tools

    itskanchanhere (3/15/2012)


    the fact that "print" and "go" do not work proves that SQL Teradata is not compatible with SQL Server. Am I right??

    1. Yes, for "Print" as it's T-SQL command....

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Selecting minimum value per ID from Table.

    ColdCoffee (3/15/2012)


    How about this?

    IF OBJECT_ID('TempDB..#Temp') IS NOT NULL

    DROP TABLE #Temp;

    CREATE TABLE #Temp

    (

    iD INT --IDENTITY(1,1)

    ,AMT_DIFF ...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Selecting minimum value per ID from Table.

    sunnyepgc (3/15/2012)


    Urgent Help required in implementing below using SQL SERVER 2008.

    I have a table with the following data.

    ...

    "I have a table with the following data", especially when "Urgent Help required"...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Get Totals From Combined Rows

    You don't need to put the DDL for all table, just make-up to contain columns used in the query. The same for data-sample. Few rows will do which can be...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Get Totals From Combined Rows

    It's too late today for doing all preparation work. Please follow here:

    http://www.sqlservercentral.com/articles/Best+Practices/61537/

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

  • RE: Help on sorting results using sql

    You can use CHARINDEX, if you really want to:

    ORDER BY CAST(NULLIF(CHARINDEX('ber',City), 1) AS BIT)

    ,City

    I'm not sure if you will like it, especially...

    _____________________________________________
    "The only true wisdom is in knowing you know nothing"
    "O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!":-D
    (So many miracle inventions provided by MS to us...)

    How to post your question to get the best and quick help[/url]

Viewing 15 posts - 1,861 through 1,875 (of 2,894 total)