# `viw_zknifemould_mftproductionplanslave` (view)


- **Updatable:** YES

## Columns

| # | Name | Type | Null |
|---|---|---|---|
| 1 | `iIncrement` | `int` | NO |
| 2 | `sId` | `varchar(100)` | NO |
| 3 | `sBrandsId` | `varchar(100)` | NO |
| 4 | `tCreateDate` | `datetime` | NO |
| 5 | `sSubsidiaryId` | `varchar(100)` | NO |
| 6 | `iOrder` | `int` | NO |
| 7 | `sMakePerson` | `varchar(255)` | NO |
| 8 | `sKnifeMouldNo` | `varchar(255)` | NO |
| 9 | `sKnifeMouldName` | `varchar(255)` | NO |
| 10 | `sKnifeMouldStyle` | `varchar(255)` | YES |
| 11 | `sStoreShelveId` | `varchar(100)` | YES |
| 12 | `dDurable` | `decimal(18,6)` | NO |
| 13 | `sState` | `varchar(255)` | NO |
| 14 | `sMemo` | `text` | YES |
| 15 | `sFormId` | `varchar(100)` | NO |
| 16 | `bActivate` | `bit(1)` | NO |
| 17 | `bInvalid` | `bit(1)` | NO |
| 18 | `sMReserve1` | `varchar(255)` | YES |
| 19 | `sMReserve2` | `varchar(255)` | YES |
| 20 | `sMReserve3` | `varchar(255)` | YES |
| 21 | `sMReserve4` | `varchar(255)` | YES |
| 22 | `sProductId` | `varchar(100)` | NO |
| 23 | `sParentId` | `varchar(100)` | NO |
| 24 | `sSlaveId` | `varchar(200)` | NO |
| 25 | `iSlaveOrder` | `int` | NO |
| 26 | `sProcessId` | `varchar(100)` | YES |
| 27 | `sBillNo` | `varchar(255)` | NO |
| 28 | `sWorkOrderId` | `varchar(100)` | NO |
| 29 | `sWorkOrderProcessId` | `varchar(100)` | NO |
| 30 | `sKnifeMouldId` | `varchar(100)` | YES |
| 31 | `sKnifeMouldState` | `varchar(10)` | NO |
| 32 | `sPartsName` | `varchar(255)` | YES |

## Definition

```sql
select `md`.`iIncrement` AS `iIncrement`,`md`.`sId` AS `sId`,`md`.`sBrandsId` AS `sBrandsId`,`md`.`tCreateDate` AS `tCreateDate`,`md`.`sSubsidiaryId` AS `sSubsidiaryId`,`md`.`iOrder` AS `iOrder`,`md`.`sMakePerson` AS `sMakePerson`,`md`.`sKnifeMouldNo` AS `sKnifeMouldNo`,`md`.`sKnifeMouldName` AS `sKnifeMouldName`,`md`.`sKnifeMouldStyle` AS `sKnifeMouldStyle`,`md`.`sStoreShelveId` AS `sStoreShelveId`,`md`.`dDurable` AS `dDurable`,`md`.`sState` AS `sState`,`md`.`sMemo` AS `sMemo`,`md`.`sFormId` AS `sFormId`,`md`.`bActivate` AS `bActivate`,`md`.`bInvalid` AS `bInvalid`,`md`.`sMReserve1` AS `sMReserve1`,`md`.`sMReserve2` AS `sMReserve2`,`md`.`sMReserve3` AS `sMReserve3`,`md`.`sMReserve4` AS `sMReserve4`,`md`.`sProductId` AS `sProductId`,`md`.`sParentId` AS `sParentId`,concat(`md`.`sId`,`mf`.`sSlaveId`) AS `sSlaveId`,`md`.`iSlaveOrder` AS `iSlaveOrder`,`md`.`sProcessId` AS `sProcessId`,`mf`.`sBillNo` AS `sBillNo`,`mf`.`sId` AS `sWorkOrderId`,`mf`.`sSlaveId` AS `sWorkOrderProcessId`,`mf`.`sKnifeMouldId` AS `sKnifeMouldId`,`mf`.`sKnifeMouldState` AS `sKnifeMouldState`,`mf`.`sPartsName` AS `sPartsName` from (`viw_knifemould` `md` join (select `vf`.`sBillNo` AS `sBillNo`,`vf`.`sId` AS `sId`,`vf`.`sSlaveId` AS `sSlaveId`,`vf`.`sProductId` AS `sProductId`,`vf`.`sKnifeMouldId` AS `sKnifeMouldId`,`vf`.`sKnifeMouldState` AS `sKnifeMouldState`,`vf`.`sProcessId` AS `sProcessId`,`vf`.`sPartsName` AS `sPartsName` from (`viw_mftworkorderprocess` `vf` join `mftproductionplanslave` `mp` on((`vf`.`sId` = `mp`.`sSrcId`))) where (`mp`.`sState` = 2)) `mf` on((`md`.`sId` = `mf`.`sKnifeMouldId`)))
```

## Narrative

_No human-written narrative yet._
