Forum Replies Created

Viewing 15 posts - 496 through 510 (of 812 total)

  • RE: INNER JOIN

    cppprogrammer (3/12/2013)


    Yes statistically low probability but rows *can* be returned if SYSDATETIME() and GETDATE() at a particular time are equal. The "correct" answer is not correct.

    +1

    Correct answer is "Dates which...

  • RE: SubQuery

    Lokesh Vij (3/7/2013)


    Must include an ORDER BY clause when a TOP clause is specified.

    I think this statements should be "Must include an TOP clause when a ORDER BY clause is...

  • RE: Clustered Index

    Dineshbabu (3/5/2013)


    Hugo Kornelis (3/5/2013)


    Good question, and good explanation. Well done!

    First time I'm seeing Hugo's post without any information.

    We are waiting for "L'รจmot est inversรฉe", Tom for friends!

    ๐Ÿ˜€

  • RE: Clustered Index

    Fantastic!

    ๐Ÿ˜€

  • RE: OUTPUT - 1

    handkot (2/26/2013)


    the answer is ambiguous and depends from collations

    +1

    ๐Ÿ˜‰

  • RE: Creating Tables 2

    Extremly too much easy!

  • RE: Basic SQLCMD Utilities

    Good to know, but never used!

    ๐Ÿ˜€

  • RE: THROW - 1

    Great question, thanks!

    ๐Ÿ˜€

  • RE: Update with CASE statement

    The update may fails with error, if the default collation is case sensitive.

    UPDATE GenderUpdate

    SET Gender = CASE WHEN GENDER = 'M' then 'F' ELSE 'M' END

  • RE: Are Triggers a "legacy" Feature? (Database Weekly, Nov 08 2008)

    I mainly use triggers to modify the behavior of third-party db and to alert users by e-mail that some value has been set. e.g. changing terms of payment is permitted,...

  • RE: The Lonely and Neglected Cartesian Product (Cross Join)

    This case is simpler: NO CROSS JOIN NEEDED.

    Get result in text format:

    create table #temp1(PK int IDENTITY Primary Key, column1 varchar(20))

    insert into #temp1 values ('employee 1')

    insert into #temp1 values ('employee 2')

    insert...

  • RE: Tables and rows listing

    Boh! Out of the context this script is useless!

    Use of cursor is terrible.

  • RE: Basic maths - operator precedence

    Hugo Kornelis (2/6/2013)


    Dineshbabu (2/6/2013)


    But you steal some of my time by making me to sit and calculate each and every statement..:-) .

    You could have saved that time. I just checked...

  • RE: CHOOSE - 1

    I know how CHOOSE works, but I do not want to know what the default data are for the table Employ!

    Let's go!

  • RE: CHOOSE - 1

    raulggonzalez (1/28/2013)


    I don't see what this QotD is trying to test... It's not about how CHOOSE works but what data you have in a table that is not represented on...

Viewing 15 posts - 496 through 510 (of 812 total)