As a Full Stack Developer I write a lot of Transact SQL and sometimes I get into the habit of writing regular queries, and if it becomes more complex I might write an .ASP page that has queries within queries (which I hate to do) but sometimes it's a quick report and you're just wanting to get it done. But today, for whatever reason I was like, why don't you try using a SQL View. A SQL View is a virtual table based on the result-set of a SQL statement. I've written Views here and there in the past but sometimes I just forget how useful they can be. So when looking at my scenarios for this report, I was trying to get my creative juices flowing. How can I make this query simple and efficient? How can I limit my code to get this particular task completed? How can I compare the value in one table to values in another that had some business logic behind it (that being the View). I was pretty happy with the end result as it only took me about one hour to complete a
Learning and growing in the Software Development field