Summary
In this chapter, we walked through a few examples of conditional statements. Some of them allow us to add more complicated logic to the dataset we are trying to deliver, while some of them help us with handling NULL
values.
To summarize, conditional statements provide us with great convenience when it comes to defining logic on what is to be executed on what condition. With them, data professionals like us can finally begin to ingest logic into any data queries on the fly. By allowing added complexity, they enable more sophisticated techniques to be leveraged on changing and viewing the information within a database. Being able to fluently use the common conditional statements will certainly give us a leg up in our daily operations on query writing and report building.
In the next chapter, we will take a look at common table expressions that will help us better utilize the knowledge we gained here.