---
agentTools:
  projectIndex: https://help.logichub.com/llms.txt
---

# maxDouble

Determine maximum of two values (double format).

Compare two columns (double format) and return the higher value.

[block:api-header]
{
  "type": "basic",
  "title": "Usage Details"
}
[/block]

[block:code]
{
  "codes": [
    {
      "code": "select *, maxDouble(column1, column2) as maxValue from table\n\n-- column1: first column\n-- column2: second column ",
      "language": "sql",
      "name": "LQL Command"
    }
  ]
}
[/block]