SQL result comparator
Open SQL result comparator on Happytails.ai. This view has the same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.
Tool capabilities
{
"id": "sql-result-comparator",
"category": "data-tools",
"built": true,
"requirements": "A numeric pair matches when abs(a-b) is at most absolute plus relative times the larger magnitude. Other fields compare exact strings. CSV cannot distinguish a SQL NULL from an exported empty string. No database connection is made. Up to 1,000,000 characters, 10,000 data records, 100 columns and 100,000 cells across the sources. Files for multi-source tools are limited to 4,000,000 bytes total. Reports retain at most 500 diagnostic findings and state any omitted count. CSV and JSON outputs are limited to 4,000,000 characters. Output is budgeted incrementally before retaining each row; expanded decimal output counts toward the same 4,000,000-character limit even when input uses short exponent notation.",
"implementation": {
"fields": [
{
"key": "separator",
"label": "Input CSV separator",
"value": ",",
"type": "select",
"values": [
",",
";",
"\t"
]
},
{
"key": "comparison",
"label": "Comparison CSV",
"value": "id,amount\nA,10.00\nB,3.50\n",
"type": "textarea",
"help": "Paste the second table, including its header row. Both tables use the selected separator."
},
{
"key": "keys",
"label": "Business key columns (JSON)",
"value": "[\"id\"]",
"type": "textarea",
"help": "Exact nonempty unique row keys, supporting multiple columns."
},
{
"key": "numeric",
"label": "Numeric comparison columns (JSON)",
"value": "[\"amount\"]",
"type": "textarea",
"help": "Only these columns use numeric tolerance; all other values compare exact strings."
},
{
"key": "absolute",
"label": "Absolute tolerance",
"value": "0",
"type": "text"
},
{
"key": "relative",
"label": "Relative tolerance (0 to 1)",
"value": "0",
"type": "text"
},
{
"key": "outputSafety",
"label": "CSV output cells",
"value": "Protect spreadsheet cells",
"type": "select",
"values": [
"Protect spreadsheet cells",
"Preserve original cells"
]
}
],
"live": true,
"presentation": "metrics",
"note": "Runs locally on your device. CSV requires unique nonempty headers. Up to 1,000,000 characters, 10,000 data records and 100,000 cells across inputs, with 100 columns. Quoted multiline cells are supported. Each JSON settings field is limited to 100,000 characters. Output files are bounded to 4,000,000 characters. Diagnostic reports contain at most 500 findings and disclose the omitted count. Compare exported query results without connecting to a database. Numeric values match when |a-b| <= absolute + relative × max(|a|,|b|). Added and removed columns are reported separately. CSV does not preserve the distinction between SQL NULL and an empty string. Protect spreadsheet cells prefixes formula-like values, including negative numbers, with an apostrophe. Choose Preserve original cells only for a trusted import workflow.",
"experience": {
"automatic": true,
"single": false,
"inputMaxLength": 1000000,
"inputMode": "text",
"label": "First query result as CSV",
"placeholder": "id,amount\nA,10\nB,3",
"help": "Paste exported query results as CSV, including the header row. This tool compares the results; it does not execute SQL. Results update as you type. Up to 1,000,000 characters.",
"helpParts": [
"Paste exported query results as CSV, including the header row. This tool compares the results; it does not execute SQL.",
"Results update as you type.",
"Up to 1,000,000 characters."
],
"action": null
},
"mode": "automatic",
"interactive": false
},
"execution": "Browser interface",
"api": null,
"browser_agent": {
"supported": true,
"name": "run_current_tool",
"discovery": "WebMCP on the human page in a supporting browser",
"verification": "See audit/API-AUDIT.md; availability is not verification"
}
}Page guide
Compare exported query results by key, with exact text checks and configurable numeric tolerances.
How to use SQL result comparator
- Export each query result as a CSV and paste both tables.
- Select unique row keys, numeric columns and absolute or relative tolerance.
- Review changed values, missing rows and schema changes in the download.
Useful next steps
Prepare the source
Export each query result as a CSV and paste both tables.
Choose the matching rules
Select unique row keys, numeric columns and absolute or relative tolerance.
Review and keep the result
Review changed values, missing rows and schema changes in the download. A numeric pair matches when abs(a-b) is at most absolute plus relative times the larger magnitude. Other fields compare exact strings. CSV cannot distinguish a SQL NULL from an exported empty string. No database connection is made.