In the last few posts, we’ve discussed different ways of “prettifying” – yes, a very technical word – dates. And no, we’re not talking about the kind you can eat or go on. Healthy Dates Nope, we’re talking about this kind of date: https://www.youtube.com/watch?v=cx5jt0zrJ9E Let’s say you’re busy coding along and you come to the…… Continue reading Making A Better Date
Month: November 2021
Prettifying A Whole Mess of Dates
In our last time together, we were talking about Doing more when trying to Convert. One of the many things I mentioned was using the CONVERT function to change a date to always look a particular way – for example, MM-DD-YYYY or DD/MM/YYYY. Since the CONVERT function requires you to either look up each time…… Continue reading Prettifying A Whole Mess of Dates
Doing more when trying to Convert
The last time we met, we discussed the glorious try_convert function and how it can save us from “not-so-datey” dates. Most of the time, at least in a business setting, we don’t want to display NULLs to our users, so in many cases, we’re asked to put a placeholder if there is a NULL. We…… Continue reading Doing more when trying to Convert
Telling data to act like other data
When messing with data, sometimes you want to change how SQL Server sees the data. For that, you would want to use the CONVERT command. There are many great reasons to do this and thankfully some of our datasets have some great possibilities that you can work with. For example, after looking at the Nirvana…… Continue reading Telling data to act like other data
The End of the TOP
After dealing with TOP and ROWCOUNT in SQL Server, there is one more way of getting a limited amount of data from a query that you should be aware of – OFFSET/FETCH. It can be a little bit more difficult to set up and work with but if you’re in need of the data a…… Continue reading The End of the TOP