Here are four options for returning rows that contain uppercase characters in Oracle Database.
Continue readingTag: how to
Fix “ERROR:Â each UNION query must have the same number of columns” in PostgreSQL
When using the UNION
operator in PostgreSQL, if you encounter an error that reads “ERROR: each UNION query must have the same number of columns“, it’s because there’s a mismatch in the number of columns returned by the queries on either side of the UNION
operator.
This error occurs when the number of columns returned by each SELECT
statement is different.
The way to fix this is to ensure that both SELECT
statements return the same number of columns.
2 Ways to Return Rows that Contain Only Non-Alphanumeric Characters in Oracle
Below are two methods for returning rows that only contain non-alphanumeric characters in Oracle Database.
Alphanumeric characters are alphabetic characters and numeric characters.
Continue reading7 Ways to Find Duplicate Rows in SQL Server while Ignoring any Primary Key
Here are seven options for finding duplicate rows in SQL Server, when those rows have a primary key or other unique identifier column.
In other words, the table contains two or more rows that share exactly the same values across all columns except for its unique identifier column.
Continue readingFind All Non-Numeric Values in a Column in MariaDB
If you ever encounter a character column that should be a numeric column, there’s always a possibility that it contains non-numeric data that you don’t know about.
In MariaDB, you can run a query like the following to return non-numeric data from the column.
Continue reading4 Functions to Format a Number to 2 Decimal Places in SQL Server
When using T-SQL with SQL Server, we can format numbers using various methods, depending on our desired format.
Below are four functions that can be used to format a number to two decimal places in SQL Server.
Continue reading3 Ways to Find Rows that Contain Lowercase Letters in SQLite
Here are three options for returning rows that contain lowercase characters in SQLite.
Continue reading4 Ways to Check for Duplicate Rows in SQL Server
Here are four methods you can use to find duplicate rows in SQL Server.
By “duplicate rows” I mean two or more rows that share exactly the same values across all columns.
Continue reading3 Ways to List All Stored Procedures that Reference a Table in PostgreSQL
Here are three examples of returning a list of stored procedures that reference a specific table in PostgreSQL.
Continue reading3 Ways to List all Triggers for a Given Table in PostgreSQL
Here are three options for listing out the triggers for a given table in PostgreSQL.
Continue reading