---
title: "SQL-026: Retrieve menu security by key"
summary: Retrieves a single MENU_SECURITY record by MENU_SECURITY_SEQ_NUM.
status: draft
owner: SAIF
last_reviewed: 2026-07-24
library: SAIF.Business.Menu
reference_type: package
---

# SQL-026: Retrieve menu security by key

Retrieves a single menu security record from `MENU_SECURITY` by its primary key.

## Classification

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

## Parameters

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

## Tables

| Table | Access | Columns used |
| --- | --- | --- |
| [MENU_SECURITY](../database-tables.md#menu-security) | SELECT | `MENU_SECURITY_SEQ_NUM`, `MENU_ITEM_SEQ_NUM`, `SECURITY_GROUP_TXT`, `UPDATE_DATE`, `UPDATE_USER` |

## Sample SQL

```sql
Select MENU_SECURITY.MENU_SECURITY_SEQ_NUM as MenuSecuritySeqNum,
       MENU_SECURITY.MENU_ITEM_SEQ_NUM as MenuItemSeqNum,
       MENU_SECURITY.SECURITY_GROUP_TXT as SecurityGroup,
       MENU_SECURITY.UPDATE_DATE as UpdateDate,
       MENU_SECURITY.UPDATE_USER as UpdateUser
From MENU_SECURITY
Where MENU_SECURITY.MENU_SECURITY_SEQ_NUM = :MenuSecuritySeqNum
```

## Operations and processes
- [Menu authorization data lookup](../operations/menu-authorization-data-lookup.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\clsMenuSecurity.vb`
