Forum Replies Created

Viewing 15 posts - 316 through 330 (of 417 total)

  • RE: Get Fiscal Week Number

    In the '90s, I worked for a company where the fiscal year started on the founder's birthday, March 23.

  • RE: Today's Random Word!

    SQLRNNR (5/5/2015)


    Revenant (5/5/2015)


    Ed Wagner (5/5/2015)


    TomThomson (5/5/2015)


    SQLRNNR (5/5/2015)


    skaar

    hulk

    Hogan

    Champ

    CHUMP

    Chimp

  • RE: Delete statement suggestion that will help me fix my statement

    Just to be clear, the entire world would be way better off if everybody, always used, spoke and thought in YYYYMMDD. Is it the 1st of April or April...

  • RE: COALESCE in Left Join

    Luis Cazares (4/29/2015)


    chgn01 (4/29/2015)


    How about use ISNULL?

    -- Q3

    SELECT

    *

    FROM

    #abc a

    ...

  • RE: SQL query help

    Lynn Pettis (4/23/2015)


    Also, since you are so picky about using the correct terms, distance divided by time equals velocity!

    Maybe you should brush up on your math/science terms.

    Not true, it equals...

  • RE: Computed columns: max from other column for the same ID

    DennisPost (4/24/2015)


    LOL Jeff.

    RBAR is good when reading posts. 😛

    +1 :hehe:

  • RE: Compare column in two tables

    Alan.B (4/21/2015)


    Minnu (4/21/2015)


    Hi Team,

    The solution provided by are working fine..

    but there is a change in my result.

    my request is

    if a record_1 is in Table_A and Table_B, then

    output :...

  • RE: Illegal CTEs

    djj (4/21/2015)


    I do not use 2014 but my guess was correct. I thought it would be silly to not allow the others.

    +1

  • RE: ISNULL vs COALESCE

    Hugo Kornelis (4/17/2015)


    The question is okay, but the explanation is absolutely incorrect.

    The difference between the two functions is caused by some pretty non-standard behaviour of the ISNULL function. (Which is...

  • RE: Search a string in a text with number of occurrences

    Here's an alternative that uses a tally table:

    ;with dataLen as (select len(@inputString) i, len(@searchString) s)

    select

    'POSITION OF THE SEARCH STRING >> "' + @searchString + '" IS AT :'...

  • RE: Where IN () Clause

    Grant Fritchey (4/6/2015)


    I'll go one further. I'd suggesting taking a look at Jeff Moden's article on Tally Tables[/url] and using that to take the comma delimited list and turn it...

  • RE: Remove data from tables

    Koen Verbeeck (3/5/2015)


    Hany Helmy (3/5/2015)


    Jostein Saethern (3/4/2015)


    The "delete table BBB;" statement in d) will fail.

    Its just a typo.

    That's not a typo, that is a mistake.

    DELETE FRAM BBB, that is a...

  • RE: Premature casting on 0 rows insert

    TomThomson (3/1/2015)


    siggemannen (2/28/2015)


    Hello,

    I have encountered some weird behaviour. Code that has been working for "eternities" suddenly started to fail.

    Alas, i couldn't recreate it on any other machines.

    I'm afraid that this...

  • RE: Queries and Joining tables

    Jeff Moden (2/23/2015)


    Heh... table names as plural nouns. Makes for some interesting and non-automatable naming conventions.

    So, let me ask... do you have an Employee table or an Employees table?...

  • RE: Want to create random alphanumeric characters for primary key values

    patrickmcginnis59 10839 (2/19/2015)


    dwain.c (2/19/2015)


    CELKO (2/18/2015)


    I need to create random alphanumeric characters as primary key values when inserting a record [sic]. .. I don't want to use GUID or...

Viewing 15 posts - 316 through 330 (of 417 total)