Logic Puzzle – Dice SubstituteCommented on: 5 years ago
(June 30, 2009)
My last attempt did not work well... :)
Here is another try with different format to present the logic:
1). flip coin 1
2). head > go to 4).
3). tail > go to 7).
4). flip coin 2
5). head > go to 10...
T-SQL Puzzle – Custom SequenceCommented on: 5 years ago
(January 26, 2009)
Here is SQL Server 2008 solution using composable DML:
INSERT INTO Invoices(invoiceid, custid, invdate, amt)
SELECT invoiceid, @custid, @invdate, @amt
FROM (UPDATE dbo.Sequence
For some businesses, conducting a health check can be cumbersome, time-consuming, and the results, well, frustrating. However, a health check can be easy and rewarding for any business that wants to improve server performance, especially if you take the time to find the right solution provider....More