In an earlier article we saw how we create an Extended Event to see queries with a long duration. In this article we will create an Extended Event that records blockings. All we need to do is create it… read more
The Great Database Battle – SQL Server vs Oracle Database
The two best-known RDBMS (Relational Database Management Systems) with the largest market shares are Microsoft SQL Server and Oracle Database. They have a lot in common but also a lot of differences between them. Let's see in detail: Filegroups: They are… read more
How do we backup an Oracle Database that is in archive-log mode
In this article we will analyze what it takes to take an online backup of an Oracle database that is in archived-log mode. In order to take a backup in addition to the datafiles, we should also take a backup of the controlfile,... read more
What are set operators (Union) and how they differ from Joins in SQL
In this article we will analyze the use of set operators, the types that exist and the differences between them and SQL Joins. In the world of SQL (Structured Query Language) many times we will want to combine… read more
How do we find how much more it takes to complete the query and which is delayed (SQL Server Query Profiling)
Many times we will encounter queries that take too long to complete or never complete at all. To find what exactly is at fault the most useful information is the actual execution plan. As the actual execution plan requires the completion of the query, with… read more
How can we see historical image of a table in Oracle Database with Flashback Query
Many times we will need to see what entries the table had some time ago. We may still have to restore it from a wrong update or even drop. In Oracle this is easily done using flashback query… read more
How can we calculate our car insurance premiums in SQL Server using Python (no API)
Let's say we have in SQL Server a table of cars and drivers and we want to find their cheapest premium. This will certainly be possible with an API / Web Service. But this solution would require the… read more
How to force a plan in SQL Server and why not
Sometimes, depending on the value we have given to a parameter, a query may run with a different plan (execution plan) and have a different duration. This phenomenon is called parameter sniffing. This may be due to… read more
How do we return an Oracle database to the previous state of a restore point (Flashback Database to guaranteed restore point)
In the article we will analyze how we can use the flashback database function in a guaranteed restore point in an Oracle database. The flashback database belongs to the category of data protection and provides the possibility to freeze the… read more
