In some cases, we need to combine the result of two tables where data types may be similar or identical. We could combine the data in one table using INSERT syntaxes, but with UNION ALL or UNION, we can achieve the same result instead of creating a new table. In…


One challenge we face with data involves new and existing data from a source data set to a destination data set. The source and destination may be managed by us or one of them could be managed by us. When we have these data sets, we will often get “updates”…


Review the solution and discussion in the video The transaction log for database ‘DB’ is full due to ‘REPLICATION’. We do not want to develop the habit of micro-managing transaction logs, so we should consider sizing before setting up any architecture such as replication, ETL solutions, etc. As a note…


In the video, Data and the Physical World (Gold) we look at the severe limitations of data about the physical world. In 2020, there was a worldwide coin shortage and there were discussions about what was behind the shortage. One thing we should consider anytime we’re discussing data related to…


In the video, Tech Pow Wow: The Decentralization Myth, we exclusively look at the technical promises being made in some decentralized communities. As a note, this video is only discussing the technical aspects of what are being promised and is mentioning nothing that is financial. In this video, I refute…


For people who are new to SQL, these two JOIN types can often be confusing. In the below videos and discussion we compare and contrast the two using the same data set and noting the results.

INNER JOINs match data on their condition. Suppose that we had a table called…


In a previous lesson, we learned that we can apply ROW_NUMBER() to a data set and output the row number of the data set based on the order we specify. This means that if we have an alphabetized list, we could have ROW_NUMBER() return that list in an ascending or…


If we think about functions in mathematics, we’ll recall that one function is the division function. If we have 10 apples and we want to divide them equally into 2 containers, there will be 5 apples in each container. If we have 10 apples and 10 containers and we want…


No matter what data we receive, we will probably be required to order it a certain way at some point. In some cases, we may simply order data by dates and receive it in that format, meaning we have little to do. But there are other times when we have…


When we look at data, we will sometimes want to look at all data points relative to all other data points. We discussed this when we talked about CROSS APPLY, but we must remember that CROSS APPLY pertains to SQL Server only. In many SQL languages we can use CROSS…

SQLInSix Minutes

Data | Development | Security.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store