Day 5 – Peer Identity
This is the fifth installment in the 12 day series for SQL tidbits during this holiday season.
Previous articles in this...
2013-12-29
719 reads
This is the fifth installment in the 12 day series for SQL tidbits during this holiday season.
Previous articles in this...
2013-12-29
719 reads
Many times we caught in a situation where we have a table where there is no primary or unique column...
2013-12-29
59,418 reads
This is the fourth installment in the 12 day series for SQL tidbits during this holiday season. Previous articles in this mini-series on quick tidbits: SQL Sat LV announcement...
2013-12-28
26 reads
This is the fourth installment in the 12 day series for SQL tidbits during this holiday season.
Previous articles in this...
2013-12-28
726 reads
Question:- Suppose we have a table says tbl_students whose structure is given below:-
Create table tbl_students(Studentid int identity(1,1) , Studentname nvarchar(150))
Suppose it...
2013-12-28
777 reads
Question:- Suppose we have a table named tbl_charactername have only one column say "charactername".It contains 10 rows. First 5 rows...
2013-12-28
539 reads
I’ve written a bit about phones recently as I’ve experienced the switch back to iOS from Android. There are a...
2013-12-27
861 reads
I’ve always been a fan of the feeling when I find an old blog post that’s got just the information...
2013-12-27
780 reads
Back in early 2006, I was still working at my first ever DBA job. I had only been a DBA...
2013-12-27
991 reads
It’s Friday, time to look back at the most popular RealSQLGuy posts of the week. Because it’s Friday and you’re...
2013-12-27
562 reads
By Steve Jones
I use ConEmu for my terminal interface. I’m still on Windows 10 at home,...
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...
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