Forum Replies Created

Viewing 15 posts - 49,546 through 49,560 (of 59,078 total)

  • RE: Tricky Transact SQL

    Carl Federl (6/28/2008)


    This appears to be a variation on First-In First-Out allocation such as for allocating Payments to Invoices or for "best fit"

    Someone posted a SQL solution this month but...

  • RE: Table Valued functions Vs Scalar Valued Functions

    about 300-million rows

    That's kinda what I thought you were going to say.

    What I was suggesting is that the distance from Point A to Point B is exactly the same as...

  • RE: How to design an optional unique constraint

    So, how did you solve the problem of both being optional AND unique?

  • RE: eliminating duplicates

    If you're going to spend that much time on it... write it as an article and submit it, instead. 😉

    As a side bar... you said something very important... you said...

  • RE: I have a requirement like this?

    Sandy (6/27/2008)


    Matt, jeff..

    Can you clear me more..

    Can you suggest any of ways to achieve this..?

    Cheers!

    Sandy.

    Already did... but I'll say it again here... write a batch file to move the files......

  • RE: Increase Max characters retrieved in SQL SERVER 2005

    That was a great idea you had, Barry.

  • RE: Best Practices for Database Design

    paulhunter (6/27/2008)


    Hey Jeff -- a good thread is a good thread. 😉

    No doubt about that... 🙂

  • RE: The T-SQL Quiz

    dfalso (6/27/2008)


    In order to be truly safe, dynamic sql is needed, unless we could write a CTE with an input variable that governs the amount of recursion (again, on...

  • RE: The T-SQL Quiz

    Matt Miller (6/27/2008)


    I personally roll with a tally table with a 1M limit, but that's a personal choice.

    Otherwise - it's very easy to come up with a numbers table of...

  • RE: For loop in sql server

    pduplessis (6/28/2008)


    Jim Russell (6/27/2008)


    Jeff -- I am continually amazed at the effort you put in to help us all out. Thanks very much!!

    I am with Jim on this one, it...

  • RE: T-sql question

    If you change Carl's code to 2000 per customer, you see where Triangular Joins really start to fall apart... time goes up by a factor of 4 for the Triangular...

  • RE: Export SQL Database to flat file with header(column) name

    rbamania (6/28/2008)


    thanks jeff

    Thanks, but Sergiy was first to set you on the right track.

  • RE: SQL table dynamic creation

    rbarryyoung (6/28/2008)


    gerald.duncan (6/27/2008)


    Very simple. I want to iterate through a directory of flat files and create SQL tables from them. Clear enough?

    Actually, no. This is what you are trying...

  • RE: Tricky Transact SQL

    am (6/28/2008)


    Thanks for your response

    Alloc Amt is calculated based on Priority and Alloc Percent from EMPPERCENTTABLE. For EMPID - 1001 and 1002 where priority is 1 so whatever gets paid...

  • RE: Tricky Transact SQL

    SELECT ep.Record,ep.EmpID,r.ReceiptNum,r.Paid,ep.Beg_Balance

    FROM EmpPercentTable ep

    CROSS JOIN ReceiptsTable r

    ORDER BY r.ReceiptNum,ep.EmpID

    I'm a bit tired and today's coffee has finally worn off... what formula are...

Viewing 15 posts - 49,546 through 49,560 (of 59,078 total)