I recently worked with an insurance company on an interesting issue involving dates. They had a series of records that all had a start date but no end (or cancel) date. The end date of a record was implicitly recognized as the start date of the next highest record. This article will show you how.
A temporary table is a place to store relevant to your needs. Whether you are an application or some end-user. It is a place to keep data. It helps give SQL coding options. They can help reduce SQL complexity! You can break down complex SQL into smaller SQL chunks via temporary tables.
You can find a ton of articles about recursive SQL dating back as early as 2004, but for this article I was asked to provide actual real-world situations where recursive SQL was put to use. In all of the situations it was a great success!
As DBAs, one of the tasks that we do on a fairly regular basis is install new Db2 code on the database server. Although it can become routine, installing new code on a server can be surprisingly complex. Docker provides a simple alternative.