Limit Results Based on Aggregated Threshold
Problem
A post was recently added to one of the forums that I monitor so that I can help users in...
2011-04-11
1,718 reads
Problem
A post was recently added to one of the forums that I monitor so that I can help users in...
2011-04-11
1,718 reads
SQL Saturday #70 (Twitter: #SQLSat70) was another successful event! And...I had yet another full house (some even left due to...
2011-03-19
432 reads
If you are anywhere within driving distance to Columbia, South Carolina, register NOW and then hop in your car Friday...
2011-03-18
441 reads
This site really is about business intelligence, but it is good to mix things up a bit every now and...
2011-03-15
719 reads
In a previous blogs, I discussed what shared schedules were and walked you through step by step instructions on how...
2011-03-09
1,154 reads
In a previous blogs, I discussed what shared schedules were and walked you through step by step instructions on how...
2011-03-08
2,213 reads
In my two previous blogs in this series, I discussed shared schedules and walked you through step by step instructions...
2011-03-03
974 reads
I can’t tell you that all of your dreams will come true. I won’t tell you that you will make...
2011-03-02
536 reads
In my previous post, I discussed what shared schedules were and how you could use them. With that knowledge under...
2011-03-02
1,929 reads
As you will see by the dates in my screenshots, I wrote them quite a while back while touring the...
2011-02-28
2,391 reads
Creating a Fabric workspace takes about 30 seconds. Restructuring workspaces after people have built...
By Steve Jones
It’s a small change, but a handy one. Flyway Desktop (FWD) now includes the...
By Steve Jones
Software is hard. While I love our Lucid Gravity, I realize that they are...
Comments posted to this topic are about the item Adding new column with DEFAULT...
Comments posted to this topic are about the item Advanced Deployment Scenarios: Stairway to...
Comments posted to this topic are about the item You Need a DBA Pipeline
Which number did the two COUNT(*) return:
DROP TABLE IF EXISTS #tmp CREATE TABLE #tmp (id INT NOT NULL) INSERT INTO #tmp (id) SELECT gs.value FROM GENERATE_SERIES(1, 5) AS gs ALTER TABLE #tmp ADD my_value INT NOT NULL CONSTRAINT df_tmp_my_value DEFAULT 1 SELECT COUNT(*) FROM #tmp AS t WHERE my_value = 1 ALTER TABLE #tmp DROP CONSTRAINT df_tmp_my_value ALTER TABLE #tmp ADD CONSTRAINT df_tmp_my_value DEFAULT 2 FOR my_value SELECT COUNT(*) FROM #tmp AS t WHERE my_value = 1See possible answers