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 readingDatabase Management Systems
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 readingHere are three options for returning rows that contain lowercase characters in SQLite.
Continue readingIn MariaDB, the MINUS
operator returns distinct rows from the left input query that aren’t output by the right input query.
The MINUS
operator was introduced in MariaDB 10.6.1 as a synonym for the EXCEPT
operator for the purposes of compatibility with Oracle. Therefore, we can use MINUS
and EXCEPT
interchangeably (in MariaDB 10.6.1 and later).
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 readingHere are three examples of returning a list of stored procedures that reference a specific table in PostgreSQL.
Continue readingHere are three options for listing out the triggers for a given table in PostgreSQL.
Continue readingIn MariaDB, the UNION
operator combines the results from multiple SELECT
statements into a single result set.
Here’s an example of returning rows that contain only non-alphanumeric characters in SQLite.
Non-alphanumeric characters include punctuation characters like !@#&()–[{}]:;',?/*
and symbols like `~$^+=<>“
, as well as whitespace characters like the space or tab characters.
In MariaDB, the INTERSECT
operator intersects two queries and returns only those rows that are returned in both queries.
It returns all rows from the left SELECT
result set that are also present in the right SELECT
result set.
The following queries can be used to return duplicate rows in SQLite.
Here, the duplicate rows contain duplicate values across all columns, including the ID column.
Continue reading