Viewing 15 posts - 19,981 through 19,995 (of 22,213 total)
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...
July 11, 2008 at 11:49 am
He means it sounds like homework.
I'd suggest using a subqery with a TOP and ORDER BY.
July 11, 2008 at 10:46 am
If you're trying add these values to a CTE, wouldn't you use UNION? Probably in a second CTE.
July 11, 2008 at 10:44 am
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...
July 11, 2008 at 9:45 am
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...
July 11, 2008 at 9:24 am
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...
July 11, 2008 at 8:05 am
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.
July 11, 2008 at 8:03 am
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...
July 11, 2008 at 7:06 am
ANSI settings are different for that user than the others. Probably, but not definately, ANSI_NULLS.
July 11, 2008 at 7:03 am
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...
July 11, 2008 at 7:01 am
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...
July 11, 2008 at 6:58 am
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 me, just put...
July 11, 2008 at 6:39 am
Christian Buettner (7/11/2008)
what makes you sure this time that it does not make a difference?
Did you get this information from Microsoft ?
I am pretty sure that I had examples...
July 11, 2008 at 6:38 am
Well, eliminating all the excess JOINS does improve performance threefold in this example, so I think you can reasonably expect the something similar with larger data sets.
Because of the OR...
July 11, 2008 at 6:35 am
I've got nothing. The examples I thought I had, I can't find.
My heartfelt apologies for putting out bad information. For an INNER JOIN, it really makes no difference in terms...
July 11, 2008 at 5:45 am
Viewing 15 posts - 19,981 through 19,995 (of 22,213 total)