---
title: "SQL-003: Task action code by code"
summary: Reads one action-code lookup row by code.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Tasks
reference_type: package
---

# SQL-003: Task action code by code

Reads one action-code lookup row by code.

## Classification

| Field | Value |
| --- | --- |
| **SQL ID** | SQL-003 |
| **Operation type** | Read |
| **Execution method** | Inline SQL |
| **Database** | Oracle |
| **Schema** | `[unqualified]**` |
| **Command type** | Text |
| **Business object** | `clsTaskActionCode` |
| **Criteria property** | `RetrieveSQL` |
| **Lifecycle method** | `BeforeRetrieve` |

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:Code` | Input | String | 5 | Requested action code. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [TASK_ACTION_CODE](../database-tables.md#task_action_code) | SELECT | CODE, CODE_DESCR |

## Sample SQL

```sql
SELECT TASK_ACTION_CODE.CODE AS Code
     , TASK_ACTION_CODE.CODE_DESCR AS CodeDescr
FROM TASK_ACTION_CODE
WHERE TASK_ACTION_CODE.CODE = :Code
```

## Operations and processes
- [Task reference code lookups](../operations/task-reference-code-lookups.md)

> **Note:** Statements marked with ** could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Tasks\clsTaskActionCode.vb`
