Kathi Kellenberger FIFO Stock Inventory in SQL Server: Set-Based Solution vs Cursor-Based (with Benchmarks and the Winning Query) Solving the FIFO (first-in, first-out) stock inventory problem in SQL Server with a set-based query instead of a cursor. Compares... 25 May 2010 32 min read