Forum Replies Created

Viewing 15 posts - 616 through 630 (of 829 total)

  • RE: Out of order

    CREATE VIEW vw_clients AS

    SELECT TOP 100 PERCENT Code, Name FROM Clients

    ORDER BY Code

    I am curious to know if the VIEW above always returns records in sorted order.

  • RE: exceptional logic

    palotaiarpad (10/11/2011)


    That was a nice question. But in production code i would have used paraenthesis for better readability. 😛

    Me, too! 😀

  • RE: Using Regular expression to convert PL/SQL code to TSQL

    venus.pvr (10/10/2011)


    Comments posted to this topic are about the item <A HREF="/articles/Regular+Expressions/75121/">Using Regular expression to convert PL/SQL code to TSQL</A>

    Thanks! I found it very interesting for Regular expression syntax.

  • RE: Elementary Key Attributes

    I get it wrong, but I like this kind of questions.

    Thanks.

  • RE: Table variable vs temp table

    tommyh (10/3/2011)


    There are several problems with this question. One being that you cant declare @Start 2 times.

    The other being that the answer is wrong. They both perform equally. I have...

  • RE: Union results

    Very simple. Thanks. 🙂

  • RE: Custom SSMS Shortcuts for ETL Developer. Part 1: SELECT in a Keystroke

    shayk (9/22/2011)


    Nice, but the SP unnecessary. You can write in the SSMS "Select TOP 50 * FROM "

    I also use this "Select TOP 50 * FROM ". It is better...

  • RE: Unary & Aliases

    Olga B (9/13/2011)


    Ah yes, my "favorite" bit of SQL syntax

    select 0 [A]

    A fun bug to find when I accidentally delete a comma and then try to figure out what's...

  • RE: Unary & Aliases

    Tom.Thomson (9/13/2011)


    Amusing and fairly easy question.

    The misprints in the explanation may have left some people confused. All three alias forms are wrong (1st missing "= <", second and third...

  • RE: INSERT INTO

    Unfortunately, the editor to contribute with a question, sometime, changes the text both in the question and more often in the explanation. Yesterday, the explanation of "Unary & Aliases" was...

  • RE: Order By Clause

    I immediately get it right, because I often fall in these kind of errors.

  • RE: Inserted Identity

    INSERTED pulls from what is entered into table, not from the select list.

    Of course!

  • RE: Exists

    OCTom (8/3/2011)


    ronmoses (8/3/2011)


    Carlo Romagnano (8/3/2011)


    EXISTS check if subquery returns ROWS and does not execute EXPRESSION or read column value. So, in this case divide by zero is never executed, but...

  • RE: Exists

    paul s-306273 (8/3/2011)


    DugyC (8/3/2011)


    Interesting question, and something definitely to be aware of.

    Thanks

    I'm not convinved that I need to be aware of this.

    Interesting question though.

    I agree with you.

  • RE: Exists

    EXISTS check if subquery returns ROWS and does not execute EXPRESSION or read column value. So, in this case divide by zero is never executed, but ONE ROW exists.

Viewing 15 posts - 616 through 630 (of 829 total)