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
Digital Magazine Archives
Browse back issues of SQL Server Pro, from January 2007 through the last issue published in April 2014. Find the back issues here.