# `viw_elematerialscoach` (view)


- **Updatable:** YES

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `iIncrement` | `int` | NO |
| 2 | `sId` | `varchar(100)` | NO |
| 3 | `sBrandsId` | `varchar(100)` | NO |
| 4 | `sSubsidiaryId` | `varchar(100)` | NO |
| 5 | `tCreateDate` | `datetime` | NO |
| 6 | `sMakePerson` | `varchar(255)` | NO |
| 7 | `iOrder` | `int` | NO |
| 8 | `sBillNo` | `varchar(50)` | YES |
| 9 | `sMemo` | `text` | YES |
| 10 | `bInvalid` | `bit(1)` | NO |
| 11 | `sMReserve1` | `varchar(255)` | YES |
| 12 | `sMReserve2` | `varchar(255)` | YES |
| 13 | `sMReserve3` | `varchar(255)` | YES |
| 14 | `sMReserve4` | `varchar(255)` | YES |
| 15 | `sMReserve5` | `varchar(255)` | YES |
| 16 | `sMReserve6` | `varchar(255)` | YES |
| 17 | `dMReserve1` | `decimal(18,6)` | YES |
| 18 | `dMReserve2` | `decimal(18,6)` | YES |
| 19 | `dMReserve3` | `decimal(18,6)` | YES |
| 20 | `iMReserve1` | `int` | YES |
| 21 | `iMReserve2` | `int` | YES |
| 22 | `iMReserve3` | `int` | YES |
| 23 | `tMReserve1` | `datetime` | YES |
| 24 | `tMReserve2` | `datetime` | YES |
| 25 | `bStartMark` | `bit(1)` | NO |
| 26 | `sFormId` | `varchar(255)` | YES |
| 27 | `tCheckDate` | `datetime` | YES |
| 28 | `sCheckPerson` | `varchar(255)` | YES |
| 29 | `sStatus` | `varchar(255)` | YES |
| 30 | `bCheck` | `bit(1)` | YES |
| 31 | `sEmployeeId` | `varchar(255)` | YES |
| 32 | `sSlaveId` | `varchar(100)` | NO |
| 33 | `sParentId` | `varchar(100)` | NO |
| 34 | `sSlaveMemo` | `varchar(2000)` | YES |
| 35 | `sMaterialsId` | `varchar(255)` | YES |
| 36 | `dNewPrice` | `decimal(24,13)` | NO |
| 37 | `dOldPrice` | `decimal(24,13)` | NO |
| 38 | `iCigPack` | `int` | YES |
| 39 | `sCigPack` | `varchar(1)` | NO |

## Definition

```sql
select `elematerialscoachmaster`.`iIncrement` AS `iIncrement`,`elematerialscoachmaster`.`sId` AS `sId`,`elematerialscoachmaster`.`sBrandsId` AS `sBrandsId`,`elematerialscoachmaster`.`sSubsidiaryId` AS `sSubsidiaryId`,`elematerialscoachmaster`.`tCreateDate` AS `tCreateDate`,`elematerialscoachmaster`.`sMakePerson` AS `sMakePerson`,`elematerialscoachmaster`.`iOrder` AS `iOrder`,`elematerialscoachmaster`.`sBillNo` AS `sBillNo`,`elematerialscoachmaster`.`sMemo` AS `sMemo`,`elematerialscoachmaster`.`bInvalid` AS `bInvalid`,`elematerialscoachmaster`.`sMReserve1` AS `sMReserve1`,`elematerialscoachmaster`.`sMReserve2` AS `sMReserve2`,`elematerialscoachmaster`.`sMReserve3` AS `sMReserve3`,`elematerialscoachmaster`.`sMReserve4` AS `sMReserve4`,`elematerialscoachmaster`.`sMReserve5` AS `sMReserve5`,`elematerialscoachmaster`.`sMReserve6` AS `sMReserve6`,`elematerialscoachmaster`.`dMReserve1` AS `dMReserve1`,`elematerialscoachmaster`.`dMReserve2` AS `dMReserve2`,`elematerialscoachmaster`.`dMReserve3` AS `dMReserve3`,`elematerialscoachmaster`.`iMReserve1` AS `iMReserve1`,`elematerialscoachmaster`.`iMReserve2` AS `iMReserve2`,`elematerialscoachmaster`.`iMReserve3` AS `iMReserve3`,`elematerialscoachmaster`.`tMReserve1` AS `tMReserve1`,`elematerialscoachmaster`.`tMReserve2` AS `tMReserve2`,`elematerialscoachmaster`.`bStartMark` AS `bStartMark`,`elematerialscoachmaster`.`sFormId` AS `sFormId`,`elematerialscoachmaster`.`tCheckDate` AS `tCheckDate`,`elematerialscoachmaster`.`sCheckPerson` AS `sCheckPerson`,`elematerialscoachmaster`.`sStatus` AS `sStatus`,`elematerialscoachmaster`.`bCheck` AS `bCheck`,`elematerialscoachmaster`.`sEmployeeId` AS `sEmployeeId`,`elematerialscoachslave`.`sId` AS `sSlaveId`,`elematerialscoachslave`.`sParentId` AS `sParentId`,`elematerialscoachslave`.`sSlaveMemo` AS `sSlaveMemo`,`elematerialscoachslave`.`sMaterialsId` AS `sMaterialsId`,`elematerialscoachslave`.`dNewPrice` AS `dNewPrice`,`elematerialscoachslave`.`dOldPrice` AS `dOldPrice`,`elematerialscoachmaster`.`iCigPack` AS `iCigPack`,(case `elematerialscoachmaster`.`iCigPack` when 1 then '是' else '否' end) AS `sCigPack` from (`elematerialscoachmaster` join `elematerialscoachslave` on((`elematerialscoachmaster`.`sId` = `elematerialscoachslave`.`sParentId`)))
```

## Narrative

_No human-written narrative yet._
