Forum Replies Created

Viewing 15 posts - 5,131 through 5,145 (of 7,597 total)

  • RE: SQL query help

    CELKO (4/23/2015)

    Getting back to check digits, the encoding has to be in a string because the weights are assigned by position. There is no concept of a position in an...

  • RE: SQL query help

    CELKO (4/23/2015)


    I might need to search by only a single element, particularly the one for English-language. Or to find books by a specific publisher.

    The ISBN is atomic; it...

  • RE: Concatenate multiple rows from one table, associated to column in second table having multiple values

    I believe the code needs slight corrections to prevent a match on part of the code value rather than whole value, as demonstrated below:

    CREATE TABLE #ids(id int, codes varchar(30))

    CREATE TABLE...

  • RE: SQL query help

    CELKO (4/23/2015)


    ISBN is displayed with dashes for human convenience, but it's actually composed of elements .. again, under the rules for 1NF, each of those should be stored...

  • RE: SQL query help

    Bill Talada (4/23/2015)


    ScottPletcher (4/23/2015)


    Stripping out delimiters should never eliminate information from the data. If you need to, you can set a tinyint code that reflects the meaning of the...

  • RE: SQL query help

    Lynn Pettis (4/23/2015)


    ScottPletcher (4/23/2015)


    Stripping out delimiters should never eliminate information from the data. If you need to, you can set a tinyint code that reflects the meaning of the...

  • RE: SQL query help

    Stripping out delimiters should never eliminate information from the data. If you need to, you can set a tinyint code that reflects the meaning of the delimiters. I'm...

  • RE: Converting job duration from Job History and use it on email notifications

    If you remove the "AND jh.step_id =0" you can see the steps that have completed.

    But "step 0" can't be posted until the whole job completes, since that is the job...

  • RE: Converting job duration from Job History and use it on email notifications

    The step is not posted in sysjobhistory until it completes. If the job is still running, you will get the previous job.

    If you need to get only the last...

  • RE: Converting job duration from Job History and use it on email notifications

    DOUBLE DOH! I just noticed I left of the step# check in the code; please add this to the WHERE clause:

    AND jh.step_id = 0

    That code is checking for the...

  • RE: SQL query help

    ZZartin (4/23/2015)


    ScottPletcher (4/23/2015)


    Lynn Pettis (4/23/2015)


    ScottPletcher (4/23/2015)


    Lynn Pettis (4/23/2015)


    CELKO (4/22/2015)


    Why are you changing obvious integer data types to character data types?

    Please read any book on basic data modelling and look...

  • RE: SQL query help

    Lynn Pettis (4/23/2015)


    ScottPletcher (4/23/2015)


    Lynn Pettis (4/23/2015)


    CELKO (4/22/2015)


    Why are you changing obvious integer data types to character data types?

    Please read any book on basic data modelling and look at the...

  • RE: SQL query help

    Lynn Pettis (4/23/2015)


    CELKO (4/22/2015)


    Why are you changing obvious integer data types to character data types?

    Please read any book on basic data modelling and look at the chapters on scales...

  • RE: SQL query help

    CELKO (4/22/2015)


    How exactly does one compute a check digit on a string-only characters? I don't believe that MC or VISA are spending hundreds of millions of extra dollars on storage...

  • RE: Insert DATE --Confused with convert

    Orlando Colamatteo (4/22/2015)


    ScottPletcher (4/22/2015)


    Orlando Colamatteo (4/22/2015)


    ScottPletcher (4/22/2015)


    Orlando Colamatteo (4/22/2015)


    I'll second the point: definitely store your dates and times in a column of type DATETIME. If you make that a non-negotiable...

Viewing 15 posts - 5,131 through 5,145 (of 7,597 total)