Skip to content

Tag: sql-server

Azure SQL Server Created Date

This could be the first of many questions I raise around Azure as I am currently on a mission to tidy up our Azure platform that has previously been setup by other teams. Our SQL Servers that have been setup on Azure have had no tags setup and I want to setup some new tags now on all our existing

SQL Server find rows approaching a service day and month

I have a table which lists equipment with an installation date. These items need to be serviced annually or every five years. So the rows have a service interval of 1 or 5. Something like: What I need to do is return a list of equipment two months before they are due for service For simplicity Let’s ass…

Joining back on the same table in SQL server

I have a table like below And the output I require is The match is defined on the basis of PO number. If PO number exists in both the sources then it should be match else only in AAP and only in SNW respectively. Can this be achieved? Thanks, Ani Answer or