There are a number of blogs around using SPARSE columns here. Here are few of them for reference and can be used as a great learning experience. SQL SERVER – 2008 – Introduction to SPARSE Columns SQL SERVER – 2008 – Introduction to SPARSE Columns – Part 2 SQL SERVER…
Read MoreSQL SERVER – T-SQL Window Function Framing and Performance – Notes from the Field #103
[Note from Pinal]: In this episode of the Notes from the Field series database expert Kathi Kellenberger explains about T-SQL Over clause. Kathi is an amazing instructor, she was the SQL author I have read in my early career. The reason, I love SQL Server because her writing has instigated love for this…
Read MoreSQL SERVER – Puzzle with Miliseconds – Win USD 50 Amazon Gift Card
Last contest, which we had ran was in May and it had received amazing responses. I once again reached out to kind team of Embarcadero and they agreed to support the next contest. The contest has two steps and they are very simple. It took me a while to build…
Read MoreSQL SERVER – Looking Inside SQL Complete – Advantages of Intellisense Features
Recently SQL Complete add-in was updated, which I use when writing SQL queries in SSMS. In the product history I saw that a several features were added, such as code refactoring or automatic semicolon insertion. However, in this post I do not want to talk about them. I have noticed a new logic for metadata queries, which significantly accelerated my work with database objects. So I decided to look inside SQL Complete… to understand how it works and what changed…. Let us learn about Advantages of Intellisense Features.
MySQL – Get Latest Identity Value by Inserts
In SQL Server, whenever you add data to a table that has an identity column, you can get the lastly generated identity value using @@identity or scope_identity(). Similarly, in MySQL you can make use of LAST_INSERT_ID () function Let us create the following dataset Create table test(id int AUTO_INCREMENT NOT…
Read MoreInterview Question of the Week #045 – How to Do Case Sensitive Search?
One of my popular questions which helps me to understand lots of understanding of SQL by SQL developer. Question: How doing a case sensitive search in SQL Server? Answer: If Column1 of Table1 has following values ‘CaseSearch, casesearch, CASESEARCH, CaSeSeArCh’, following statement will return you all the four records. SELECT…
Read MoreSQL SERVER – What is T-SQL Window Function Framing? – Notes from the Field #102
[Note from Pinal]: In this episode of the Notes from the Field series database expert Kathi Kellenberger explains about T-SQL Over clause. Kathi is an amazing instructor, she was the SQL author I have read in my early career. The reason, I love SQL Server because her writing has instigated love for this…
Read More

