Viewing 15 posts - 14,131 through 14,145 (of 14,953 total)
MikeAngelastro (3/13/2008)
April 18, 2008 at 7:07 am
Rabia Mansour (3/18/2007)
Thanks for the article.
My questions is : Suppose we need to relate one row data to two parents. By doing that I get only one instance of that...
April 18, 2008 at 7:05 am
Satish Jha (5/24/2006)
April 18, 2008 at 7:01 am
Drew Burlingame (3/17/2006)
Thanks for taking the time to post this article.I'm curious as to performance compared to other methods of getting heirarchical data like adjacency, nested, etc.?
The CTE method of...
April 18, 2008 at 6:57 am
PW (3/9/2005)
The sample VB.net code for comparison contains both syntax and logic errors.
In VB.Net, an IF is ended by "End If", not End.
Also, "
Refactored code:
Private Function Factorial(ByVal number...
April 18, 2008 at 6:51 am
Sorry, there's a typo in the join. Should be "qtys.qtyorderid" (with an "s" at the end).
You'll also need to make sure it uses your actual table names and the...
April 17, 2008 at 3:14 pm
Can you include the code that does the updates? That would certainly make it easier to figure out what's going on.
April 17, 2008 at 3:12 pm
Yep. That'll do it. (I like the ones that use Numbers tables better, but that one will certainly work.)
Then, select the first six from that function, and you...
April 17, 2008 at 3:11 pm
The purpose of these columns is for assigning IDs to all of the data in the multiple tables. I figured that assigning identities would've been the easiest approach to...
April 17, 2008 at 3:05 pm
I'd go with a derived table from the items table to get the quantity of items, then an "in sub-query" to get the orders.
For example:
select orderid, name, date, isnull(qty, 0)...
April 17, 2008 at 2:57 pm
Looks good to me!
April 17, 2008 at 1:24 pm
Then you just need to add that stuff about "Target" to the Where clause.
Something like "Where t1.Name = 'Target' and t2.Name != 'Target'".
The query is built for using one table....
April 17, 2008 at 1:18 pm
GSquared - Thank you. I didn't know about the row_number() function and now I know a little more about it. However, I still cannot seem to seed the...
April 17, 2008 at 1:13 pm
Matt: When I saw your post right after I posted mine, my first thought was "tag, you're it!" 🙂
April 17, 2008 at 1:07 pm
Viewing 15 posts - 14,131 through 14,145 (of 14,953 total)