Viewing 15 posts - 3,421 through 3,435 (of 8,415 total)
tarun.jaggi (5/14/2010)
Can anyone of you please tell me the difference between Inline view and Derived table?
In general, the way the terminology is commonly used, I would say there is no...
May 15, 2010 at 8:13 am
Hey 'Rock',
I'm not sure if you are the sort of person that reads links, but if you are, you'll find the following contain just about everything there is to know...
May 15, 2010 at 8:06 am
Jeff Moden (5/8/2010)
May 15, 2010 at 7:58 am
Jeff Moden (5/15/2010)
May 15, 2010 at 7:55 am
WayneS (5/15/2010)
LOL! I should have known Paul would show a CROSS APPLY.
😀
I HAVE to start thinking... can this be done with a CROSS APPLY? I just don't consider it.
Think:...
May 15, 2010 at 7:50 am
For completeness, here's one way to return the child node counts and list of names from those nodes using hierarchyid (same set-up code I posted earlier):
SELECT SQ1.node_id,
...
May 15, 2010 at 7:45 am
GilaMonster (5/15/2010)
Yeah, but that doesn't allow for a where clause.
True - I missed that in the original question. Oh well.
May 15, 2010 at 7:15 am
Not to take anything at all away from Gianluca's fine implementation, here's an alternative using CASE:
SELECT T.SalesPart,
T.WCDate,
...
May 15, 2010 at 7:13 am
As and when you upgrade to a more current version of SQL Server, this is a very fast way to compute row counts without dynamic SQL:
SELECT CA.table_name,
...
May 15, 2010 at 6:49 am
I've had to do this a number of times from within SQL Server. The neatest way I have found is to create a T-SQL object (procedure or function) to...
May 15, 2010 at 6:47 am
The Dixie Flatline (5/14/2010)
May 15, 2010 at 6:41 am
Setup:
CREATE TABLE dbo.MissingTable
(
K INTEGER NOT NULL,
...
May 15, 2010 at 5:26 am
Very nice, Wayne 😎
I just know you'd like to see an APPLY in there somewhere, so:
SELECT B.ID,
iTVF.*
FROM @TblB...
May 15, 2010 at 3:55 am
Hugo Kornelis (5/12/2010)
May 14, 2010 at 11:58 pm
Well I selected both the answers required to get the green tick, but I am pretty sure the 'answer' is incorrect.
Sure, not schema-qualifying the procedure name leads to compilation locks,...
May 14, 2010 at 11:18 pm
Viewing 15 posts - 3,421 through 3,435 (of 8,415 total)