SQL Puzzle 1: Magic Squares
This is the first in what I hope will be a semi-regular series of recreational puzzles where SQL can be...
2017-06-07
1,672 reads
This is the first in what I hope will be a semi-regular series of recreational puzzles where SQL can be...
2017-06-07
1,672 reads
In this post we’re going to create some encrypted columns in a table in a test database and look at...
2017-06-06
11,231 reads
Parallelism and MAXDOP
There’s no doubt that parallelism in SQL is a great thing. It enables large queries to share the...
2017-05-26
5,368 reads
A lot has been written about the change of licencing in SQL 2016 SP1. Here's my two-pence worth.
2017-05-17
26 reads
A small change, but a great one, in SQL 2016 is native support for splitting strings.
This has to be about...
2017-05-09
790 reads
Thoughts on how to think about parallelism in SQL Server - and how to tune it.
2017-04-18
25 reads
In this post we’re going to create some encrypted columns in a table in a test database and look at some of the practicalities and limitations of working with...
2017-04-10
16 reads
This post attempts to explain in simple terms what keys are involved in Always Encrypted, how they get used, and the implications of those facts.
2017-04-03
23 reads
This is a quickie post to introduce the new DBCC command CLONEDATABASE.
Okay so this isn’t technically a SQL Server 2016...
2017-03-31 (first published: 2017-03-20)
2,380 reads
Query Store was, probably without doubt, the most anticipated and talked out new feature in SQL 2016. Certainly by the...
2017-03-29 (first published: 2017-03-13)
6,404 reads
I wanted to create an Amazon Aurora PostgreSQL database on AWS using Terraform. The...
By Steve Jones
This is a great image from the 2012 book. You don’t need to ready...
By Brian Kelley
Annually, the IIA Palmetto Chapter puts on a 1 day on-line event in conjunction...
Comments posted to this topic are about the item The Valuable AI Project
Comments posted to this topic are about the item A Fun Friday
Comments posted to this topic are about the item Adding Bits III
I have a table, dbo.bittest, where I am testing an application response. This has this structure:
CREATE TABLE [dbo].[BitTest] ( [insertdate] [datetime] NULL CONSTRAINT [DF__BitTest__insertd__300F11AC] DEFAULT (getdate()), [a] [bit] NULL ) ON [PRIMARY] GOMy application runs this code:
INSERT dbo.BitTest
(
insertdate,
a
)
VALUES
(DEFAULT, 9)
GO
What gets inserted for the most recent date/time value? See possible answers