---
title: "SQL-022: Retrieve menu item by key"
summary: Retrieves a single MENU_ITEM record by MENU_ITEM_SEQ_NUM.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Menu
reference_type: package
---

# SQL-022: Retrieve menu item by key

Retrieves a single menu item record from `MENU_ITEM` by its primary key.

## Classification

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

## Parameters

| Parameter | Direction | Type | Max length | Description |
| --- | --- | --- | --- | --- |
| `:MenuItemSeqNum` | Input | Decimal** | N/A | Primary key bound from `MyCriteria.MenuItemSeqNum`. |

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_ITEM](../database-tables.md#menu-item) | SELECT | `MENU_ITEM_SEQ_NUM`, `MENU_PAGE_SEQ_NUM`, `MENU_CATEGORY_CODE`, `TOOL_TIP_TXT`, `VISIBLE_FLAG`, `PAGE_ORDER_NUM`, `UPDATE_DATE`, `UPDATE_USER` |

## Sample SQL

```sql
Select MENU_ITEM.MENU_ITEM_SEQ_NUM as MenuItemSeqNum,
       MENU_ITEM.MENU_PAGE_SEQ_NUM as MenuPageSeqNum,
       MENU_ITEM.MENU_CATEGORY_CODE as MenuCategoryCode,
       MENU_ITEM.TOOL_TIP_TXT as ToolTip,
       MENU_ITEM.VISIBLE_FLAG as VisibleFlag,
       MENU_ITEM.PAGE_ORDER_NUM as PageOrder,
       MENU_ITEM.UPDATE_DATE as UpdateDate,
       MENU_ITEM.UPDATE_USER as UpdateUser
From MENU_ITEM
Where MENU_ITEM.MENU_ITEM_SEQ_NUM = :MenuItemSeqNum
```

## Operations and processes
- [Menu tree construction](../operations/menu-tree-construction.md)



> **Note:** Statements marked with `*` were inferred from code structure, naming conventions, or contextual evidence where direct confirmation was not available in source artifacts. Statements marked with `**` could not be confirmed; treat as unknown until verified.

## Sources
- `Business\SAIF.Business.Menu\clsMenuItem.vb`
