operator

%

Returns the remainder for integer operands in PostgreSQL and SQLite. This example avoids dialect differences in noninteger operands. Example target: SQLite 3.46.1. Use only the isolated starter dataset; setup and expected results are in the batch evidence.

Formal Syntax & Structure

sql syntaxsql
left % right

Working Example

Example Snippetsql
SELECT 7 % 3, -7 % 3;
SQL Reference