When we have a table with a generated column, here are two methods we can use to return its definition.
how to
How to Create a Generated Column in Oracle
Oracle Database supports the creation of generated columns. A generated column is a column whose value is derived from an expression that computes values from other columns.
In Oracle Database, generated columns are usually referred to as virtual columns. Generated columns can also be referred to as computed columns in other RDBMSs (such as SQL Server). Either way, they do pretty much the same thing – they contain an expression that computes a value based on values in other columns in the same table.
How to Get the First Day of the Month in Oracle
Here’s an example of returning the first day of a given month in Oracle Database. We can return the first day of the current month, a previous or later month, or the first day of a month based on a specified date.
2 Ways to Check your Redis Client Version
Here are two quick and easy options to find out what version of the Redis client (redis-cli) you’re using.
4 Ways to Check your Redis Version
Here are four quick and easy ways to find out what version of Redis you’re using.
Install Redis on a Mac with Homebrew
Below are the steps that I used to install Redis on my M1 Mac. The M1 Mac (and M2) uses the ARM64 architecture, but this is not a problem, as Redis versions 4.0 and above support the ARM architecture.
Find Duplicate Rows that have a Primary Key in SQL
Here are examples of using SQL to return duplicate rows when those rows have a primary key or other unique identifier column.
These queries work in most of the major RDBMSs, including SQL Server, Oracle, MySQL, MariaDB, PostgreSQL, and SQLite.