Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update from Select
Message
 
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Miscellaneous
Thread ID:
01673282
Message ID:
01673302
Views:
44
>The lowest version is SQL Server 2008 (Express edition). And the FIFO is the correct answer.
>
>Question: I am doing all my testing on a temp table. That is, I create a temp table and copy the records from the actual table to the temp table (so, that I don't mess up the real data). And in the SSMS all variables for the temp table are shown with the red squiggly line (under). But the code works. Is this normal that the temp table has these squiggly red lines?
>
https://blog.sqlauthority.com/2013/07/04/sql-server-how-to-refresh-ssms-intellisense-cache-to-update-schema-changes/

Too bad that your lowest version is SQL Server 2008 because otherwise it would be a simpler solution.

This may be a bit advanced for you, but take a look https://www.red-gate.com/simple-talk/sql/performance/t-sql-window-function-speed-phreakery-the-fifo-stock-inventory-problem/ (and previous version from that article)
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform