Forum Replies Created

Viewing 15 posts - 19,966 through 19,980 (of 22,202 total)

  • RE: Two jobs run same time one has to wait.

    From the sounds of things, you should also check some of the basic operations in the code like access order and/or join order. You need to make sure that the...

  • RE: Database Design for Online Examination System

    If I do the entire design from scratch, how much of the fee do I get?

    Seriously though. We're here because we enjoy the technical challenges and each others company. Ask...

  • RE: Query help please!

    Depending on what kind of data you're trying to get back, yeah. Generally I've seen either a derived table or a correlated sub-query within the ON clause work extremely well...

  • RE: Subquery vs Derived Table

    Yeah, if you want to equate data set or result set with derived table, then they're the same. Generally though, most people refer to a derived table as a subquery...

  • RE: Subquery vs Derived Table

    According to Itzik Ben-Gan, a subquery is any of the scalar, multivalued or table expression queries written into an outer queries. He then goes on to refer to the scalar...

  • RE: Query help please!

    He means it sounds like homework.

    I'd suggest using a subqery with a TOP and ORDER BY.

  • RE: Insert

    If you're trying add these values to a CTE, wouldn't you use UNION? Probably in a second CTE.

  • RE: Nested JOINS confusion

    There was absolute agreement on the OUTER JOIN being an issue. The question was, did placing filters on the INNER JOIN make a difference? Several people anecdotally believe(d) so (myself...

  • RE: Nested JOINS confusion

    mtassin (7/11/2008)


    Grant Fritchey (7/11/2008)


    rbarryyoung (7/11/2008)


    Grant Fritchey (7/10/2008)


    There's an "Anti-Rbar Alliance"?

    How do you join? ...

    Uhhhm, .. do you want it in SQL-92 syntax or SQL-89 syntax?

    😀

    You know, either way works for...

  • RE: Partially update a table row

    Generally, I've just passed all the fields back to the proc and updated them. Depending the app & the business needs, it usually doesn't matter if FieldX is updated from...

  • RE: Nested JOINS confusion

    The time differences on those are pretty trivial. The same number of scans and the same number of reads usually tell you most of what you need to know.

  • RE: Currency based on regional settings in stored procedure

    You'll have to store the symbol and it's associated currency in a table in order to select on it. Otherwise you could create an enormous CASE statement, but the first...

  • RE: T-SQL query runs slower for particular user accounts

    ANSI settings are different for that user than the others. Probably, but not definately, ANSI_NULLS.

  • RE: Database Design for Online Examination System

    That sure sounds like homework.

    Generally, for homework type questions, most of us ask that you post what you've tried to do and where you're having problems. That way we're helping...

  • RE: Use a JOIN or a WHERE statement? What's the Difference?

    Michael Earl (7/11/2008)


    As far as performance. The optimization engine will generate the same execution plan for equivalent queries regardless of which syntax you use.

    Not for OUTER JOINS though. With...

Viewing 15 posts - 19,966 through 19,980 (of 22,202 total)