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
In managing a database or sometimes numerous databases, we often get caught up in the day-to-day maintenance and lose sight of the other principles we know are critical to ensuring optimal performance. Here’s a quick refresher....More
Alerts represent a great way to take a proactive stance on being notified or alerted when something ugly, potentially ugly, or important happens on a SQL Server. On most servers that I manage, I typically deploy a whole bevy of different alerts....More