Forum Replies Created

Viewing 15 posts - 14,131 through 14,145 (of 14,953 total)

  • RE: Recursive Queries in SQL Server 2005

    MikeAngelastro (3/13/2008)


    I was able to solve the many-to-many situation typically found in a product tree by using a recursive cursor in a stored procedure continuously adding to a temp table...

  • RE: Recursive Queries in SQL Server 2005

    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...

  • RE: Recursive Queries in SQL Server 2005

    Satish Jha (5/24/2006)


    Thanks for this article. I have one question here -how can I sort the result from CTE in hierarchical order as well as siblings on some orther order...

  • RE: Recursive Queries in SQL Server 2005

    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...

  • RE: Recursive Queries in SQL Server 2005

    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...

  • RE: Query Help needed

    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...

  • RE: Set based update with multiple updates to the same row

    Can you include the code that does the updates? That would certainly make it easier to figure out what's going on.

  • RE: split a string

    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...

  • RE: Associating rows with multiple criteria

    Cool biz. Glad I could help.

  • RE: Identity Seed Error

    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...

  • RE: Query Help needed

    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)...

  • RE: Associating rows with multiple criteria

    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....

  • RE: Identity Seed Error

    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...

  • RE: Random Phone numbers

    Matt: When I saw your post right after I posted mine, my first thought was "tag, you're it!" 🙂

Viewing 15 posts - 14,131 through 14,145 (of 14,953 total)