# Legacy Database Reference — Queries, Forms & Reports

Companion to [`LEGACY_DATABASES.md`](LEGACY_DATABASES.md), which only covers
Tables. Access databases also contain **Queries**, **Forms**, and
**Reports** as first-class objects — and in this system, that's where a lot
of the real business logic and printable-output inventory lives. None of
this is visible through ODBC (which only exposes Tables and a subset of
non-hidden SELECT queries, misleadingly reported as `VIEW`) — it required a
different extraction method, documented below.

## Why this needed a different tool than the table catalog

`migration/catalog_schema.py` (the table catalog) connects via `pyodbc`,
which only talks ODBC. ODBC's `SQLTables` call only enumerates Tables and,
separately, non-hidden stored SELECT queries under the type `VIEW` — it has
no concept of Forms or Reports at all, and it doesn't expose a query's
actual SQL text, only its name.

To get the rest, `migration/catalog_objects.py` uses **DAO** (Data Access
Objects) via COM automation (`pywin32`'s `win32com.client`), specifically
`DAO.DBEngine.120`. DAO ships as part of the Access Database Engine
redistributable (the same ODBC driver already required for everything else
in `migration/`) — **full Microsoft Access does not need to be installed**,
only the driver + `pip install pywin32`. DAO's `Database` object exposes:

- `QueryDefs` — every saved query, including hidden ones, each with a
  `.SQL` property containing the actual SQL text
- `Containers("Reports").Documents` — every saved Report object, by name
- `Containers("Forms").Documents` — every saved Form object, by name

**Limitation:** DAO's `Containers`/`Documents` interface is a lower-level
catalog API — it gives object *names* and metadata (owner, dates) but not a
Report's `RecordSource`, layout, or bound controls. Getting that would
require the full `Access.Application` object model, which needs MS Access
itself installed (confirmed **not** installed on the machine this was
generated from — only the redistributable engine). If a report's exact
layout/data-binding is ever needed, that's the next tool to reach for, on a
machine that actually has Access installed.

**Regenerate with** (Windows, Access Database Engine + `pip install pywin32`):
```bash
cd migration
python catalog_objects.py --output objects.json
python render_objects_md.py objects.json --output objects_appendix.md
# then paste objects_appendix.md content below the --- marker at the bottom of this file
```

## Where these objects live

| Source | Reports | Forms | Queries (real / hidden) |
|---|---|---|---|
| `UTILITIES.accdb` | 96 | 112 | 384 (307 real, 77 hidden) |
| `SEGUROS 16.mdb` (frontend) | 212 | 149 | 857 (421 real, 436 hidden) |
| `SEGUROS 16_be.mdb` (backend) | 0 | 0 | 0 |
| `SCOTHIA.mdb` | 3 | 10 | 33 (23 real, 10 hidden) |

The insurance backend having **zero** saved objects confirms what
`LEGACY_DATABASES.md` already noted from the table side: `SEGUROS 16_be.mdb`
is pure data storage. Every query, form, and report for the insurance line
of business lives in the linked frontend, `SEGUROS 16.mdb` — which is why
that file looked "empty" when only tables were catalogued; it has no data
tables of its own, but it's actually the larger and more complex of the two
insurance files once Reports/Forms/Queries are counted.

"Hidden" queries (prefixed `~sq_` or `~TMP`) are Access-generated internal
subquery caches — created automatically when a query's own designer uses
another query as a data source — not objects anyone authored directly.
They're catalogued (counted) but their SQL isn't reproduced in the appendix;
they don't carry independent business meaning beyond the real query that
generated them.

## What the Reports actually reveal

Skimming the 311 real report names across the three populated files surfaces patterns that aren't visible from the table structure alone:

- **Account statements** (`EDO CUENTA DATOS*` — "Estado de Cuenta") come in many variants: annual, no-email, sorted by customer number, filtered to overdue-only ("`X NUM ROJO`" — "by number, in red"), and even year-pinned copies (`EDO CUENTA XNUM ROJO 2001`, `...2022`) — evidence the statement report was periodically cloned and modified rather than parameterized, which is itself useful context: the new platform's statement feature should absorb this into one parameterized report rather than one-off clones.
- **Insurance renewal notices come in numbered generations** — `AMPL RENEW X MES`, `AMPL RENEW2 X MES`, `AMPL RENEW3 X MES` (and the same `RENEW`/`RENEW2`/`RENEW3` pattern repeated per policy line: `MCA2 RENEW*`, `LIC RENEW*`, `MF RENEW*`, `ME RENEW*`). This reveals a **multi-notice renewal reminder workflow** (first notice, second notice, third notice) that isn't visible anywhere in the table schema — a real business process the new insurance module needs to support, not just infer from a `renovation` column.
- **Service-specific delinquency/discrepancy reports**: `FALTANTES DE AGUA/LUZ/TEL` ("missing water/electric/phone [service info]"), `PAGOS NO EFECTUADOS AGUA/LUZ/TEL` ("payments not made"), `DUPLICADOS` (duplicate detection) — these are exactly the kind of data-quality workflows the migration's reconciliation pass (see `PLAN.md`) needs to account for, since staff were clearly already fighting the same duplication/completeness issues this migration is trying to resolve.
- **Correspondence templates**: `CARTA BANK FEE`, `CARTA BIENVENIDA` ("welcome letter"), `ETIQUETA*` (mailing labels) — customer-facing documents, not just internal reports.
- A couple of names (`EmployeeSales`, `850epsondots`) are clearly Access sample-template or printer-config leftovers, not real business objects — noise to ignore, same as the `TIT`-shaped scratch tables noted in the table reference.

**Caveat:** some queries reference tables that no longer exist in the current database (e.g. one found during generation references `DATOS1997`, an apparent year-specific table from a schema era that's since been consolidated). Not every listed query is still functional against the current schema — this appendix reflects what's *defined*, not what's confirmed working. Treat older-looking or year-pinned query/report names with extra scrutiny before assuming they're still load-bearing.

## Working with this without Windows

Same guidance as the table reference: the extraction itself requires
Windows + the Access Database Engine + `pywin32`, but this document and the
underlying `migration/objects.json` are portable — nothing here requires
touching the original `.accdb`/`.mdb` files again unless they change.

---

<!-- APPENDIX_MARKER: content below this line is generated by migration/catalog_objects.py + migration/render_objects_md.py — do not hand-edit, regenerate instead. -->
## Appendix: Reports, Forms & Queries

Generated by `migration/catalog_objects.py` + `migration/render_objects_md.py` via DAO COM automation (not visible through plain ODBC). Reports and Forms are listed by name only — DAO's catalog interface doesn't expose RecordSource or visual layout without full MS Access installed. Queries include full SQL text, which is where the real computational business logic lives (billing math, renewal batching, filters).

### UTILITIES.accdb

##### Reports (96)

- `'LUZ PAR O IMPAR' no coincidente con 'luz filtra pagos por mes'1`
- `AGUA`
- `AGUA FECHA`
- `AGUA FECHA UNA`
- `AGUA2`
- `ANUAL`
- `BANCO`
- `BANCOEDITOR`
- `BIENV SEGUR`
- `BILLING REPORT23`
- `BILLING REPORT23 VARIOS`
- `BILLING REPORT23 VARIOS2`
- `CABLE X CIA`
- `CARTA BANK FEE`
- `CARTA BANK FEE ID`
- `CARTA BIENVENIDA`
- `CASA Y DUE DATE`
- `CATASTRO`
- `CH FM3`
- `CLAVES CATASTRALES`
- `COBRO`
- `COBRO1`
- `DATGRAL DATMEX`
- `DATOS TODOS`
- `DUEDATE`
- `DUPLICADOS`
- `EDO CUENTA DATOS`
- `EDO CUENTA DATOS ANUAL`
- `EDO CUENTA DATOS ESPAÑOL`
- `EDO CUENTA DATOS NO EMAIL`
- `EDO CUENTA DATOS POR NUM`
- `EDO CUENTA DATOS VARIOS`
- `EDO CUENTA DATOS X NUM ROJO`
- `EDO CUENTA XNUM ROJO 2001`
- `EDO CUENTA XNUM ROJO 2022`
- `EFE`
- `EFE FM3`
- `EMPRESA RECIBO`
- `ETIQUETA`
- `ETIQUETA 4013`
- `ETIQUETA CARTA`
- `ETIQUETA RECIBO`
- `EmployeeSales`
- `FALTANTES DE AGUA`
- `FALTANTES DE AGUA1`
- `FALTANTES DE LUZ`
- `FALTANTES DE LUZ1`
- `FALTANTES DE TEL`
- `FALTANTES DE TEL1`
- `FUTURO TODO`
- `GAS`
- `GAS POR FECHA`
- `GOLDIN`
- `LISTADO ALFAB STATUS`
- `LISTADO ALFABETICO`
- `LISTADO BILLING`
- `LISTADO EN ROJO`
- `LISTADO NUMERICO`
- `LISTADO TELEFONO DIRECT`
- `LUZ`
- `LUZL`
- `MAIL ADDRESS EMPRESA RECIBO`
- `MANTENIMIENTO`
- `PAGOS NO EFECTUADOS AGUA`
- `PAGOS NO EFECTUADOS LUZ`
- `PAGOS NO EFECTUADOS TEL`
- `PEDIR DATOS`
- `PROFILE`
- `RECIBO`
- `RECIBO1`
- `RECIBONOCLIENT`
- `REPORTE CHEQUE COUNT`
- `REPORTE DE CHEQUES FM3`
- `REPORTE DE EFECTIVO`
- `REPORTE DE EFECTIVO FM3`
- `REPORTE PARA CONTABILIDAD`
- `REPORTE PARA FUTURO`
- `REPORTE POR CHEQUE`
- `REPORTE POR CHEQUE TOTALES`
- `REPORTE POR NUM CHEQUE NOMBRE`
- `REPORTE TOTALES EDO CUENTA`
- `REPORTEADOR`
- `SHCP5`
- `TELEFONO`
- `TELEFONO POR FECHA`
- `TIPO HIST`
- `TYPE OF TRX`
- `ZONA FEDERAL`
- `anual2011`
- `edo cuenta todos prueba`
- `empresa`
- `luz ruta 325 y 329`
- `mail address empresa`
- `no pago`
- `recibo con balance`
- `solo nombre`

##### Forms (112)

- `ACTUALIZA CLIENTE DESDE`
- `AGUA LIST`
- `ANALISIS EDO CUENTA`
- `AZUL`
- `BANCOEDITOR`
- `BUSCA CUALQUIER DATO`
- `BUSCA CUALQUIER DATO res`
- `CAPTURA AGUA`
- `CAPTURA CLAVE`
- `CAPTURA LUZ`
- `CAPTURA LUZSCAN`
- `CAPTURA TEL`
- `CAPTURA TELSCAN`
- `CH EDITA FM3`
- `CH FM3`
- `CH MENU FM3`
- `COBRO3`
- `DATMEXimagen`
- `DATMEXimagenedita`
- `DATOS AGUA`
- `DATOS ANALISIS`
- `DATOS CLAVE`
- `DATOS LUZ`
- `DATOS LUZ SCAN`
- `DATOS TEL`
- `DATOS TEL SCAN`
- `EDITA CHEQUE ALFA`
- `EDITA CHEQUE CAPTURA`
- `EDITA CHEQUE NUMERICO`
- `EDITA CLAVES`
- `EDITA DATOS GRAL`
- `EDITA DATOSGRAL Y MEX`
- `EDITA EDO CUENTA ESP`
- `EDITA EDO DE CUENTA`
- `EDITA FECHA VENCE`
- `EDITA NO PAGO AGUA`
- `EDITA NO PAGO LUZ`
- `EDITA NO PAGO PHONE`
- `EDITA TYPE`
- `EDITAR CHEQUE`
- `EDITAR CHEQUE1`
- `EFE`
- `EFE AMBOS`
- `EFE EDITA`
- `EFE EDITA FM3`
- `EFE FM3`
- `EFE MENU`
- `EFE MENU FM3`
- `FALTANTES AGUA EVALUA`
- `FALTANTES DE AGUA SINO1`
- `FALTANTES DE TEL SINO1`
- `FALTANTES E LUZ SINO1`
- `FALTANTES LUZ EVALUA`
- `FALTANTES TEL EVALUA`
- `FECHA EFE`
- `FEE`
- `FORMA AUDITOR`
- `FORMA BILLING`
- `FORMA CAPTURA`
- `FORMA CAPTURA CASA`
- `FORMA CASA`
- `FORMA CASAS`
- `FORMA CONSULTA`
- `FORMA DATOS CASA`
- `FORMA DATOS TODOS NUEVO CLIENTE`
- `FORMA DATOS TODOS OK`
- `FORMA DATOS TODOS POR NUMERO`
- `FORMA EDITA CASA`
- `FORMA EDITAR`
- `FORMA EDITAR 1`
- `FORMA IMPRESION`
- `FORMA INICIO`
- `FORMA MENSAJES`
- `FORMA PRUEBA`
- `FORMA QUICK`
- `FORMA TEL FECHAS`
- `FORMA Y SUBFORMA`
- `FORMA Y SUBFORMANOPAGO`
- `GAS LIST`
- `HOMEDIRECCION`
- `LUZ LIST`
- `MAIL`
- `MENSAJE`
- `MENSAJEDOS`
- `MENU EDO CUENTAS`
- `OBSERVA CLIENTE`
- `OTROS DATOS`
- `PAGOS NO`
- `PARA BILLIN FORMULARIO`
- `PARA BILLING2`
- `PARA CAPTURA FECHA AGUA`
- `PARA CAPTURA RPU`
- `PARA EDO`
- `PARACASA`
- `PRUEBA DE CAPTURA DE TRX`
- `PRUEBA DE CAPTURA DE TRXNO PAGO`
- `RECIBO NO CLIENTE`
- `REPORTE DE MOVIMIENTOS:`
- `REPORTE POR CHEQUE`
- `SALDO AUDITOR`
- `SHCP5 DATOS`
- `SUBFORM ANALISIS EDO C`
- `SUBFORM TIPO CAMBIO`
- `SUBFORMA AGUA`
- `SUBFORMA CLAVE`
- `SUBFORMA LUZ`
- `SUBFORMA LUZSCAN`
- `SUBFORMA TEL`
- `SUBFORMA TELSCAN`
- `TIPO`
- `mensaje1`
- `mensaje2`

##### Queries (384 total — 307 real, 77 hidden internal subqueries)

_77 hidden `~sq_`-prefixed queries omitted — these are Access-generated internal subquery caches, not authored business logic._

###### `'LUZ PAR O IMPAR' no coincidente con 'luz filtra pagos por mes'` (Select)

```sql
SELECT [LUZ PAR O IMPAR].RUTA, [LUZ PAR O IMPAR].[LUZ TIPO], [LUZ PAR O IMPAR].[NUMER ID], [luz filtra pagos por mes].Expr2, [LUZ PAR O IMPAR].MEDIDOR

FROM [LUZ PAR O IMPAR] LEFT JOIN [luz filtra pagos por mes] ON [LUZ PAR O IMPAR].[NUMER ID] = [luz filtra pagos por mes].[NUMid]

WHERE ((([luz filtra pagos por mes].NUMid) Is Null));
```

###### `'TEL PARA EVALUAR' no coincidente con 'TEL PARA EVALUAR2'` (Select)

```sql
SELECT [TEL PARA EVALUAR].TELEFONOS, [TEL PARA EVALUAR].ID, [TEL PARA EVALUAR].NOMBRE, [TEL PARA EVALUAR].FVT1, [TEL PARA EVALUAR].DIRECCION, [TEL PARA EVALUAR].[MES PAGO], [TEL PARA EVALUAR].FV

FROM [TEL PARA EVALUAR] LEFT JOIN [TEL PARA EVALUAR2] ON [TEL PARA EVALUAR].TELEFONOS=[TEL PARA EVALUAR2].REFER

WHERE ((([TEL PARA EVALUAR2].REFER) Is Null));
```

###### `1997 PARA 1998` (Update)

```sql
INSERT INTO [DATOS FUTUROS] ( NUMid, [DATE], PERIOD, [TYPE OF TRX], CHARGECREDIT )

SELECT DATOS1997.NUMid AS Expr1, Last(DATOS1997.DATE) AS LastOfDATE, Last(DATOS1997.PERIOD) AS LastOfPERIOD, DATOS1997.[TYPE OF TRX] AS Expr2, Last(DATOS1997.CHARGECREDIT) AS LastOfCHARGECREDIT

FROM DATOS1997

GROUP BY DATOS1997.NUMid, DATOS1997.[TYPE OF TRX]

HAVING (((DATOS1997.[TYPE OF TRX])="ELECTRIC PAYMENT" Or (DATOS1997.[TYPE OF TRX])="SADM" Or (DATOS1997.[TYPE OF TRX])="TAXES" Or (DATOS1997.[TYPE OF TRX])="TELEPHONE" Or (DATOS1997.[TYPE OF TRX])="BANK FEE" Or (DATOS1997.[TYPE OF TRX])="WATER PAYMENT" Or (DATOS1997.[TYPE OF TRX])="FEDERAL ZONE"));
```

###### `1998 PARA 1998` (Update)

```sql
INSERT INTO [DATOS FUTUROS] ( NUMid, [DATE], PERIOD, [TYPE OF TRX], CHARGECREDIT )

SELECT DATOS2.NUMid, Last(DATOS2.DATE) AS LastOfDATE, Last(DATOS2.PERIOD) AS LastOfPERIOD, DATOS2.[TYPE OF TRX], Last(DATOS2.CHARGECREDIT) AS LastOfCHARGECREDIT

FROM DATOS2

GROUP BY DATOS2.NUMid, DATOS2.[TYPE OF TRX]

HAVING (((DATOS2.[TYPE OF TRX])="ELECTRIC PAYMENT" Or (DATOS2.[TYPE OF TRX])="SADM" Or (DATOS2.[TYPE OF TRX])="TAXES" Or (DATOS2.[TYPE OF TRX])="TELEPHONE" Or (DATOS2.[TYPE OF TRX])="BANK FEE" Or (DATOS2.[TYPE OF TRX])="WATER PAYMENT" Or (DATOS2.[TYPE OF TRX])="FEDERAL ZONE"));
```

###### `1998 TABLA 1999` (Update)

```sql
INSERT INTO datos2 ( NUMid, CHARGECREDIT )

SELECT [2002].NUMid, Sum([2002].CHARGECREDIT) AS SumOfCHARGECREDIT

FROM 2002

GROUP BY [2002].NUMid;
```

###### `AAATEMPORAL` (Select)

```sql
SELECT DATMEX.[NUMER ID], DATMEX.CASA, DATMEX.DIRECCION, DATMEX.TELEFONO

FROM DATMEX

WHERE ((Not (DATMEX.CASA)=1) AND ((DATMEX.TELEFONO)>""));
```

###### `ACTUALIZA CLIENTE DESDE` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[CLIENTE DESDE]

FROM DATGRAL;
```

###### `ACTUALIZA2010a2015` (Update)

```sql
INSERT INTO datos2 ( NUMid, [DATE], REFER, PERIOD, [TYPE OF TRX], CHARGECREDIT, CHEQUE )

SELECT [2010].NUMid, [2010].DATE, [2010].REFER, [2010].PERIOD, [2010].[TYPE OF TRX], [2010].CHARGECREDIT, [2010].CHEQUE

FROM 2010;
```

###### `AGUA` (Select)

```sql
SELECT DISTINCTROW DATMEX.AGUA, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.AGUA, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, TIT.FirstName

HAVING (((DATMEX.AGUA)>0))

ORDER BY DATMEX.AGUA;
```

###### `AGUA FECHA` (Select)

```sql
SELECT DISTINCTROW DATMEX.DIAGUA, DATMEX.AGUA, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.DIAGUA, DATMEX.AGUA, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, TIT.FirstName

HAVING (((DATMEX.AGUA)>0))

ORDER BY DATMEX.DIAGUA, DATMEX.AGUA;
```

###### `AGUA FECHA UNA` (Select)

```sql
SELECT DISTINCTROW DATMEX.DIAGUA, DATMEX.AGUA, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.DIAGUA, DATMEX.AGUA, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, TIT.FirstName

HAVING (((DATMEX.DIAGUA)=[TECLEE FECHA DE CORTE ( 1 A 31)]) AND ((DATMEX.AGUA)>0))

ORDER BY DATMEX.DIAGUA, DATMEX.AGUA;
```

###### `AGUA PAGO` (Select)

```sql
SELECT [AGUA TODO].[NUMER ID], [DATOS FUTUROS].[TYPE OF TRX], Last([DATOS FUTUROS].DATE) AS LastOfDATE, Last([DATOS FUTUROS].PERIOD) AS LastOfPERIOD, Last([DATOS FUTUROS].CHARGECREDIT) AS LastOfCHARGECREDIT

FROM [AGUA TODO] INNER JOIN [DATOS FUTUROS] ON [AGUA TODO].[NUMER ID]=[DATOS FUTUROS].NUMid

GROUP BY [AGUA TODO].[NUMER ID], [DATOS FUTUROS].[TYPE OF TRX]

HAVING ((([DATOS FUTUROS].[TYPE OF TRX])="WATER PAYMENT"));
```

###### `AGUA PAGO FUT` (Update)

```sql
INSERT INTO [FUTURO AGUA] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, CHARGECREDIT )

SELECT [AGUA PAGO].[NUMER ID], [AGUA PAGO].[TYPE OF TRX], [AGUA PAGO].LastOfDATE, [AGUA PAGO].LastOfPERIOD, [AGUA PAGO].LastOfCHARGECREDIT

FROM [AGUA PAGO]

ORDER BY [AGUA PAGO].[NUMER ID], [AGUA PAGO].LastOfDATE;
```

###### `AGUA PARA EVALUAR` (Select)

```sql
SELECT DATMEX.AGUA, [AGUA EVALUA].RUTAS, DATMEX.AGUA, DATMEX.[NUMER ID], DATGRAL.NOMBRE, DATMEX.DIRECCION, [AGUA EVALUA].PERIODO, DATMEX.MEDIDOR, [AGUA EVALUA].RUTAS

FROM [AGUA EVALUA], DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.AGUA)>0));
```

###### `AGUA PARA EVALUAR NO COINCIDE` (Select)

```sql
SELECT [AGUA PARA EVALUAR].[NUMER ID], [AGUA PARA EVALUAR].NOMBRE, [AGUA PARA EVALUAR].RUTAS, [AGUA PARA EVALUAR].DIRECCION, [AGUA PARA EVALUAR].PERIODO, [AGUA PARA EVALUAR].AGUA

FROM [AGUA PARA EVALUAR] LEFT JOIN [AGUA PARA EVALUAR2] ON [AGUA PARA EVALUAR].AGUA=[AGUA PARA EVALUAR2].REFER

WHERE ((([AGUA PARA EVALUAR2].REFER) Is Null));
```

###### `AGUA PARA EVALUAR2` (Select)

```sql
SELECT DATOS2.NUMid, DATOS2.[TYPE OF TRX], DATOS2.PERIOD, DATOS2.REFER

FROM DATOS2, [AGUA EVALUA]

WHERE (((DATOS2.[TYPE OF TRX])="WATER") AND ((DATOS2.PERIOD)=[PERIODO]));
```

###### `AGUA SIN PAGO` (Update)

```sql
INSERT INTO [FUTURO AGUA] ( [NUM id] )

SELECT [AGUA TODO Without Matching AGUA PAGO].[NUMER ID]

FROM [AGUA TODO Without Matching AGUA PAGO]

GROUP BY [AGUA TODO Without Matching AGUA PAGO].[NUMER ID];
```

###### `AGUA TODO` (Select)

```sql
SELECT DATMEX.[NUMER ID], DATMEX.AGUA

FROM DATMEX

WHERE (((DATMEX.AGUA)>0));
```

###### `AGUA TODO Without Matching AGUA PAGO` (Select)

```sql
SELECT DISTINCTROW [AGUA TODO].[NUMER ID]

FROM [AGUA TODO] LEFT JOIN [AGUA PAGO] ON [AGUA TODO].[NUMER ID]=[AGUA PAGO].[NUMER ID]

WHERE ((([AGUA PAGO].[NUMER ID]) Is Null));
```

###### `AGUA2` (Select)

```sql
SELECT DISTINCTROW DATMEX.AGUA, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName, DATMEX.DIAGUA

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.AGUA, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, TIT.FirstName, DATMEX.DIAGUA

HAVING (((DATMEX.AGUA)>0))

ORDER BY DATMEX.AGUA;
```

###### `ALFABETICO` (Select)

```sql
SELECT DISTINCTROW DATGRAL.NOMBRE, DATGRAL.[NUM id], SALDOS.SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, DATGRAL INNER JOIN SALDOS ON DATGRAL.[NUM id]=SALDOS.NUMid

ORDER BY DATGRAL.NOMBRE;
```

###### `ALFABETICO EN ROJO` (Select)

```sql
SELECT DISTINCTROW DATGRAL.NOMBRE, DATGRAL.[NUM id], SALDOS.SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, DATGRAL INNER JOIN SALDOS ON DATGRAL.[NUM id]=SALDOS.NUMid

WHERE (((SALDOS.SumOfCHARGECREDIT)<0))

ORDER BY DATGRAL.NOMBRE;
```

###### `ALFABETICO STATUS` (Select)

```sql
SELECT DISTINCTROW DATGRAL.NOMBRE, DATGRAL.[NUM id], TIT.FirstName, DATGRAL.STATUS, Count(DATGRAL.[NUM id]) AS [CuentaDeNUM id]

FROM DATGRAL, TIT

GROUP BY DATGRAL.NOMBRE, DATGRAL.[NUM id], TIT.FirstName, DATGRAL.STATUS

HAVING (((DATGRAL.STATUS)=0))

ORDER BY DATGRAL.NOMBRE;
```

###### `ANUAL` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, DATOS2.[TYPE OF TRX], Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT

FROM DATOS2

GROUP BY DATOS2.NUMid, DATOS2.[TYPE OF TRX]

HAVING (((DATOS2.[TYPE OF TRX])<>"BALANCE FORWARD" And (DATOS2.[TYPE OF TRX])<>"ANNUAL SERVICE FEE"))

ORDER BY DATOS2.NUMid;
```

###### `ANUAL1` (Select)

```sql
SELECT DISTINCTROW ANUAL.NUMid, ANUAL.[TYPE OF TRX], ([SumOfCHARGECREDIT]) AS Expr1, DatePart("m",Date())+1 AS mes, [Expr1]/[TIPO DE CAMBIO] AS Expr2

FROM ANUAL, [TIPO CAMBIO];
```

###### `AP BORRA TODO CLAVES` (Crosstab)

```sql
DELETE CLAVES.BANCO, CLAVES.MANT, CLAVES.PRZN, CLAVES.[ZFED T]

FROM CLAVES;
```

###### `AP BORRA TODO DATGRAL` (Crosstab)

```sql
DELETE DATGRAL.[NUM id]

FROM DATGRAL;
```

###### `AP BORRA TODO DATMEX` (Crosstab)

```sql
DELETE DATMEX.[NUMER ID]

FROM DATMEX;
```

###### `AP BORRA TODO DATOS2` (Crosstab)

```sql
DELETE datos2.NUMid

FROM datos2;
```

###### `AP BORRA TODO TIPOC` (Crosstab)

```sql
DELETE [TIPO CAMBIO].[TIPO DE CAMBIO]

FROM [TIPO CAMBIO];
```

###### `AP BORRA TODO TIT` (Crosstab)

```sql
DELETE TIT.FirstName

FROM TIT;
```

###### `AP BORRA TODO TRX` (Crosstab)

```sql
DELETE [TYPE OF TRX].[TYPE OF TRX]

FROM [TYPE OF TRX];
```

###### `AP2000` (Update)

```sql
INSERT INTO DATOS2 IN 'c:\My Documents\ut.mdb'

SELECT *

FROM 2000;
```

###### `BALANCE FIN AÑO` (Update)

```sql
INSERT INTO 2000 ( NUMid, CHARGECREDIT )

SELECT DATOS2.NUMid, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT

FROM DATOS2

GROUP BY DATOS2.NUMid;
```

###### `BANCO` (Select)

```sql
SELECT DISTINCTROW DATMEX.LOTE, DATMEX.MANZANA, DATGRAL.NOMBRE, DATMEX.[NUMER ID], DATMEX.CASA, DATMEX.VENCE1, (DatePart("m",[VENCE1])) AS Expr1, DATMEX.VENCE2, (DatePart("m",[VENCE2])) AS Expr2, DATMEX.BFEE, DATMEX.BANCO, SALDOS.SumOfCHARGECREDIT, TIT.FirstName, DATMEX.[TRUST NUM]

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN SALDOS ON DATMEX.[NUMER ID]=SALDOS.NUMid

WHERE ((((DatePart("m",[VENCE2])))=[TECLEE EL MES DE VENCIMIENTO 1 a 12]))

ORDER BY DATMEX.LOTE, DATMEX.MANZANA, DATGRAL.NOMBRE;
```

###### `BANCO CARTA` (Select)

```sql
SELECT DATMEX.BANCO, DATMEX.VENCE1, DATMEX.VENCE2, DATMEX.BFEE, DATMEX.[TRUST NUM], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.BANCO)>" ") AND ((DATGRAL.[NUM id])=[TECLEE NUMERO DE CLIENTE]));
```

###### `BANCO CARTA TODOS` (Select)

```sql
SELECT DATMEX.BANCO, DATMEX.VENCE1, (DatePart("m",[VENCE1])) AS Expr1, DATMEX.VENCE2, DATMEX.BFEE, DATMEX.[TRUST NUM], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.BANCO)>" ") AND (((DatePart("m",[VENCE1])))=[TECLEE MES DE VENCIMIENTO]));
```

###### `BANCOCARTATODOS` (Select)

```sql
SELECT DATMEX.BANCO, DATMEX.VENCE1, (DatePart("m",[VENCE1])) AS Expr1, DATMEX.VENCE2, DATMEX.BFEE, DATMEX.[TRUST NUM], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.BANCO)>" ") AND (((DatePart("m",[VENCE1])))=[TECLEE MES DE VENCIMIENTO]));
```

###### `BANCOCARTATODOSID` (Select)

```sql
SELECT DATMEX.BANCO, DATMEX.VENCE1, (DatePart("m",[VENCE1])) AS Expr1, DATMEX.VENCE2, DATMEX.BFEE, DATMEX.[TRUST NUM], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATMEX.BANCO)>" ") AND ((DATGRAL.[NUM id])=[TECLEE ID]));
```

###### `BANCOEDITOR` (Update)

```sql
INSERT INTO [BANCO EDITOR] ( BANCO, LOTE, MANZANA, NAME, ID, CASA, VENCE1, VENCE2, BFEE, [TRUST NUM], FIRSTNAME )

SELECT DISTINCTROW DATMEX.BANCO, DATMEX.LOTE, DATMEX.MANZANA, DATGRAL.NOMBRE, DATMEX.[NUMER ID], DATMEX.CASA, DATMEX.VENCE1, DATMEX.VENCE2, DATMEX.BFEE, DATMEX.[TRUST NUM], TIT.FirstName

FROM TIT, DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE ((((DatePart("m",[VENCE2])))=[TECLEE EL MES DE VENCIMIENTO 1 a 12]))

ORDER BY DATMEX.BANCO, DATMEX.LOTE, DATMEX.MANZANA, DATGRAL.NOMBRE;
```

###### `BANCOEDITORBORRA` (Crosstab)

```sql
DELETE [BANCO EDITOR].BANCO

FROM [BANCO EDITOR];
```

###### `BARBOSA2` (Select)

```sql
SELECT DISTINCTROW DatePart("m",[DATE]) AS Expr2, DatePart("yyyy",[DATE]) AS Expr3, DATOS2.[TYPE OF TRX], Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, Sum([CHARGECREDIT]*-1) AS Expr1

FROM DATOS2

GROUP BY DatePart("m",[DATE]), DatePart("yyyy",[DATE]), DATOS2.[TYPE OF TRX]

HAVING (((DatePart("yyyy",[DATE]))=[TECLEE EL AÑO COMPLETO]) AND ((DATOS2.[TYPE OF TRX])="ANNUAL SERVICE FEE"))

ORDER BY DatePart("m",[DATE]);
```

###### `BFEE PAGO` (Select)

```sql
SELECT [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX], Last([DATOS FUTUROS].DATE) AS LastOfDATE, Last([DATOS FUTUROS].PERIOD) AS LastOfPERIOD, Last([DATOS FUTUROS].CHARGECREDIT) AS LastOfCHARGECREDIT

FROM [BFEE TODO] INNER JOIN [DATOS FUTUROS] ON [BFEE TODO].[NUMER ID]=[DATOS FUTUROS].NUMid

GROUP BY [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX]

HAVING ((([DATOS FUTUROS].[TYPE OF TRX])="BANK FEE"));
```

###### `BFEE PAGO FUT` (Update)

```sql
INSERT INTO [FUTURO BFEE] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, CHARGECREDIT )

SELECT [BFEE PAGO].NUMid, [BFEE PAGO].[TYPE OF TRX], [BFEE PAGO].LastOfDATE, [BFEE PAGO].LastOfPERIOD, [BFEE PAGO].LastOfCHARGECREDIT

FROM [BFEE PAGO];
```

###### `BFEE SIN PAGO` (Update)

```sql
INSERT INTO [FUTURO BFEE] ( [NUM id] )

SELECT [BFEE TODO Without Matching BFEE PAGO].[NUMER ID]

FROM [BFEE TODO Without Matching BFEE PAGO];
```

###### `BFEE TODO` (Select)

```sql
SELECT DATMEX.[NUMER ID], DATMEX.BFEE

FROM DATMEX

WHERE (((DATMEX.BFEE)>0));
```

###### `BFEE TODO Without Matching BFEE PAGO` (Select)

```sql
SELECT DISTINCTROW [BFEE TODO].[NUMER ID]

FROM [BFEE TODO] LEFT JOIN [BFEE PAGO] ON [BFEE TODO].[NUMER ID]=[BFEE PAGO].NUMid

WHERE ((([BFEE PAGO].NUMid) Is Null));
```

###### `BILLING NUEVO` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.TIPO, billing.DATE, billing.REFER, billing.PERIOD, billing.[TYPE OF TRX], billing.CHARGECREDIT, [TIPO CAMBIO].[TIPO DE CAMBIO], First([TIPO CAMBIO].MENSAJE2) AS FirstOfMENSAJE2

FROM [TIPO CAMBIO], DATGRAL INNER JOIN billing ON DATGRAL.[NUM id]=billing.NUMid

GROUP BY DATGRAL.[NUM id], DATGRAL.TIPO, billing.DATE, billing.REFER, billing.PERIOD, billing.[TYPE OF TRX], billing.CHARGECREDIT, [TIPO CAMBIO].[TIPO DE CAMBIO];
```

###### `BILLING NUEVO VARIOS` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.TIPO, billing.DATE, billing.REFER, billing.PERIOD, billing.[TYPE OF TRX], billing.CHARGECREDIT, [TIPO CAMBIO].[TIPO DE CAMBIO], First([TIPO CAMBIO].MENSAJE2) AS FirstOfMENSAJE2, DATGRAL.EMAIL

FROM [TIPO CAMBIO], (DATGRAL INNER JOIN billing ON DATGRAL.[NUM id]=billing.NUMid) INNER JOIN [PARA BILLING1] ON DATGRAL.[NUM id]=[PARA BILLING1].[NUM id]

GROUP BY DATGRAL.[NUM id], DATGRAL.TIPO, billing.DATE, billing.REFER, billing.PERIOD, billing.[TYPE OF TRX], billing.CHARGECREDIT, [TIPO CAMBIO].[TIPO DE CAMBIO], DATGRAL.EMAIL;
```

###### `BILLING NUEVO VARIOSDRAS` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.TIPO, billing.DATE, billing.REFER, billing.PERIOD, billing.[TYPE OF TRX], billing.CHARGECREDIT, [TIPO CAMBIO].[TIPO DE CAMBIO], [PARA BILLING2].[$], [TIPO CAMBIO].MENSAJE2, DATGRAL.EMAIL

FROM [TIPO CAMBIO], (DATGRAL INNER JOIN billing ON DATGRAL.[NUM id]=billing.NUMid) INNER JOIN [PARA BILLING2] ON DATGRAL.[NUM id]=[PARA BILLING2].[NUM id]

GROUP BY DATGRAL.[NUM id], DATGRAL.TIPO, billing.DATE, billing.REFER, billing.PERIOD, billing.[TYPE OF TRX], billing.CHARGECREDIT, [TIPO CAMBIO].[TIPO DE CAMBIO], [PARA BILLING2].[$], [TIPO CAMBIO].MENSAJE2, DATGRAL.EMAIL;
```

###### `BILLING POR NUM` (Select)

```sql
SELECT [BILLING STATEMENT].[NUM id] AS Expr1, *

FROM [BILLING STATEMENT]

WHERE ((([BILLING STATEMENT].[NUM id])=[TECLEE EL NUM DE CLIENTE]));
```

###### `BORRA BILLING` (Crosstab)

```sql
DELETE billing.NUMid, billing.DATE, billing.REFER, billing.PERIOD, billing.[TYPE OF TRX], billing.CHARGECREDIT

FROM billing;
```

###### `BORRA BILLING2` (Crosstab)

```sql
DELETE billing.NUMid, billing.DATE, billing.REFER, billing.PERIOD, billing.[TYPE OF TRX], billing.CHARGECREDIT

FROM billing;
```

###### `BORRA LUZ PARASCAN` (Crosstab)

```sql
DELETE LUZSCAN.ID

FROM LUZSCAN;
```

###### `BORRA PARA BILLING` (Crosstab)

```sql
DELETE [PARA BILLING1].[NUM id]

FROM [PARA BILLING1];
```

###### `BORRA PARA BILLING SIN` (Crosstab)

```sql
DELETE [PARA BILLING SIN].[NUM id]

FROM [PARA BILLING SIN];
```

###### `BORRA PARA BILLING2` (Crosstab)

```sql
DELETE [PARA BILLING2].[NUM id]

FROM [PARA BILLING2];
```

###### `BORRA RPU` (Crosstab)

```sql
DELETE RPUN.[NUMER ID], RPUN.NOMBRE, RPUN.RPU1, RPUN.[CH/CRED]

FROM RPUN;
```

###### `BORRA TEL PARASCAN` (Crosstab)

```sql
DELETE TELEF.ID

FROM TELEF;
```

###### `BUSCA NUMID EN DATGRAL` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], *

FROM DATGRAL

WHERE (((DATGRAL.[NUM id])=[TECLEE NUMERO DE CLIENTE]));
```

###### `BUSCA POR NUM DATOS` (Select)

```sql
SELECT DISTINCTROW [QUERY2 datos].NUMid, *

FROM [QUERY2 datos]

WHERE ((([QUERY2 datos].NUMid)=[NUMERO DE CLIENTE]));
```

###### `BUSCA X NUM DAT 2001` (Select)

```sql
SELECT DISTINCTROW [QUERY2 DATOS 2001].NUMid, *

FROM [QUERY2 DATOS 2001]

WHERE ((([QUERY2 DATOS 2001].NUMid)=[NUMERO DE CLIENTE]));
```

###### `BUSCA X NUM DAT 2022` (Select)

```sql
SELECT DISTINCTROW [QUERY2 DATOS 2022].[NUM id], *

FROM [QUERY2 DATOS 2022]

WHERE ((([QUERY2 DATOS 2022].[NUM id])=[NUMERO DE CLIENTE]));
```

###### `CABLE VIGENTE` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.VIGENTE, DATMEX.[CIA CABLE], DATMEX.[CABLE num]

FROM DATGRAL RIGHT JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATMEX.VIGENTE)=True) AND ((DATMEX.[CIA CABLE])>""));
```

###### `CARGA_ANNUAL_FEE` (Update)

```sql
INSERT INTO datos2 ( NUMid, [DATE], PERIOD, [TYPE OF TRX], CHARGECREDIT, CHEQUE, CAP )

SELECT [NUM id], "01/02/2026" AS [DATE], "2026" AS PERIOD, "ANNUAL FEE" AS [TYPE OF TRX], (FEE * -18.5) AS CHARGECREDIT, "SF26", NOW() AS CAP

FROM DATGRAL;
```

###### `CASA NUMERO` (Select)

```sql
SELECT DISTINCTROW DATMEX.[NUMER ID], DATMEX.CASA

FROM DATMEX

ORDER BY DATMEX.[NUMER ID], DATMEX.CASA;
```

###### `CATASTRO` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CLAVE, DATMEX.DIRECCION, DATMEX.TELEFONO, DATMEX.PRZN, DATMEX.MANZANA, DATMEX.LOTE

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.PRZN)="ROSARITO"));
```

###### `CH EDITA FM3` (Select)

```sql
SELECT [CHEQUE FM3].CL, DatosGral.FirstName, DatosGral.LastName, [LASTNAME] & ", " & [FIRSTNAME] AS [NAMES], [CHEQUE FM3].FECHA, [CHEQUE FM3].FEE, [CHEQUE FM3].TAX, [CHEQUE FM3].MULTA, [CHEQUE FM3].CONEPTO, [CHEQUE FM3].[NUM CHEQUE], [CHEQUE FM3].FOLIO, [CHEQUE FM3].MONEDAS

FROM [CHEQUE FM3] INNER JOIN DatosGral ON [CHEQUE FM3].CL=DatosGral.MailingListID;
```

###### `CH FM3` (Select)

```sql
SELECT [CHEQUE FM3].CL, DatosGral1.FirstName, DatosGral1.LastName, [LASTNAME] & ", " & [FIRSTNAME] AS [NAMES], [CHEQUE FM3].FECHA, [CHEQUE FM3].FEE, [CHEQUE FM3].TAX, [CHEQUE FM3].MULTA, [CHEQUE FM3].CONEPTO, [CHEQUE FM3].[NUM CHEQUE], [CHEQUE FM3].FOLIO, [CHEQUE FM3].MONEDAS

FROM [CHEQUE FM3], DatosGral1;
```

###### `CH PRINT FM3` (Select)

```sql
SELECT [CHEQUE FM3].CL, DatosGral.FirstName, DatosGral.LastName, [LASTNAME] & ", " & [FIRSTNAME] AS [NAMES], [CHEQUE FM3].FECHA, [CHEQUE FM3].FEE, [CHEQUE FM3].TAX, [CHEQUE FM3].MULTA, [CHEQUE FM3].CONEPTO, [CHEQUE FM3].[NUM CHEQUE], [CHEQUE FM3].FOLIO, [CHEQUE FM3].MONEDAS, FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL]

FROM FECHAIF, [CHEQUE FM3] INNER JOIN DatosGral ON [CHEQUE FM3].CL=DatosGral.MailingListID

WHERE ((([CHEQUE FM3].FECHA) Between [FECHA INICIAL] And [FECHA FINAL]));
```

###### `CH1 FM3` (Select)

```sql
SELECT [CHEQUE FM3].CL, DatosGral1.FirstName, DatosGral1.LastName, [LASTNAME] & ", " & [FIRSTNAME] AS [NAMES], [CHEQUE FM3].FECHA, [CHEQUE FM3].FEE, [CHEQUE FM3].TAX, [CHEQUE FM3].MULTA, [FEE]+[TAX]+[MULTA] AS Expr1, [CHEQUE FM3].CONEPTO, [CHEQUE FM3].[NUM CHEQUE], [CHEQUE FM3].FOLIO, [CHEQUE FM3].MONEDAS

FROM [CHEQUE FM3], DatosGral1

WHERE ((([CHEQUE FM3].FOLIO)=[TECLEE FOLIO]));
```

###### `CLAVES CATASTRALES` (Select)

```sql
SELECT DISTINCTROW DATMEX.CLAVE, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.PREDIAL, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName, DATMEX.PRZN

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.CLAVE, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.PREDIAL, TIT.FirstName, DATMEX.PRZN

HAVING (((DATMEX.CLAVE)>" "))

ORDER BY DATMEX.CLAVE;
```

###### `CLAVES CATASTRALESTJ` (Select)

```sql
SELECT DISTINCTROW DATMEX.CLAVE

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id] = DATOS2.NUMid

GROUP BY DATMEX.CLAVE, DATMEX.PRZN

HAVING (((DATMEX.CLAVE)>" ") AND ((DATMEX.PRZN)="TIJUANA"))

ORDER BY DATMEX.CLAVE;
```

###### `CLVE CARTA` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATMEX.CLAVE, DATMEX.MANZANA, DATMEX.LOTE, DATMEX.DIRECCION

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((Mid([CLAVE],1,2))="KB"));
```

###### `COBRO 3 BORRA` (Crosstab)

```sql
DELETE COBRO3.[NUM id]

FROM COBRO3;
```

###### `COBRO 3 TRANSFIERE` (Update)

```sql
INSERT INTO COBRO3 ( [NUM id], NOMBRE, DIRECCION, COLONIA, CIUDAD, ESTADO, PAIS, LABEL, TELUSA, FAX, OBSERVACIONES, CODIGO, TIPO, [CLIENTE TIPO], [FECHA NACIMIENTO], EMAIL, STATUS )

SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.LABEL, DATGRAL.TELUSA, DATGRAL.FAX, DATGRAL.OBSERVACIONES, DATGRAL.CODIGO, DATGRAL.TIPO, DATGRAL.[CLIENTE TIPO], DATGRAL.[FECHA NACIMIENTO], DATGRAL.EMAIL, DATGRAL.STATUS

FROM DATGRAL

WHERE (((DATGRAL.STATUS)=0));
```

###### `COBRO 3Q` (Select)

```sql
SELECT DISTINCTROW COBRO3.[NUM id], COBRO3.NOMBRE, COBRO3.DIRECCION, COBRO3.COLONIA, COBRO3.CIUDAD, COBRO3.ESTADO, COBRO3.CODIGO, DATOS2.NUMid, DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, COBRO3.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], COBRO3.FEE

FROM [TIPO CAMBIO], DATGRAL, COBRO3 INNER JOIN DATOS2 ON COBRO3.[NUM id] = DATOS2.NUMid

ORDER BY COBRO3.[NUM id];
```

###### `COBRO1` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATOS2.NUMid, DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], DATGRAL.FEE

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

WHERE (((DATGRAL.[NUM id])=[TECLEE ID CLIENTE]))

ORDER BY DATGRAL.[NUM id];
```

###### `CORTE_PERIODO` (Update)

```sql
INSERT INTO datos2 ( NUMid, [DATE], PERIOD, [TYPE OF TRX], CHARGECREDIT, CAP )

SELECT datos2025.NUMid, "1/1/2026" AS [DATE], "BALANCE: 1-1-26" AS PERIOD, "BALANCE FORWARD" AS [TYPE OF TRX], Sum(datos2025.CHARGECREDIT) AS BALANCE, NOW() AS CAP

FROM datos2025

WHERE Year([DATE]) = Year(Date()) - 1

GROUP BY datos2025.NUMid;
```

###### `DATGRAL DATMEX` (Select)

```sql
SELECT DISTINCTROW DATMEX.[NUMER ID], DATGRAL.NOMBRE, DATMEX.CLAVE, DATMEX.TELEFONO, DATMEX.AGUA, DATMEX.MEDIDOR, DATMEX.RPU, IIf([RPU]>0,[RPU],"000000") AS Expr1, Right$([EXPR1],6) AS Expr2, [SALDOS ULTIMO].SumOfCHARGECREDIT

FROM [SALDOS ULTIMO] INNER JOIN (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) ON [SALDOS ULTIMO].NUMid=DATMEX.[NUMER ID]

ORDER BY DATGRAL.NOMBRE;
```

###### `DATGRAL DATMEX 0` (Select)

```sql
SELECT DISTINCTROW DATMEX.[NUMER ID], DATGRAL.NOMBRE, DATMEX.CLAVE, DATMEX.TELEFONO, DATMEX.AGUA, DATMEX.MEDIDOR, DATMEX.RPU, IIf([RPU]>0,[RPU],"000000") AS Expr1, Right$([EXPR1],6) AS Expr2, [SALDOS ULTIMO 0].SumOfCHARGECREDIT

FROM (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN [SALDOS ULTIMO 0] ON DATMEX.[NUMER ID]=[SALDOS ULTIMO 0].NUMid

ORDER BY DATGRAL.NOMBRE;
```

###### `DATGRAL DATMEX LUZ` (Update)

```sql
INSERT INTO LUZSCAN ( ID, NOMBRE, RPUS, SALDO )

SELECT DISTINCTROW DATMEX.[NUMER ID], DATGRAL.NOMBRE, DATMEX.RPU, [SALDOS ULTIMO 0].SumOfCHARGECREDIT

FROM ([SALDOS ULTIMO] INNER JOIN (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) ON [SALDOS ULTIMO].NUMid=DATMEX.[NUMER ID]) INNER JOIN [SALDOS ULTIMO 0] ON DATMEX.[NUMER ID]=[SALDOS ULTIMO 0].NUMid

ORDER BY DATGRAL.NOMBRE;
```

###### `DATGRAL DATMEX RPU` (Select)

```sql
SELECT DISTINCTROW DATMEX.[NUMER ID], DATGRAL.NOMBRE, DATMEX.RPU, Right$([RPU],6) AS RPU1, [SALDOS ULTIMO 0].SumOfCHARGECREDIT

FROM (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN [SALDOS ULTIMO 0] ON DATMEX.[NUMER ID]=[SALDOS ULTIMO 0].NUMid

WHERE (((DATMEX.RPU)>0))

ORDER BY DATGRAL.NOMBRE;
```

###### `DATGRAL DATMEX TEL` (Update)

```sql
INSERT INTO TELEF ( ID, NOMBRE, TELE, SALDO )

SELECT DISTINCTROW [TELEFONOS FECHAS].ID, [TELEFONOS FECHAS].NOMBRE, [TELEFONOS FECHAS].TELEFONOS, [SALDOS ULTIMO TEL].SumOfCHARGECREDIT

FROM ([TELEFONOS FECHAS] INNER JOIN [SALDOS ULTIMO] ON [TELEFONOS FECHAS].ID = [SALDOS ULTIMO].NUMid) INNER JOIN [SALDOS ULTIMO TEL] ON [TELEFONOS FECHAS].ID = [SALDOS ULTIMO TEL].NUMid

ORDER BY [TELEFONOS FECHAS].NOMBRE;
```

###### `DATMEXRECIBOS` (Select)

```sql
SELECT DATMEX.[NUMER ID], DATMEX.CASA, DATMEX.IAGUA, DATMEX.ILUZ, DATMEX.IPREDIAL, DATMEX.ITEL, DATMEX.[DOC 1], DATMEX.[DOC 2]

FROM DATMEX

WHERE (((DATMEX.[NUMER ID])=[TECLEE CLIENTE]) AND ((DATMEX.CASA)=[TECLEE CASA]));
```

###### `DATOS CASAS` (Select)

```sql
SELECT DISTINCTROW DATMEX.[NUMER ID], DATMEX.CASA, DATGRAL.NOMBRE, DATMEX.DIRECCION

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

ORDER BY DATMEX.CASA;
```

###### `DELETE RECORD CASA` (Crosstab)

```sql
DELETE DISTINCTROW DATMEX.*, DATMEX.[NUMER ID], DATMEX.CASA

FROM DATMEX

WHERE (((DATMEX.[NUMER ID])=[TECLEE EL # DE CLIENTE]) AND ((DATMEX.CASA)=[TECLEE EL # CASA A BORRAR]));
```

###### `DELETE RECORDS DATGRAL` (Crosstab)

```sql
DELETE DISTINCTROW DATGRAL.*, DATGRAL.[NUM id]

FROM DATGRAL

WHERE (((DATGRAL.[NUM id])=[TECLEE EL # DE CLIENTE]));
```

###### `DELETE RECORDS DATMEX` (Crosstab)

```sql
DELETE DISTINCTROW DATMEX.*, DATMEX.[NUMER ID]

FROM DATMEX

WHERE (((DATMEX.[NUMER ID])=[TECLEE EL # DE CLIENTE]));
```

###### `DELETE RECORDS DATOS2` (Crosstab)

```sql
DELETE DISTINCTROW DATOS2.*, DATOS2.NUMid

FROM DATOS2

WHERE (((DATOS2.NUMid)=[TECLEE EL # DE CLIENTE]));
```

###### `DIRECCIONAWEBBORRA` (Crosstab)

```sql
DELETE DIRECCIONAWEB.ID

FROM DIRECCIONAWEB;
```

###### `DUEDATELUZYTEL` (Select)

```sql
SELECT [QUERY2 datos].[NUM id], [QUERY2 datos].[TYPE OF TRX], Max([QUERY2 datos].[DUE DATE]) AS [MáxDeDUE DATE]

FROM [QUERY2 datos]

GROUP BY [QUERY2 datos].[NUM id], [QUERY2 datos].[TYPE OF TRX]

HAVING ((([QUERY2 datos].[TYPE OF TRX])="electric")) OR ((([QUERY2 datos].[TYPE OF TRX])="telephone"));
```

###### `EDITA CHEQUE ALF` (Select)

```sql
SELECT DISTINCTROW DATGRAL.NOMBRE, DATOS2.NUMid, DATOS2.CONT, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE, DATOS2.CAP

FROM DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

WHERE (((DATOS2.CHEQUE)=[TECLEE NUM DE CHEQUE]))

ORDER BY DATGRAL.NOMBRE;
```

###### `EDITA CHEQUE COUNT` (Select)

```sql
SELECT DISTINCTROW DATOS2.CONT, DATOS2.NUMid, DATGRAL.NOMBRE, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE, DATOS2.CAP

FROM DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id] = DATOS2.NUMid

WHERE (((DATOS2.CHEQUE)=[TECLEE NUM DE CHEQUE]))

ORDER BY DATOS2.CAP;
```

###### `EDITA CHEQUE NUM` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, DATOS2.CONT, DATGRAL.NOMBRE, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE, DATOS2.CAP

FROM DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

WHERE (((DATOS2.CHEQUE)=[TECLEE NUM DE CHEQUE]))

ORDER BY DATOS2.NUMid;
```

###### `EDITA DATGRAL` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], *

FROM DATGRAL

WHERE (((DATGRAL.[NUM id])=[TECLEE NUMERO DE CLIENTE]));
```

###### `EDITA DATMEX` (Select)

```sql
SELECT DISTINCTROW DATMEX.[NUMER ID], *

FROM DATMEX

WHERE (((DATMEX.[NUMER ID])=[TECLEE NUMERO DE CLIENTE]));
```

###### `EDITA EDO CUENTA` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, DATOS2.DATE, *

FROM DATOS2

WHERE (((DATOS2.NUMid)=[TECLEE ESTADO DE CUENTA  A EDITAR]))

ORDER BY DATOS2.DATE;
```

###### `EDITA NO PAGO AGUA` (Select)

```sql
SELECT DISTINCTROW DATOS2.CONT, DATOS2.NUMid, DATGRAL.NOMBRE, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE, DATOS2.CAP, DATOS2.NOPAGO

FROM DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

WHERE (((DATOS2.[TYPE OF TRX])="WATER") AND ((DATOS2.NOPAGO)=-1))

ORDER BY DATOS2.CONT;
```

###### `EDITA NO PAGO LUZ` (Select)

```sql
SELECT DISTINCTROW DATOS2.CONT, DATOS2.NUMid, DATGRAL.NOMBRE, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE, DATOS2.CAP, DATOS2.NOPAGO, DATOS2.[DUE DATE]

FROM DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

WHERE (((DATOS2.[TYPE OF TRX])="ELECTRIC") AND ((DATOS2.NOPAGO)=-1))

ORDER BY DATOS2.CONT;
```

###### `EDITA NO PAGO PHONE` (Select)

```sql
SELECT DISTINCTROW DATOS2.CONT, DATOS2.NUMid, DATGRAL.NOMBRE, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE, DATOS2.CAP, DATOS2.NOPAGO, DATOS2.[DUE DATE]

FROM DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

WHERE (((DATOS2.[TYPE OF TRX])="TELEPHONE") AND ((DATOS2.NOPAGO)=-1))

ORDER BY DATOS2.CONT, DATOS2.REFER DESC;
```

###### `EFE` (Select)

```sql
SELECT EFECTIVO.CL, DATGRAL.NOMBRE, EFECTIVO.FECHA, EFECTIVO.MONTO, EFECTIVO.CONEPTO, EFECTIVO.[F DEPOSITO], EFECTIVO.FOLIO, EFECTIVO.MONEDAS, EFECTIVO.ELABORO

FROM EFECTIVO INNER JOIN DATGRAL ON EFECTIVO.CL=DATGRAL.[NUM id];
```

###### `EFE EDITA` (Select)

```sql
SELECT EFECTIVO.CL, DATGRAL.NOMBRE, EFECTIVO.FECHA, EFECTIVO.MONTO, EFECTIVO.CONEPTO, EFECTIVO.[F DEPOSITO], EFECTIVO.FOLIO, EFECTIVO.MONEDAS, EFECTIVO.ELABORO

FROM EFECTIVO INNER JOIN DATGRAL ON EFECTIVO.CL=DATGRAL.[NUM id];
```

###### `EFE EDITA FM3` (Select)

```sql
SELECT [EFECTIVO FM3].CL, DatosGral.FirstName, DatosGral.LastName, [LASTNAME] & ", " & [FIRSTNAME] AS [NAMES], [EFECTIVO FM3].FECHA, [EFECTIVO FM3].FEE, [EFECTIVO FM3].TAX, [EFECTIVO FM3].MULTA, [EFECTIVO FM3].CONEPTO, [EFECTIVO FM3].[F DEPOSITO], [EFECTIVO FM3].FOLIO, [EFECTIVO FM3].MONEDAS

FROM [EFECTIVO FM3] INNER JOIN DatosGral ON [EFECTIVO FM3].CL=DatosGral.MailingListID;
```

###### `EFE FM3` (Select)

```sql
SELECT [EFECTIVO FM3].CL, DatosGral1.FirstName, DatosGral1.LastName, [LASTNAME] & ", " & [FIRSTNAME] AS [NAMES], [EFECTIVO FM3].FECHA, [EFECTIVO FM3].FEE, [EFECTIVO FM3].TAX, [EFECTIVO FM3].MULTA, [EFECTIVO FM3].CONEPTO, [EFECTIVO FM3].[F DEPOSITO], [EFECTIVO FM3].FOLIO, [EFECTIVO FM3].MONEDAS

FROM [EFECTIVO FM3], DatosGral1;
```

###### `EFE PRINT` (Select)

```sql
SELECT EFECTIVO.CL, DATGRAL.NOMBRE, EFECTIVO.FECHA, EFECTIVO.MONTO, EFECTIVO.CONEPTO, EFECTIVO.[F DEPOSITO], EFECTIVO.FOLIO, EFECTIVO.MONEDAS, FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL]

FROM FECHAIF, EFECTIVO INNER JOIN DATGRAL ON EFECTIVO.CL=DATGRAL.[NUM id]

WHERE (((EFECTIVO.FECHA) Between [FECHA INICIAL] And [FECHA FINAL]));
```

###### `EFE PRINT FM3` (Select)

```sql
SELECT [EFECTIVO FM3].CL, DatosGral.FirstName, DatosGral.LastName, [LASTNAME] & ", " & [FIRSTNAME] AS [NAMES], [EFECTIVO FM3].FECHA, [EFECTIVO FM3].FEE, [EFECTIVO FM3].TAX, [EFECTIVO FM3].MULTA, [EFECTIVO FM3].CONEPTO, [EFECTIVO FM3].[F DEPOSITO], [EFECTIVO FM3].FOLIO, [EFECTIVO FM3].MONEDAS, FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL]

FROM FECHAIF, [EFECTIVO FM3] INNER JOIN DatosGral ON [EFECTIVO FM3].CL=DatosGral.MailingListID

WHERE ((([EFECTIVO FM3].FECHA) Between [FECHA INICIAL] And [FECHA FINAL]));
```

###### `EFE PRINT1` (Select)

```sql
SELECT EFECTIVO.CL, DATGRAL.NOMBRE, EFECTIVO.FECHA, EFECTIVO.MONTO, EFECTIVO.CONEPTO, EFECTIVO.[F DEPOSITO], EFECTIVO.FOLIO, EFECTIVO.MONEDAS, FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL]

FROM FECHAIF, EFECTIVO INNER JOIN DATGRAL ON EFECTIVO.CL=DATGRAL.[NUM id]

WHERE (((EFECTIVO.FECHA)=[FECHA INICIAL]));
```

###### `EFE1` (Select)

```sql
SELECT EFECTIVO.CL, DATGRAL.NOMBRE, EFECTIVO.FECHA, EFECTIVO.MONTO, EFECTIVO.CONEPTO, EFECTIVO.[F DEPOSITO], EFECTIVO.FOLIO, EFECTIVO.MONEDAS, EFECTIVO.ELABORO

FROM EFECTIVO INNER JOIN DATGRAL ON EFECTIVO.CL=DATGRAL.[NUM id]

WHERE (((EFECTIVO.FOLIO)=[TECLEE FOLIO]));
```

###### `EFE1 FM3` (Select)

```sql
SELECT [EFECTIVO FM3].CL, DatosGral1.FirstName, DatosGral1.LastName, [LASTNAME] & ", " & [FIRSTNAME] AS [NAMES], [EFECTIVO FM3].FECHA, [EFECTIVO FM3].FEE, [EFECTIVO FM3].TAX, [EFECTIVO FM3].MULTA, [FEE]+[TAX]+[MULTA] AS Expr1, [EFECTIVO FM3].CONEPTO, [EFECTIVO FM3].[F DEPOSITO], [EFECTIVO FM3].FOLIO, [EFECTIVO FM3].MONEDAS

FROM [EFECTIVO FM3], DatosGral1

WHERE ((([EFECTIVO FM3].FOLIO)=[TECLEE FOLIO]));
```

###### `ELCTR PAGO` (Select)

```sql
SELECT [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX], Last([DATOS FUTUROS].DATE) AS LastOfDATE, Last([DATOS FUTUROS].PERIOD) AS LastOfPERIOD, Last([DATOS FUTUROS].CHARGECREDIT) AS LastOfCHARGECREDIT

FROM [ELECTR TODO] INNER JOIN [DATOS FUTUROS] ON [ELECTR TODO].[NUMER ID]=[DATOS FUTUROS].NUMid

GROUP BY [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX]

HAVING ((([DATOS FUTUROS].[TYPE OF TRX])="ELECTRIC PAYMENT"));
```

###### `ELECTR PAGO FUTURO` (Update)

```sql
INSERT INTO [FUTURO LUZ] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, CHARGECREDIT )

SELECT [ELCTR PAGO].NUMid, [ELCTR PAGO].[TYPE OF TRX], [ELCTR PAGO].LastOfDATE, [ELCTR PAGO].LastOfPERIOD, [ELCTR PAGO].LastOfCHARGECREDIT

FROM [ELCTR PAGO]

ORDER BY [ELCTR PAGO].NUMid, [ELCTR PAGO].LastOfDATE;
```

###### `ELECTR SIN PAGO` (Update)

```sql
INSERT INTO [FUTURO LUZ] ( [NUM id] )

SELECT [ELECTR TODO Without Matching ELCTR PAGO].[NUMER ID]

FROM [ELECTR TODO Without Matching ELCTR PAGO];
```

###### `ELECTR TODO` (Select)

```sql
SELECT DATMEX.[NUMER ID], DATMEX.RUTA

FROM DATMEX

WHERE (((DATMEX.RUTA)>"0"));
```

###### `ELECTR TODO Without Matching ELCTR PAGO` (Select)

```sql
SELECT DISTINCTROW [ELECTR TODO].[NUMER ID]

FROM [ELECTR TODO] LEFT JOIN [ELCTR PAGO] ON [ELECTR TODO].[NUMER ID]=[ELCTR PAGO].NUMid

WHERE ((([ELCTR PAGO].NUMid) Is Null));
```

###### `EmployeeSales` (Select)

```sql
SELECT DISTINCT FECHAS.[FECHA 1], FECHAS.[FECHA 2], [QUERY POR FECHAS].DATE, *

FROM [QUERY POR FECHAS], FECHAS

WHERE ((([QUERY POR FECHAS].DATE) Between [FECHA 1] And [FECHA 2]));
```

###### `FALTANTES AGUA BORRA` (Crosstab)

```sql
DELETE [FALTANTES AGUA].AGUA

FROM [FALTANTES AGUA];
```

###### `FALTANTES DE AGUA` (Update)

```sql
INSERT INTO [FALTANTES AGUA] ( ID, NOMBRE, DIRECCION, AGUA, FirstName )

SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.DIRECCION, DATMEX.AGUA, TIT.FirstName

FROM TIT, DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.AGUA)>0))

ORDER BY DATMEX.AGUA;
```

###### `FALTANTES DE AGUA SINO` (Select)

```sql
SELECT [FALTANTES AGUA].AGUA, [FALTANTES AGUA].ID, [FALTANTES AGUA].NOMBRE, [FALTANTES AGUA].DIRECCION, [FALTANTES AGUA].FALTANTE, [FALTANTES AGUA].FirstName

FROM [FALTANTES AGUA]

WHERE ((([FALTANTES AGUA].FALTANTE)=-1));
```

###### `FALTANTES DE LUZ` (Update)

```sql
INSERT INTO [faltantes luz] ( ID, NOMBRE, DIRECCION, MEDIDOR, FirstName, RPU )

SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.DIRECCION, DATMEX.MEDIDOR, TIT.FirstName, DATMEX.RPU

FROM TIT, DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATMEX.MEDIDOR)>"0"))

ORDER BY DATMEX.MEDIDOR;
```

###### `FALTANTES DE LUZ SINO` (Select)

```sql
SELECT [faltantes luz].MEDIDOR, [faltantes luz].ID, [faltantes luz].NOMBRE, [faltantes luz].DIRECCION, [faltantes luz].FALTANTE, [faltantes luz].FirstName, [faltantes luz].RPU

FROM [faltantes luz]

WHERE ((([faltantes luz].FALTANTE)=-1));
```

###### `FALTANTES DE TEL` (Update)

```sql
INSERT INTO [FALTANTES TEL] ( ID, NOMBRE, DIRECCION, TEL, FirstName )

SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.DIRECCION, DATMEX.TELEFONO, TIT.FirstName

FROM TIT, DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATMEX.TELEFONO)>"0"))

ORDER BY DATMEX.TELEFONO;
```

###### `FALTANTES DE TEL SINO` (Select)

```sql
SELECT [FALTANTES TEL].TEL, [FALTANTES TEL].ID, [FALTANTES TEL].NOMBRE, [FALTANTES TEL].DIRECCION, [FALTANTES TEL].FALTANTE, [FALTANTES TEL].FirstName

FROM [FALTANTES TEL]

WHERE ((([FALTANTES TEL].FALTANTE)=-1));
```

###### `FALTANTES LUZ BORRA` (Crosstab)

```sql
DELETE [faltantes luz].MEDIDOR

FROM [faltantes luz];
```

###### `FALTANTES TEL BORRA` (Crosstab)

```sql
DELETE [FALTANTES TEL].TEL

FROM [FALTANTES TEL];
```

###### `FEE CARGO ANUAL A PESOS` (Update)

```sql
INSERT INTO [FEE ANUAL] ( NUMid, CHARGECREDIT )

SELECT DATGRAL.[NUM id], [FEE]*-19 AS Expr1

FROM DATGRAL;
```

###### `FEE FALTANTES` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.EMAIL, DATGRAL.STATUS

FROM DATGRAL

WHERE (((DATGRAL.STATUS)=0));
```

###### `FIDEICOMISO` (Select)

```sql
SELECT DISTINCTROW DATMEX.MANZANA, DATMEX.LOTE, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.VENCE1, DATMEX.VENCE2, DATMEX.BFEE, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT

FROM (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.MANZANA, DATMEX.LOTE, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.VENCE1, DATMEX.VENCE2, DATMEX.BFEE

HAVING (((DATMEX.VENCE1)>0))

ORDER BY DATMEX.MANZANA;
```

###### `FUTURO TODO AGUA` (Update)

```sql
INSERT INTO [FUTURO TODO] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, FACT, CHARGECREDIT )

SELECT [FUTURO AGUA].[NUM id] AS Expr1, [FUTURO AGUA].[TYPE OF TRX] AS Expr2, [FUTURO AGUA].DATE AS Expr3, [FUTURO AGUA].PERIOD AS Expr4, [FUTURO AGUA].FACT AS Expr5, [FUTURO AGUA].CHARGECREDIT AS Expr6

FROM [FUTURO AGUA]

ORDER BY [FUTURO AGUA].[NUM id], [FUTURO AGUA].[TYPE OF TRX];
```

###### `FUTURO TODO BFEE` (Update)

```sql
INSERT INTO [FUTURO TODO] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, FACT, CHARGECREDIT )

SELECT [FUTURO BFEE].[NUM id] AS Expr1, [FUTURO BFEE].[TYPE OF TRX] AS Expr2, [FUTURO BFEE].DATE AS Expr3, [FUTURO BFEE].PERIOD AS Expr4, [FUTURO BFEE].FACT AS Expr5, [FUTURO BFEE].CHARGECREDIT AS Expr6

FROM [FUTURO BFEE];
```

###### `FUTURO TODO LUZ` (Update)

```sql
INSERT INTO [FUTURO TODO] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, FACT, CHARGECREDIT )

SELECT [FUTURO LUZ].[NUM id] AS Expr1, [FUTURO LUZ].[TYPE OF TRX] AS Expr2, [FUTURO LUZ].DATE AS Expr3, [FUTURO LUZ].PERIOD AS Expr4, [FUTURO LUZ].FACT AS Expr5, [FUTURO LUZ].CHARGECREDIT AS Expr6

FROM [FUTURO LUZ]

ORDER BY [FUTURO LUZ].[NUM id], [FUTURO LUZ].[TYPE OF TRX];
```

###### `FUTURO TODO MANT` (Update)

```sql
INSERT INTO [FUTURO TODO] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, FACT, CHARGECREDIT )

SELECT [FUTURO MANT].[NUM id] AS Expr1, [FUTURO MANT].[TYPE OF TRX] AS Expr2, [FUTURO MANT].DATE AS Expr3, [FUTURO MANT].PERIOD AS Expr4, [FUTURO MANT].FACT AS Expr5, [FUTURO MANT].CHARGECREDIT AS Expr6

FROM [FUTURO MANT]

ORDER BY [FUTURO MANT].[NUM id], [FUTURO MANT].DATE;
```

###### `FUTURO TODO PRED` (Update)

```sql
INSERT INTO [FUTURO TODO] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, FACT, CHARGECREDIT )

SELECT [FUTURO PRED].[NUM id] AS Expr1, [FUTURO PRED].[TYPE OF TRX] AS Expr2, [FUTURO PRED].DATE AS Expr3, [FUTURO PRED].PERIOD AS Expr4, [FUTURO PRED].FACT AS Expr5, [FUTURO PRED].CHARGECREDIT AS Expr6

FROM [FUTURO PRED];
```

###### `FUTURO TODO TEL` (Update)

```sql
INSERT INTO [FUTURO TODO] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, FACT, CHARGECREDIT )

SELECT [FUTURO TEL].[NUM id] AS Expr1, [FUTURO TEL].[TYPE OF TRX] AS Expr2, [FUTURO TEL].DATE AS Expr3, [FUTURO TEL].PERIOD AS Expr4, [FUTURO TEL].FACT AS Expr5, [FUTURO TEL].CHARGECREDIT AS Expr6

FROM [FUTURO TEL]

ORDER BY [FUTURO TEL].[NUM id], [FUTURO TEL].[TYPE OF TRX];
```

###### `FUTURO TODO ZONA` (Update)

```sql
INSERT INTO [FUTURO TODO] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, FACT, CHARGECREDIT )

SELECT [FUTURO ZONA].[NUM id] AS Expr1, [FUTURO ZONA].[TYPE OF TRX] AS Expr2, [FUTURO ZONA].DATE AS Expr3, [FUTURO ZONA].PERIOD AS Expr4, [FUTURO ZONA].FACT AS Expr5, [FUTURO ZONA].CHARGECREDIT AS Expr6

FROM [FUTURO ZONA];
```

###### `Find duplicates for DATOS2` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, TIT.FirstName, *

FROM DATOS2, TIT

WHERE (((DATOS2.NUMid) In (SELECT [NUMid] FROM [DATOS2] As Tmp GROUP BY [NUMid],[DATE],[REFER],[PERIOD],[TYPE OF TRX],[CHARGECREDIT],[CHEQUE] HAVING Count(*)>1  And [DATE] = [DATOS2].[DATE] And [REFER] = [DATOS2].[REFER] And [PERIOD] = [DATOS2].[PERIOD] And [TYPE OF TRX] = [DATOS2].[TYPE OF TRX] And [CHARGECREDIT] = [DATOS2].[CHARGECREDIT] And [CHEQUE] = [DATOS2].[CHEQUE])))

ORDER BY DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT;
```

###### `GAS` (Select)

```sql
SELECT DISTINCTROW DATMEX.GAS, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.GAS, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, TIT.FirstName

HAVING (((DATMEX.GAS)>" "))

ORDER BY DATMEX.GAS;
```

###### `IVA 2015 CREA` (Update)

```sql
INSERT INTO [IVA 2015] ( [NUM id], CASA, NOMBRE, DIRECCION, FEE, VALORU, VALIVA )

SELECT DISTINCT DATGRAL.[NUM id], DATMEX.CASA, DATGRAL.NOMBRE, DATMEX.DIRECCION, DATGRAL.FEE, ([FEE]/-1.16)*-1 AS VALORU, [FEE]-[VALORU] AS VALIVA

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATGRAL.[NUM id])=[TECLEE ID CREAR RECIBO]) AND ((DATMEX.CASA)<2) AND ((DATGRAL.FEE)>0))

ORDER BY DATGRAL.[NUM id];
```

###### `LOCALIZA PAGO AGUA` (Select)

```sql
SELECT DATOS2.NUMid, DATOS2.DATE, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT

FROM DATOS2

WHERE (((DATOS2.DATE) Like [TECLEE FECHA ??/??/??]) AND ((DATOS2.[TYPE OF TRX])="WATER PAYMENT")) OR (((DATOS2.[TYPE OF TRX])="WATER DEPOSIT"));
```

###### `LOCALIZA PAGO LUZ` (Select)

```sql
SELECT DATOS2.NUMid, DATOS2.DATE, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT

FROM DATOS2

WHERE (((DATOS2.DATE) Like [TECLEE FECHA ??/??/??]) AND ((DATOS2.[TYPE OF TRX])="ELECTRIC PAYMENT"));
```

###### `LOCALIZA PAGO TEL` (Select)

```sql
SELECT DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT

FROM DATOS2

WHERE (((DATOS2.DATE) Like [TECLEE FECHA ??/??/??]) AND ((DATOS2.[TYPE OF TRX])="TELEPHONE"));
```

###### `LOCALIZA PARA BILLING` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.CODIGO, DATGRAL.TIPO, SALDOS.SumOfCHARGECREDIT, [TIPO]*[TIPO DE CAMBIO] AS Expr1, [SumOfCHARGECREDIT]-([TIPO]*[TIPO DE CAMBIO]) AS Expr2

FROM [TIPO CAMBIO], (DATGRAL INNER JOIN SALDOS ON DATGRAL.[NUM id]=SALDOS.NUMid) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.CODIGO, DATGRAL.TIPO, SALDOS.SumOfCHARGECREDIT, [TIPO]*[TIPO DE CAMBIO], [SumOfCHARGECREDIT]-([TIPO]*[TIPO DE CAMBIO])

HAVING ((([SumOfCHARGECREDIT]-([TIPO]*[TIPO DE CAMBIO]))<0));
```

###### `LOCALIZA PARA BILLING LISTADO` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.TELUSA, DATMEX.TELEFONO, DATGRAL.TIPO, SALDOS.SumOfCHARGECREDIT, [TIPO]*[TIPO DE CAMBIO] AS Expr1, [SumOfCHARGECREDIT]-([TIPO]*[TIPO DE CAMBIO]) AS Expr2, TIT.FirstName

FROM [TIPO CAMBIO], TIT, ((DATGRAL INNER JOIN SALDOS ON DATGRAL.[NUM id]=SALDOS.NUMid) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid) INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

GROUP BY DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.TELUSA, DATMEX.TELEFONO, DATGRAL.TIPO, SALDOS.SumOfCHARGECREDIT, [TIPO]*[TIPO DE CAMBIO], [SumOfCHARGECREDIT]-([TIPO]*[TIPO DE CAMBIO]), TIT.FirstName

HAVING ((([SumOfCHARGECREDIT]-([TIPO]*[TIPO DE CAMBIO]))<0));
```

###### `LOCALIZA PARA BILLING WITHOUT` (Update)

```sql
INSERT INTO [PARA BILLING SIN] ( [NUM id] )

SELECT DISTINCTROW [LOCALIZA PARA BILLING].[NUM id]

FROM [LOCALIZA PARA BILLING] LEFT JOIN [LOCALIZA ULTIMO PAGO DATOS] ON [LOCALIZA PARA BILLING].[NUM id]=[LOCALIZA ULTIMO PAGO DATOS].NUMid

WHERE ((([LOCALIZA ULTIMO PAGO DATOS].NUMid) Is Null));
```

###### `LOCALIZA PARA BILLING WITHOUT 2` (Update)

```sql
INSERT INTO [PARA BILLING SIN] ( [NUM id] )

SELECT DISTINCTROW [LOCALIZA PARA BILLING].[NUM id]

FROM [LOCALIZA PARA BILLING] LEFT JOIN [LOCALIZA ULTIMO PAGO DATOS] ON [LOCALIZA PARA BILLING].[NUM id]=[LOCALIZA ULTIMO PAGO DATOS].NUMid

WHERE ((([LOCALIZA ULTIMO PAGO DATOS].NUMid) Is Null));
```

###### `LOCALIZA PARA BILLING Without Matching LOCALIZA ULTIMO PAGO DATO` (Update)

```sql
INSERT INTO [PARA BILLING SIN] ( [NUM id] )

SELECT DISTINCTROW [LOCALIZA PARA BILLING].[NUM id]

FROM [LOCALIZA PARA BILLING] LEFT JOIN [LOCALIZA ULTIMO PAGO DATOS] ON [LOCALIZA PARA BILLING].[NUM id]=[LOCALIZA ULTIMO PAGO DATOS].NUMid

WHERE ((([LOCALIZA ULTIMO PAGO DATOS].NUMid) Is Null));
```

###### `LOCALIZA PARA BILLING2` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.CODIGO, DATGRAL.TIPO, SALDOS.SumOfCHARGECREDIT, [TIPO]*[TIPO DE CAMBIO] AS Expr1, [SumOfCHARGECREDIT]-([TIPO]*[TIPO DE CAMBIO]) AS Expr2

FROM [TIPO CAMBIO], (DATGRAL INNER JOIN SALDOS ON DATGRAL.[NUM id]=SALDOS.NUMid) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.CODIGO, DATGRAL.TIPO, SALDOS.SumOfCHARGECREDIT, [TIPO]*[TIPO DE CAMBIO], [SumOfCHARGECREDIT]-([TIPO]*[TIPO DE CAMBIO])

HAVING ((([SumOfCHARGECREDIT]-([TIPO]*[TIPO DE CAMBIO]))<0));
```

###### `LOCALIZA ULTIMO PAGO DATOS` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, DATOS2.[TYPE OF TRX], Last(DATOS2.DATE) AS LastOfDATE

FROM DATOS2

GROUP BY DATOS2.NUMid, DATOS2.[TYPE OF TRX]

HAVING (((DATOS2.[TYPE OF TRX])="PAYMENT THANK YOU"));
```

###### `LUZ` (Select)

```sql
SELECT DISTINCTROW DATMEX.RUTA, DATMEX.MEDIDOR, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.RUTA, DATMEX.MEDIDOR, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, TIT.FirstName

HAVING (((DATMEX.RUTA)>" "))

ORDER BY DATMEX.RUTA;
```

###### `LUZ PAR O IMPAR` (Select)

```sql
SELECT DATMEX.RUTA, DATMEX.[LUZ TIPO], DATMEX.[NUMER ID], DATMEX.MEDIDOR

FROM DATMEX

WHERE (((DATMEX.RUTA)>"") AND ((DATMEX.[LUZ TIPO])=[TECLEE TIPO LUZ "PAR O IMPAR"]));
```

###### `LUZ PARA EVALUAR` (Select)

```sql
SELECT DATMEX.RUTA, [LUZ EVALUA].RUTAS, Left$([RUTA],3) AS Expr1, DATMEX.[NUMER ID], DATGRAL.NOMBRE, DATMEX.DIRECCION, [LUZ EVALUA].PERIODO, DATMEX.MEDIDOR, DATMEX.RPU, Right$([RPU],6) AS Expr2

FROM [LUZ EVALUA], DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.RUTA)>" ") AND ((Left$([RUTA],3))=[RUTAS]));
```

###### `LUZ PARA EVALUAR NO COINCIDE` (Select)

```sql
SELECT [LUZ PARA EVALUAR].Expr2, [LUZ PARA EVALUAR].[NUMER ID], [LUZ PARA EVALUAR].NOMBRE, [LUZ PARA EVALUAR].RUTAS, [LUZ PARA EVALUAR].DIRECCION, [LUZ PARA EVALUAR].PERIODO

FROM [LUZ PARA EVALUAR] LEFT JOIN [LUZ PARA EVALUAR2] ON [LUZ PARA EVALUAR].Expr2=[LUZ PARA EVALUAR2].REFER

WHERE ((([LUZ PARA EVALUAR2].REFER) Is Null));
```

###### `LUZ PARA EVALUAR2` (Select)

```sql
SELECT DATOS2.NUMid, DATOS2.[TYPE OF TRX], DATOS2.PERIOD, DATOS2.REFER

FROM DATOS2, [LUZ EVALUA]

WHERE (((DATOS2.[TYPE OF TRX])="ELECTRIC PAYMENT") AND ((DATOS2.PERIOD)=[PERIODO]));
```

###### `LUZ TIPO` (Select)

```sql
SELECT DATMEX.[NUMER ID], DATMEX.RUTA, DATMEX.[LUZ TIPO]

FROM DATMEX

WHERE (((DATMEX.RUTA) Like "956*"));
```

###### `LUZ TIPO DETECTA MES` (Select)

```sql
SELECT DATGRAL.[NUM id], DATMEX.MEDIDOR, DATMEX.[LUZ TIPO], datos2.DATE, datos2.REFER, datos2.[TYPE OF TRX], DATMEX.[LUZ TIPO], DatePart("m",[date]) AS Expr2

FROM (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]) INNER JOIN datos2 ON DATGRAL.[NUM id] = datos2.NUMid

WHERE (((DATMEX.MEDIDOR)>"0") AND ((datos2.[TYPE OF TRX])="electric"));
```

###### `LUZ1 TODOS` (Update)

```sql
INSERT INTO [LUZ TODOS] ( ID, NOMBRE, DIRECCION, CASA, RUTA, MEDIDOR, RPU )

SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.DIRECCION, DATMEX.CASA, DATMEX.RUTA, DATMEX.MEDIDOR, DATMEX.RPU

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID];
```

###### `LUZ2 TODOS` (Update)

```sql
INSERT INTO [LUZ TODOS] ( ID, NOMBRE, DIRECCION, CASA, RUTA, MEDIDOR, RPU )

SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.DIRECCION, DATMEX.CASA, DATMEX.RUTA2, DATMEX.MEDIDOR2, DATMEX.RPU2

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID];
```

###### `LUZ3 TODOS` (Update)

```sql
INSERT INTO [LUZ TODOS] ( ID, NOMBRE, DIRECCION, CASA, RUTA, MEDIDOR, RPU )

SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.DIRECCION, DATMEX.CASA, DATMEX.RUTA3, DATMEX.MEDIDOR3, DATMEX.RPU3

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID];
```

###### `LUZL` (Select)

```sql
SELECT DISTINCTROW DATMEX.RUTA, DATMEX.MEDIDOR, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.RUTA, DATMEX.MEDIDOR, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, TIT.FirstName

HAVING (((DATMEX.RUTA)>" "))

ORDER BY DATMEX.RUTA;
```

###### `MANT` (Select)

```sql
SELECT DATMEX.[NUMER ID], DATMEX.MANT

FROM DATMEX

WHERE (((DATMEX.MANT)>""));
```

###### `MANT PAGO` (Select)

```sql
SELECT [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX], Last([DATOS FUTUROS].DATE) AS LastOfDATE, Last([DATOS FUTUROS].PERIOD) AS LastOfPERIOD, Last([DATOS FUTUROS].CHARGECREDIT) AS LastOfCHARGECREDIT

FROM MANT INNER JOIN [DATOS FUTUROS] ON MANT.[NUMER ID]=[DATOS FUTUROS].NUMid

GROUP BY [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX]

HAVING ((([DATOS FUTUROS].[TYPE OF TRX])="SADM"));
```

###### `MANT PAGO FUTURO` (Update)

```sql
INSERT INTO [FUTURO MANT] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, CHARGECREDIT )

SELECT [MANT PAGO].NUMid, [MANT PAGO].[TYPE OF TRX], [MANT PAGO].LastOfDATE, [MANT PAGO].LastOfPERIOD, [MANT PAGO].LastOfCHARGECREDIT

FROM [MANT PAGO];
```

###### `MANT SIN PAGO` (Update)

```sql
INSERT INTO [FUTURO MANT] ( [NUM id] )

SELECT [MANT Without Matching MANT PAGO].[NUMER ID]

FROM [MANT Without Matching MANT PAGO];
```

###### `MANT Without Matching MANT PAGO` (Select)

```sql
SELECT DISTINCTROW MANT.[NUMER ID]

FROM MANT LEFT JOIN [MANT PAGO] ON MANT.[NUMER ID]=[MANT PAGO].NUMid

WHERE ((([MANT PAGO].NUMid) Is Null));
```

###### `MANTENIMIENTO` (Select)

```sql
SELECT DISTINCTROW DATMEX.MANZANA, DATGRAL.[NUM id], DATMEX.LOTE, DATGRAL.NOMBRE, DATMEX.CASA, SALDOS.SumOfCHARGECREDIT, DATMEX.SADM1, DATMEX.SADM2, DATMEX.SADM3, DATMEX.SADM4, DATMEX.MANT, DATMEX.[MANT$], TIT.FirstName

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN SALDOS ON DATMEX.[NUMER ID]=SALDOS.NUMid

WHERE (((DATMEX!SADM1)=["FECHA DE MANTENIMIENTO MM/DD"])) Or (((DATMEX!SADM2)=["FECHA DE MANTENIMIENTO MM/DD"])) Or (((DATMEX!SADM3)=["FECHA DE MANTENIMIENTO MM/DD"])) Or (((DATMEX!SADM4)=["FECHA DE MANTENIMIENTO MM/DD"]))

ORDER BY DATMEX.MANZANA;
```

###### `NEWREMIND` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS

FROM DATGRAL INNER JOIN MAIL ON DATGRAL.[NUM id]=MAIL.CLIENTE;
```

###### `NUMERICO` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, SALDOS.SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, DATGRAL INNER JOIN SALDOS ON DATGRAL.[NUM id]=SALDOS.NUMid

ORDER BY DATGRAL.[NUM id];
```

###### `NUMERICO con email` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, SALDOS.SumOfCHARGECREDIT, TIT.FirstName, DATGRAL.EMAIL

FROM TIT, DATGRAL INNER JOIN SALDOS ON DATGRAL.[NUM id]=SALDOS.NUMid

WHERE (((DATGRAL.EMAIL) Is Null))

ORDER BY DATGRAL.[NUM id];
```

###### `ORDEN AGUA` (Select)

```sql
SELECT DISTINCTROW DATMEX.AGUA, DATMEX.DIAGUA, *

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.AGUA)>0))

ORDER BY DATMEX.AGUA;
```

###### `ORDEN RUTA` (Select)

```sql
SELECT DISTINCTROW DATMEX.RUTA, *

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

ORDER BY DATMEX.RUTA;
```

###### `OTROS DATOS` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.[FECHA NACIMIENTO], DATGRAL.[ESTADO DE CUENTA EN], DATGRAL.[CONTROL FM3]

FROM DATGRAL;
```

###### `PAGO AGUA NO` (Select)

```sql
SELECT DISTINCTROW AGUA.[NUM id], AGUA.NOMBRE, AGUA.CASA, AGUA.DIRECCION, AGUA.AGUA, AGUA.SumOfCHARGECREDIT

FROM AGUA LEFT JOIN [LOCALIZA PAGO AGUA] ON AGUA.[NUM id]=[LOCALIZA PAGO AGUA].NUMid

WHERE ((([LOCALIZA PAGO AGUA].NUMid) Is Null));
```

###### `PAGO LUZ NO` (Select)

```sql
SELECT DISTINCTROW LUZ.[NUM id], LUZ.NOMBRE, LUZ.CASA, LUZ.MEDIDOR, LUZ.RUTA, LUZ.SumOfCHARGECREDIT

FROM LUZ LEFT JOIN [LOCALIZA PAGO LUZ] ON LUZ.[NUM id]=[LOCALIZA PAGO LUZ].NUMid

WHERE ((([LOCALIZA PAGO LUZ].NUMid) Is Null));
```

###### `PAGO TEL NO` (Select)

```sql
SELECT DISTINCTROW [TELEFONO TODO].[NUM id], [TELEFONO TODO].NOMBRE, [TELEFONO TODO].CASA, [TELEFONO TODO].TELEFONO, [TELEFONO TODO].FV, [TELEFONO TODO].SumOfCHARGECREDIT

FROM [TELEFONO TODO] LEFT JOIN [LOCALIZA PAGO TEL] ON [TELEFONO TODO].[NUM id]=[LOCALIZA PAGO TEL].NUMid

WHERE ((([LOCALIZA PAGO TEL].NUMid) Is Null));
```

###### `PAGOSPROPANO` (Update)

```sql
INSERT INTO PROPANO ( NUMid, NOMBRE, DIRECCION, COLONIA, CIUDAD, ESTADO, PAIS, CODIGO, TELUSA, FAX, CLIENTEDESDE, [DATE], TYPEOFTRX, REFER, PERIOD, CHARGECREDIT, MENSAJE, EMAIL, fdecreacion, TIPODECAMBIO, TIPO, NOPAGO )

SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.CODIGO, DATGRAL.TELUSA, DATGRAL.FAX, DATGRAL.[CLIENTE DESDE], DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, [TIPO CAMBIO].MENSAJE, DATGRAL.EMAIL, Now() AS [F DE CREACION], [TIPO CAMBIO].[TIPO DE CAMBIO], DATGRAL.TIPO, DATOS2.NOPAGO

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id] = DATOS2.NUMid

WHERE (((DATOS2.DATE)=Date()) AND ((DATOS2.[TYPE OF TRX])="GAS REFILL"))

ORDER BY DATGRAL.[NUM id];
```

###### `PAGOSPROPANOBORRA` (Crosstab)

```sql
DELETE PROPANO.NUMid

FROM PROPANO;
```

###### `PARA BILLING AP DATOS` (Update)

```sql
INSERT INTO billing ( NUMid, [DATE], REFER, PERIOD, [TYPE OF TRX], CHARGECREDIT )

SELECT DISTINCT DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT

FROM ([PARA BILLING SIN] INNER JOIN DATOS2 ON [PARA BILLING SIN].[NUM id]=DATOS2.NUMid) INNER JOIN [PARA BILLING1] ON [PARA BILLING SIN].[NUM id]=[PARA BILLING1].[NUM id]

GROUP BY DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT

ORDER BY DATOS2.NUMid, DATOS2.DATE;
```

###### `PARA BILLING AP DATOS2` (Update)

```sql
INSERT INTO billing ( NUMid, [DATE], REFER, PERIOD, [TYPE OF TRX], CHARGECREDIT )

SELECT DISTINCT DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT

FROM ([PARA BILLING SIN] INNER JOIN DATOS2 ON [PARA BILLING SIN].[NUM id]=DATOS2.NUMid) INNER JOIN [PARA BILLING2] ON [PARA BILLING SIN].[NUM id]=[PARA BILLING2].[NUM id]

GROUP BY DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT

ORDER BY DATOS2.NUMid, DATOS2.DATE;
```

###### `PARA BILLING11` (Select)

```sql
SELECT [PARA BILLING1].[NUM id]

FROM [PARA BILLING1];
```

###### `PARA BILLINGD` (Select)

```sql
SELECT [PARA BILLING2].[NUM id], [PARA BILLING2].[$]

FROM [PARA BILLING2];
```

###### `PARA MAIL` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATMEX.CASA, DATMEX.DIRECCION

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATGRAL.[NUM id])=[TECLEE EL NUM DE CLIENTE]));
```

###### `PARA MAIL POR NOMBRE` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATMEX.CASA, DATMEX.DIRECCION

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATGRAL.NOMBRE) Like [TECLEE NOMBRE]));
```

###### `PARA TELEFONO` (Select)

```sql
SELECT DISTINCTROW DATGRAL.NOMBRE, DATMEX.[NUMER ID], DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATMEX.CASA, DATMEX.TELEFONO, *

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.TELEFONO)>"0"))

ORDER BY DATGRAL.NOMBRE;
```

###### `PARA ZONA FEDERAL CARTA` (Append)

```sql
SELECT DISTINCTROW DATGRAL.NOMBRE, DATMEX.ZONA, [ZFED]/7.7 AS Expr1, * INTO [PARA ZONA FED]

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.ZONA)>"0"))

ORDER BY DATGRAL.NOMBRE;
```

###### `PARACASA` (Select)

```sql
SELECT DATMEX.[NUMER ID], Max(DATMEX.CASA) AS MáxDeCASA

FROM DATMEX

GROUP BY DATMEX.[NUMER ID];
```

###### `PARACASADIR` (Select)

```sql
SELECT DATMEX.[NUMER ID], DATMEX.CASA, DATMEX.CASA AS MáxDeCASA, DATMEX.DIRECCION, DUEDATELUZYTEL.[TYPE OF TRX], DUEDATELUZYTEL.[MáxDeDUE DATE]

FROM DATMEX INNER JOIN DUEDATELUZYTEL ON DATMEX.[NUMER ID] = DUEDATELUZYTEL.[NUM id]

ORDER BY DATMEX.[NUMER ID], DATMEX.CASA, DATMEX.CASA;
```

###### `PRED` (Select)

```sql
SELECT DATMEX.[NUMER ID], DATMEX.CLAVE

FROM DATMEX

WHERE (((DATMEX.CLAVE)>""));
```

###### `PRED PAGO` (Select)

```sql
SELECT [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX], Last([DATOS FUTUROS].DATE) AS LastOfDATE, Last([DATOS FUTUROS].PERIOD) AS LastOfPERIOD, Last([DATOS FUTUROS].CHARGECREDIT) AS LastOfCHARGECREDIT

FROM PRED INNER JOIN [DATOS FUTUROS] ON PRED.[NUMER ID] = [DATOS FUTUROS].NUMid

GROUP BY [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX]

HAVING ((([DATOS FUTUROS].[TYPE OF TRX])="TAXES"));
```

###### `PRED PAGO FUTURO` (Update)

```sql
INSERT INTO [FUTURO PRED] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, CHARGECREDIT )

SELECT [PRED PAGO].NUMid, [PRED PAGO].[TYPE OF TRX], [PRED PAGO].LastOfDATE, [PRED PAGO].LastOfPERIOD, [PRED PAGO].LastOfCHARGECREDIT

FROM [PRED PAGO];
```

###### `PRED SIN PAGO` (Update)

```sql
INSERT INTO [FUTURO PRED] ( [NUM id] )

SELECT [PRED Without Matching PRED PAGO].[NUMER ID]

FROM [PRED Without Matching PRED PAGO];
```

###### `PRED Without Matching PRED PAGO` (Select)

```sql
SELECT DISTINCTROW PRED.[NUMER ID]

FROM PRED LEFT JOIN [PRED PAGO] ON PRED.[NUMER ID]=[PRED PAGO].NUMid

WHERE ((([PRED PAGO].NUMid) Is Null));
```

###### `PROFILE DELETE` (Crosstab)

```sql
DELETE PROFILE.NUMERID

FROM PROFILE;
```

###### `QUERY ANALISIS EDO C` (Select)

```sql
SELECT DISTINCTROW DATOS2.DATE, *

FROM DATOS2

ORDER BY DATOS2.DATE;
```

###### `QUERY BORRA EDO VARIOS` (Crosstab)

```sql
DELETE [PARA EDO].[NUM id]

FROM [PARA EDO];
```

###### `QUERY CLAVE` (Select)

```sql
SELECT DISTINCTROW DATOS2.DATE, *

FROM DATOS2

ORDER BY DATOS2.DATE;
```

###### `QUERY DATOS GRAL Y MEX` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], *

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY DATOS POR NOMBRE` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATMEX.CASA, DATGRAL.NOMBRE, *

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

ORDER BY DATGRAL.[NUM id], DATMEX.CASA;
```

###### `QUERY DATOS TODOS` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATMEX.CASA, SALDOS.SumOfCHARGECREDIT, DATGRAL.[ID SEG], *

FROM [TIPO CAMBIO], (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN SALDOS ON DATMEX.[NUMER ID]=SALDOS.NUMid

ORDER BY DATGRAL.[NUM id], DATMEX.CASA;
```

###### `QUERY DATOS TODOS POR NUMERO` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATMEX.CASA, SALDOS.SumOfCHARGECREDIT, *

FROM [TIPO CAMBIO], (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN SALDOS ON DATMEX.[NUMER ID]=SALDOS.NUMid

WHERE (((DATGRAL.[NUM id])=[TECLEE EL NUMERO DEL CLIENTE]))

ORDER BY DATGRAL.[NUM id], DATMEX.CASA;
```

###### `QUERY DATOS2` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATOS2.NOPAGO

FROM DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid;
```

###### `QUERY DATOS2 COUNT` (Select)

```sql
SELECT DISTINCTROW DATOS2.CONT, DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE, DATGRAL.[NUM id], DATGRAL.NOMBRE, TIT.FirstName

FROM TIT, DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

WHERE (((DATOS2.CHEQUE)=[TECLEE NUM DE CHEQUE]))

ORDER BY DATOS2.CONT;
```

###### `QUERY DATOS2NO PAGO` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATOS2.NOPAGO

FROM DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid;
```

###### `QUERY LUZ` (Select)

```sql
SELECT DISTINCTROW DATOS2.DATE, *

FROM DATOS2

ORDER BY DATOS2.DATE;
```

###### `QUERY PARA PEDIR DATOS` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [MANT$]/[TIPO DE CAMBIO] AS Expr1, [ZFED]/[TIPO DE CAMBIO] AS Expr2, [PREDIAL]/[TIPO DE CAMBIO] AS Expr3, [BFEE]/[TIPO DE CAMBIO] AS Expr4, *

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATGRAL.NOMBRE)>" "))

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY POR FECHAS` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE

FROM DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATGRAL.[NUM id], DATGRAL.NOMBRE, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE

ORDER BY DATOS2.DATE;
```

###### `QUERY RECIBO` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATOS2.NUMid, DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], SALDOS.SumOfCHARGECREDIT

FROM [TIPO CAMBIO], (DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid) INNER JOIN SALDOS ON DATGRAL.[NUM id]=SALDOS.NUMid

WHERE (((DATGRAL.[NUM id])=[TECLEE NUMERO DE CLIENTE]))

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY RECIBO1` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATOS2.NUMid, DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO]

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY RECIBO1noemail` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATOS2.NUMid, DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], DATGRAL.EMAIL, DATGRAL.FEE

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY TEL` (Select)

```sql
SELECT DISTINCTROW DATOS2.DATE, *

FROM DATOS2

ORDER BY DATOS2.DATE;
```

###### `QUERY2 DATOS 2001` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, datos21.NUMid, datos21.DATE, datos21.[TYPE OF TRX], datos21.REFER, datos21.PERIOD, datos21.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], [TIPO CAMBIO].MENSAJE

FROM [TIPO CAMBIO], DATGRAL INNER JOIN datos21 ON DATGRAL.[NUM id] = datos21.NUMid

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY2 DATOS 2022` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, datos22.NUMid, datos22.DATE, datos22.[TYPE OF TRX], datos22.REFER, datos22.PERIOD, datos22.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], [TIPO CAMBIO].MENSAJE

FROM [TIPO CAMBIO], DATGRAL INNER JOIN datos22 ON DATGRAL.[NUM id] = datos22.NUMid

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY2 DATOS INGLES VARIOS` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[ESTADO DE CUENTA EN], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATOS2.NUMid, DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], [TIPO CAMBIO].MENSAJE, DATGRAL.EMAIL, DATOS2.NOPAGO

FROM [TIPO CAMBIO], (DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid) INNER JOIN [PARA EDO] ON DATGRAL.[NUM id]=[PARA EDO].[NUM id]

WHERE (((DATGRAL.[ESTADO DE CUENTA EN])=False))

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY2 datos` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATOS2.NUMid, DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], [TIPO CAMBIO].MENSAJE, DATGRAL.EMAIL, DATOS2.NOPAGO, DATOS2.[DUE DATE]

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id] = DATOS2.NUMid

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY2 datos INGLES` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[ESTADO DE CUENTA EN], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATOS2.NUMid, DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], [TIPO CAMBIO].MENSAJE, DATOS2.NOPAGO, DATGRAL.EMAIL, DATOS2.[DUE DATE]

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id] = DATOS2.NUMid

WHERE (((DATGRAL.[ESTADO DE CUENTA EN])=False))

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY2 datos INGLES NO EMAIL` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[ESTADO DE CUENTA EN], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATOS2.NUMid, DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], [TIPO CAMBIO].MENSAJE, DATGRAL.EMAIL, DATOS2.NOPAGO

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

WHERE (((DATGRAL.[ESTADO DE CUENTA EN])=False) AND ((DATGRAL.EMAIL) Is Null))

ORDER BY DATGRAL.[NUM id];
```

###### `QUERY2 datos español` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[ESTADO DE CUENTA EN], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATOS2.NUMid, DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, DATGRAL.TIPO, [TIPO CAMBIO].[TIPO DE CAMBIO], [TIPO CAMBIO].MENSAJE, [TYPE OF TRX].ESPAÑOL

FROM [TIPO CAMBIO], (DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid) INNER JOIN [TYPE OF TRX] ON DATOS2.[TYPE OF TRX]=[TYPE OF TRX].[TYPE OF TRX]

WHERE (((DATGRAL.[ESTADO DE CUENTA EN])=True))

ORDER BY DATGRAL.[NUM id];
```

###### `RECIBO IVA` (Select)

```sql
SELECT DISTINCT DATGRAL.[NUM id], DATMEX.CASA, DATGRAL.NOMBRE, DATMEX.DIRECCION, DATGRAL.FEE, ([FEE]/-1.16)*-1 AS VALORU, [FEE]-[VALORU] AS VALIVA

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATMEX.CASA)<2) AND ((DATGRAL.FEE)>0))

ORDER BY DATGRAL.[NUM id];
```

###### `REPORTE POR CHEQUE` (Select)

```sql
SELECT DISTINCTROW [QUERY DATOS2].CHEQUE, *

FROM [QUERY DATOS2], TIT

WHERE ((([QUERY DATOS2].CHEQUE)=[TECLEE NUM DE CHEQUE]));
```

###### `REPORTE POR CHEQUE PARA ALFA` (Select)

```sql
SELECT DISTINCTROW [QUERY DATOS2].REFER, [QUERY DATOS2].[TYPE OF TRX], [QUERY DATOS2].[NUM id], [QUERY DATOS2].DATE, [QUERY DATOS2].NOMBRE, [QUERY DATOS2].PERIOD, [QUERY DATOS2].CHEQUE, [QUERY DATOS2].CHARGECREDIT, *

FROM [QUERY DATOS2]

WHERE ((([QUERY DATOS2].[TYPE OF TRX])<>"BALANCE FORWARD") AND (([QUERY DATOS2].CHEQUE)=[TECLEE NUM DE CHEQUE]))

ORDER BY [QUERY DATOS2].[NUM id], [QUERY DATOS2].DATE;
```

###### `REPORTEADOR` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, DATOS2.CHEQUE

FROM DATOS2

WHERE (((DATOS2.[TYPE OF TRX])<>"BALANCE FORWARD") AND ((DATOS2.CHEQUE)="0"));
```

###### `SALDO 0` (Select)

```sql
SELECT DISTINCTROW [SALDOS ULTIMO].SumOfCHARGECREDIT, Count([SALDOS ULTIMO].NUMid) AS CountOfNUMid

FROM [SALDOS ULTIMO]

GROUP BY [SALDOS ULTIMO].SumOfCHARGECREDIT

HAVING ((([SALDOS ULTIMO].SumOfCHARGECREDIT)=0));
```

###### `SALDO ANTES ULTIMO PAGO` (Select)

```sql
SELECT DISTINCTROW [SALDOS ANTES ULTIMO PAGO].NUMid, Sum([SALDOS ANTES ULTIMO PAGO].CHARGECREDIT) AS SumOfCHARGECREDIT

FROM [SALDOS ANTES ULTIMO PAGO]

GROUP BY [SALDOS ANTES ULTIMO PAGO].NUMid;
```

###### `SALDO M 0` (Select)

```sql
SELECT DISTINCTROW [SALDOS ULTIMO].SumOfCHARGECREDIT, [SALDOS ULTIMO].NUMid

FROM [SALDOS ULTIMO]

WHERE ((([SALDOS ULTIMO].SumOfCHARGECREDIT)>0));
```

###### `SALDO R 0` (Select)

```sql
SELECT DISTINCTROW [SALDOS ULTIMO].SumOfCHARGECREDIT, [SALDOS ULTIMO].NUMid

FROM [SALDOS ULTIMO]

WHERE ((([SALDOS ULTIMO].SumOfCHARGECREDIT)<0));
```

###### `SALDO TOT M O` (Select)

```sql
SELECT DISTINCTROW Sum([SALDO M 0].SumOfCHARGECREDIT) AS SumOfSumOfCHARGECREDIT, Count([SALDO M 0].NUMid) AS CountOfNUMid

FROM [SALDO M 0];
```

###### `SALDO TOT R O` (Select)

```sql
SELECT DISTINCTROW Sum([SALDO R 0].SumOfCHARGECREDIT) AS SumOfSumOfCHARGECREDIT, Count([SALDO R 0].NUMid) AS CountOfNUMid

FROM [SALDO R 0];
```

###### `SALDO ULTIMO PAGO PRUEBA` (Select)

```sql
SELECT DISTINCTROW [LOCALIZA ULTIMO PAGO DATOS].LastOfDATE, DATOS2.DATE, DATOS2.NUMid, DATOS2.CHARGECREDIT

FROM DATOS2 INNER JOIN [LOCALIZA ULTIMO PAGO DATOS] ON DATOS2.NUMid=[LOCALIZA ULTIMO PAGO DATOS].NUMid

WHERE (((DATOS2.DATE)<[LOCALIZA ULTIMO PAGO DATOS]!LastOfDATE))

ORDER BY DATOS2.NUMid;
```

###### `SALDOS` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT

FROM DATOS2

GROUP BY DATOS2.NUMid;
```

###### `SALDOS ANTES ULTIMO PAGO` (Select)

```sql
SELECT DISTINCTROW [LOCALIZA ULTIMO PAGO DATOS].LastOfDATE, DATOS2.DATE, DATOS2.NUMid, DATOS2.CHARGECREDIT

FROM DATOS2 INNER JOIN [LOCALIZA ULTIMO PAGO DATOS] ON DATOS2.NUMid=[LOCALIZA ULTIMO PAGO DATOS].NUMid

WHERE (((DATOS2.DATE)<[LOCALIZA ULTIMO PAGO DATOS]!LastOfDATE))

ORDER BY DATOS2.NUMid;
```

###### `SALDOS AUDITOR` (Select)

```sql
SELECT DISTINCTROW *

FROM [SALDO TOT M O], [SALDO TOT R O], [SALDO 0];
```

###### `SALDOS DESPUES ULTIMO PAGO` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT

FROM DATOS2 INNER JOIN [LOCALIZA ULTIMO PAGO DATOS] ON DATOS2.NUMid=[LOCALIZA ULTIMO PAGO DATOS].NUMid

WHERE (((DATOS2.DATE)>=[LOCALIZA ULTIMO PAGO DATOS]!LastOfDATE))

ORDER BY DATOS2.NUMid, DATOS2.DATE;
```

###### `SALDOS ULTIMO` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, Last(DATOS2.DATE) AS LastOfDATE, Last(DATOS2.[TYPE OF TRX]) AS [LastOfTYPE OF TRX], Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT

FROM DATOS2

GROUP BY DATOS2.NUMid;
```

###### `SALDOS ULTIMO 0` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, Last(DATOS2.DATE) AS LastOfDATE, Last(DATOS2.[TYPE OF TRX]) AS [LastOfTYPE OF TRX], DATOS2.NOPAGO, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT

FROM DATOS2

GROUP BY DATOS2.NUMid, DATOS2.NOPAGO

HAVING (((DATOS2.NOPAGO)=0));
```

###### `SALDOS ULTIMO TEL` (Select)

```sql
SELECT DISTINCTROW DATOS2.NUMid, Last(DATOS2.DATE) AS LastOfDATE, Last(DATOS2.[TYPE OF TRX]) AS [LastOfTYPE OF TRX], Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, DATOS2.NOPAGO

FROM DATOS2

GROUP BY DATOS2.NUMid, DATOS2.NOPAGO

HAVING (((DATOS2.NOPAGO)=0));
```

###### `SHCP BORRA` (Crosstab)

```sql
DELETE [SHCP 5].ID

FROM [SHCP 5];
```

###### `SHCP5 BORRA` (Crosstab)

```sql
DELETE [SHCP 5].ID

FROM [SHCP 5];
```

###### `SHCP5 DATOS` (Select)

```sql
SELECT [SHCP 5].ID, DATGRAL.[NUM id], DATGRAL.NOMBRE, [SHCP 5].RFC, [SHCP 5].CURP, [SHCP 5].[MES INICIO], [SHCP 5].[AÑO INICIO], [SHCP 5].[MES FINAL], [SHCP 5].[AÑO FINAL], [SHCP 5].[TOTAL DE DERECHOS], [SHCP 5].[PARTE ACTUALIZADA], [SHCP 5].RECARGOS, [SHCP 5].MULTA, [SHCP 5].AJUSTE

FROM [SHCP 5] INNER JOIN DATGRAL ON [SHCP 5].ID=DATGRAL.[NUM id];
```

###### `TEL PAGO` (Select)

```sql
SELECT [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX], Last([DATOS FUTUROS].DATE) AS LastOfDATE, Last([DATOS FUTUROS].PERIOD) AS LastOfPERIOD, Last([DATOS FUTUROS].CHARGECREDIT) AS LastOfCHARGECREDIT

FROM [TEL TODO] INNER JOIN [DATOS FUTUROS] ON [TEL TODO].[NUMER ID]=[DATOS FUTUROS].NUMid

GROUP BY [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX]

HAVING ((([DATOS FUTUROS].[TYPE OF TRX])="TELEPHONE"));
```

###### `TEL PAGO FUTURO` (Update)

```sql
INSERT INTO [FUTURO TEL] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, CHARGECREDIT )

SELECT [TEL PAGO].NUMid, [TEL PAGO].[TYPE OF TRX], [TEL PAGO].LastOfDATE, [TEL PAGO].LastOfPERIOD, [TEL PAGO].LastOfCHARGECREDIT

FROM [TEL PAGO]

ORDER BY [TEL PAGO].NUMid, [TEL PAGO].LastOfDATE;
```

###### `TEL PARA EVALUAR` (Select)

```sql
SELECT [TELEFONOS FECHAS].TELEFONOS, [TEL EVALUA].FVT1, [TELEFONOS FECHAS].FV, [TEL EVALUA].[MES PAGO], [TELEFONOS FECHAS].ID, DATGRAL.NOMBRE, [TELEFONOS FECHAS].DIRECCION

FROM [TEL EVALUA], [TELEFONOS FECHAS] INNER JOIN DATGRAL ON [TELEFONOS FECHAS].ID=DATGRAL.[NUM id]

WHERE ((([TELEFONOS FECHAS].TELEFONOS)>" ") AND (([TELEFONOS FECHAS].FV)=[FVT1]));
```

###### `TEL PARA EVALUAR2` (Select)

```sql
SELECT DATOS2.NUMid, DATOS2.[TYPE OF TRX], DATOS2.PERIOD, DATOS2.REFER

FROM DATOS2, [TEL EVALUA]

WHERE (((DATOS2.[TYPE OF TRX])="TELEPHONE") AND ((DATOS2.PERIOD)=[MES PAGO]));
```

###### `TEL SIN PAGO` (Update)

```sql
INSERT INTO [FUTURO TEL] ( [NUM id] )

SELECT [TEL TODO Without Matching TEL PAGO].[NUMER ID]

FROM [TEL TODO Without Matching TEL PAGO];
```

###### `TEL TODO` (Select)

```sql
SELECT DATMEX.[NUMER ID], DATMEX.TELEFONO

FROM DATMEX

WHERE (((DATMEX.TELEFONO)>""));
```

###### `TEL TODO Without Matching TEL PAGO` (Select)

```sql
SELECT DISTINCTROW [TEL TODO].[NUMER ID]

FROM [TEL TODO] LEFT JOIN [TEL PAGO] ON [TEL TODO].[NUMER ID]=[TEL PAGO].NUMid

WHERE ((([TEL PAGO].NUMid) Is Null));
```

###### `TEL1 FECHAS` (Update)

```sql
INSERT INTO [TELEFONOS FECHAS] ( ID, NOMBRE, DIRECCION, CASA, FV, TELEFONOS )

SELECT DATMEX.[NUMER ID], DATGRAL.NOMBRE, DATMEX.DIRECCION, DATMEX.CASA, DATMEX.FV, DATMEX.TELEFONO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.FV)>0));
```

###### `TEL2 FECHAS` (Update)

```sql
INSERT INTO [TELEFONOS FECHAS] ( ID, NOMBRE, DIRECCION, CASA, FV, TELEFONOS )

SELECT DATMEX.[NUMER ID], DATGRAL.NOMBRE, DATMEX.DIRECCION, DATMEX.CASA, DATMEX.FV2, DATMEX.TELEFONO2

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATMEX.FV2)>0));
```

###### `TEL3 FECHAS` (Update)

```sql
INSERT INTO [TELEFONOS FECHAS] ( ID, NOMBRE, DIRECCION, CASA, FV, TELEFONOS )

SELECT DATMEX.[NUMER ID], DATGRAL.NOMBRE, DATMEX.DIRECCION, DATMEX.CASA, DATMEX.FV3, DATMEX.TELEFONO3

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATMEX.FV3)>0));
```

###### `TEL4 FECHAS TODOS` (Select)

```sql
SELECT [TELEFONOS FECHAS].ID, [TELEFONOS FECHAS].NOMBRE, [TELEFONOS FECHAS].TELEFONOS, [TELEFONOS FECHAS].CASA, [TELEFONOS FECHAS].FV, Sum(datos2.CHARGECREDIT) AS SumOfCHARGECREDIT, [TELEFONOS FECHAS].DIRECCION, TIT.FirstName

FROM TIT, [TELEFONOS FECHAS] INNER JOIN datos2 ON [TELEFONOS FECHAS].ID=datos2.NUMid

GROUP BY [TELEFONOS FECHAS].ID, [TELEFONOS FECHAS].NOMBRE, [TELEFONOS FECHAS].TELEFONOS, [TELEFONOS FECHAS].CASA, [TELEFONOS FECHAS].FV, [TELEFONOS FECHAS].DIRECCION, TIT.FirstName

HAVING ((([TELEFONOS FECHAS].FV)=[TECLEE FV]));
```

###### `TEL4 FECHAS TODOS TODOS` (Select)

```sql
SELECT [TELEFONOS FECHAS].ID, [TELEFONOS FECHAS].NOMBRE, [TELEFONOS FECHAS].TELEFONOS, [TELEFONOS FECHAS].CASA, [TELEFONOS FECHAS].FV, Sum(datos2.CHARGECREDIT) AS SumOfCHARGECREDIT, [TELEFONOS FECHAS].DIRECCION, TIT.FirstName

FROM TIT, [TELEFONOS FECHAS] INNER JOIN datos2 ON [TELEFONOS FECHAS].ID = datos2.NUMid

GROUP BY [TELEFONOS FECHAS].ID, [TELEFONOS FECHAS].NOMBRE, [TELEFONOS FECHAS].TELEFONOS, [TELEFONOS FECHAS].CASA, [TELEFONOS FECHAS].FV, [TELEFONOS FECHAS].DIRECCION, TIT.FirstName;
```

###### `TEL5 FECHAS BORRA` (Crosstab)

```sql
DELETE [TELEFONOS FECHAS].ID

FROM [TELEFONOS FECHAS];
```

###### `TELEFONO` (Select)

```sql
SELECT DISTINCTROW DATMEX.FV, DATMEX.TELEFONO, DATMEX.FV2, DATMEX.TELEFONO2, DATMEX.FV3, DATMEX.TELEFONO3, DATGRAL.[NUM id], DATGRAL.NOMBRE

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.TELEFONO)>" "))

ORDER BY DATMEX.FV, DATMEX.TELEFONO;
```

###### `TELEFONO PARA DIRECTORIO` (Select)

```sql
SELECT DATGRAL.NOMBRE, DATGRAL.[NUM id], DATGRAL.TELUSA, DATGRAL.FAX, DATMEX.TELEFONO, DATMEX.TELEFONO2, DATMEX.TELEFONO3, TIT.FirstName, DATGRAL.EMAIL

FROM TIT, DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATGRAL.NOMBRE)>" "))

ORDER BY DATGRAL.NOMBRE;
```

###### `TELEFONO POR FECHAS` (Select)

```sql
SELECT DISTINCTROW DATMEX.FV, DATMEX.TELEFONO, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.FV, DATMEX.TELEFONO, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, TIT.FirstName

HAVING (((DATMEX.FV)=[TECLEE FECHA TELEFONO 1 A 31]) AND ((DATMEX.TELEFONO)>""))

ORDER BY DATMEX.FV, DATMEX.TELEFONO;
```

###### `TELEFONO TODO` (Select)

```sql
SELECT DISTINCTROW DATMEX.FV, DATMEX.TELEFONO, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.FV, DATMEX.TELEFONO, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, TIT.FirstName

HAVING (((DATMEX.TELEFONO)>""))

ORDER BY DATMEX.FV, DATMEX.TELEFONO;
```

###### `TIPO ANEXA` (Update)

```sql
INSERT INTO [TIPO HIST] ( [TIPO DE CAMBIO] )

SELECT [TIPO CAMBIO].[TIPO DE CAMBIO]

FROM [TIPO CAMBIO];
```

###### `TRANSACCIONES_PERIODO_ACTUAL` (Select)

```sql
SELECT *

FROM datos2018

WHERE Year([DATE]) = Year(Date());
```

###### `TRUSTH PAGOS BORRA` (Crosstab)

```sql
DELETE TRUSTHFEE.NUMid

FROM TRUSTHFEE;
```

###### `TRUSTHFEE PAGOS` (Update)

```sql
INSERT INTO TRUSTHFEE ( NUMid, NOMBRE, DIRECCION, COLONIA, CIUDAD, ESTADO, PAIS, CODIGO, TELUSA, FAX, CLIENTEDESDE, [DATE], TYPEOFTRX, REFER, PERIOD, CHARGECREDIT, MENSAJE, EMAIL, fdecreacion, TIPODECAMBIO, TIPO, NOPAGO )

SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.CODIGO, DATGRAL.TELUSA, DATGRAL.FAX, DATGRAL.[CLIENTE DESDE], DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, [TIPO CAMBIO].MENSAJE, DATGRAL.EMAIL, Now() AS [F DE CREACION], [TIPO CAMBIO].[TIPO DE CAMBIO], DATGRAL.TIPO, DATOS2.NOPAGO

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id] = DATOS2.NUMid

WHERE (((DATOS2.DATE)=Date()) AND ((DATOS2.[TYPE OF TRX])="TRUST FEE"))

ORDER BY DATGRAL.[NUM id];
```

###### `TRUSTVENCEAP` (Update)

```sql
INSERT INTO TRUSTVENCE ( [NUMER ID], BANCO, BFEE, VENCE1, VENCE2, [TRUST NUM] )

SELECT DATMEX.[NUMER ID], DATMEX.BANCO, DATMEX.BFEE, DATMEX.VENCE1, DATMEX.VENCE2, DATMEX.[TRUST NUM]

FROM DATMEX

WHERE (((DATMEX.BANCO)>""));
```

###### `TRUSTVENCEBORRA` (Crosstab)

```sql
DELETE TRUSTVENCE.[NUMER ID]

FROM TRUSTVENCE;
```

###### `ZONA CARTA` (Select)

```sql
SELECT DATMEX.ZONA, DATMEX.ZFED, DATMEX.[ZFED T], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.ZONA)>" ") AND ((DATGRAL.[NUM id])=[TECLEE NUM DE CLIENTE]));
```

###### `ZONA CARTA ROSA2` (Select)

```sql
SELECT DATMEX.CHECK, DATMEX.ZONA, DATMEX.ZFED, [ZFED]/8.3 AS Expr1, DATMEX.[ZFED T], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.CHECK)="1"));
```

###### `ZONA CARTA TODOS` (Select)

```sql
SELECT DATMEX.ZONA, DATMEX.ZFED, [ZFED]/8.3 AS Expr1, DATMEX.[ZFED T], DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.ZONA)>" ") AND ((DATMEX.[ZFED T])="TIJUANA"));
```

###### `ZONA FEDERAL` (Select)

```sql
SELECT DISTINCTROW DATMEX.ZONA, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, DATMEX.ZFED, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName, DATMEX.[ZFED T]

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id]=DATOS2.NUMid

GROUP BY DATMEX.ZONA, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, DATMEX.DIRECCION, DATMEX.ZFED, TIT.FirstName, DATMEX.[ZFED T]

HAVING (((DATMEX.ZONA)>" "))

ORDER BY DATMEX.ZONA;
```

###### `ZONA PAGO` (Select)

```sql
SELECT [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX], Last([DATOS FUTUROS].DATE) AS LastOfDATE, Last([DATOS FUTUROS].PERIOD) AS LastOfPERIOD, Last([DATOS FUTUROS].CHARGECREDIT) AS LastOfCHARGECREDIT

FROM [ZONA TODO] INNER JOIN [DATOS FUTUROS] ON [ZONA TODO].[NUMER ID]=[DATOS FUTUROS].NUMid

GROUP BY [DATOS FUTUROS].NUMid, [DATOS FUTUROS].[TYPE OF TRX]

HAVING ((([DATOS FUTUROS].[TYPE OF TRX])="FEDERAL ZONE"));
```

###### `ZONA PAGO FUTURO` (Update)

```sql
INSERT INTO [FUTURO ZONA] ( [NUM id], [TYPE OF TRX], [DATE], PERIOD, CHARGECREDIT )

SELECT [ZONA PAGO].NUMid, [ZONA PAGO].[TYPE OF TRX], [ZONA PAGO].LastOfDATE, [ZONA PAGO].LastOfPERIOD, [ZONA PAGO].LastOfCHARGECREDIT

FROM [ZONA PAGO];
```

###### `ZONA SIN PAGO` (Update)

```sql
INSERT INTO [FUTURO ZONA] ( [NUM id] )

SELECT [ZONA TODO Without Matching ZONA PAGO].[NUMER ID]

FROM [ZONA TODO Without Matching ZONA PAGO];
```

###### `ZONA TODO` (Select)

```sql
SELECT DISTINCTROW DATMEX.[NUMER ID], DATMEX.ZONA

FROM DATMEX

GROUP BY DATMEX.[NUMER ID], DATMEX.ZONA

HAVING (((DATMEX.ZONA)>" "))

ORDER BY DATMEX.[NUMER ID];
```

###### `ZONA TODO Without Matching ZONA PAGO` (Select)

```sql
SELECT DISTINCTROW [ZONA TODO].[NUMER ID]

FROM [ZONA TODO] LEFT JOIN [ZONA PAGO] ON [ZONA TODO].[NUMER ID]=[ZONA PAGO].NUMid

WHERE ((([ZONA PAGO].NUMid) Is Null));
```

###### `ZZZCOBRO2015` (Update)

```sql
INSERT INTO fee15 ( NUMid, CHARGECREDIT )

SELECT DATGRAL.[NUM id], [FEE]*-20 AS Expr1

FROM DATGRAL

WHERE (((DATGRAL.FEE)>0));
```

###### `ZZZFEEADATOS215` (Update)

```sql
INSERT INTO datos2 ( NUMid, [DATE], REFER, PERIOD, [TYPE OF TRX], CHARGECREDIT, CHEQUE )

SELECT fee15.NUMid, fee15.DATE, fee15.REFER, fee15.PERIOD, fee15.[TYPE OF TRX], fee15.CHARGECREDIT, fee15.CHEQUE

FROM fee15;
```

###### `aabalance forward` (Update)

```sql
INSERT INTO 2010 ( NUMid, CHARGECREDIT )

SELECT datos2.NUMid, Sum(datos2.CHARGECREDIT) AS SumOfCHARGECREDIT

FROM datos2

GROUP BY datos2.NUMid;
```

###### `agua1` (Select)

```sql
SELECT DATGRAL.[NUM id], DATMEX.BANCO, DATMEX.VENCE1, DATGRAL.NOMBRE, (DatePart("m",[VENCE1])) AS Expr1, DATMEX.VENCE2, DATMEX.BFEE, DATMEX.[TRUST NUM], DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id]=DATMEX.[NUMER ID]

WHERE (((DATMEX.BANCO)>" ") AND (((DatePart("m",[VENCE1])))=[TECLEE MES DE VENCIMIENTO]));
```

###### `ap claves` (Update)

```sql
INSERT INTO CLAVES IN 'c:\My Documents\ut.mdb'

SELECT *

FROM CLAVES;
```

###### `ap datgral` (Update)

```sql
INSERT INTO DATGRAL IN 'c:\My Documents\ut.mdb'

SELECT *

FROM DATGRAL;
```

###### `ap datmex` (Update)

```sql
INSERT INTO DATMEX IN 'c:\My Documents\ut.mdb'

SELECT *

FROM DATMEX;
```

###### `ap datos2` (Update)

```sql
INSERT INTO DATOS2 IN 'c:\My Documents\ut.mdb'

SELECT *

FROM DATOS2;
```

###### `ap tipo cambio` (Update)

```sql
INSERT INTO [TIPO CAMBIO] IN 'c:\My Documents\ut.mdb'

SELECT *

FROM [TIPO CAMBIO];
```

###### `ap tit` (Update)

```sql
INSERT INTO TIT IN 'c:\My Documents\ut.mdb'

SELECT *

FROM TIT;
```

###### `ap type of trx` (Update)

```sql
INSERT INTO [TYPE OF TRX] IN 'c:\My Documents\ut.mdb'

SELECT *

FROM [TYPE OF TRX];
```

###### `bankfeetodoscarta` (Select)

```sql
SELECT DISTINCT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.EMAIL, DATMEX.BANCO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID];
```

###### `billing antes pago` (Update)

```sql
INSERT INTO billing ( NUMid, CHARGECREDIT )

SELECT DATOS2.NUMid, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT

FROM [LOCALIZA PARA BILLING] INNER JOIN (DATOS2 INNER JOIN [LOCALIZA ULTIMO PAGO DATOS] ON DATOS2.NUMid = [LOCALIZA ULTIMO PAGO DATOS].NUMid) ON [LOCALIZA PARA BILLING].[NUM id] = DATOS2.NUMid

GROUP BY DATOS2.NUMid, [LOCALIZA ULTIMO PAGO DATOS].LastOfDATE, IIf([DATE]<[LASTOFDATE],1,2)

HAVING (((IIf([DATE]<[LASTOFDATE],1,2))=1))

ORDER BY DATOS2.NUMid;
```

###### `billing despues pago` (Update)

```sql
INSERT INTO billing ( NUMid, [DATE], REFER, PERIOD, [TYPE OF TRX], CHARGECREDIT )

SELECT DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT

FROM [LOCALIZA PARA BILLING] INNER JOIN (DATOS2 INNER JOIN [LOCALIZA ULTIMO PAGO DATOS] ON DATOS2.NUMid=[LOCALIZA ULTIMO PAGO DATOS].NUMid) ON [LOCALIZA PARA BILLING].[NUM id]=DATOS2.NUMid

GROUP BY DATOS2.NUMid, DATOS2.DATE, DATOS2.REFER, DATOS2.PERIOD, DATOS2.[TYPE OF TRX], DATOS2.CHARGECREDIT, [LOCALIZA ULTIMO PAGO DATOS].LastOfDATE, IIf([DATE]<[LASTOFDATE],1,2)

HAVING (((IIf([DATE]<[LASTOFDATE],1,2))=2))

ORDER BY DATOS2.NUMid, DATOS2.DATE;
```

###### `borra pru` (Crosstab)

```sql
DELETE datos2.NUMid

FROM datos2;
```

###### `carta magui` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO

FROM DATGRAL;
```

###### `carta magui todo` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, *

FROM DATGRAL

WHERE (((DATGRAL.[NUM id])=[TECLEE ID DEL CLIENTE]));
```

###### `chimpemail` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.EMAIL

FROM DATGRAL LEFT JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATGRAL.EMAIL)>" "))

ORDER BY DATGRAL.[NUM id];
```

###### `datgral clave cat` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, [CLAVES CATASTRALES].CLAVE

FROM DATGRAL INNER JOIN [CLAVES CATASTRALES] ON DATGRAL.[NUM id]=[CLAVES CATASTRALES].[NUM id];
```

###### `direccionatabla` (Update)

```sql
INSERT INTO DIRECCIONAWEB ( ID, ADDRESS )

SELECT DATMEX.[NUMER ID], DATMEX.DIRECCION

FROM DATMEX;
```

###### `email` (Select)

```sql
SELECT DISTINCT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATGRAL.EMAIL, DATMEX.BANCO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATGRAL.EMAIL)>" "))

ORDER BY DATGRAL.[NUM id];
```

###### `email no` (Select)

```sql
SELECT DISTINCT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATGRAL.EMAIL, DATMEX.BANCO

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

WHERE (((DATGRAL.NOMBRE)>" ") AND ((DATGRAL.EMAIL) Is Null))

ORDER BY DATGRAL.[NUM id];
```

###### `fee vigente` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.FEE, DATMEX.CASA, DATMEX.VIGENTE

FROM DATGRAL RIGHT JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID];
```

###### `freakatabla` (Update)

```sql
INSERT INTO datosfreak ( NUMid, NOMBRE, DIRECCION, COLONIA, CIUDAD, ESTADO, PAIS, CODIGO, TELUSA, FAX, CEL, CLIENTEDESDE, [DATE], TYPEOFTRX, REFER, PERIOD, CHARGECREDIT, MENSAJE, EMAIL, fdecreacion, TIPODECAMBIO, TIPO, NOPAGO, FEE )

SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.CODIGO, DATGRAL.TELUSA, DATGRAL.FAX, DATGRAL.CEL, DATGRAL.[CLIENTE DESDE], DATOS2.[DATE], DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, [TIPO CAMBIO].MENSAJE, DATGRAL.EMAIL, Now() AS [F DE CREACION], [TIPO CAMBIO].[TIPO DE CAMBIO], DATGRAL.TIPO, DATOS2.NOPAGO, DATGRAL.FEE

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id] = DATOS2.NUMid

ORDER BY DATGRAL.[NUM id];
```

###### `freakmaborra` (Crosstab)

```sql
DELETE datosfreak.NUMid

FROM datosfreak;
```

###### `freakmaborra2` (Crosstab)

```sql
DELETE datosfreak2.NUMid

FROM datosfreak2;
```

###### `freakmatabla2` (Update)

```sql
INSERT INTO datosfreak2 ( NUMid, DIRECCIONMEX )

SELECT DISTINCTROW DATGRAL.[NUM id], DATMEX.DIRECCION

FROM DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]

ORDER BY DATGRAL.[NUM id];
```

###### `luz 325 y 329` (Select)

```sql
SELECT DISTINCTROW DATMEX.RUTA, DATMEX.MEDIDOR, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, Sum(DATOS2.CHARGECREDIT) AS SumOfCHARGECREDIT, TIT.FirstName, DATMEX.RPU

FROM TIT, (DATGRAL INNER JOIN DATMEX ON DATGRAL.[NUM id] = DATMEX.[NUMER ID]) INNER JOIN DATOS2 ON DATGRAL.[NUM id] = DATOS2.NUMid

GROUP BY DATMEX.RUTA, DATMEX.MEDIDOR, DATGRAL.[NUM id], DATGRAL.NOMBRE, DATMEX.CASA, TIT.FirstName, DATMEX.RPU

HAVING (((DATMEX.RUTA) Like "325*" Or (DATMEX.RUTA) Like "329*" Or (DATMEX.RUTA) Like "371*" Or (DATMEX.RUTA) Like "373*" Or (DATMEX.RUTA) Like "375*"))

ORDER BY DATMEX.RUTA;
```

###### `luz filtra pagos por mes` (Select)

```sql
SELECT datos2.[TYPE OF TRX], datos2.DATE, (DatePart("m",[date])) AS Expr1, datos2.NUMid, [MES] AS Expr2

FROM datos2

WHERE (((datos2.[TYPE OF TRX])="electric") AND (((DatePart("m",[date])))=[MES]));
```

###### `mailmasivotodos` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.EMAIL

FROM DATGRAL

WHERE (((DATGRAL.EMAIL)>" "));
```

###### `pagosemail` (Update)

```sql
INSERT INTO [pagos email] ( NUMid, NOMBRE, DIRECCION, COLONIA, CIUDAD, ESTADO, PAIS, CODIGO, TELUSA, FAX, CLIENTEDESDE, [DATE], TYPEOFTRX, REFER, PERIOD, CHARGECREDIT, MENSAJE, EMAIL, fdecreacion, TIPODECAMBIO, TIPO, NOPAGO )

SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.CODIGO, DATGRAL.TELUSA, DATGRAL.FAX, DATGRAL.[CLIENTE DESDE], DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, [TIPO CAMBIO].MENSAJE, DATGRAL.EMAIL, Now() AS [F DE CREACION], [TIPO CAMBIO].[TIPO DE CAMBIO], DATGRAL.TIPO, DATOS2.NOPAGO

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id] = DATOS2.NUMid

WHERE (((DATOS2.DATE)=Date()) AND ((DATOS2.[TYPE OF TRX])="CHECK DEPOSIT" Or (DATOS2.[TYPE OF TRX])="CASH DEPOSIT" Or (DATOS2.[TYPE OF TRX])="PAYPAL"))

ORDER BY DATOS2.DATE DESC;
```

###### `pagosemailborra` (Crosstab)

```sql
DELETE [pagos email].NUMid

FROM [pagos email];
```

###### `pagostodos` (Update)

```sql
INSERT INTO [pagos todos] ( NUMid, NOMBRE, DIRECCION, COLONIA, CIUDAD, ESTADO, PAIS, CODIGO, TELUSA, FAX, CLIENTEDESDE, [DATE], TYPEOFTRX, REFER, PERIOD, CHARGECREDIT, MENSAJE, EMAIL, fdecreacion, TIPODECAMBIO, TIPO, NOPAGO )

SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.CODIGO, DATGRAL.TELUSA, DATGRAL.FAX, DATGRAL.[CLIENTE DESDE], DATOS2.DATE, DATOS2.[TYPE OF TRX], DATOS2.REFER, DATOS2.PERIOD, DATOS2.CHARGECREDIT, [TIPO CAMBIO].MENSAJE, DATGRAL.EMAIL, Now() AS [F DE CREACION], [TIPO CAMBIO].[TIPO DE CAMBIO], DATGRAL.TIPO, DATOS2.NOPAGO

FROM [TIPO CAMBIO], DATGRAL INNER JOIN DATOS2 ON DATGRAL.[NUM id] = DATOS2.NUMid

WHERE (((DATOS2.DATE)=Date()) AND ((DATOS2.[TYPE OF TRX])="CHECK DEPOSIT" Or (DATOS2.[TYPE OF TRX])="CASH DEPOSIT" Or (DATOS2.[TYPE OF TRX])="PAYPAL") AND ((DATOS2.NOPAGO)=0))

ORDER BY DATGRAL.[NUM id];
```

###### `pagostodosborra` (Crosstab)

```sql
DELETE [pagos todos].NUMid

FROM [pagos todos];
```

###### `para mail todos` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.DIRECCION, DATGRAL.COLONIA, DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, *

FROM DATGRAL;
```

###### `profile1` (Update)

```sql
INSERT INTO PROFILE ( NUMERID, CASA, DIRECCION, PHONE1, PHONEN, WATER1, GAS1, FEDERALZONE, PROPERTYTAXES, ELECTRIC, TRUST, BANK, [CABLE/SKY], SERVICES )

SELECT DATMEX.[NUMER ID], DATMEX.CASA, DATMEX.DIRECCION, IIf([telefono]>"",1,0) AS PHONE1, DATMEX.TELEFONO, IIf([AGUA]>0,1,0) AS WATER1, IIf([GAS]>"",1,0) AS GAS1, IIf([ZONA]>"",1,0) AS [FEDERAL ZONE], IIf([CLAVE]>"",1,0) AS [PROPERTY TAXES], IIf([rpu]>0,1,0) AS ELECTRIC, IIf([TRUST NUM]>"",1,0) AS TRUST, DATMEX.BANCO, DATMEX.[CABLE/SKY], DATMEX.SERVICES

FROM DATMEX;
```

###### `ver fee` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.FEE

FROM DATGRAL;
```

###### `ver rpu` (Update)

```sql
INSERT INTO RPUN ( [NUMER ID], NOMBRE, RPU1, [CH/CRED] )

SELECT [DATGRAL DATMEX RPU].[NUMER ID], [DATGRAL DATMEX RPU].NOMBRE, [DATGRAL DATMEX RPU].RPU1, [DATGRAL DATMEX RPU].SumOfCHARGECREDIT

FROM [DATGRAL DATMEX RPU];
```

### SEGUROS 16.mdb (frontend)

##### Reports (212)

- `850epsondots`
- `AA`
- `AJUSTADORES`
- `AJUSTADORESATLAS`
- `ALFABETICO CLIENTES`
- `AMPL POLIZA X POLIZA`
- `AMPL R RENEW X MES NEW`
- `AMPL R RENEW X MES NEW ATLAS 13`
- `AMPL R RENEW X MES NEW2`
- `AMPL R RENEW X MES NEW3`
- `AMPL RENEW X MES`
- `AMPL RENEW X MES NEW`
- `AMPL RENEW X MES NEW ATLAS 2013`
- `AMPL RENEW X MES NEW QUALITAS`
- `AMPL RENEW X MES NEW2`
- `AMPL RENEW X MES NEW3`
- `AMPL RENEW X POLIZA`
- `AMPL RENEW2 X MES`
- `AMPL RENEW2 X POLIZA`
- `AMPL RENEW3 X MES`
- `AMPL RENEW3 X POLIZA`
- `AMPLEDOCUENT2XPOL`
- `AMPLEDOCUENTXPOL`
- `AMPLREDOCUENT2XPOL`
- `AMPLREDOCUENT2XPOLBACK`
- `ANALIZA MULT2`
- `CONTROL AMPL R RENEW X MES`
- `CONTROL AMPL RENEW X MES`
- `CONTROL AMPL RENEW2 X MES`
- `CONTROL AMPL RENEW3 X MES`
- `CONTROL INCEN X MES`
- `CONTROL LIC RENEW X MES`
- `CONTROL LIC RENEW2 X MES`
- `CONTROL LIC RENEW3 X MES`
- `CONTROL MCA2 RENEW X MES`
- `CONTROL MCA2 RENEW2XMES`
- `CONTROL MCA2 RENEW3XMES`
- `CONTROL ME RENEW X MES`
- `CONTROL MF RENEW X MES`
- `CONTROL MF2 RENEW X MES`
- `CONTROL MF3 RENEW X MES`
- `CONTROL RC R RENEW X MES`
- `CONTROL RC RENEW X MES`
- `CONTROL RC RENEW2 X MES`
- `CONTROL RC RENEW3 X MES`
- `EDOSEG TOT ASEG`
- `EDOSEG TOT TIPO`
- `EDOSEGTODASREP`
- `EFE`
- `EMPRESA RECIBO`
- `ETIQETA VIG NOW UNICOS`
- `ETIQUETA 4013`
- `ID MCA21`
- `ID MCA22`
- `ID MCA23`
- `ID RCA`
- `ID RRC`
- `ID RRL`
- `ID TCA`
- `ID TCA QUALITAS`
- `ID TLC1`
- `ID TLC1A`
- `ID TLC1A 365`
- `ID TLC1A 365 ATLAS`
- `ID TLC2A`
- `ID TLC2A 365`
- `ID TLC2A 365 ATLAS`
- `ID TLC3`
- `ID TLC3A`
- `ID TLC3A 365`
- `ID TLC3A 365 ATLAS`
- `ID TRC1`
- `ID TRC1A`
- `ID TRC2`
- `ID TRC2A`
- `ID TRC3`
- `ID TRC3A`
- `ID TRCTODOSREPORTE`
- `ID TRCTODOSREPORTE2`
- `ID TRCTODOSREPORTE2ATLAS`
- `INCEN RENEW X MES NEW`
- `INCEN RENEW X MES NEW2`
- `INCEN RENEW X MES NEW3`
- `INCEN RENEW X VENCE`
- `INCEN RENEWAL`
- `INCEN RENEWAL X POL`
- `LIC RENEW X POLIZA`
- `LIC RENEW X VENCE`
- `LIC RENEW X VENCE ATLAS 2013`
- `LIC RENEW X VENCE ATLAS 2013 365`
- `LIC RENEW X VENCE ATLAS 2013 40`
- `LIC RENEW X VENCE ATLAS 2013 50`
- `LIC RENEW X VENCE ATLAS 2013 NO365`
- `LIC RENEW X VENCE NEW`
- `LIC RENEW X VENCE NEW2`
- `LIC RENEW X VENCE NEW3`
- `LIC RENEW X VENCE QUALITAS 30`
- `LIC RENEW X VENCE QUALITAS 365`
- `LIC RENEW X VENCE QUALITAS 40`
- `LIC RENEW X VENCE QUALITAS 50`
- `LIC RENEW2 X POLIZA`
- `LIC RENEW2 X VENCE`
- `LIC RENEW3 X POLIZA`
- `LIC RENEW3 X VENCE`
- `LIC T POLIZA X POL`
- `LICEDOCUENT2XPOL`
- `LICEDOCUENT2XPOL30`
- `LICEDOCUENT2XPOL365`
- `LICEDOCUENT2XPOL40`
- `LICEDOCUENT2XPOL50`
- `LICEDOCUENTXPOL`
- `LISTADO U Y S`
- `Labels DATGRAL`
- `MACHOTERENEESP`
- `MACHOTERENEWfront`
- `MAIL ADDRESS EMPRESA RECIBO`
- `MCA REMEW X MES`
- `MCA2 POLIZA X POL`
- `MCA2 RENEW X MES`
- `MCA2 RENEW X MES NEW`
- `MCA2 RENEW X MES NEW2`
- `MCA2 RENEW X MES NEW3`
- `MCA2 RENEW2 X MES`
- `MCA2 RENEW3 X MES`
- `MCA2 RENEWAL`
- `MCA2EDOCUENT2XPOL`
- `MCA2EDOCUENTXPOL`
- `MCA2REPORT`
- `ME RENEW X MES NEW`
- `ME RENEW X MES NEW2`
- `ME RENEW X MES NEW3`
- `ME RENEW X VENCE`
- `ME RENEWAL`
- `ME RENEWAL X POL`
- `MF CARTA CONDO`
- `MF CARTA CONDOXPOL`
- `MF EDO CUENTA X POL`
- `MF EDO CUENTA2 X POL`
- `MF EDO CUENTA2CONDOSEDIF`
- `MF EDO CUENTACONDXPOL`
- `MF EDOCUENTA2CONDOCEDIF`
- `MF RENEW X VENCE`
- `MF RENEW X VENCE NEW`
- `MF RENEW X VENCE NEW2`
- `MF RENEW X VENCE NEW3`
- `MF RENEW2 X POL`
- `MF RENEW2 X VENCE`
- `MF RENEW3 X POL`
- `MF RENEW3 X VENCE`
- `MF RENEWAL X POL`
- `MFCARTACASA`
- `MFCARTACASAXPOL`
- `MUESTRA ID`
- `NUMERICO CLIENTES`
- `POLIZAS ORDEN CLIENTE`
- `POLIZAS ORDEN NOMBRE`
- `PRIMA NETA MCA2`
- `PRIMA NETA MULT`
- `PRIMA NETA RCA`
- `PRIMA NETA RRC`
- `PRIMA NETA TCA`
- `PRIMA NETA TLIC`
- `PRIMA NETA TRC`
- `RC RENEW X MES`
- `RC RENEW X MES NEW`
- `RC RENEW X MES NEW ATLAS 13`
- `RC RENEW X MES NEW ATLAS 13 30`
- `RC RENEW X MES NEW ATLAS 13 40`
- `RC RENEW X MES NEW ATLAS 13 50`
- `RC RENEW X MES NEW QUALITAS 30`
- `RC RENEW X MES NEW QUALITAS 365`
- `RC RENEW X MES NEW QUALITAS 40`
- `RC RENEW X MES NEW QUALITAS 50`
- `RC RENEW X MES NEW2`
- `RC RENEW X MES NEW3`
- `RC RENEW X POLIZA`
- `RC RENEW2 X MES`
- `RC RENEW2 X POL`
- `RC RENEW3 X MES`
- `RC RENEW3 X POL`
- `RC T POLIZA ENDOSO`
- `RC T POLIZA X POL`
- `RCEDOCUENT2XPOL`
- `RCEDOCUENTA2XPOL30`
- `RCEDOCUENTA2XPOL40`
- `RCEDOCUENTA2XPOL50`
- `RCEDOCUENTXPOL`
- `RCR RENEW X MES NEW`
- `RCR RENEW X MES NEW2`
- `RCR RENEW X MES NEW3`
- `RCR RENEW X MES NEWATLAS 2013`
- `RCREDOCUENT2XPOL`
- `RECIBONOCLIENT`
- `RENEW X VENCE QUALITAS 40`
- `REPORT LIQUIDA MCA2`
- `REPORT LIQUIDA MF`
- `REPORT LIQUIDA MF D`
- `REPORT LIQUIDA RES`
- `REPORT LIQUIDA RES MARCA`
- `REPORT LIQUIDA TUR`
- `REPORT LIQUIDA TUR METRO`
- `REPORTE DE EFECTIVO`
- `SIN DATOS LIC`
- `SIN LIC`
- `SIN MF`
- `TUR AMP EXT C`
- `VIGENTE FAMILIAR`
- `VIGENTE INCEN`
- `VIGENTE LIC`
- `VIGENTE TAMPL`
- `VIGENTE TRC`
- `mfatlas`

##### Forms (149)

- `BENEF`
- `BENEF EDITA`
- `CAPTURA AUTOS`
- `CAPTURA AUTOS AMPLIA`
- `CAPTURA AUTOS AMPLIA R`
- `CAPTURA AUTOS LIMIT RESID`
- `CAPTURA AUTOS LIMITADA`
- `CAPTURA AUTOS RRC`
- `CAPTURA CONTACTOS`
- `CAPTURA DATGRAL`
- `CAPTURA INCENDIO`
- `CAPTURA LICENCIAS`
- `CAPTURA MCA`
- `CAPTURA MCA2`
- `CAPTURA ME`
- `CAPTURA MULT FAM`
- `CAPTURA TODO`
- `CONSULTA AUT LIM RESID`
- `CONSULTA AUTOS AMPLIA`
- `CONSULTA AUTOS AMPLIA R`
- `CONSULTA AUTOS LIMITADA`
- `CONSULTA AUTOS RC`
- `CONSULTA AUTOS RRC`
- `CONSULTA DATGRAL`
- `CONSULTA DATGRAL ANY`
- `CONSULTA DATGRAL Q`
- `CONSULTA INCENDIO`
- `CONSULTA LICENCIAS`
- `CONSULTA MCA`
- `CONSULTA MCA2`
- `CONSULTA ME`
- `CONSULTA MULT FAM`
- `CONTACTOS`
- `DATOS SINIESTROS`
- `DATOS SINIESTROS CAPTURA`
- `DATOS SINIESTROS CONSULTA`
- `DATOS SINIESTROS EDITA`
- `DATOS SINIESTROS MENU`
- `EDIT AMPL MENS`
- `EDIT AMPL MENS2`
- `EDIT AMPL MENS3`
- `EDIT AMPL R MENS`
- `EDIT AMPL R MENS2`
- `EDIT AMPL R MENS3`
- `EDIT AUTOS AMPLIA R`
- `EDIT IN MENS`
- `EDIT LIC MENS`
- `EDIT LIC MENS2`
- `EDIT LIC MENS3`
- `EDIT MCA2 MENS`
- `EDIT MCA2MENS2`
- `EDIT MCA2MENS3`
- `EDIT ME MENS`
- `EDIT MF MENS`
- `EDIT MF MENS2`
- `EDIT MF MENS3`
- `EDIT RC MENS`
- `EDIT RC MENS2`
- `EDIT RC MENS3`
- `EDIT RCR MENS`
- `EDIT RCR MENS2`
- `EDIT RCR MENS3`
- `EDIT RESIDENTE`
- `EDITA AJUSTADORES`
- `EDITA AUT LIM RESID`
- `EDITA AUT LIM TUR`
- `EDITA AUT RESP C RESID`
- `EDITA AUT RESP C TUR`
- `EDITA AUTOS AMPL FOTO`
- `EDITA AUTOS AMPLIA`
- `EDITA CONTACTOS`
- `EDITA DATGRAL`
- `EDITA INCENDIO`
- `EDITA LIC AUT TUR`
- `EDITA MCA2`
- `EDITA ME`
- `EDITA MULT FAM`
- `EDITA MULT FAM FOTO`
- `EFE`
- `EFE EDITA`
- `EFE MENU`
- `FECHA EFE`
- `FORM AUDITOR`
- `FORM CAPTURA TIPO POLIZA AUTOS`
- `FORM COMENTARIOS`
- `FORM CONSULTA TIPO POLIZA AUTOS`
- `FORM EDITA TIPO POLIZA AUTOS`
- `FORM LIQUIDA OK`
- `FORM TURRES`
- `FORM VER COMENT`
- `FORM VER DATGRAL`
- `FORMA EDITA GENERICO`
- `FORMA INICIO`
- `FORMA RESIDENTE`
- `IMPRESION AMPL`
- `IMPRESION AMPR`
- `IMPRESION INCENDIO`
- `IMPRESION LIC`
- `IMPRESION MCA`
- `IMPRESION MCA2`
- `IMPRESION MULT EMPR`
- `IMPRESION MULT FAM`
- `IMPRESION RC`
- `IMPRESION RCR`
- `IMPUESTOS`
- `LIQUDACION LOCALIZA COMISION`
- `LIQUIDA MCA2`
- `LIQUIDA MCA2 FORM`
- `LIQUIDA MF`
- `LIQUIDA MF Y EM`
- `LIQUIDA RES`
- `LIQUIDA RES FORM`
- `LIQUIDA TUR`
- `LIQUIDA TUR FORM`
- `LIQUIDA TUR FORM METRO`
- `LIQUIDAAD`
- `LIQUIDACION LOCALIZA`
- `LIQUIDAR`
- `MENU CAPTURA`
- `MENU CONSULTA`
- `MENU CONSULTA CLIENTE`
- `MENU CONSULTA RESIDENTES`
- `MENU EDICION`
- `MENU EDICION M RES`
- `MENU EDICION M TUR`
- `MENU EDO CUENTA IMPR`
- `MENU IMPRESION`
- `MENU MENSAJES`
- `MENU P IMPRESION`
- `MENU P IMPRESION ID`
- `MENU POL TUR IMPR`
- `MENU SINIESTROS`
- `PRIMA NETA`
- `PRODUCT`
- `RECIBO NO CLIENTE`
- `SEGUROS TODOS`
- `SELLO`
- `SELLO ACTUALIZA COM`
- `SELLO Y COMISION`
- `SINIESTROS INICIO`
- `SUBFORM LICENCIAS`
- `SUBFORM TABLA AUTOS`
- `SUBFORM TABLA AUTOS AMPL`
- `SUBFORM TABLA AUTOS LIMIT`
- `TABLA LIQUIDA TUR ENDOSO`
- `TODOS`
- `TOTALTOTAL`
- `VIGENT`
- `pantalla`

##### Queries (857 total — 421 real, 436 hidden internal subqueries)

_436 hidden `~sq_`-prefixed queries omitted — these are Access-generated internal subquery caches, not authored business logic._

###### `AGREGA ENDOSO TURISTA BORRA` (Crosstab)

```sql
DELETE [TABLA LIQUIDA TUR ENDOSO].[NO POLIZA]

FROM [TABLA LIQUIDA TUR ENDOSO];
```

###### `AGREGA ENDOSO TURUSTA` (Update)

```sql
INSERT INTO [TABLA LIQUIDA TUR] ( [NO POLIZA], [LET POL], CONTROL, [PRIMA NETA], [D POLIZA], IVA, TOTAL, COMPA, AGENTE, CLAVE, ASEGURADO )

SELECT [TABLA LIQUIDA TUR ENDOSO].[NO POLIZA], [TABLA LIQUIDA TUR ENDOSO].[LET POL], [TABLA LIQUIDA TUR ENDOSO].CONTROL, [TABLA LIQUIDA TUR ENDOSO].[PRIMA NETA], [TABLA LIQUIDA TUR ENDOSO].[D POLIZA], [TABLA LIQUIDA TUR ENDOSO].IVA, [TABLA LIQUIDA TUR ENDOSO].TOTAL, [TABLA LIQUIDA TUR ENDOSO].COMPA, [TABLA LIQUIDA TUR ENDOSO].AGENTE, [TABLA LIQUIDA TUR ENDOSO].CLAVE, [TABLA LIQUIDA TUR ENDOSO].ASEGURADO

FROM [TABLA LIQUIDA TUR ENDOSO];
```

###### `AJUSTADOR` (Select)

```sql
SELECT AJUSTADORES.ORDEN, AJUSTADORES.COMP, AJUSTADORES.CIUDAD, AJUSTADORES.NOMBRE, AJUSTADORES.TEL, AJUSTADORES.BEEPER

FROM AJUSTADORES

ORDER BY AJUSTADORES.ORDEN;
```

###### `AJUSTADORATLAS` (Select)

```sql
SELECT AJUSTADORESATLAS.ORDEN, AJUSTADORESATLAS.COMP, AJUSTADORESATLAS.CIUDAD, AJUSTADORESATLAS.NOMBRE, AJUSTADORESATLAS.TEL, AJUSTADORESATLAS.BEEPER

FROM AJUSTADORESATLAS

ORDER BY AJUSTADORESATLAS.ORDEN;
```

###### `ALFA` (Select)

```sql
SELECT DATGRAL.NOMBRE, DATGRAL.[NUM id], DATGRAL.[NUM UTIL], [DIRECCION 1] & " " & [DIRECCION 2] & " " & [CIUDAD] & ", " & [ESTADO] AS Expr1, DATGRAL.TELUSA, DATGRAL.FAX, TIT.FirstName, TIT.LastName

FROM DATGRAL, TIT

ORDER BY DATGRAL.NOMBRE;
```

###### `ALFABET` (Select)

```sql
SELECT DATGRAL.NOMBRE, DATGRAL.[NUM id], LICENCIAS.[NO POLIZA], MULT.[NO POLIZA], [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS LIMIT].[NO POLIZA], INCENDIO.[NO POLIZA]

FROM (((((DATGRAL LEFT JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]) LEFT JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]) LEFT JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id]) LEFT JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) LEFT JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]) LEFT JOIN [TABLA AUTOS LIMIT] ON DATGRAL.[NUM id] = [TABLA AUTOS LIMIT].[NUMER ID]

ORDER BY DATGRAL.NOMBRE;
```

###### `AMP TUR EXT COB` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLE DATOS LIQUIDA TUR].[EXT COVERAGE], [TABLA AUTOS AMPL].[D POLIZA], [TABLA AUTOS AMPL].CLAVE, [TABLA AUTOS AMPL].[F EMISION]

FROM [TABLE DATOS LIQUIDA TUR], DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND (([TABLA AUTOS AMPL].[EXTENDED COVERAGE])=-1));
```

###### `AMP VIG NOW` (Update)

```sql
INSERT INTO [vigenta casa y auto unicos] ( num )

SELECT [TABLA AUTOS AMPL].[NUMER ID]

FROM [TABLA AUTOS AMPL]

WHERE ((([TABLA AUTOS AMPL].HASTA)>Now()));
```

###### `AMPL LIQUIDA` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].CONTR, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].CLAVE, [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].[FORMA  PAGO], [TABLA AUTOS AMPL].MONEDA, [TABLA AUTOS AMPL].[FECHA  PAGO], [TABLA AUTOS AMPL].EFECTIVO, [TABLA AUTOS AMPL].[NO CHEQUE], [TABLA AUTOS AMPL].OBSERVACIONES, [TABLA AUTOS AMPL].COBERTURA, IIf([COBERTURA]=365,12,15) AS Expr3, [EXPR3]*2 AS Expr4, [TABLA AUTOS AMPL].PROPIEDADES, [TABLA AUTOS AMPL].[SERVICIO ADICIONAL], [TABLA AUTOS AMPL].HORA, [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[IVA] AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL].LIQUIDADA, [TABLA AUTOS AMPL].RENOVACION, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].[F EMISION]

FROM IMPUESTOS_AUTOS, DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

ORDER BY [TABLA AUTOS AMPL].[NO POLIZA] DESC , [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `AMPL LIQUIDA RES` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].LETPOL, [TABLA AUTOS AMPL R].[VIG 1], [TABLA AUTOS AMPL R].[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL R].[NOMBRE ASEG], [TABLA AUTOS AMPL R].COMP, [TABLA AUTOS AMPL R].COM, [TABLA AUTOS AMPL R].[COM 2], [TABLA AUTOS AMPL R].AGENT, [TABLA AUTOS AMPL R].CLAVE, [TABLA AUTOS AMPL R].DESDE, [TABLA AUTOS AMPL R].HASTA, [TABLA AUTOS AMPL R].[FORMA  PAGO], [TABLA AUTOS AMPL R].MONEDA, [TABLA AUTOS AMPL R].[FECHA  PAGO], [TABLA AUTOS AMPL R].[FECHA PAGO 2], [TABLA AUTOS AMPL R].EFECTIVO, [TABLA AUTOS AMPL R].[NO CHEQUE], [TABLA AUTOS AMPL R].OBSERVACIONES, [TABLA AUTOS AMPL R].COBERTURA, [TABLA AUTOS AMPL R].PROPIEDADES, [TABLA AUTOS AMPL R].[PRIMA NETA], [TABLA AUTOS AMPL R].[D POLIZA], [TABLA AUTOS AMPL R].RECARGO, ([PRIMA NETA]+[RECARGO]+[D POLIZA])*[iva] AS EXPR1, [PRIMA NETA]+[RECARGO]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL R].[PRIMA NETA2], [TABLA AUTOS AMPL R].[RECARGO 2], [TABLA AUTOS AMPL R].[D POLIZA2], ([PRIMA NETA2]+[RECARGO 2]+[D POLIZA2])*0.1 AS Expr3, [PRIMA NETA2]+[RECARGO 2]+[D POLIZA2]+[EXPR3] AS Expr4, [TABLA AUTOS AMPL R].LIQUIDADA, [TABLA AUTOS AMPL R].[LIQUIDADA 2], [TABLA AUTOS AMPL R].RENOVACION

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS AMPL R] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL R].[NUMER ID]

ORDER BY [TABLA AUTOS AMPL R].[NO POLIZA] DESC , [TABLA AUTOS AMPL R].[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `AMPL R CALC VIG` (Select)

```sql
SELECT [TABLA AUTOS AMPL R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].[NOMBRE ASEG], [TABLA AUTOS AMPL R].[CALLE Y NO], [TABLA AUTOS AMPL R].COL, [TABLA AUTOS AMPL R].EDO, [TABLA AUTOS AMPL R].TEL, [TABLA AUTOS AMPL R].COMP, [TABLA AUTOS AMPL R].AGENT, [TABLA AUTOS AMPL R].DESDE, [TABLA AUTOS AMPL R].HASTA, [TABLA AUTOS AMPL R].[FORMA  PAGO], [TABLA AUTOS AMPL R].[VIG 1], IIf([FORMA  PAGO]="SEMESTRAL",DateAdd("m",6,[VIG 1]),DateAdd("m",3,[VIG 1])) AS Expr5, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",6,[VIG 1])) AS Expr6, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",9,[VIG 1])) AS Expr7, [TABLA AUTOS AMPL R].MONEDA, [TABLA AUTOS AMPL R].[1ER PAGO], [TABLA AUTOS AMPL R].[PAGO SUBSEC], [TABLA AUTOS AMPL R].[FECHA  PAGO], [TABLA AUTOS AMPL R].EFECTIVO, [TABLA AUTOS AMPL R].[NO CHEQUE], [TABLA AUTOS AMPL R].[FECHA PAGO 2], [TABLA AUTOS AMPL R].[MONED 2], [TABLA AUTOS AMPL R].[EFECTIVO 2], [TABLA AUTOS AMPL R].[NO CHEQUE 2], [TABLA AUTOS AMPL R].[PRIMA NETA], [TABLA AUTOS AMPL R].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*0.1 AS Expr1, [PRIMA NETA]+[D POLIZA]+[Expr1] AS Expr2, [TABLA AUTOS AMPL R].[PRIMA NETA2], [TABLA AUTOS AMPL R].[D POLIZA2], ([PRIMA NETA2]+[D POLIZA2])*0.1 AS Expr3, [PRIMA NETA2]+[D POLIZA2]+[Expr3] AS Expr4, [TABLA AUTOS AMPL R].LIQUIDADA, [TABLA AUTOS AMPL R].[LIQUIDADA 2], [TABLA AUTOS AMPL R].RENOVACION, DATGRAL.[NUM UTIL], *

FROM (DATGRAL INNER JOIN [VIGENT AUTO] ON DATGRAL.[NUM id] = [VIGENT AUTO].[NUM id]) INNER JOIN [TABLA AUTOS AMPL R] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL R].[NUMER ID];
```

###### `AMPL R RENEW CALC` (Select)

```sql
SELECT [AMPL R CALC VIG].[NUMER ID], [AMPL R CALC VIG].[FORMA  PAGO], [AMPL R CALC VIG].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [AMPL R CALC VIG].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [AMPL R CALC VIG].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [AMPL R CALC VIG].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[hasta] & [expr19],[expr5] & [EXPR20]) AS Expr18, IIf([FORMA  PAGO]="SEMESTRAL"," 1 ST SEMESTER ") AS Expr19, IIf([FORMA  PAGO]="SEMESTRAL"," 2 ND SEMESTER ") AS Expr20, IIf([VIGENT AUTO].[Expr3]=0,"U") AS Expr21, [AMPL R CALC VIG].Expr1, [AMPL R CALC VIG].Expr2, *

FROM [AMPL R CALC VIG], [AMPL R MENS]

WHERE (((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]));
```

###### `AMPL R RENEW CALC ATLAS 13` (Select)

```sql
SELECT [AMPL R CALC VIG].[NUMER ID], [AMPL R CALC VIG].COMP, [AMPL R CALC VIG].[FORMA  PAGO], [AMPL R CALC VIG].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [AMPL R CALC VIG].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [AMPL R CALC VIG].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [AMPL R CALC VIG].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[hasta] & [expr19],[expr5] & [EXPR20]) AS Expr18, IIf([FORMA  PAGO]="SEMESTRAL"," 1 ST SEMESTER ") AS Expr19, IIf([FORMA  PAGO]="SEMESTRAL"," 2 ND SEMESTER ") AS Expr20, IIf([VIGENT AUTO].[Expr3]=0,"U") AS Expr21, *

FROM [AMPL R CALC VIG], [AMPL R MENS]

WHERE ((([AMPL R CALC VIG].COMP)="ATLAS, S.A.") AND ((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR ((([AMPL R CALC VIG].COMP)="ATLAS, S.A.") AND ((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]));
```

###### `AMPL R RENEW CALC ATLAS 2013` (Select)

```sql
SELECT [AMPL R CALC VIG].[NUMER ID], [AMPL R CALC VIG].[FORMA  PAGO], [AMPL R CALC VIG].COMP, [AMPL R CALC VIG].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [AMPL R CALC VIG].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [AMPL R CALC VIG].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [AMPL R CALC VIG].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[hasta] & [expr19],[expr5] & [EXPR20]) AS Expr18, IIf([FORMA  PAGO]="SEMESTRAL"," 1 ST SEMESTER ") AS Expr19, IIf([FORMA  PAGO]="SEMESTRAL"," 2 ND SEMESTER ") AS Expr20, IIf([VIGENT AUTO].[Expr3]=0,"U") AS Expr21, *

FROM [AMPL R CALC VIG], [AMPL R MENS]

WHERE ((([AMPL R CALC VIG].COMP)="ATLAS, S.A.") AND ((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]));
```

###### `AMPL R X MES` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].HASTA, DatePart("m",[HASTA]) AS Expr1, DatePart("yyyy",[hasta]) AS Expr2, [TABLA AUTOS AMPL R].COMP, [TABLA AUTOS AMPL R].RENOVACION

FROM DATGRAL INNER JOIN [TABLA AUTOS AMPL R] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL R].[NUMER ID]

WHERE (((DatePart("m",[HASTA]))=[TECLE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[hasta]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]));
```

###### `AMPL RENEW` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NUMER ID], [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR") AS Expr6, [TABLA AUTOS AMPL].[CALLE Y NO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [GASTOS MEDICO]*1000 AS Expr1, [TABLA AUTOS AMPL].PERSONAS, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], IIf([EXTENDED COVERAGE]=-1,"INCLUDED","EXCLUDED") AS Expr5, *

FROM [AMPL MENS], [TABLA AUTOS AMPL];
```

###### `AMPL RENEW X MES` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR") AS Expr6, IIf([COBERTURA]=365,15,10) AS Expr11, [TABLA AUTOS AMPL].[CALLE Y NO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [GASTOS MEDICO]*1000 AS Expr1, [TABLA AUTOS AMPL].PERSONAS, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].COLISION, [COLISION]*1000 AS Expr9, IIf([EXTENDED COVERAGE]=-1,"INCLUDED","EXCLUDED") AS Expr5, [TABLA AUTOS AMPL].HASTA, DatePart("m",[HASTA]) AS Expr7, DatePart("yyyy",[hasta]) AS Expr8, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].RENOVACION, [AMPL MENS].[AM MENSAJE 1], [AMPL MENS].[AM MENS2], [AMPL MENS].[AM MENS3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS AMPL].[ROBO%], [TABLA AUTOS AMPL].[COLI%], [EXPR9]*[ROBO%] AS Expr12, [EXPR9]*[COLI%] AS Expr13, [TABLA AUTOS AMPL].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15

FROM [AMPL MENS], (DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((DatePart("m",[HASTA]))=[TECLE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[hasta]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]));
```

###### `AMPL RENEW X MES ATLAS 2013` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR") AS Expr6, IIf([COBERTURA]=365,15,10) AS Expr11, [TABLA AUTOS AMPL].[CALLE Y NO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [GASTOS MEDICO]*1000 AS Expr1, [TABLA AUTOS AMPL].PERSONAS, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].COLISION, [COLISION]*1000 AS Expr9, IIf([EXTENDED COVERAGE]=-1,"INCLUDED","EXCLUDED") AS Expr5, [TABLA AUTOS AMPL].HASTA, DatePart("m",[HASTA]) AS Expr7, DatePart("yyyy",[hasta]) AS Expr8, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].RENOVACION, [AMPL MENS].[AM MENSAJE 1], [AMPL MENS].[AM MENS2], [AMPL MENS].[AM MENS3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS AMPL].[ROBO%], [TABLA AUTOS AMPL].[COLI%], [EXPR9]*[ROBO%] AS Expr12, [EXPR9]*[COLI%] AS Expr13, [TABLA AUTOS AMPL].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15

FROM [AMPL MENS], (DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((DatePart("m",[HASTA]))=[TECLE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[hasta]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS AMPL].COMP)="ATLAS, S.A."));
```

###### `AMPL RENEW X MES QUALITAS` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR") AS Expr6, IIf([COBERTURA]=365,15,10) AS Expr11, [TABLA AUTOS AMPL].[CALLE Y NO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [GASTOS MEDICO]*1000 AS Expr1, [TABLA AUTOS AMPL].PERSONAS, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].COLISION, [COLISION]*1000 AS Expr9, IIf([EXTENDED COVERAGE]=-1,"INCLUDED","EXCLUDED") AS Expr5, [TABLA AUTOS AMPL].HASTA, DatePart("m",[HASTA]) AS Expr7, DatePart("yyyy",[hasta]) AS Expr8, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].RENOVACION, [AMPL MENS].[AM MENSAJE 1], [AMPL MENS].[AM MENS2], [AMPL MENS].[AM MENS3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS AMPL].[ROBO%], [TABLA AUTOS AMPL].[COLI%], [EXPR9]*[ROBO%] AS Expr12, [EXPR9]*[COLI%] AS Expr13, [TABLA AUTOS AMPL].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15, [AMPL MENS].POLICY

FROM [AMPL MENS], (DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((DatePart("m",[HASTA]))=[TECLE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[hasta]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS AMPL].COMP)="QUALITAS"));
```

###### `AMPL RENEW X POLIZA` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR") AS Expr6, [TABLA AUTOS AMPL].[CALLE Y NO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [GASTOS MEDICO]*1000 AS Expr1, [TABLA AUTOS AMPL].PERSONAS, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].COLISION, [COLISION]*1000 AS Expr9, IIf([EXTENDED COVERAGE]=-1,"INCLUDED","EXCLUDED") AS Expr5, [TABLA AUTOS AMPL].HASTA, DatePart("m",[HASTA]) AS Expr7, DatePart("yyyy",[hasta]) AS Expr8, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].RENOVACION, [AMPL MENS].[AM MENSAJE 1], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10

FROM [AMPL MENS], (DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE NUMERO DE POLIZA A IMPRIMIR]));
```

###### `AMPL RENEW2 X MES` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR") AS Expr6, [TABLA AUTOS AMPL].[CALLE Y NO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [GASTOS MEDICO]*1000 AS Expr1, [TABLA AUTOS AMPL].PERSONAS, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].COLISION, [COLISION]*1000 AS Expr9, IIf([EXTENDED COVERAGE]=-1,"INCLUDED","EXCLUDED") AS Expr5, [TABLA AUTOS AMPL].HASTA, DatePart("m",[HASTA]) AS Expr7, DatePart("yyyy",[hasta]) AS Expr8, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].RENOVACION, [AMPL MENS].[AM MENS2], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10

FROM [AMPL MENS], (DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((DatePart("m",[HASTA]))=[TECLE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[hasta]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]));
```

###### `AMPL RENEW2 X POLIZA` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR") AS Expr6, [TABLA AUTOS AMPL].[CALLE Y NO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [GASTOS MEDICO]*1000 AS Expr1, [TABLA AUTOS AMPL].PERSONAS, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].COLISION, [COLISION]*1000 AS Expr9, IIf([EXTENDED COVERAGE]=-1,"INCLUDED","EXCLUDED") AS Expr5, [TABLA AUTOS AMPL].HASTA, DatePart("m",[HASTA]) AS Expr7, DatePart("yyyy",[hasta]) AS Expr8, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].RENOVACION, [AMPL MENS].[AM MENS2], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10

FROM [AMPL MENS], (DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE NUMERO DE POLIZA A IMPRIMIR]));
```

###### `AMPL RENEW3 X MES` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR") AS Expr6, [TABLA AUTOS AMPL].[CALLE Y NO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [GASTOS MEDICO]*1000 AS Expr1, [TABLA AUTOS AMPL].PERSONAS, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].COLISION, [COLISION]*1000 AS Expr9, IIf([EXTENDED COVERAGE]=-1,"INCLUDED","EXCLUDED") AS Expr5, [TABLA AUTOS AMPL].HASTA, DatePart("m",[HASTA]) AS Expr7, DatePart("yyyy",[hasta]) AS Expr8, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].RENOVACION, [AMPL MENS].[AM MENS3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10

FROM [AMPL MENS], (DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((DatePart("m",[HASTA]))=[TECLE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[hasta]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]));
```

###### `AMPL RENEW3 X POLIZA` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR") AS Expr6, [TABLA AUTOS AMPL].[CALLE Y NO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [GASTOS MEDICO]*1000 AS Expr1, [TABLA AUTOS AMPL].PERSONAS, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].COLISION, [COLISION]*1000 AS Expr9, IIf([EXTENDED COVERAGE]=-1,"INCLUDED","EXCLUDED") AS Expr5, [TABLA AUTOS AMPL].HASTA, DatePart("m",[HASTA]) AS Expr7, DatePart("yyyy",[hasta]) AS Expr8, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].RENOVACION, [AMPL MENS].[AM MENS3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10

FROM [AMPL MENS], (DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE NUMERO DE POLIZA A IMPRIMIR]));
```

###### `AMPLEDOCUENT2XPOL` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[NUMER ID], [TABLA AUTOS AMPL].CONTR, [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*0.16 AS Expr2, [EXPR1]+[EXPR2] AS Expr3, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, IIf([LOSS]=-1,"INCLUDING LOSS PAYEE ENDORSEMENT") AS Expr5, [AMPL MENS].POLICY

FROM [TABLA AUTOS AMPL], [AMPL MENS]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]));
```

###### `AMPLEDOCUENTXPOL` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[NUMER ID], *

FROM [TABLA AUTOS AMPL];
```

###### `AMPLREDOCUENT2XPOL` (Select)

```sql
SELECT [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].[FORMA  PAGO], [TABLA AUTOS AMPL R].[NUMER ID], [PRIMA NETA]+[D POLIZA]+[recargo] AS Expr1, [EXPR1]*0.16 AS Expr2, [EXPR1]+[EXPR2] AS Expr3, [TABLA AUTOS AMPL R].COMP, [TABLA AUTOS AMPL R].HASTA, [TABLA AUTOS AMPL R].[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, [TABLA AUTOS AMPL R].DESDE, [TABLA AUTOS AMPL R].MARCA, [TABLA AUTOS AMPL R].MODELO, [TABLA AUTOS AMPL R].CARROCERIA, DateAdd("m",6,[desde]) AS Expr5, IIf([forma  pago]="semestral",[expr5],[hasta]) AS Expr6

FROM [TABLA AUTOS AMPL R]

WHERE ((([TABLA AUTOS AMPL R].[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `ANALIZA INC1` (Select)

```sql
SELECT INCENDIO.[NUM id], INCENDIO.LETPOL, DatePart("m",[hasta]) AS Expr1, DatePart("yyyy",[hasta]) AS Expr2

FROM INCENDIO

ORDER BY DatePart("m",[hasta]);
```

###### `ANALIZA INC2` (Select)

```sql
SELECT [ANALIZA INC1].LETPOL, Count([ANALIZA INC1].[NUM id]) AS [CountOfNUM id], [Expr2] & " / " & [EXPR1] AS Expr3

FROM [ANALIZA INC1]

GROUP BY [ANALIZA INC1].LETPOL, [Expr2] & " / " & [EXPR1]

ORDER BY [Expr2] & " / " & [EXPR1];
```

###### `ANALIZA MULT1` (Select)

```sql
SELECT MULT.[NUM id], MULT.LETPOL, MULT.HASTA, DatePart("m",[hasta]) AS Expr1, DatePart("yyyy",[hasta]) AS Expr2

FROM MULT;
```

###### `ANALIZA MULT2` (Select)

```sql
SELECT [ANALIZA MULT1].LETPOL, Count([ANALIZA MULT1].[NUM id]) AS [CountOfNUM id], [ANALIZA MULT1].HASTA, [Expr2] & " / " & [EXPR1] AS Expr3

FROM [ANALIZA MULT1]

GROUP BY [ANALIZA MULT1].LETPOL, [ANALIZA MULT1].HASTA, [Expr2] & " / " & [EXPR1]

ORDER BY [Expr2] & " / " & [EXPR1];
```

###### `ANALIZA TLIC1` (Select)

```sql
SELECT LICENCIAS.[NUMER ID], LICENCIAS.LETPOL, DatePart("m",[hasta]) AS Expr1, DatePart("yyyy",[hasta]) AS Expr2

FROM LICENCIAS

ORDER BY DatePart("m",[hasta]);
```

###### `ANALIZA TLIC2` (Select)

```sql
SELECT [ANALIZA TLIC1].LETPOL, Count([ANALIZA TLIC1].[NUMER ID]) AS [CountOfNUMER ID], [Expr2] & " / " & [EXPR1] AS Expr3

FROM [ANALIZA TLIC1]

GROUP BY [ANALIZA TLIC1].LETPOL, [Expr2] & " / " & [EXPR1]

ORDER BY [Expr2] & " / " & [EXPR1];
```

###### `AP CLIENTES` (Update)

```sql
INSERT INTO EDOSEG ( NUMID )

SELECT DATGRAL.[NUM id]

FROM DATGRAL;
```

###### `AP INCEN` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT INCENDIO.[NUM id], DATGRAL.NOMBRE, INCENDIO.LETPOL, INCENDIO.[NO POLIZA], INCENDIO.DESDE, INCENDIO.HASTA

FROM DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id];
```

###### `AP LIQUIDA AMPL` (Update)

```sql
INSERT INTO [TABLA LIQUIDA TUR] ( AGENTE, CLAVE, COMPA, [NO POLIZA], [PRIMA NETA], [D POLIZA], IVA, TOTAL )

SELECT [LIQUIDA AMPL ATLAS].AGENT, [LIQUIDA AMPL ATLAS].CLAVE, [LIQUIDA AMPL ATLAS].COMP, [LIQUIDA AMPL ATLAS].[NO POLIZA], [LIQUIDA AMPL ATLAS].[PRIMA NETA], [LIQUIDA AMPL ATLAS].[D POLIZA], [LIQUIDA AMPL ATLAS].EXPR1, [LIQUIDA AMPL ATLAS].EXPR2

FROM [LIQUIDA AMPL ATLAS];
```

###### `AP LIQUIDA LIC` (Update)

```sql
INSERT INTO [TABLA LIQUIDA TUR] ( AGENTE, CLAVE, COMPA, [NO POLIZA], [PRIMA NETA], [D POLIZA], IVA, TOTAL )

SELECT [LIQUIDA LIC ATLAS].AGENT, [LIQUIDA LIC ATLAS].CLAVE, [LIQUIDA LIC ATLAS].COMP, [LIQUIDA LIC ATLAS].[NO POLIZA], [LIQUIDA LIC ATLAS].[PRIMA NETA], [LIQUIDA LIC ATLAS].[D POLIZA], [LIQUIDA LIC ATLAS].EXPR1, [LIQUIDA LIC ATLAS].EXPR2

FROM [LIQUIDA LIC ATLAS];
```

###### `AP LIQUIDA LIMIT` (Update)

```sql
INSERT INTO [TABLA LIQUIDA TUR] ( AGENTE, CLAVE, COMPA, [NO POLIZA], [PRIMA NETA], [D POLIZA], IVA, TOTAL )

SELECT [LIQUIDA LIMIT ATLAS].AGENT, [LIQUIDA LIMIT ATLAS].CLAVE, [LIQUIDA LIMIT ATLAS].COMP, [LIQUIDA LIMIT ATLAS].[NO POLIZA], [LIQUIDA LIMIT ATLAS].[PRIMA NETA], [LIQUIDA LIMIT ATLAS].[D POLIZA], [LIQUIDA LIMIT ATLAS].EXPR1, [LIQUIDA LIMIT ATLAS].EXPR2

FROM [LIQUIDA LIMIT ATLAS];
```

###### `AP LIQUIDA RC` (Update)

```sql
INSERT INTO [TABLA LIQUIDA TUR] ( AGENTE, CLAVE, COMPA, [NO POLIZA], [PRIMA NETA], [D POLIZA], IVA, TOTAL )

SELECT [LIQUIDA RC ATLAS].AGENT, [LIQUIDA RC ATLAS].CLAVE, [LIQUIDA RC ATLAS].COMP, [LIQUIDA RC ATLAS].[NO POLIZA], [LIQUIDA RC ATLAS].[PRIMA NETA], [LIQUIDA RC ATLAS].[D POLIZA], [LIQUIDA RC ATLAS].EXPR1, [LIQUIDA RC ATLAS].EXPR2

FROM [LIQUIDA RC ATLAS];
```

###### `AP MCA2` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT MCA2.[NUMER ID], DATGRAL.NOMBRE, MCA2.LETPOL, MCA2.POLIZA, MCA2.DESDE, MCA2.HASTA

FROM DATGRAL INNER JOIN MCA2 ON (DATGRAL.[NUM id] = MCA2.[NUMER ID]) AND (DATGRAL.[NUM id] = MCA2.[NUMER ID]);
```

###### `AP ME` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT [M EMPR].[NUM id], DATGRAL.NOMBRE, [M EMPR].LETPOL, [M EMPR].[NO POLIZA], [M EMPR].DESDE, [M EMPR].HASTA

FROM DATGRAL INNER JOIN [M EMPR] ON DATGRAL.[NUM id] = [M EMPR].[NUM id];
```

###### `AP MULT` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT MULT.[NUM id], DATGRAL.NOMBRE, MULT.LETPOL, MULT.[NO POLIZA], MULT.DESDE, MULT.HASTA

FROM DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id];
```

###### `AP R AMPLIA` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT [TABLA AUTOS AMPL R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL R].LETPOL, [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].DESDE, [TABLA AUTOS AMPL R].HASTA

FROM DATGRAL INNER JOIN [TABLA AUTOS AMPL R] ON (DATGRAL.[NUM id] = [TABLA AUTOS AMPL R].[NUMER ID]) AND (DATGRAL.[NUM id] = [TABLA AUTOS AMPL R].[NUMER ID]);
```

###### `AP R LIMITADA` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT [TABLA AUTOS LIMIT R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS LIMIT R].LETPOL, [TABLA AUTOS LIMIT R].[NO POLIZA], [TABLA AUTOS LIMIT R].DESDE, [TABLA AUTOS LIMIT R].HASTA

FROM DATGRAL INNER JOIN [TABLA AUTOS LIMIT R] ON DATGRAL.[NUM id] = [TABLA AUTOS LIMIT R].[NUMER ID];
```

###### `AP R RC` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT [TABLA AUTOS RC R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS RC R].LETPOL, [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].DESDE, [TABLA AUTOS RC R].HASTA

FROM DATGRAL INNER JOIN [TABLA AUTOS RC R] ON DATGRAL.[NUM id] = [TABLA AUTOS RC R].[NUMER ID];
```

###### `AP SEG` (Update)

```sql
INSERT INTO UTILSEG ( SEGUROS, NOMBRE, UTIL )

SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[NUM UTIL]

FROM DATGRAL;
```

###### `AP T AMPLIA` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA

FROM [TABLA AUTOS AMPL] INNER JOIN DATGRAL ON [TABLA AUTOS AMPL].[NUMER ID] = DATGRAL.[NUM id];
```

###### `AP T AMPLIA JC` (Update)

```sql
INSERT INTO TODOSJC ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], HASTA, CIA )

SELECT [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].COMP

FROM [TABLA AUTOS AMPL] INNER JOIN DATGRAL ON [TABLA AUTOS AMPL].[NUMER ID] = DATGRAL.[NUM id]

WHERE ((([TABLA AUTOS AMPL].HASTA)>Now()));
```

###### `AP T LICENCIAS` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT LICENCIAS.[NUMER ID], DATGRAL.NOMBRE, LICENCIAS.LETPOL, LICENCIAS.[NO POLIZA], LICENCIAS.DESDE, LICENCIAS.HASTA

FROM LICENCIAS INNER JOIN DATGRAL ON LICENCIAS.[NUMER ID] = DATGRAL.[NUM id];
```

###### `AP T LICENCIAS JC` (Update)

```sql
INSERT INTO TODOSJC ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], HASTA, CIA )

SELECT LICENCIAS.[NUMER ID], DATGRAL.NOMBRE, LICENCIAS.LETPOL, LICENCIAS.[NO POLIZA], LICENCIAS.HASTA, LICENCIAS.COMP

FROM LICENCIAS INNER JOIN DATGRAL ON LICENCIAS.[NUMER ID] = DATGRAL.[NUM id]

WHERE (((LICENCIAS.HASTA)>Now()));
```

###### `AP T LIMITADA` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT [TABLA AUTOS LIMIT].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS LIMIT].LETPOL, [TABLA AUTOS LIMIT].[NO POLIZA], [TABLA AUTOS LIMIT].DESDE, [TABLA AUTOS LIMIT].HASTA

FROM [TABLA AUTOS LIMIT] INNER JOIN DATGRAL ON [TABLA AUTOS LIMIT].[NUMER ID] = DATGRAL.[NUM id];
```

###### `AP T RC` (Update)

```sql
INSERT INTO TODOS ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], DESDE, HASTA )

SELECT [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA

FROM [TABLA AUTOS] INNER JOIN DATGRAL ON [TABLA AUTOS].[NUMER ID] = DATGRAL.[NUM id];
```

###### `AP T RC JC` (Update)

```sql
INSERT INTO TODOSJC ( [NUMER ID], NOMBRE, LETPOL, [NO POLIZA], HASTA, CIA )

SELECT [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].HASTA, [TABLA AUTOS].COMP

FROM [TABLA AUTOS] INNER JOIN DATGRAL ON [TABLA AUTOS].[NUMER ID] = DATGRAL.[NUM id]

WHERE ((([TABLA AUTOS].HASTA)>Now()));
```

###### `AP UTIL` (Update)

```sql
INSERT INTO UTILSEG ( NOMBRE, UTIL )

SELECT DATGRAL1.NOMBRE, DATGRAL1.[NUM id]

FROM DATGRAL1;
```

###### `AUT` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].FOLIO, [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].CLAVE, [TABLA AUTOS].HORA, [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[FORMA  PAGO], [TABLA AUTOS].CONTR, [TABLA AUTOS].MONEDA, [TABLA AUTOS].[FECHA  PAGO], [TABLA AUTOS].EFECTIVO, [TABLA AUTOS].[NO CHEQUE], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[PLACA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[PLACA 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], [TABLA AUTOS].OBSERVACIONES, [TABLA AUTOS].COBERTURA, [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [PERSONAS]*2 AS Expr4, [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[PRIMA NETA], [TABLA AUTOS].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS Expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS Expr2, [TABLA AUTOS].TOTAL, [TABLA AUTOS].LIQUIDADA, [TABLA AUTOS].RENOVACION, [TABLA AUTOS].[F EMISION], [TABLA AUTOS].[P ANTERIOR], [TABLA AUTOS].ENDOSO, [TABLA AUTOS].[NUM LIQUIDACION], [TABLA AUTOS].[F LIQUIDA1], [TABLA AUTOS].[CONFIRMA L1], [TABLA AUTOS].[SERV CIA], [TABLA AUTOS].[CSL LIMITE], [TABLA AUTOS].RENT

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

ORDER BY [TABLA AUTOS].[NO POLIZA] DESC , [TABLA AUTOS].[NUMER ID];
```

###### `AUT AMPL` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].FOLIO, [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].CONTR, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].[FORMA  PAGO], [TABLA AUTOS AMPL].MONEDA, [TABLA AUTOS AMPL].[FECHA  PAGO], [TABLA AUTOS AMPL].EFECTIVO, [TABLA AUTOS AMPL].[NO CHEQUE], [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].COLISION, [TABLA AUTOS AMPL].[SUMA ROBO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [TABLA AUTOS AMPL].ENDOSO, [TABLA AUTOS AMPL].OBSERVACIONES, [TABLA AUTOS AMPL].COBERTURA, [TABLA AUTOS AMPL].PROPIEDADES, [TABLA AUTOS AMPL].PERSONAS, [TABLA AUTOS AMPL].[SERVICIO ADICIONAL], [TABLA AUTOS AMPL].CLAVE, [TABLA AUTOS AMPL].HORA, [PERSONAS]*2 AS Expr4, [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL].LIQUIDADA, [TABLA AUTOS AMPL].RENOVACION, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].[F EMISION], [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[CUBIERTO CON], [TABLA AUTOS AMPL].[NUM LIQUIDACION], [TABLA AUTOS AMPL].[F LIQUIDA1], [TABLA AUTOS AMPL].[ROBO%], [TABLA AUTOS AMPL].[COLI%], [TABLA AUTOS AMPL].[SERV CIA], [TABLA AUTOS AMPL].FOTO1, [TABLA AUTOS AMPL].[CONFIRMA L1], [TABLA AUTOS AMPL].PLACAS, [TABLA AUTOS AMPL].[D MATERIAL], [TABLA AUTOS AMPL].[R TOTAL], IMPUESTOS.IVA, [TABLA AUTOS AMPL].[VALOR AUTO], [TABLA AUTOS AMPL].LOSS, [TABLA AUTOS AMPL].[CSL LIMITE], [TABLA AUTOS AMPL].RENT, [TABLA AUTOS AMPL].[COPIA B], [TABLA AUTOS AMPL].[DOCS 1], [TABLA AUTOS AMPL].[DOCS 2]

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

ORDER BY [TABLA AUTOS AMPL].[NO POLIZA] DESC;
```

###### `AUT AMPL EDITA` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].FOLIO, [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].CONTR, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].[FORMA  PAGO], [TABLA AUTOS AMPL].MONEDA, [TABLA AUTOS AMPL].[FECHA  PAGO], [TABLA AUTOS AMPL].EFECTIVO, [TABLA AUTOS AMPL].[NO CHEQUE], [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].COLISION, [TABLA AUTOS AMPL].[SUMA ROBO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [TABLA AUTOS AMPL].ENDOSO, [TABLA AUTOS AMPL].OBSERVACIONES, [TABLA AUTOS AMPL].COBERTURA, [TABLA AUTOS AMPL].PROPIEDADES, [TABLA AUTOS AMPL].PERSONAS, [TABLA AUTOS AMPL].[SERVICIO ADICIONAL], [TABLA AUTOS AMPL].CLAVE, [TABLA AUTOS AMPL].HORA, [PERSONAS]*2 AS Expr4, [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL].LIQUIDADA, [TABLA AUTOS AMPL].RENOVACION, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].[F EMISION], [TABLA AUTOS AMPL].[CUBIERTO CON], [TABLA AUTOS AMPL].[NUM LIQUIDACION], [TABLA AUTOS AMPL].[F LIQUIDA1], [TABLA AUTOS AMPL].[ROBO%], [TABLA AUTOS AMPL].[COLI%], [TABLA AUTOS AMPL].[SERV CIA], [TABLA AUTOS AMPL].FOTO1, [TABLA AUTOS AMPL].[CONFIRMA L1], [TABLA AUTOS AMPL].PLACAS, [TABLA AUTOS AMPL].[D MATERIAL], [TABLA AUTOS AMPL].[R TOTAL], [TABLA AUTOS AMPL].[VALOR AUTO], [TABLA AUTOS AMPL].LOSS, [TABLA AUTOS AMPL].[CSL LIMITE], [TABLA AUTOS AMPL].RENT, [TABLA AUTOS AMPL].[COPIA B], [TABLA AUTOS AMPL].[DOCS 1], [TABLA AUTOS AMPL].[DOCS 2]

FROM IMPUESTOS_AUTOS, DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

ORDER BY [TABLA AUTOS AMPL].[NO POLIZA] DESC;
```

###### `AUT AMPL EDITA FOTO` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].FOLIO, [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].CONTR, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].[FORMA  PAGO], [TABLA AUTOS AMPL].MONEDA, [TABLA AUTOS AMPL].[FECHA  PAGO], [TABLA AUTOS AMPL].EFECTIVO, [TABLA AUTOS AMPL].[NO CHEQUE], [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].COLISION, [TABLA AUTOS AMPL].[SUMA ROBO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [TABLA AUTOS AMPL].ENDOSO, [TABLA AUTOS AMPL].OBSERVACIONES, [TABLA AUTOS AMPL].COBERTURA, [TABLA AUTOS AMPL].PROPIEDADES, [TABLA AUTOS AMPL].PERSONAS, [TABLA AUTOS AMPL].[SERVICIO ADICIONAL], [TABLA AUTOS AMPL].CLAVE, [TABLA AUTOS AMPL].HORA, [PERSONAS]*2 AS Expr4, [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL].LIQUIDADA, [TABLA AUTOS AMPL].RENOVACION, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].[F EMISION], [TABLA AUTOS AMPL].[CUBIERTO CON], [TABLA AUTOS AMPL].[NUM LIQUIDACION], [TABLA AUTOS AMPL].[F LIQUIDA1], [TABLA AUTOS AMPL].[ROBO%], [TABLA AUTOS AMPL].[COLI%], [TABLA AUTOS AMPL].[SERV CIA], [TABLA AUTOS AMPL].FOTO1, [TABLA AUTOS AMPL].[CONFIRMA L1], [TABLA AUTOS AMPL].PLACAS, [TABLA AUTOS AMPL].[D MATERIAL], [TABLA AUTOS AMPL].[R TOTAL], [TABLA AUTOS AMPL].[VALOR AUTO], [TABLA AUTOS AMPL].LOSS, [TABLA AUTOS AMPL].[CSL LIMITE], [TABLA AUTOS AMPL].RENT, [TABLA AUTOS AMPL].[COPIA B], [TABLA AUTOS AMPL].[DOCS 1], [TABLA AUTOS AMPL].[DOCS 2]

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE POLIZA A EDITAR FOTO]))

ORDER BY [TABLA AUTOS AMPL].[NO POLIZA] DESC;
```

###### `AUT AMPL POLIZA X POLIZA` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NO POLIZA], IIf([P ANTERIOR]>0,"R- " & [P ANTERIOR]) AS Expr14, [TABLA AUTOS AMPL].[NUMER ID], [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].CONTR, [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].[FORMA  PAGO], [TABLA AUTOS AMPL].MONEDA, [TABLA AUTOS AMPL].[FECHA  PAGO], [TABLA AUTOS AMPL].EFECTIVO, [TABLA AUTOS AMPL].[NO CHEQUE], [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [COLISION]*1000 AS Expr8, [PROPIEDADES]*1000 AS Expr9, [PERSONAS]*1000 AS Expr10, [PERSONAS]*2*1000 AS Expr11, [GASTOS MEDICO]*1000 AS Expr12, [EXPR12]*5 AS Expr13, [TABLA AUTOS AMPL].ENDOSO, [TABLA AUTOS AMPL].OBSERVACIONES, [TABLA AUTOS AMPL].COBERTURA, [TABLA AUTOS AMPL].PROPIEDADES, [TABLA AUTOS AMPL].PERSONAS, [TABLA AUTOS AMPL].[SERVICIO ADICIONAL], [PERSONAS]*2 AS Expr4, [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL].LIQUIDADA, [TABLA AUTOS AMPL].RENOVACION, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].[F EMISION], DatePart("m",[F EMISION]) AS Expr3, DatePart("d",[F EMISION]) AS Expr5, DatePart("yyyy",[F EMISION]) AS Expr6, [CLAVE] & " " & [AGENT] AS Expr7, [TABLA AUTOS AMPL].HORA, IIf([EXTENDED COVERAGE]=-1,"¡¡ CUBRE EXTENSION TERRITORIAL !!") AS Expr15, IIf([EXPR9]=0,"CUBIERTO           CON LA POLIZA",[EXPR9] & ".00" & "                               AMPARADO") AS Expr16, IIf([EXPR10]=0,"NO. " & [CUBIERTO CON] & " DE LIC.") AS EXPR18, [EXPR8]+[EXPR9]+[EXPR11]+[EXPR13] AS Expr17, [TABLA AUTOS AMPL].[SERV CIA], [TABLA AUTOS AMPL].[D MATERIAL], [TABLA AUTOS AMPL].[R TOTAL], [TABLA AUTOS AMPL].[ROBO%], [TABLA AUTOS AMPL].[COLI%]

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE POLIZA A IMPRIMIR]))

ORDER BY [TABLA AUTOS AMPL].[NO POLIZA] DESC;
```

###### `AUT AMPL R` (Select)

```sql
SELECT [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL R].COMP, [TABLA AUTOS AMPL R].AGENT, [TABLA AUTOS AMPL R].DESDE, [TABLA AUTOS AMPL R].HASTA, [TABLA AUTOS AMPL R].[VIG 1], [TABLA AUTOS AMPL R].[FORMA  PAGO], [TABLA AUTOS AMPL R].MONEDA, [TABLA AUTOS AMPL R].[1ER PAGO], [TABLA AUTOS AMPL R].[FECHA  PAGO], [TABLA AUTOS AMPL R].EFECTIVO, [TABLA AUTOS AMPL R].[NO CHEQUE], [TABLA AUTOS AMPL R].[PAGO SUBSEC], [TABLA AUTOS AMPL R].[FECHA PAGO 2], [TABLA AUTOS AMPL R].[MONED 2], [TABLA AUTOS AMPL R].[EFECTIVO 2], [TABLA AUTOS AMPL R].[NO CHEQUE 2], [TABLA AUTOS AMPL R].MARCA, [TABLA AUTOS AMPL R].MODELO, [TABLA AUTOS AMPL R].CARROCERIA, [TABLA AUTOS AMPL R].MOTOR, [TABLA AUTOS AMPL R].COLISION, [TABLA AUTOS AMPL R].[SUMA ROBO], [TABLA AUTOS AMPL R].[GASTOS MEDICO], [TABLA AUTOS AMPL R].OBSERVACIONES, [TABLA AUTOS AMPL R].COBERTURA, [TABLA AUTOS AMPL R].PROPIEDADES, [TABLA AUTOS AMPL R].CLAVE, [TABLA AUTOS AMPL R].[PRIMA NETA], [TABLA AUTOS AMPL R].RECARGO, [TABLA AUTOS AMPL R].[D POLIZA], ([PRIMA NETA]+[RECARGO]+[D POLIZA])*[iva] AS expr1, [PRIMA NETA]+[RECARGO]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL R].[PRIMA NETA2], [TABLA AUTOS AMPL R].[RECARGO 2], [TABLA AUTOS AMPL R].[D POLIZA2], ([PRIMA NETA2]+[RECARGO 2]+[D POLIZA2])*[iva] AS expr3, [PRIMA NETA2]+[RECARGO 2]+[D POLIZA2]+[EXPR3] AS EXPR4, [TABLA AUTOS AMPL R].LIQUIDADA, [TABLA AUTOS AMPL R].RENOVACION, [TABLA AUTOS AMPL R].[A JURIDICA], [TABLA AUTOS AMPL R].[A CAMINO], [TABLA AUTOS AMPL R].COM, [TABLA AUTOS AMPL R].[COM 2], [TABLA AUTOS AMPL R].[LIQUIDADA 2], [TABLA AUTOS AMPL R].[NUM LIQUIDACION], [TABLA AUTOS AMPL R].[NUM LIQUIDACION2], [TABLA AUTOS AMPL R].[F LIQUIDA1], [TABLA AUTOS AMPL R].[F LIQUIDA2], [TABLA AUTOS AMPL R].[CONFIRMA L1], [TABLA AUTOS AMPL R].[CONFIRMA L2], [TABLA AUTOS AMPL R].RENT

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS AMPL R] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL R].[NUMER ID]

ORDER BY [TABLA AUTOS AMPL R].[NO POLIZA] DESC;
```

###### `AUT AMPL R new` (Select)

```sql
SELECT [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL R].COMP, [TABLA AUTOS AMPL R].AGENT, [TABLA AUTOS AMPL R].DESDE, [TABLA AUTOS AMPL R].HASTA, [TABLA AUTOS AMPL R].[VIG 1], [TABLA AUTOS AMPL R].[FORMA  PAGO], [TABLA AUTOS AMPL R].MONEDA, [TABLA AUTOS AMPL R].[1ER PAGO], [TABLA AUTOS AMPL R].[FECHA  PAGO], [TABLA AUTOS AMPL R].EFECTIVO, [TABLA AUTOS AMPL R].[NO CHEQUE], [TABLA AUTOS AMPL R].[PAGO SUBSEC], [TABLA AUTOS AMPL R].[FECHA PAGO 2], [TABLA AUTOS AMPL R].[MONED 2], [TABLA AUTOS AMPL R].[EFECTIVO 2], [TABLA AUTOS AMPL R].[NO CHEQUE 2], [TABLA AUTOS AMPL R].MARCA, [TABLA AUTOS AMPL R].MODELO, [TABLA AUTOS AMPL R].CARROCERIA, [TABLA AUTOS AMPL R].MOTOR, [TABLA AUTOS AMPL R].COLISION, [TABLA AUTOS AMPL R].[SUMA ROBO], [TABLA AUTOS AMPL R].[GASTOS MEDICO], [TABLA AUTOS AMPL R].OBSERVACIONES, [TABLA AUTOS AMPL R].COBERTURA, [TABLA AUTOS AMPL R].PROPIEDADES, [TABLA AUTOS AMPL R].CLAVE, [TABLA AUTOS AMPL R].[PRIMA NETA], [TABLA AUTOS AMPL R].RECARGO, [TABLA AUTOS AMPL R].[D POLIZA], [TABLA AUTOS AMPL R].[PRIMA NETA2], [TABLA AUTOS AMPL R].[RECARGO 2], [TABLA AUTOS AMPL R].[D POLIZA2], ([PRIMA NETA2]+[RECARGO 2]+[D POLIZA2])*0.1 AS expr3, [PRIMA NETA2]+[RECARGO 2]+[D POLIZA2]+[EXPR3] AS EXPR4, [TABLA AUTOS AMPL R].LIQUIDADA, [TABLA AUTOS AMPL R].RENOVACION, [TABLA AUTOS AMPL R].[A JURIDICA], [TABLA AUTOS AMPL R].[A CAMINO], [TABLA AUTOS AMPL R].COM, [TABLA AUTOS AMPL R].[COM 2], [TABLA AUTOS AMPL R].[LIQUIDADA 2], [TABLA AUTOS AMPL R].[NUM LIQUIDACION], [TABLA AUTOS AMPL R].[NUM LIQUIDACION2], [TABLA AUTOS AMPL R].[F LIQUIDA1], [TABLA AUTOS AMPL R].[F LIQUIDA2], [TABLA AUTOS AMPL R].[CONFIRMA L1], [TABLA AUTOS AMPL R].[CONFIRMA L2], [TABLA AUTOS AMPL R].RENT

FROM DATGRAL INNER JOIN [TABLA AUTOS AMPL R] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL R].[NUMER ID]

ORDER BY [TABLA AUTOS AMPL R].[NO POLIZA] DESC;
```

###### `AUT AMPL X POLIZA` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].FOLIO, [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].CONTR, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].[FORMA  PAGO], [TABLA AUTOS AMPL].MONEDA, [TABLA AUTOS AMPL].[FECHA  PAGO], [TABLA AUTOS AMPL].EFECTIVO, [TABLA AUTOS AMPL].[NO CHEQUE], [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].COLISION, [TABLA AUTOS AMPL].[SUMA ROBO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [TABLA AUTOS AMPL].ENDOSO, [TABLA AUTOS AMPL].OBSERVACIONES, [TABLA AUTOS AMPL].COBERTURA, [TABLA AUTOS AMPL].PROPIEDADES, [TABLA AUTOS AMPL].PERSONAS, [TABLA AUTOS AMPL].[SERVICIO ADICIONAL], [TABLA AUTOS AMPL].CLAVE, [TABLA AUTOS AMPL].HORA, [PERSONAS]*2 AS Expr4, [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL].LIQUIDADA, [TABLA AUTOS AMPL].RENOVACION, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].[F EMISION], [TABLA AUTOS AMPL].[CUBIERTO CON], [TABLA AUTOS AMPL].[NUM LIQUIDACION], [TABLA AUTOS AMPL].[F LIQUIDA1], [TABLA AUTOS AMPL].[ROBO%], [TABLA AUTOS AMPL].[COLI%], [TABLA AUTOS AMPL].[SERV CIA], [TABLA AUTOS AMPL].FOTO1, [TABLA AUTOS AMPL].[CONFIRMA L1], [TABLA AUTOS AMPL].PLACAS, [TABLA AUTOS AMPL].[D MATERIAL], [TABLA AUTOS AMPL].[R TOTAL], [TABLA AUTOS AMPL].[VALOR AUTO], [TABLA AUTOS AMPL].LOSS

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE NUM DE POLIZA A EDITAR]))

ORDER BY [TABLA AUTOS AMPL].[NO POLIZA] DESC;
```

###### `AUT AMPL X POLIZA Consulta` (Delete)

```sql
UPDATE [AUT AMPL X POLIZA PARA LIQUIDA] SET [AUT AMPL X POLIZA PARA LIQUIDA].LIQUIDADA = [TABLA AUTOS AMPL]![LIQUIDADA]=1, [AUT AMPL X POLIZA PARA LIQUIDA].[NUM LIQUIDACION] = [TABLA AUTOS AMPL]![NUM LIQUIDACION]=Null, [AUT AMPL X POLIZA PARA LIQUIDA].[F LIQUIDA1] = [TABLA AUTOS AMPL]![F LIQUIDA1]=Null;
```

###### `AUT AMPL X POLIZA PARA LIQUIDA` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].FOLIO, [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].CONTR, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].[FORMA  PAGO], [TABLA AUTOS AMPL].MONEDA, [TABLA AUTOS AMPL].[FECHA  PAGO], [TABLA AUTOS AMPL].EFECTIVO, [TABLA AUTOS AMPL].[NO CHEQUE], [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].COLISION, [TABLA AUTOS AMPL].[SUMA ROBO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [TABLA AUTOS AMPL].ENDOSO, [TABLA AUTOS AMPL].OBSERVACIONES, [TABLA AUTOS AMPL].COBERTURA, [TABLA AUTOS AMPL].PROPIEDADES, [TABLA AUTOS AMPL].PERSONAS, [TABLA AUTOS AMPL].[SERVICIO ADICIONAL], [TABLA AUTOS AMPL].CLAVE, [TABLA AUTOS AMPL].HORA, [PERSONAS]*2 AS Expr4, [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*0.1 AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL].LIQUIDADA, [TABLA AUTOS AMPL].RENOVACION, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].[F EMISION], [TABLA AUTOS AMPL].[CUBIERTO CON], [TABLA AUTOS AMPL].[NUM LIQUIDACION], [TABLA AUTOS AMPL].[F LIQUIDA1], [TABLA AUTOS AMPL].[ROBO%], [TABLA AUTOS AMPL].[COLI%], [TABLA AUTOS AMPL].[SERV CIA], [TABLA AUTOS AMPL].FOTO1

FROM DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[CONFIRME EL NUMERO DE POLIZA A CAMBIAR]))

ORDER BY [TABLA AUTOS AMPL].[NO POLIZA] DESC;
```

###### `AUT AMPL new` (Select)

```sql
SELECT [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].FOLIO, [TABLA AUTOS AMPL].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].CONTR, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].[FORMA  PAGO], [TABLA AUTOS AMPL].MONEDA, [TABLA AUTOS AMPL].[FECHA  PAGO], [TABLA AUTOS AMPL].EFECTIVO, [TABLA AUTOS AMPL].[NO CHEQUE], [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].COLISION, [TABLA AUTOS AMPL].[SUMA ROBO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [TABLA AUTOS AMPL].ENDOSO, [TABLA AUTOS AMPL].OBSERVACIONES, [TABLA AUTOS AMPL].COBERTURA, [TABLA AUTOS AMPL].PROPIEDADES, [TABLA AUTOS AMPL].PERSONAS, [TABLA AUTOS AMPL].[SERVICIO ADICIONAL], [TABLA AUTOS AMPL].CLAVE, [TABLA AUTOS AMPL].HORA, [PERSONAS]*2 AS Expr4, [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].[D POLIZA], [TABLA AUTOS AMPL].LIQUIDADA, [TABLA AUTOS AMPL].RENOVACION, [TABLA AUTOS AMPL].[EXTENDED COVERAGE], [TABLA AUTOS AMPL].[F EMISION], [TABLA AUTOS AMPL].[P ANTERIOR], [TABLA AUTOS AMPL].[CUBIERTO CON], [TABLA AUTOS AMPL].[NUM LIQUIDACION], [TABLA AUTOS AMPL].[F LIQUIDA1], [TABLA AUTOS AMPL].[ROBO%], [TABLA AUTOS AMPL].[COLI%], [TABLA AUTOS AMPL].[SERV CIA], [TABLA AUTOS AMPL].FOTO1, [TABLA AUTOS AMPL].[CONFIRMA L1], [TABLA AUTOS AMPL].PLACAS, [TABLA AUTOS AMPL].[D MATERIAL], [TABLA AUTOS AMPL].[R TOTAL], [TABLA AUTOS AMPL].[VALOR AUTO], [TABLA AUTOS AMPL].LOSS, [TABLA AUTOS AMPL].[CSL LIMITE], [TABLA AUTOS AMPL].RENT, [TABLA AUTOS AMPL].[COPIA B], [TABLA AUTOS AMPL].[DOCS 1], [TABLA AUTOS AMPL].[DOCS 2]

FROM DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

ORDER BY [TABLA AUTOS AMPL].[NO POLIZA] DESC;
```

###### `AUT AMPLIA R EDITA` (Select)

```sql
SELECT [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL R].COMP, [TABLA AUTOS AMPL R].AGENT, [TABLA AUTOS AMPL R].DESDE, [TABLA AUTOS AMPL R].HASTA, [TABLA AUTOS AMPL R].[VIG 1], [TABLA AUTOS AMPL R].[1ER PAGO], [TABLA AUTOS AMPL R].[FORMA  PAGO], [TABLA AUTOS AMPL R].MONEDA, [TABLA AUTOS AMPL R].[FECHA  PAGO], [TABLA AUTOS AMPL R].EFECTIVO, [TABLA AUTOS AMPL R].[NO CHEQUE], [TABLA AUTOS AMPL R].[PAGO SUBSEC], [TABLA AUTOS AMPL R].[FECHA PAGO 2], [TABLA AUTOS AMPL R].[MONED 2], [TABLA AUTOS AMPL R].[EFECTIVO 2], [TABLA AUTOS AMPL R].[NO CHEQUE 2], [TABLA AUTOS AMPL R].MARCA, [TABLA AUTOS AMPL R].MODELO, [TABLA AUTOS AMPL R].CARROCERIA, [TABLA AUTOS AMPL R].MOTOR, [TABLA AUTOS AMPL R].COLISION, [TABLA AUTOS AMPL R].[SUMA ROBO], [TABLA AUTOS AMPL R].[GASTOS MEDICO], [TABLA AUTOS AMPL R].OBSERVACIONES, [TABLA AUTOS AMPL R].COBERTURA, [TABLA AUTOS AMPL R].PROPIEDADES, [TABLA AUTOS AMPL R].CLAVE, [TABLA AUTOS AMPL R].[PRIMA NETA], [TABLA AUTOS AMPL R].[PRIMA NETA2], [TABLA AUTOS AMPL R].RECARGO, [TABLA AUTOS AMPL R].[RECARGO 2], [TABLA AUTOS AMPL R].[D POLIZA], [TABLA AUTOS AMPL R].[D POLIZA2], ([PRIMA NETA]+[RECARGO]+[D POLIZA])*[iva] AS expr1, [PRIMA NETA]+[RECARGO]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL R].LIQUIDADA, [TABLA AUTOS AMPL R].[LIQUIDADA 2], [TABLA AUTOS AMPL R].[NUM LIQUIDACION], [TABLA AUTOS AMPL R].[NUM LIQUIDACION2], [TABLA AUTOS AMPL R].[F LIQUIDA1], [TABLA AUTOS AMPL R].[F LIQUIDA2], [TABLA AUTOS AMPL R].RENOVACION, [TABLA AUTOS AMPL R].[A JURIDICA], ([PRIMA NETA2]+[RECARGO 2]+[D POLIZA2])*[iva] AS expr3, [PRIMA NETA2]+[RECARGO 2]+[D POLIZA2]+[EXPR3] AS EXPR4, [TABLA AUTOS AMPL R].[A CAMINO], [TABLA AUTOS AMPL R].COM, [TABLA AUTOS AMPL R].[COM 2], [TABLA AUTOS AMPL R].[CONFIRMA L1], [TABLA AUTOS AMPL R].[CONFIRMA L2], [TABLA AUTOS AMPL R].RENT

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS AMPL R] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL R].[NUMER ID]

ORDER BY [TABLA AUTOS AMPL R].[NO POLIZA] DESC;
```

###### `AUT AMPLIA R X POLIZA` (Select)

```sql
SELECT [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS AMPL R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS AMPL R].COMP, [TABLA AUTOS AMPL R].AGENT, [TABLA AUTOS AMPL R].DESDE, [TABLA AUTOS AMPL R].HASTA, [TABLA AUTOS AMPL R].[VIG 1], [TABLA AUTOS AMPL R].[1ER PAGO], [TABLA AUTOS AMPL R].[FORMA  PAGO], [TABLA AUTOS AMPL R].MONEDA, [TABLA AUTOS AMPL R].[FECHA  PAGO], [TABLA AUTOS AMPL R].EFECTIVO, [TABLA AUTOS AMPL R].[NO CHEQUE], [TABLA AUTOS AMPL R].[PAGO SUBSEC], [TABLA AUTOS AMPL R].[FECHA PAGO 2], [TABLA AUTOS AMPL R].[MONED 2], [TABLA AUTOS AMPL R].[EFECTIVO 2], [TABLA AUTOS AMPL R].[NO CHEQUE 2], [TABLA AUTOS AMPL R].MARCA, [TABLA AUTOS AMPL R].MODELO, [TABLA AUTOS AMPL R].CARROCERIA, [TABLA AUTOS AMPL R].MOTOR, [TABLA AUTOS AMPL R].COLISION, [TABLA AUTOS AMPL R].[SUMA ROBO], [TABLA AUTOS AMPL R].[GASTOS MEDICO], [TABLA AUTOS AMPL R].OBSERVACIONES, [TABLA AUTOS AMPL R].COBERTURA, [TABLA AUTOS AMPL R].PROPIEDADES, [TABLA AUTOS AMPL R].CLAVE, [TABLA AUTOS AMPL R].[PRIMA NETA], [TABLA AUTOS AMPL R].[PRIMA NETA2], [TABLA AUTOS AMPL R].RECARGO, [TABLA AUTOS AMPL R].[RECARGO 2], [TABLA AUTOS AMPL R].[D POLIZA], [TABLA AUTOS AMPL R].[D POLIZA2], ([PRIMA NETA]+[RECARGO]+[D POLIZA])*[iva] AS expr1, [PRIMA NETA]+[RECARGO]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL R].LIQUIDADA, [TABLA AUTOS AMPL R].[LIQUIDADA 2], [TABLA AUTOS AMPL R].[NUM LIQUIDACION], [TABLA AUTOS AMPL R].[NUM LIQUIDACION2], [TABLA AUTOS AMPL R].[F LIQUIDA1], [TABLA AUTOS AMPL R].[F LIQUIDA2], [TABLA AUTOS AMPL R].RENOVACION, [TABLA AUTOS AMPL R].[A JURIDICA], ([PRIMA NETA2]+[RECARGO 2]+[D POLIZA2])*[iva] AS expr3, [PRIMA NETA2]+[RECARGO 2]+[D POLIZA2]+[EXPR3] AS EXPR4, [TABLA AUTOS AMPL R].[A CAMINO], [TABLA AUTOS AMPL R].COM, [TABLA AUTOS AMPL R].[COM 2], [TABLA AUTOS AMPL R].[CONFIRMA L1], [TABLA AUTOS AMPL R].[CONFIRMA L2]

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS AMPL R] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL R].[NUMER ID]

WHERE ((([TABLA AUTOS AMPL R].[NO POLIZA])=[TECLEE NUM DE POLIZA A EDITAR]))

ORDER BY [TABLA AUTOS AMPL R].[NO POLIZA] DESC;
```

###### `AUT LIMI` (Select)

```sql
SELECT [TABLA AUTOS LIMIT].[NO POLIZA], [TABLA AUTOS LIMIT].FOLIO, [TABLA AUTOS LIMIT].[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS LIMIT].COMP, [TABLA AUTOS LIMIT].AGENT, [TABLA AUTOS LIMIT].DESDE, [TABLA AUTOS LIMIT].HASTA, [TABLA AUTOS LIMIT].[FORMA  PAGO], [TABLA AUTOS LIMIT].MONEDA, [TABLA AUTOS LIMIT].[FECHA  PAGO], [TABLA AUTOS LIMIT].EFECTIVO, [TABLA AUTOS LIMIT].[NO CHEQUE], [TABLA AUTOS LIMIT].MARCA, [TABLA AUTOS LIMIT].MODELO, [TABLA AUTOS LIMIT].CARROCERIA, [TABLA AUTOS LIMIT].MOTOR, [TABLA AUTOS LIMIT].[SUMA ROBO], [TABLA AUTOS LIMIT].[GASTOS MEDICO], [TABLA AUTOS LIMIT].ENDOSO, [TABLA AUTOS LIMIT].OBSERVACIONES, [TABLA AUTOS LIMIT].COBERTURA, [TABLA AUTOS LIMIT].PROPIEDADES, [TABLA AUTOS LIMIT].PERSONAS, [TABLA AUTOS LIMIT].[SERVICIO ADICIONAL], [TABLA AUTOS LIMIT].CLAVE, [TABLA AUTOS LIMIT].HORA, [PERSONAS]*2 AS Expr4, [TABLA AUTOS LIMIT].[PRIMA NETA], [TABLA AUTOS LIMIT].[D POLIZA], [TABLA AUTOS LIMIT].IVA, [TABLA AUTOS LIMIT].TOTAL, [TABLA AUTOS LIMIT].LIQUIDADA, [TABLA AUTOS LIMIT].RENOVACION

FROM DATGRAL INNER JOIN [TABLA AUTOS LIMIT] ON DATGRAL.[NUM id] = [TABLA AUTOS LIMIT].[NUMER ID]

ORDER BY [TABLA AUTOS LIMIT].[NO POLIZA] DESC;
```

###### `AUT LIMI RESID` (Select)

```sql
SELECT [TABLA AUTOS LIMIT R].[NO POLIZA], [TABLA AUTOS LIMIT R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS LIMIT R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS LIMIT R].COMP, [TABLA AUTOS LIMIT R].AGENT, [TABLA AUTOS LIMIT R].DESDE, [TABLA AUTOS LIMIT R].HASTA, [TABLA AUTOS LIMIT R].[FORMA  PAGO], [TABLA AUTOS LIMIT R].MONEDA, [TABLA AUTOS LIMIT R].[FECHA  PAGO], [TABLA AUTOS LIMIT R].EFECTIVO, [TABLA AUTOS LIMIT R].[NO CHEQUE], [TABLA AUTOS LIMIT R].MARCA, [TABLA AUTOS LIMIT R].MODELO, [TABLA AUTOS LIMIT R].CARROCERIA, [TABLA AUTOS LIMIT R].MOTOR, [TABLA AUTOS LIMIT R].[SUMA ROBO], [TABLA AUTOS LIMIT R].[GASTOS MEDICO], [TABLA AUTOS LIMIT R].ENDOSO, [TABLA AUTOS LIMIT R].OBSERVACIONES, [TABLA AUTOS LIMIT R].COBERTURA, [TABLA AUTOS LIMIT R].PROPIEDADES, [TABLA AUTOS LIMIT R].[SERVICIO ADICIONAL], [TABLA AUTOS LIMIT R].CLAVE, [TABLA AUTOS LIMIT R].HORA, [TABLA AUTOS LIMIT R].[PRIMA NETA], [TABLA AUTOS LIMIT R].[D POLIZA], [TABLA AUTOS LIMIT R].LIQUIDADA, [TABLA AUTOS LIMIT R].RENOVACION, [TABLA AUTOS LIMIT R].[A JURIDICA], [TABLA AUTOS LIMIT R].[A CAMINO], [TABLA AUTOS LIMIT R].CONTR, ([PRIMA NETA]+[D POLIZA])*[iva] AS expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS LIMIT R] ON DATGRAL.[NUM id] = [TABLA AUTOS LIMIT R].[NUMER ID]

ORDER BY [TABLA AUTOS LIMIT R].[NO POLIZA] DESC;
```

###### `AUT LIMI RESID X POLIZA` (Select)

```sql
SELECT [TABLA AUTOS LIMIT R].[NO POLIZA], [TABLA AUTOS LIMIT R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS LIMIT R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS LIMIT R].COMP, [TABLA AUTOS LIMIT R].AGENT, [TABLA AUTOS LIMIT R].DESDE, [TABLA AUTOS LIMIT R].HASTA, [TABLA AUTOS LIMIT R].[FORMA  PAGO], [TABLA AUTOS LIMIT R].MONEDA, [TABLA AUTOS LIMIT R].[FECHA  PAGO], [TABLA AUTOS LIMIT R].EFECTIVO, [TABLA AUTOS LIMIT R].[NO CHEQUE], [TABLA AUTOS LIMIT R].MARCA, [TABLA AUTOS LIMIT R].MODELO, [TABLA AUTOS LIMIT R].CARROCERIA, [TABLA AUTOS LIMIT R].MOTOR, [TABLA AUTOS LIMIT R].[SUMA ROBO], [TABLA AUTOS LIMIT R].[GASTOS MEDICO], [TABLA AUTOS LIMIT R].ENDOSO, [TABLA AUTOS LIMIT R].OBSERVACIONES, [TABLA AUTOS LIMIT R].COBERTURA, [TABLA AUTOS LIMIT R].PROPIEDADES, [TABLA AUTOS LIMIT R].[SERVICIO ADICIONAL], [TABLA AUTOS LIMIT R].CLAVE, [TABLA AUTOS LIMIT R].HORA, [TABLA AUTOS LIMIT R].[PRIMA NETA], [TABLA AUTOS LIMIT R].[D POLIZA], [TABLA AUTOS LIMIT R].LIQUIDADA, [TABLA AUTOS LIMIT R].RENOVACION, [TABLA AUTOS LIMIT R].[A JURIDICA], [TABLA AUTOS LIMIT R].[A CAMINO], ([PRIMA NETA]+[D POLIZA])*[iva] AS expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS LIMIT R].CONTR

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS LIMIT R] ON DATGRAL.[NUM id] = [TABLA AUTOS LIMIT R].[NUMER ID]

WHERE ((([TABLA AUTOS LIMIT R].[NO POLIZA])=[TECLEE NUM DE POLIZA A EDITAR]))

ORDER BY [TABLA AUTOS LIMIT R].[NO POLIZA] DESC;
```

###### `AUT LIMI RESID new` (Select)

```sql
SELECT [TABLA AUTOS LIMIT R].[NO POLIZA], [TABLA AUTOS LIMIT R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS LIMIT R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS LIMIT R].COMP, [TABLA AUTOS LIMIT R].AGENT, [TABLA AUTOS LIMIT R].DESDE, [TABLA AUTOS LIMIT R].HASTA, [TABLA AUTOS LIMIT R].[FORMA  PAGO], [TABLA AUTOS LIMIT R].MONEDA, [TABLA AUTOS LIMIT R].[FECHA  PAGO], [TABLA AUTOS LIMIT R].EFECTIVO, [TABLA AUTOS LIMIT R].[NO CHEQUE], [TABLA AUTOS LIMIT R].MARCA, [TABLA AUTOS LIMIT R].MODELO, [TABLA AUTOS LIMIT R].CARROCERIA, [TABLA AUTOS LIMIT R].MOTOR, [TABLA AUTOS LIMIT R].[SUMA ROBO], [TABLA AUTOS LIMIT R].[GASTOS MEDICO], [TABLA AUTOS LIMIT R].ENDOSO, [TABLA AUTOS LIMIT R].OBSERVACIONES, [TABLA AUTOS LIMIT R].COBERTURA, [TABLA AUTOS LIMIT R].PROPIEDADES, [TABLA AUTOS LIMIT R].[SERVICIO ADICIONAL], [TABLA AUTOS LIMIT R].CLAVE, [TABLA AUTOS LIMIT R].HORA, [TABLA AUTOS LIMIT R].[PRIMA NETA], [TABLA AUTOS LIMIT R].[D POLIZA], [TABLA AUTOS LIMIT R].LIQUIDADA, [TABLA AUTOS LIMIT R].RENOVACION, [TABLA AUTOS LIMIT R].[A JURIDICA], [TABLA AUTOS LIMIT R].[A CAMINO], [TABLA AUTOS LIMIT R].CONTR

FROM DATGRAL INNER JOIN [TABLA AUTOS LIMIT R] ON DATGRAL.[NUM id] = [TABLA AUTOS LIMIT R].[NUMER ID]

ORDER BY [TABLA AUTOS LIMIT R].[NO POLIZA] DESC;
```

###### `AUT LIMI X POLIZA` (Select)

```sql
SELECT [TABLA AUTOS LIMIT].[NO POLIZA], [TABLA AUTOS LIMIT].[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS LIMIT].COMP, [TABLA AUTOS LIMIT].AGENT, [TABLA AUTOS LIMIT].DESDE, [TABLA AUTOS LIMIT].HASTA, [TABLA AUTOS LIMIT].[FORMA  PAGO], [TABLA AUTOS LIMIT].MONEDA, [TABLA AUTOS LIMIT].[FECHA  PAGO], [TABLA AUTOS LIMIT].EFECTIVO, [TABLA AUTOS LIMIT].[NO CHEQUE], [TABLA AUTOS LIMIT].MARCA, [TABLA AUTOS LIMIT].MODELO, [TABLA AUTOS LIMIT].CARROCERIA, [TABLA AUTOS LIMIT].MOTOR, [TABLA AUTOS LIMIT].[SUMA ROBO], [TABLA AUTOS LIMIT].[GASTOS MEDICO], [TABLA AUTOS LIMIT].ENDOSO, [TABLA AUTOS LIMIT].OBSERVACIONES, [TABLA AUTOS LIMIT].COBERTURA, [TABLA AUTOS LIMIT].PROPIEDADES, [TABLA AUTOS LIMIT].PERSONAS, [TABLA AUTOS LIMIT].[SERVICIO ADICIONAL], [TABLA AUTOS LIMIT].CLAVE, [TABLA AUTOS LIMIT].HORA, [PERSONAS]*2 AS Expr4, [TABLA AUTOS LIMIT].[PRIMA NETA], [TABLA AUTOS LIMIT].[D POLIZA], [TABLA AUTOS LIMIT].IVA, [TABLA AUTOS LIMIT].TOTAL, [TABLA AUTOS LIMIT].LIQUIDADA, [TABLA AUTOS LIMIT].RENOVACION

FROM DATGRAL INNER JOIN [TABLA AUTOS LIMIT] ON DATGRAL.[NUM id] = [TABLA AUTOS LIMIT].[NUMER ID]

WHERE ((([TABLA AUTOS LIMIT].[NO POLIZA])=[TECLEE NUM DE POLIZA A EDITAR]))

ORDER BY [TABLA AUTOS LIMIT].[NO POLIZA] DESC;
```

###### `AUT RESP CIV RES EDITA` (Select)

```sql
SELECT [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS RC R].ENDOSO, [TABLA AUTOS RC R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].AGENT, [TABLA AUTOS RC R].CLAVE, [TABLA AUTOS RC R].HORA, [TABLA AUTOS RC R].DESDE, [TABLA AUTOS RC R].HASTA, [TABLA AUTOS RC R].[VIG 1], [TABLA AUTOS RC R].[FORMA  PAGO], [TABLA AUTOS RC R].COM, [TABLA AUTOS RC R].[COM 2], [TABLA AUTOS RC R].MONEDA, [TABLA AUTOS RC R].[FECHA  PAGO], [TABLA AUTOS RC R].EFECTIVO, [TABLA AUTOS RC R].[NO CHEQUE], [TABLA AUTOS RC R].OBSERVACIONES, [TABLA AUTOS RC R].COBERTURA, [TABLA AUTOS RC R].PROPIEDADES, [TABLA AUTOS RC R].[GASTOS MEDICO], [TABLA AUTOS RC R].[SERVICIO ADICIONAL], [TABLA AUTOS RC R].[PRIMA NETA], [TABLA AUTOS RC R].[D POLIZA], ([PRIMA NETA]+[D POLIZA]+[recargo])*[iva] AS Expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1]+[recargo] AS Expr2, [TABLA AUTOS RC R].LIQUIDADA, [TABLA AUTOS RC R].RENOVACION, [TABLA AUTOS RC R].[A JURIDICA], [TABLA AUTOS RC R].[A CAMINO], [TABLA AUTOS RC R].MARCA, [TABLA AUTOS RC R].MODELO, [TABLA AUTOS RC R].CARROCERIA, [TABLA AUTOS RC R].MOTOR, [TABLA AUTOS RC R].[1ER PAGO], [TABLA AUTOS RC R].[PAGO SUBSEC], [TABLA AUTOS RC R].[FECHA PAGO 2], [TABLA AUTOS RC R].[MONED 2], [TABLA AUTOS RC R].[EFECTIVO 2], [TABLA AUTOS RC R].[NO CHEQUE 2], [TABLA AUTOS RC R].[PRIMA NETA2], [TABLA AUTOS RC R].RECARGO, [TABLA AUTOS RC R].[RECARGO 2], [TABLA AUTOS RC R].[D POLIZA2], ([PRIMA NETA2]+[RECARGO 2]+[D POLIZA2])*[iva] AS expr3, [PRIMA NETA2]+[RECARGO 2]+[D POLIZA2]+[EXPR3] AS EXPR4, [TABLA AUTOS RC R].[LIQUIDADA 2], [TABLA AUTOS RC R].[NUM LIQUIDACION], [TABLA AUTOS RC R].[NUM LIQUIDACION2], [TABLA AUTOS RC R].[F LIQUIDA1], [TABLA AUTOS RC R].[F LIQUIDA2], [TABLA AUTOS RC R].[CONFIRMA L1], [TABLA AUTOS RC R].[CONFIRMA L2], [TABLA AUTOS RC R].RENT

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS RC R] ON DATGRAL.[NUM id] = [TABLA AUTOS RC R].[NUMER ID]

ORDER BY [TABLA AUTOS RC R].[NO POLIZA] DESC , [TABLA AUTOS RC R].[NUMER ID];
```

###### `AUT RESP CIV RES X POLIZA` (Select)

```sql
SELECT [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS RC R].ENDOSO, [TABLA AUTOS RC R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].AGENT, [TABLA AUTOS RC R].CLAVE, [TABLA AUTOS RC R].HORA, [TABLA AUTOS RC R].DESDE, [TABLA AUTOS RC R].HASTA, [TABLA AUTOS RC R].[VIG 1], [TABLA AUTOS RC R].[FORMA  PAGO], [TABLA AUTOS RC R].COM, [TABLA AUTOS RC R].[COM 2], [TABLA AUTOS RC R].MONEDA, [TABLA AUTOS RC R].[FECHA  PAGO], [TABLA AUTOS RC R].EFECTIVO, [TABLA AUTOS RC R].[NO CHEQUE], [TABLA AUTOS RC R].OBSERVACIONES, [TABLA AUTOS RC R].COBERTURA, [TABLA AUTOS RC R].PROPIEDADES, [TABLA AUTOS RC R].[GASTOS MEDICO], [TABLA AUTOS RC R].[SERVICIO ADICIONAL], [TABLA AUTOS RC R].[PRIMA NETA], [TABLA AUTOS RC R].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS Expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS Expr2, [TABLA AUTOS RC R].LIQUIDADA, [TABLA AUTOS RC R].RENOVACION, [TABLA AUTOS RC R].[A JURIDICA], [TABLA AUTOS RC R].[A CAMINO], [TABLA AUTOS RC R].MARCA, [TABLA AUTOS RC R].MODELO, [TABLA AUTOS RC R].CARROCERIA, [TABLA AUTOS RC R].MOTOR, [TABLA AUTOS RC R].[1ER PAGO], [TABLA AUTOS RC R].[PAGO SUBSEC], [TABLA AUTOS RC R].[FECHA PAGO 2], [TABLA AUTOS RC R].[MONED 2], [TABLA AUTOS RC R].[EFECTIVO 2], [TABLA AUTOS RC R].[NO CHEQUE 2], [TABLA AUTOS RC R].[PRIMA NETA2], [TABLA AUTOS RC R].RECARGO, [TABLA AUTOS RC R].[RECARGO 2], [TABLA AUTOS RC R].[D POLIZA2], ([PRIMA NETA2]+[RECARGO 2]+[D POLIZA2])*[iva] AS expr3, [PRIMA NETA2]+[RECARGO 2]+[D POLIZA2]+[EXPR3] AS EXPR4, [TABLA AUTOS RC R].[LIQUIDADA 2], [TABLA AUTOS RC R].[NUM LIQUIDACION], [TABLA AUTOS RC R].[NUM LIQUIDACION2], [TABLA AUTOS RC R].[F LIQUIDA1], [TABLA AUTOS RC R].[F LIQUIDA2], [TABLA AUTOS RC R].[CONFIRMA L1], [TABLA AUTOS RC R].[CONFIRMA L2]

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS RC R] ON DATGRAL.[NUM id] = [TABLA AUTOS RC R].[NUMER ID]

WHERE ((([TABLA AUTOS RC R].[NO POLIZA])=[TECLEE EL NUM DE POLIZA A EDITAR]))

ORDER BY [TABLA AUTOS RC R].[NO POLIZA] DESC , [TABLA AUTOS RC R].[NUMER ID];
```

###### `AUT RESP CIV TUR EDITA` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].FOLIO, [TABLA AUTOS].[P ANTERIOR], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].CLAVE, [TABLA AUTOS].HORA, [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[FORMA  PAGO], [TABLA AUTOS].MONEDA, [TABLA AUTOS].[FECHA  PAGO], [TABLA AUTOS].EFECTIVO, [TABLA AUTOS].[NO CHEQUE], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[PLACA 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[PLACA 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], [TABLA AUTOS].OBSERVACIONES, [TABLA AUTOS].COBERTURA, [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [PERSONAS]*2 AS Expr4, [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[PRIMA NETA], [TABLA AUTOS].[D POLIZA], ([prima neta]+[d poliza])*[iva] AS Expr1, [prima neta]+[d poliza]+[expr1] AS Expr2, [TABLA AUTOS].LIQUIDADA, [TABLA AUTOS].RENOVACION, [TABLA AUTOS].CONTR, [TABLA AUTOS].[F EMISION], [TABLA AUTOS].ENDOSO, [TABLA AUTOS].[NUM LIQUIDACION], [TABLA AUTOS].[F LIQUIDA1], [TABLA AUTOS].[CONFIRMA L1], [TABLA AUTOS].[SERV CIA], [TABLA AUTOS].[CSL LIMITE], [TABLA AUTOS].RENT

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

ORDER BY [TABLA AUTOS].[NO POLIZA] DESC , [TABLA AUTOS].[NUMER ID];
```

###### `AUT RESP CIV TUR X POLIZA` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].FOLIO, [TABLA AUTOS].[P ANTERIOR], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].CLAVE, [TABLA AUTOS].HORA, [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[FORMA  PAGO], [TABLA AUTOS].MONEDA, [TABLA AUTOS].[FECHA  PAGO], [TABLA AUTOS].EFECTIVO, [TABLA AUTOS].[NO CHEQUE], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], [TABLA AUTOS].OBSERVACIONES, [TABLA AUTOS].COBERTURA, [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [PERSONAS]*2 AS Expr4, [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[PRIMA NETA], [TABLA AUTOS].[D POLIZA], ([prima neta]+[d poliza])*[iva] AS Expr1, [prima neta]+[d poliza]+[expr1] AS Expr2, [TABLA AUTOS].LIQUIDADA, [TABLA AUTOS].RENOVACION, [TABLA AUTOS].CONTR, [TABLA AUTOS].[F EMISION], [TABLA AUTOS].ENDOSO, [TABLA AUTOS].[NUM LIQUIDACION], [TABLA AUTOS].[F LIQUIDA1], [TABLA AUTOS].[CONFIRMA L1], [TABLA AUTOS].[SERV CIA]

FROM IMPUESTOS_AUTOS, DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE EL NUM DE POLIZA A EDITAR]))

ORDER BY [TABLA AUTOS].[NO POLIZA] DESC , [TABLA AUTOS].[NUMER ID];
```

###### `AUT RESP CIV TUR X POLIZA Consulta` (Delete)

```sql
UPDATE [AUT RESP CIV TUR X POLIZA PARA LIQUIDA] SET [AUT RESP CIV TUR X POLIZA PARA LIQUIDA].LIQUIDADA = [TABLA AUTOS]![LIQUIDADA]=1, [AUT RESP CIV TUR X POLIZA PARA LIQUIDA].[NUM LIQUIDACION] = [TABLA AUTOS]![NUM LIQUIDACION]=Null, [AUT RESP CIV TUR X POLIZA PARA LIQUIDA].[F LIQUIDA1] = [TABLA AUTOS]![F LIQUIDA1]=Null;
```

###### `AUT RESP CIV TUR X POLIZA PARA LIQUIDA` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].FOLIO, [TABLA AUTOS].[P ANTERIOR], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].CLAVE, [TABLA AUTOS].HORA, [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[FORMA  PAGO], [TABLA AUTOS].MONEDA, [TABLA AUTOS].[FECHA  PAGO], [TABLA AUTOS].EFECTIVO, [TABLA AUTOS].[NO CHEQUE], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], [TABLA AUTOS].OBSERVACIONES, [TABLA AUTOS].COBERTURA, [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [PERSONAS]*2 AS Expr4, [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[PRIMA NETA], [TABLA AUTOS].[D POLIZA], ([prima neta]+[d poliza])*0.1 AS Expr1, [prima neta]+[d poliza]+[expr1] AS Expr2, [TABLA AUTOS].LIQUIDADA, [TABLA AUTOS].RENOVACION, [TABLA AUTOS].CONTR, [TABLA AUTOS].[F EMISION], [TABLA AUTOS].ENDOSO, [TABLA AUTOS].[NUM LIQUIDACION], [TABLA AUTOS].[F LIQUIDA1]

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[CONFIRME EL NUMERO DE POLIZA A CAMBIAR]))

ORDER BY [TABLA AUTOS].[NO POLIZA] DESC , [TABLA AUTOS].[NUMER ID];
```

###### `AUT new` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].FOLIO, [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].CLAVE, [TABLA AUTOS].HORA, [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[FORMA  PAGO], [TABLA AUTOS].CONTR, [TABLA AUTOS].MONEDA, [TABLA AUTOS].[FECHA  PAGO], [TABLA AUTOS].EFECTIVO, [TABLA AUTOS].[NO CHEQUE], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[PLACA 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[PLACA 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], [TABLA AUTOS].OBSERVACIONES, [TABLA AUTOS].COBERTURA, [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [PERSONAS]*2 AS Expr4, [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[PRIMA NETA], [TABLA AUTOS].[D POLIZA], [PRIMA NETA]+[D POLIZA]+[EXPR1] AS Expr2, [TABLA AUTOS].LIQUIDADA, [TABLA AUTOS].RENOVACION, [TABLA AUTOS].[F EMISION], [TABLA AUTOS].[P ANTERIOR], [TABLA AUTOS].ENDOSO, [TABLA AUTOS].[NUM LIQUIDACION], [TABLA AUTOS].[F LIQUIDA1], [TABLA AUTOS].[CONFIRMA L1], [TABLA AUTOS].[SERV CIA], [TABLA AUTOS].[CSL LIMITE], [TABLA AUTOS].RENT

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

ORDER BY [TABLA AUTOS].[NO POLIZA] DESC , [TABLA AUTOS].[NUMER ID];
```

###### `AUTOS DATOS MARCA AMPL` (Update)

```sql
INSERT INTO [DATOS AUTOS] ( MARCA )

SELECT DISTINCT [TABLA AUTOS AMPL].MARCA

FROM [TABLA AUTOS AMPL]

WHERE ((([TABLA AUTOS AMPL].MARCA)>""));
```

###### `AUTOS DATOS MARCA RC` (Update)

```sql
INSERT INTO [DATOS AUTOS] ( MARCA )

SELECT DISTINCT [TABLA AUTOS].[MARCA 1]

FROM [TABLA AUTOS]

WHERE ((([TABLA AUTOS].[MARCA 1])>""));
```

###### `AUTOS DATOS TIPO AMPL` (Update)

```sql
INSERT INTO [DATOS AUTOS TIPO] ( TIPO )

SELECT DISTINCT [TABLA AUTOS AMPL].CARROCERIA

FROM [TABLA AUTOS AMPL]

WHERE ((([TABLA AUTOS AMPL].CARROCERIA)>""));
```

###### `AUTOS DATOS TIPO PC` (Update)

```sql
INSERT INTO [DATOS AUTOS TIPO] ( TIPO )

SELECT DISTINCT [TABLA AUTOS].[CARROCERIA 1]

FROM [TABLA AUTOS]

WHERE ((([TABLA AUTOS].[CARROCERIA 1])>""));
```

###### `AUTOS RRC` (Select)

```sql
SELECT [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS RC R].ENDOSO, [TABLA AUTOS RC R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].AGENT, [TABLA AUTOS RC R].CLAVE, [TABLA AUTOS RC R].HORA, [TABLA AUTOS RC R].DESDE, [TABLA AUTOS RC R].HASTA, [TABLA AUTOS RC R].[VIG 1], [TABLA AUTOS RC R].[FORMA  PAGO], [TABLA AUTOS RC R].COM, [TABLA AUTOS RC R].[COM 2], [TABLA AUTOS RC R].MONEDA, [TABLA AUTOS RC R].[FECHA  PAGO], [TABLA AUTOS RC R].EFECTIVO, [TABLA AUTOS RC R].[NO CHEQUE], [TABLA AUTOS RC R].OBSERVACIONES, [TABLA AUTOS RC R].COBERTURA, [TABLA AUTOS RC R].PROPIEDADES, [TABLA AUTOS RC R].[GASTOS MEDICO], [TABLA AUTOS RC R].[SERVICIO ADICIONAL], [TABLA AUTOS RC R].[PRIMA NETA], [TABLA AUTOS RC R].[D POLIZA], ([PRIMA NETA]+[D POLIZA]+[recargo])*[iva] AS Expr1, [PRIMA NETA]+[D POLIZA]+[recargo]+[EXPR1] AS Expr2, [TABLA AUTOS RC R].LIQUIDADA, [TABLA AUTOS RC R].RENOVACION, [TABLA AUTOS RC R].[A JURIDICA], [TABLA AUTOS RC R].[A CAMINO], [TABLA AUTOS RC R].MARCA, [TABLA AUTOS RC R].MODELO, [TABLA AUTOS RC R].CARROCERIA, [TABLA AUTOS RC R].MOTOR, [TABLA AUTOS RC R].[1ER PAGO], [TABLA AUTOS RC R].[PAGO SUBSEC], [TABLA AUTOS RC R].[FECHA PAGO 2], [TABLA AUTOS RC R].[MONED 2], [TABLA AUTOS RC R].[EFECTIVO 2], [TABLA AUTOS RC R].[NO CHEQUE 2], [TABLA AUTOS RC R].[PRIMA NETA2], [TABLA AUTOS RC R].RECARGO, [TABLA AUTOS RC R].[RECARGO 2], [TABLA AUTOS RC R].[D POLIZA2], ([PRIMA NETA2]+[RECARGO 2]+[D POLIZA2])*[iva] AS expr3, [PRIMA NETA2]+[RECARGO 2]+[D POLIZA2]+[EXPR3] AS EXPR4, [TABLA AUTOS RC R].[LIQUIDADA 2], [TABLA AUTOS RC R].[NUM LIQUIDACION], [TABLA AUTOS RC R].[NUM LIQUIDACION2], [TABLA AUTOS RC R].[F LIQUIDA1], [TABLA AUTOS RC R].[F LIQUIDA2], [TABLA AUTOS RC R].[CONFIRMA L1], [TABLA AUTOS RC R].[CONFIRMA L2], [TABLA AUTOS RC R].RENT

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS RC R] ON DATGRAL.[NUM id] = [TABLA AUTOS RC R].[NUMER ID]

ORDER BY [TABLA AUTOS RC R].[NO POLIZA] DESC , [TABLA AUTOS RC R].[NUMER ID];
```

###### `AUTOS RRC new` (Select)

```sql
SELECT [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS RC R].ENDOSO, [TABLA AUTOS RC R].[NOMBRE ASEG], DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].AGENT, [TABLA AUTOS RC R].CLAVE, [TABLA AUTOS RC R].HORA, [TABLA AUTOS RC R].DESDE, [TABLA AUTOS RC R].HASTA, [TABLA AUTOS RC R].[VIG 1], [TABLA AUTOS RC R].[FORMA  PAGO], [TABLA AUTOS RC R].COM, [TABLA AUTOS RC R].[COM 2], [TABLA AUTOS RC R].MONEDA, [TABLA AUTOS RC R].[FECHA  PAGO], [TABLA AUTOS RC R].EFECTIVO, [TABLA AUTOS RC R].[NO CHEQUE], [TABLA AUTOS RC R].OBSERVACIONES, [TABLA AUTOS RC R].COBERTURA, [TABLA AUTOS RC R].PROPIEDADES, [TABLA AUTOS RC R].[GASTOS MEDICO], [TABLA AUTOS RC R].[SERVICIO ADICIONAL], [TABLA AUTOS RC R].[PRIMA NETA], [TABLA AUTOS RC R].[D POLIZA], [TABLA AUTOS RC R].LIQUIDADA, [TABLA AUTOS RC R].RENOVACION, [TABLA AUTOS RC R].[A JURIDICA], [TABLA AUTOS RC R].[A CAMINO], [TABLA AUTOS RC R].MARCA, [TABLA AUTOS RC R].MODELO, [TABLA AUTOS RC R].CARROCERIA, [TABLA AUTOS RC R].MOTOR, [TABLA AUTOS RC R].[1ER PAGO], [TABLA AUTOS RC R].[PAGO SUBSEC], [TABLA AUTOS RC R].[FECHA PAGO 2], [TABLA AUTOS RC R].[MONED 2], [TABLA AUTOS RC R].[EFECTIVO 2], [TABLA AUTOS RC R].[NO CHEQUE 2], [TABLA AUTOS RC R].[PRIMA NETA2], [TABLA AUTOS RC R].RECARGO, [TABLA AUTOS RC R].[RECARGO 2], [TABLA AUTOS RC R].[D POLIZA2], [TABLA AUTOS RC R].[LIQUIDADA 2], [TABLA AUTOS RC R].[NUM LIQUIDACION], [TABLA AUTOS RC R].[NUM LIQUIDACION2], [TABLA AUTOS RC R].[F LIQUIDA1], [TABLA AUTOS RC R].[F LIQUIDA2], [TABLA AUTOS RC R].[CONFIRMA L1], [TABLA AUTOS RC R].[CONFIRMA L2], [TABLA AUTOS RC R].RENT

FROM DATGRAL INNER JOIN [TABLA AUTOS RC R] ON DATGRAL.[NUM id] = [TABLA AUTOS RC R].[NUMER ID]

ORDER BY [TABLA AUTOS RC R].[NO POLIZA] DESC , [TABLA AUTOS RC R].[NUMER ID];
```

###### `BORRA CA R` (Crosstab)

```sql
DELETE [TABLA AUTOS AMPL R].*, [TABLA AUTOS AMPL R].[NO POLIZA]

FROM [TABLA AUTOS AMPL R]

WHERE ((([TABLA AUTOS AMPL R].[NO POLIZA])=[TECLEE NUMERO DE POLIZA A BORRAR]));
```

###### `BORRA CONTACTO` (Crosstab)

```sql
DELETE CONTACTS.*, CONTACTS.ID

FROM CONTACTS

WHERE (((CONTACTS.ID)=[TECLE EL NUMERO DE CONTACTO A BORRAR]));
```

###### `BORRA EDOSEG` (Crosstab)

```sql
DELETE EDOSEG.NUMID

FROM EDOSEG;
```

###### `BORRA INCEN` (Crosstab)

```sql
DELETE INCENDIO.*, INCENDIO.[NO POLIZA]

FROM INCENDIO

WHERE (((INCENDIO.[NO POLIZA])=[TECLEE NUMERO DE POLIZA A BORRAR]));
```

###### `BORRA LICENCIAS` (Crosstab)

```sql
DELETE LICENCIAS.*, LICENCIAS.[NO POLIZA]

FROM LICENCIAS

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUMERO DE POLIZA A BORRAR]));
```

###### `BORRA LIMIT` (Crosstab)

```sql
DELETE [TABLA AUTOS LIMIT].*, [TABLA AUTOS LIMIT].[NO POLIZA]

FROM [TABLA AUTOS LIMIT]

WHERE ((([TABLA AUTOS LIMIT].[NO POLIZA])=[TECLEE NUEMRO DE POLIZA A BORRAR]));
```

###### `BORRA LIMIT RESID` (Crosstab)

```sql
DELETE [TABLA AUTOS LIMIT R].*, [TABLA AUTOS LIMIT R].[NO POLIZA]

FROM [TABLA AUTOS LIMIT R]

WHERE ((([TABLA AUTOS LIMIT R].[NO POLIZA])=[TECLEE NUEMRO DE POLIZA A BORRAR]));
```

###### `BORRA LIQUIDA MCA2` (Crosstab)

```sql
DELETE [TABLA LIQUIDA MCA2].[NUM id] AS Expr1, [TABLA LIQUIDA MCA2].[NOMBRE] AS Expr2, [TABLA LIQUIDA MCA2].[LETPOL] AS Expr3, [TABLA LIQUIDA MCA2].[NO POLIZA], [TABLA LIQUIDA MCA2].[DESDE] AS Expr4, [TABLA LIQUIDA MCA2].[HASTA] AS Expr5, [TABLA LIQUIDA MCA2].[PRIMA NETA], [TABLA LIQUIDA MCA2].[D POLIZA], [TABLA LIQUIDA MCA2].IVA, [TABLA LIQUIDA MCA2].TOTAL, [TABLA LIQUIDA MCA2].[COMP] AS Expr6, [TABLA LIQUIDA MCA2].[NUM LIQUIDACION] AS Expr7

FROM [TABLA LIQUIDA MCA2];
```

###### `BORRA LIQUIDA MF` (Crosstab)

```sql
DELETE [TABLA LIQUIDA MF].[NO POLIZA], [TABLA LIQUIDA MF].[FORMA PAGO], [TABLA LIQUIDA MF].[F PAGO], [TABLA LIQUIDA MF].[LET POL], [TABLA LIQUIDA MF].CONTROL, [TABLA LIQUIDA MF].[PRIMA NETA], [TABLA LIQUIDA MF].[D POLIZA], [TABLA LIQUIDA MF].IVA, [TABLA LIQUIDA MF].TOTAL, [TABLA LIQUIDA MF].ASEGURADO, [TABLA LIQUIDA MF].COMPA, [TABLA LIQUIDA MF].AGENTE, [TABLA LIQUIDA MF].[NO INCLUIR]

FROM [TABLA LIQUIDA MF];
```

###### `BORRA LIQUIDA RES` (Crosstab)

```sql
DELETE [TABLA LIQUIDA RES].[NO POLIZA]

FROM [TABLA LIQUIDA RES];
```

###### `BORRA LIQUIDA TUR` (Crosstab)

```sql
DELETE [TABLA LIQUIDA TUR].[NUM id], [TABLA LIQUIDA TUR].NOMBRE, [TABLA LIQUIDA TUR].LETPOL, [TABLA LIQUIDA TUR].[NO POLIZA], [TABLA LIQUIDA TUR].DESDE, [TABLA LIQUIDA TUR].HASTA, [TABLA LIQUIDA TUR].[PRIMA NETA], [TABLA LIQUIDA TUR].[D POLIZA], [TABLA LIQUIDA TUR].IVA, [TABLA LIQUIDA TUR].TOTAL, [TABLA LIQUIDA TUR].COMP, [TABLA LIQUIDA TUR].[NUM LIQUIDACION]

FROM [TABLA LIQUIDA TUR];
```

###### `BORRA MCA2` (Crosstab)

```sql
DELETE MCA2.*, MCA2.POLIZA

FROM MCA2

WHERE (((MCA2.POLIZA)=[TECLEE NUMERO DE POLIZA A BORRAR]));
```

###### `BORRA ME` (Crosstab)

```sql
DELETE [M EMPR].*, [M EMPR].[NO POLIZA]

FROM [M EMPR]

WHERE ((([M EMPR].[NO POLIZA])=[TECLEE NUMERO DE POLIZA A BORRAR]));
```

###### `BORRA MULT` (Crosstab)

```sql
DELETE MULT.*, MULT.[NO POLIZA]

FROM MULT

WHERE (((MULT.[NO POLIZA])=[TECLEE NUMERO DE POLIZA A BORRAR]));
```

###### `BORRA RC POLIZA` (Crosstab)

```sql
DELETE [TABLA AUTOS].[NO POLIZA]

FROM [TABLA AUTOS]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM POLIZA A BORRAR]));
```

###### `BORRA RC RES POLIZA` (Crosstab)

```sql
DELETE [TABLA AUTOS RC R].[NO POLIZA]

FROM [TABLA AUTOS RC R]

WHERE ((([TABLA AUTOS RC R].[NO POLIZA])=[TECLEE NUM POLIZA A BORRAR]));
```

###### `BORRA S Y U` (Crosstab)

```sql
DELETE UTILSEG.NOMBRE

FROM UTILSEG;
```

###### `BORRA TABLA TODOS` (Crosstab)

```sql
DELETE TODOS.[NUMER ID], TODOS.LETPOL, TODOS.[NO POLIZA], TODOS.DESDE, TODOS.HASTA

FROM TODOS;
```

###### `BORRA TODOSJC` (Crosstab)

```sql
DELETE TODOSJC.[NUMER ID]

FROM TODOSJC;
```

###### `BORRAR A AMPLIA` (Crosstab)

```sql
DELETE [TABLA AUTOS AMPL].*, [TABLA AUTOS AMPL].[NO POLIZA]

FROM [TABLA AUTOS AMPL]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE NUMERO DE POLIZA A BORRAR]));
```

###### `BORRAR CLIENTE` (Crosstab)

```sql
DELETE DATGRAL.*, DATGRAL.[NUM id]

FROM DATGRAL

WHERE (((DATGRAL.[NUM id])=[TECLEE EL NUMERO DE CLIENTE A BORRAR]));
```

###### `CONDO` (Select)

```sql
SELECT MULT.[NOMBRE ASEG], MULT.CONDO, DATGRAL.EmailAddress

FROM DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]

WHERE (((MULT.CONDO)=True));
```

###### `CONFIRMA COMISION1` (Delete)

```sql
UPDATE MULT, [LIQUIDA SELLO] SET MULT.COMISION1FE = [LIQUIDA SELLO]![CH COMISION1F], MULT.[CH COMISION1NU] = [LIQUIDA SELLO]![CH COMISION1N]

WHERE (((MULT.[NUM LIQUIDACION])=[TECLEE LIQUIDACION]));
```

###### `CONFIRMA COMISION2` (Delete)

```sql
UPDATE MULT, [LIQUIDA SELLO] SET MULT.COMISION2FE = [LIQUIDA SELLO]![CH COMISION1F], MULT.[CH COMISION2NU] = [LIQUIDA SELLO]![CH COMISION1N]

WHERE (((MULT.[NUM LIQUIDACION2])=[TECLEE LIQUIDACION]));
```

###### `CONFIRMA SELLO1` (Delete)

```sql
UPDATE MULT, [LIQUIDA SELLO] SET MULT.[CONFIRMA L1] = [LIQUIDA SELLO]![FECHA SELLO]

WHERE (((MULT.[NUM LIQUIDACION])=[TECLEE LIQUIDACION]));
```

###### `CONFIRMA SELLO2` (Delete)

```sql
UPDATE MULT, [LIQUIDA SELLO] SET MULT.[CONFIRMA L2] = [LIQUIDA SELLO]![FECHA SELLO]

WHERE (((MULT.[NUM LIQUIDACION2])=[TECLEE LIQUIDACION]));
```

###### `DATGRAL Without Matching LICENCIAS` (Select)

```sql
SELECT DISTINCTROW [DATGRAL].[NUM id], [DATGRAL].[NOMBRE], [DATGRAL].[DIRECCION 1], [DATGRAL].[DIRECCION 2], [DATGRAL].[CIUDAD], [DATGRAL].[ESTADO], [DATGRAL].[CODIGO], [DATGRAL].[TELUSA], [DATGRAL].[FAX]

FROM DATGRAL LEFT JOIN LICENCIAS ON [DATGRAL].[NUM id] = [LICENCIAS].[NUMER ID]

WHERE ([LICENCIAS].[NUMER ID] Is Null);
```

###### `DATGRAL Without Matching MULT` (Select)

```sql
SELECT DISTINCTROW DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.ESTADO, DATGRAL.CODIGO, DATGRAL.TELUSA, DATGRAL.FAX

FROM DATGRAL LEFT JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]

WHERE (((MULT.[NUM id]) Is Null));
```

###### `DATGRAL X DATO` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.[NUM UTIL], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.CODIGO, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.TELUSA, DATGRAL.TELEMERGENCIA, DATGRAL.FAX, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.CIUD, DATGRAL.EDO, DATGRAL.TEL, DATGRAL.EmailAddress, DATGRAL.[FECHA NACIMIENTO], DATGRAL.OBSERVACIONES, DATGRAL.[NUM FM]

FROM DATGRAL;
```

###### `DATGRAL X NUM` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.[NUM UTIL], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.CODIGO, DATGRAL.ESTADO, DATGRAL.PAIS, DATGRAL.TELUSA, DATGRAL.TELEMERGENCIA, DATGRAL.FAX, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.CIUD, DATGRAL.EDO, DATGRAL.TEL, DATGRAL.EmailAddress, DATGRAL.[FECHA NACIMIENTO], DATGRAL.OBSERVACIONES, DATGRAL.[NUM FM]

FROM DATGRAL

WHERE (((DATGRAL.[NUM id])=[TECLEE NUM DE CLIENTE]));
```

###### `DATGRAL Y LIC` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], DATGRAL.[NUM id], DATGRAL.NOMBRE

FROM DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

ORDER BY DATGRAL.NOMBRE;
```

###### `EDOSEG TOT ASEG` (Select)

```sql
SELECT EDOSEG.COMP, EDOSEG.LETPOL, Count(EDOSEG.COMP) AS CountOfCOMP

FROM EDOSEG

GROUP BY EDOSEG.COMP, EDOSEG.LETPOL

ORDER BY EDOSEG.COMP;
```

###### `EDOSEG TOT TIPO` (Select)

```sql
SELECT EDOSEG.LETPOL, Count(EDOSEG.LETPOL) AS CountOfLETPOL

FROM EDOSEG

GROUP BY EDOSEG.LETPOL;
```

###### `EDOSEG1` (Select)

```sql
SELECT EDOSEG.NUMID, EDOSEG.LETPOL, EDOSEG.POLIZA, EDOSEG.ASEGURADO, EDOSEG.[PRIMA NETA], EDOSEG.IVA, EDOSEG.[PRIMA TOTAL], EDOSEG.DESDE, EDOSEG.HASTA, EDOSEG.COMP, EDOSEG.COM, EDOSEG.FECHA1, EDOSEG.FECHA2, EDOSEG.[F LIQUIDA1], EDOSEG.[F LIQUIDA2], EDOSEG.[FECHA  PAGO], EDOSEG.[FECHA PAGO 2], EDOSEG.[FORMA  PAGO]

FROM EDOSEG

WHERE (((EDOSEG.HASTA)>Now()));
```

###### `EDOSEGTODAS` (Select)

```sql
SELECT EDOSEG.LETPOL, EDOSEG.POLIZA, EDOSEG.ASEGURADO, EDOSEG.DESDE, EDOSEG.HASTA, EDOSEG.[PRIMA NETA], EDOSEG.[PRIMA TOTAL], EDOSEG.COMP, EDOSEG.COM, [FECHAS EDOSEG].FECHA1, [FECHAS EDOSEG].FECHA2

FROM EDOSEG, [FECHAS EDOSEG];
```

###### `EFE` (Select)

```sql
SELECT EFECTIVO.CL, DATGRAL.NOMBRE, EFECTIVO.FECHA, EFECTIVO.MONTO, EFECTIVO.CONEPTO, EFECTIVO.[F DEPOSITO], EFECTIVO.FOLIO, EFECTIVO.MONEDAS

FROM EFECTIVO INNER JOIN DATGRAL ON EFECTIVO.CL = DATGRAL.[NUM id];
```

###### `EFE EDITA` (Select)

```sql
SELECT EFECTIVO.CL, DATGRAL.NOMBRE, EFECTIVO.FECHA, EFECTIVO.MONTO, EFECTIVO.CONEPTO, EFECTIVO.[F DEPOSITO], EFECTIVO.FOLIO, EFECTIVO.MONEDAS

FROM EFECTIVO INNER JOIN DATGRAL ON EFECTIVO.CL = DATGRAL.[NUM id];
```

###### `EFE PRINT` (Select)

```sql
SELECT EFECTIVO.CL, DATGRAL.NOMBRE, EFECTIVO.FECHA, EFECTIVO.MONTO, EFECTIVO.CONEPTO, EFECTIVO.[F DEPOSITO], EFECTIVO.FOLIO, EFECTIVO.MONEDAS, FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL]

FROM FECHAIF, EFECTIVO INNER JOIN DATGRAL ON EFECTIVO.CL = DATGRAL.[NUM id]

WHERE (((EFECTIVO.FECHA) Between [FECHA INICIAL] And [FECHA FINAL]));
```

###### `EFE1` (Select)

```sql
SELECT EFECTIVO.CL, DATGRAL.NOMBRE, EFECTIVO.FECHA, EFECTIVO.MONTO, EFECTIVO.CONEPTO, EFECTIVO.[F DEPOSITO], EFECTIVO.FOLIO, EFECTIVO.MONEDAS

FROM EFECTIVO INNER JOIN DATGRAL ON EFECTIVO.CL = DATGRAL.[NUM id]

WHERE (((EFECTIVO.FOLIO)=[TECLEE FOLIO]));
```

###### `EMAILTODOS` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATGRAL.PAIS, DATGRAL.EmailAddress

FROM DATGRAL

WHERE (((DATGRAL.EmailAddress)>" "))

ORDER BY DATGRAL.[NUM id];
```

###### `ENDOSO RC T` (Select)

```sql
SELECT [TABLA AUTOS].ENDOSO, [TABLA AUTOS].[NO POLIZA], DATGRAL.[NUM id], [TABLA AUTOS].[F EMISION], [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], "A PARTIR DE LA FECHA Y A PETICION DEL ASEGURADO SE " AS Expr1, "INCLUYE EL SIGUIENTE AUTO COMO OPCIONAL:" AS Expr2, "INCLUYEN LOS SIGUIENTES AUTOS COMO OPCIONAL:" AS Expr3, IIf([MARCA 3]>"",[EXPR3],[EXPR2]) AS Expr4, [EXPR1] & [EXPR4] AS Expr5, [TABLA AUTOS].CLAVE

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM POLIZA X IMPRIMIR ENDOSO]) AND (([TABLA AUTOS].[MARCA 2])>" "));
```

###### `FILTRO POLIZAS AUT CASA VIG UNICO` (Select)

```sql
SELECT DISTINCT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, [vigenta casa y auto unicos].num, [vigenta casa y auto unicos].vig

FROM DATGRAL INNER JOIN [vigenta casa y auto unicos] ON DATGRAL.[NUM id] = [vigenta casa y auto unicos].num;
```

###### `GAVIOTAS` (Select)

```sql
SELECT MULT.[NUM id], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, MULT.[NO POLIZA], MULT.DESDE, MULT.HASTA, MULT.[R CIVIL FAMILIAR]

FROM DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]

WHERE (((DATGRAL.[CALLE Y NO]) Like "*GAVIOTAS*")) OR (((DATGRAL.COL) Like "*GAVIOTAS*"))

ORDER BY DATGRAL.NOMBRE;
```

###### `GENERICO` (Select)

```sql
SELECT gen1.gen2_ID, gen2.AGENT, gen1.RFC, gen1.CLAVE, gen1.COMP, gen1.FPAGO, gen1.MONED

FROM gen1 LEFT JOIN gen2 ON gen1.gen2_ID = gen2.ID;
```

###### `ID MCA21` (Select)

```sql
SELECT MCA2.POLIZA, MCA2.DESDE, MCA2.HASTA, MCA2.AÑO1, MCA2.MARCA1, MCA2.[AUTO ID1], DATGRAL.NOMBRE

FROM MCA2 INNER JOIN DATGRAL ON MCA2.[NUMER ID] = DATGRAL.[NUM id]

WHERE (((MCA2.POLIZA)=[TECLEE NUM DE POLIZA PARA ID 1 DE MCA2]));
```

###### `ID MCA22` (Select)

```sql
SELECT MCA2.POLIZA, MCA2.DESDE, MCA2.HASTA, MCA2.AÑO2, MCA2.MARCA2, MCA2.[AUTO ID2], DATGRAL.NOMBRE

FROM MCA2 INNER JOIN DATGRAL ON MCA2.[NUMER ID] = DATGRAL.[NUM id]

WHERE (((MCA2.POLIZA)=[TECLEE NUM DE POLIZA PARA ID 2 DE MCA2]));
```

###### `ID MCA23` (Select)

```sql
SELECT MCA2.POLIZA, MCA2.DESDE, MCA2.HASTA, MCA2.AÑO3, MCA2.MARCA3, MCA2.[AUTO ID3], DATGRAL.NOMBRE

FROM MCA2 INNER JOIN DATGRAL ON MCA2.[NUMER ID] = DATGRAL.[NUM id]

WHERE (((MCA2.POLIZA)=[TECLEE NUM DE POLIZA PARA ID 3 DE MCA2]));
```

###### `ID RCA` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS AMPL R].[NOMBRE ASEG], [TABLA AUTOS AMPL R].HASTA, [TABLA AUTOS AMPL R].MARCA, [TABLA AUTOS AMPL R].MODELO, [TABLA AUTOS AMPL R].CARROCERIA, [TABLA AUTOS AMPL R].MOTOR, [TABLA AUTOS AMPL R].LETPOL, [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].[SUMA ROBO], [TABLA AUTOS AMPL R].[GASTOS MEDICO], [TABLA AUTOS AMPL R].PROPIEDADES, [GASTOS MEDICO]*1000 AS EXPR1, [EXPR1]*5 AS EXPR2, [PROPIEDADES]*1000 AS EXPR3, [TABLA AUTOS AMPL R].COMP, [TABLA AUTOS AMPL R].[A JURIDICA], [TABLA AUTOS AMPL R].[A CAMINO], [AMPL R MENS].[LIC MENS365], [AMPL R MENS].[LIC MENS 30 40]

FROM [AMPL R MENS], DATGRAL INNER JOIN [TABLA AUTOS AMPL R] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL R].[NUMER ID]

WHERE ((([TABLA AUTOS AMPL R].[NO POLIZA])=[TECLEE NUM DE POLIZA]));
```

###### `ID RRC` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS RC R].[NOMBRE ASEG], [TABLA AUTOS RC R].HASTA, [TABLA AUTOS RC R].MARCA, [TABLA AUTOS RC R].MODELO, [TABLA AUTOS RC R].CARROCERIA, [TABLA AUTOS RC R].MOTOR, [TABLA AUTOS RC R].LETPOL, [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].PROPIEDADES, [TABLA AUTOS RC R].[GASTOS MEDICO], [PROPIEDADES]*1000 AS EXPR1, [GASTOS MEDICO]*1000 AS Expr3, [EXPR3]*5 AS Expr4, [TABLA AUTOS RC R].[SERVICIO ADICIONAL], IIf([EXPR3]=0,"EXCLUDED",[EXPR3]) AS Expr6, [TABLA AUTOS RC R].[A JURIDICA], [TABLA AUTOS RC R].[A CAMINO], [RC R MENS].[LIC MENS 30 40], [RC R MENS].[RC MENS365INGL], [RC R MENS].[RC MENS365ESP]

FROM [RC R MENS], DATGRAL INNER JOIN [TABLA AUTOS RC R] ON DATGRAL.[NUM id] = [TABLA AUTOS RC R].[NUMER ID]

WHERE ((([TABLA AUTOS RC R].[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `ID RRL` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS LIMIT R].[NOMBRE ASEG], [TABLA AUTOS LIMIT R].HASTA, [TABLA AUTOS LIMIT R].MARCA, [TABLA AUTOS LIMIT R].MODELO, [TABLA AUTOS LIMIT R].CARROCERIA, [TABLA AUTOS LIMIT R].MOTOR, [TABLA AUTOS LIMIT R].LETPOL, [TABLA AUTOS LIMIT R].[NO POLIZA], [TABLA AUTOS LIMIT R].PROPIEDADES, [TABLA AUTOS LIMIT R].[GASTOS MEDICO], [PROPIEDADES]*1000 AS EXPR1, [GASTOS MEDICO]*1000 AS Expr3, [EXPR3]*5 AS Expr4, [TABLA AUTOS LIMIT R].[SERVICIO ADICIONAL], IIf([EXPR3]=0,"EXCLUDED",[EXPR3]) AS Expr6, [TABLA AUTOS LIMIT R].[A JURIDICA], [TABLA AUTOS LIMIT R].[A CAMINO]

FROM DATGRAL INNER JOIN [TABLA AUTOS LIMIT R] ON DATGRAL.[NUM id] = [TABLA AUTOS LIMIT R].[NUMER ID]

WHERE ((([TABLA AUTOS LIMIT R].[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `ID TCA` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[SUMA ROBO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [TABLA AUTOS AMPL].PROPIEDADES, [TABLA AUTOS AMPL].PERSONAS, [GASTOS MEDICO]*1000 AS EXPR1, [EXPR1]*5 AS EXPR2, [PROPIEDADES]*1000 AS EXPR3, [PERSONAS]*1000 AS EXPR4, [expr4]*2 AS Expr5, [TABLA AUTOS AMPL].[SERVICIO ADICIONAL], [TABLA AUTOS AMPL].COMP, [AMPL MENS].[AM MENS 365 QUALITAS], [AMPL MENS].[AM MENS 365 ATLAS]

FROM [AMPL MENS], DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE NUM DE POLIZA]) AND (([TABLA AUTOS AMPL].COMP)="ATLAS, S.A."));
```

###### `ID TCA QUALITAS` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].[NOMBRE ASEG], [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].MARCA, [TABLA AUTOS AMPL].MODELO, [TABLA AUTOS AMPL].CARROCERIA, [TABLA AUTOS AMPL].MOTOR, [TABLA AUTOS AMPL].PLACAS, [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].[SUMA ROBO], [TABLA AUTOS AMPL].[GASTOS MEDICO], [TABLA AUTOS AMPL].PROPIEDADES, [TABLA AUTOS AMPL].PERSONAS, [GASTOS MEDICO]*1000 AS EXPR1, [EXPR1]*5 AS EXPR2, [PROPIEDADES]*1000 AS EXPR3, [PERSONAS]*1000 AS EXPR4, [expr4]*2 AS Expr5, [TABLA AUTOS AMPL].[SERVICIO ADICIONAL], [TABLA AUTOS AMPL].COMP, [AMPL MENS].[AM MENS 365 QUALITAS], [AMPL MENS].[AM MENS 365 ATLAS], [TABLA AUTOS AMPL].[CSL LIMITE]

FROM [AMPL MENS], DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

WHERE ((([TABLA AUTOS AMPL].[NO POLIZA])=[TECLEE NUM DE POLIZA]) AND (([TABLA AUTOS AMPL].COMP)="QUALITAS"));
```

###### `ID TLC1` (Select)

```sql
SELECT DATGRAL.[NUM id], LICENCIAS.[NO POLIZA], LICENCIAS.LETPOL, DATGRAL.NOMBRE, LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[LIC 1], LICENCIAS.[EDO 1], LICENCIAS.PROPIEDADES, LICENCIAS.COBERTURA, [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS EXPR3, [expr2] & "/" & [expr3] AS Expr4, [GASTOS MEDICO]*1000 AS Expr5, [EXPR5]*5 AS Expr6, LICENCIAS.[SERVICIO ADICIONAL], [LIC MENS].[LIC MENS 30 40], [LIC MENS].[LIC MENS365], IIf([COBERTURA]=365,[LIC MENS365],[LIC MENS 30 40]) AS Expr7, LICENCIAS.[CSL LIMITE], LICENCIAS.[GASTOS MEDICO], LICENCIAS.COMP

FROM [LIC MENS], DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM POLIZA]) AND ((LICENCIAS.COMP)="QUALITAS"));
```

###### `ID TLC1 ATLAS` (Select)

```sql
SELECT DATGRAL.[NUM id], LICENCIAS.[NO POLIZA], LICENCIAS.LETPOL, DATGRAL.NOMBRE, LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[LIC 1], LICENCIAS.[EDO 1], LICENCIAS.PROPIEDADES, LICENCIAS.COBERTURA, [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS EXPR3, [expr2] & "/" & [expr3] AS Expr4, [GASTOS MEDICO]*1000 AS Expr5, [EXPR5]*5 AS Expr6, LICENCIAS.[SERVICIO ADICIONAL], [LIC MENS].[LIC MENS 30 40], [LIC MENS].[LIC MENS365], IIf([COBERTURA]=365,[LIC MENS365],[LIC MENS 30 40]) AS Expr7, LICENCIAS.[CSL LIMITE], LICENCIAS.[GASTOS MEDICO], LICENCIAS.COMP

FROM [LIC MENS], DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM POLIZA]) AND ((LICENCIAS.COMP)="ATLAS, S.A."));
```

###### `ID TLC2` (Select)

```sql
SELECT DATGRAL.[NUM id], LICENCIAS.[NO POLIZA], LICENCIAS.LETPOL, DATGRAL.NOMBRE, LICENCIAS.DESDE, LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.HASTA, LICENCIAS.[LIC 2], LICENCIAS.[EDO 2], LICENCIAS.PROPIEDADES, LICENCIAS.PERSONAS, [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS EXPR3, [expr2] & "/" & [expr3] AS Expr4, [GASTOS MEDICO]*1000 AS Expr5, [EXPR5]*5 AS Expr6, LICENCIAS.[SERVICIO ADICIONAL], [LIC MENS].[LIC MENS 30 40], [LIC MENS].[LIC MENS365], IIf([COBERTURA]=365,[LIC MENS365],[LIC MENS 30 40]) AS Expr7, LICENCIAS.COMP, LICENCIAS.COBERTURA, LICENCIAS.[CSL LIMITE], LICENCIAS.[GASTOS MEDICO]

FROM [LIC MENS], DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM POLIZA]) AND ((LICENCIAS.COMP)="QUALITAS"));
```

###### `ID TLC2 ATLAS` (Select)

```sql
SELECT DATGRAL.[NUM id], LICENCIAS.[NO POLIZA], LICENCIAS.LETPOL, DATGRAL.NOMBRE, LICENCIAS.DESDE, LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.HASTA, LICENCIAS.[LIC 2], LICENCIAS.[EDO 2], LICENCIAS.PROPIEDADES, LICENCIAS.PERSONAS, [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS EXPR3, [expr2] & "/" & [expr3] AS Expr4, [GASTOS MEDICO]*1000 AS Expr5, [EXPR5]*5 AS Expr6, LICENCIAS.[SERVICIO ADICIONAL], [LIC MENS].[LIC MENS 30 40], [LIC MENS].[LIC MENS365], IIf([COBERTURA]=365,[LIC MENS365],[LIC MENS 30 40]) AS Expr7, LICENCIAS.COMP, LICENCIAS.COBERTURA, LICENCIAS.[CSL LIMITE], LICENCIAS.[GASTOS MEDICO]

FROM [LIC MENS], DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM POLIZA]) AND ((LICENCIAS.COMP)="ATLAS, S.A."));
```

###### `ID TLC3` (Select)

```sql
SELECT DATGRAL.[NUM id], LICENCIAS.[NO POLIZA], LICENCIAS.LETPOL, DATGRAL.NOMBRE, LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[LIC 3], LICENCIAS.[EDO 3], LICENCIAS.PROPIEDADES, LICENCIAS.PERSONAS, [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS EXPR3, [expr2] & "/" & [expr3] AS Expr4, [GASTOS MEDICO]*1000 AS Expr5, [EXPR5]*5 AS Expr6, LICENCIAS.[SERVICIO ADICIONAL], LICENCIAS.COMP, LICENCIAS.COBERTURA, LICENCIAS.[CSL LIMITE], LICENCIAS.[GASTOS MEDICO], [LIC MENS].[LIC MENS 30 40], [LIC MENS].[LIC MENS365], IIf([COBERTURA]=365,[LIC MENS365],[LIC MENS 30 40]) AS Expr7

FROM [LIC MENS], DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM POLIZA]) AND ((LICENCIAS.COMP)="QUALITAS"));
```

###### `ID TLC3 ATLAS` (Select)

```sql
SELECT DATGRAL.[NUM id], LICENCIAS.[NO POLIZA], LICENCIAS.LETPOL, DATGRAL.NOMBRE, LICENCIAS.DESDE, LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.HASTA, LICENCIAS.[LIC 3], LICENCIAS.[EDO 3], LICENCIAS.PROPIEDADES, LICENCIAS.PERSONAS, [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS EXPR3, [expr2] & "/" & [expr3] AS Expr4, [GASTOS MEDICO]*1000 AS Expr5, [EXPR5]*5 AS Expr6, LICENCIAS.[SERVICIO ADICIONAL], [LIC MENS].[LIC MENS 30 40], [LIC MENS].[LIC MENS365], IIf([COBERTURA]=365,[LIC MENS365],[LIC MENS 30 40]) AS Expr7, LICENCIAS.COMP, LICENCIAS.COBERTURA, LICENCIAS.[CSL LIMITE], LICENCIAS.[GASTOS MEDICO]

FROM [LIC MENS], DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM POLIZA]) AND ((LICENCIAS.COMP)="ATLAS, S.A."));
```

###### `ID TRC1` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].COBERTURA, DATGRAL.NOMBRE, [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*1000 AS Expr5, [PERSONAS]*2000 AS EXPR2, [GASTOS MEDICO]*1000 AS Expr3, [EXPR3]*5 AS Expr4, [TABLA AUTOS].[SERVICIO ADICIONAL], IIf([EXPR3]=0,"EXCLUDED",[EXPR3]) AS Expr6, [TABLA AUTOS].[CSL LIMITE], [RC MENSAJE].[RC MEN365], [RC MENSAJE].[RC MEN 30 40], IIf([COBERTURA]=365,[RC MEN365],[RC MEN 30 40]) AS Expr7

FROM [RC MENSAJE], DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `ID TRC1TODOS` (Update)

```sql
INSERT INTO [ID TABLA] ( [NUMER ID], [NOMBRE ASEG], DESDE, HASTA, MARCA, MODELO, CARROCERIA, MOTOR, PLACA, LETPOL, [NO POLIZA], PROPIEDADES, PERSONAS, [GASTOS MEDICO], [SERVICIO ADICIONAL], [CSL LIMITE], [COMP], COBERTURA )

SELECT [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[PLACA 1], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[CSL LIMITE], [TABLA AUTOS].COMP, [TABLA AUTOS].COBERTURA

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[MARCA 1])>" ") AND (([TABLA AUTOS].COMP)="QUALITAS"));
```

###### `ID TRC1TODOSATLAS` (Update)

```sql
INSERT INTO [ID TABLATLAS] ( [NUMER ID], [NOMBRE ASEG], DESDE, HASTA, MARCA, MODELO, CARROCERIA, MOTOR, LETPOL, [NO POLIZA], PROPIEDADES, PERSONAS, [GASTOS MEDICO], [SERVICIO ADICIONAL], [CSL LIMITE], [COMP], COBERTURA )

SELECT [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[CSL LIMITE], [TABLA AUTOS].COMP, [TABLA AUTOS].COBERTURA

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[MARCA 1])>" ") AND (([TABLA AUTOS].COMP)="ATLAS, S.A."));
```

###### `ID TRC2` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*2000 AS EXPR2, [GASTOS MEDICO]*1000 AS Expr3, [EXPR3]*5 AS Expr4, [TABLA AUTOS].[SERVICIO ADICIONAL], [PERSONAS]*1000 AS Expr5, [TABLA AUTOS].[CSL LIMITE]

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `ID TRC2TODOS` (Update)

```sql
INSERT INTO [ID TABLA] ( [NUMER ID], [NOMBRE ASEG], DESDE, HASTA, MARCA, MODELO, CARROCERIA, MOTOR, PLACA, LETPOL, [NO POLIZA], PROPIEDADES, PERSONAS, [GASTOS MEDICO], [SERVICIO ADICIONAL], [CSL LIMITE], [COMP], COBERTURA )

SELECT [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[PLACA 2], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[CSL LIMITE], [TABLA AUTOS].COMP, [TABLA AUTOS].COBERTURA

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[MARCA 2])>" ") AND (([TABLA AUTOS].COMP)="QUALITAS"));
```

###### `ID TRC2TODOSATLAS` (Update)

```sql
INSERT INTO [ID TABLATLAS] ( [NUMER ID], [NOMBRE ASEG], DESDE, HASTA, MARCA, MODELO, CARROCERIA, MOTOR, LETPOL, [NO POLIZA], PROPIEDADES, PERSONAS, [GASTOS MEDICO], [SERVICIO ADICIONAL], [CSL LIMITE], [COMP], COBERTURA )

SELECT [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[CSL LIMITE], [TABLA AUTOS].COMP, [TABLA AUTOS].COBERTURA

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[MARCA 2])>" ") AND (([TABLA AUTOS].COMP)="ATLAS, S.A."));
```

###### `ID TRC3` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*2000 AS EXPR2, [GASTOS MEDICO]*1000 AS Expr3, [EXPR3]*5 AS Expr4, [TABLA AUTOS].[SERVICIO ADICIONAL], [PERSONAS]*1000 AS Expr5

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `ID TRC3TODOS` (Update)

```sql
INSERT INTO [ID TABLA] ( [NUMER ID], [NOMBRE ASEG], DESDE, HASTA, MARCA, MODELO, CARROCERIA, MOTOR, LETPOL, [NO POLIZA], PROPIEDADES, PERSONAS, [GASTOS MEDICO], [SERVICIO ADICIONAL], [CSL LIMITE], [COMP], COBERTURA )

SELECT [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[CSL LIMITE], [TABLA AUTOS].COMP, [TABLA AUTOS].COBERTURA

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[MARCA 3])>" ") AND (([TABLA AUTOS].COMP)="QUALITAS"));
```

###### `ID TRC3TODOSATLAS` (Update)

```sql
INSERT INTO [ID TABLATLAS] ( [NUMER ID], [NOMBRE ASEG], DESDE, HASTA, MARCA, MODELO, CARROCERIA, MOTOR, LETPOL, [NO POLIZA], PROPIEDADES, PERSONAS, [GASTOS MEDICO], [SERVICIO ADICIONAL], [CSL LIMITE], [COMP], COBERTURA )

SELECT [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].PERSONAS, [TABLA AUTOS].[GASTOS MEDICO], [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].[CSL LIMITE], [TABLA AUTOS].COMP, [TABLA AUTOS].COBERTURA

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[MARCA 3])>" ") AND (([TABLA AUTOS].COMP)="ATLAS, S.A."));
```

###### `ID TRCBORRATODOS` (Crosstab)

```sql
DELETE [ID TABLA].[NUMER ID]

FROM [ID TABLA];
```

###### `ID TRCORRATODOSATLAS` (Crosstab)

```sql
DELETE [ID TABLATLAS].[NUMER ID]

FROM [ID TABLATLAS];
```

###### `ID TRCTODOSREPORTE` (Select)

```sql
SELECT DATGRAL.[NUM id], [ID TABLA].LETPOL, [ID TABLA].[NO POLIZA], DATGRAL.NOMBRE, [ID TABLA].[NOMBRE ASEG], [ID TABLA].DESDE, [ID TABLA].HASTA, [ID TABLA].MARCA, [ID TABLA].MODELO, [ID TABLA].CARROCERIA, [ID TABLA].MOTOR, [ID TABLA].PLACA, [ID TABLA].[GASTOS MEDICO], [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*1000 AS Expr5, [PERSONAS]*2000 AS EXPR2, [GASTOS MEDICO]*1000 AS Expr3, [EXPR3]*5 AS Expr4, [ID TABLA].[SERVICIO ADICIONAL], IIf([EXPR3]=0,"EXCLUDED",[EXPR3]) AS Expr6, [RC MENSAJE].[RC MEN365], [RC MENSAJE].[RC MEN 30 40], IIf([COBERTURA]=365,[RC MEN365],[RC MEN 30 40]) AS Expr7, *

FROM [RC MENSAJE], DATGRAL INNER JOIN [ID TABLA] ON DATGRAL.[NUM id] = [ID TABLA].[NUMER ID]

WHERE ((([ID TABLA].[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `ID TRCTODOSREPORTEATLAS` (Select)

```sql
SELECT DATGRAL.[NUM id], [ID TABLATLAS].LETPOL, [ID TABLATLAS].[NO POLIZA], DATGRAL.NOMBRE, [ID TABLATLAS].[NOMBRE ASEG], [ID TABLATLAS].DESDE, [ID TABLATLAS].HASTA, [ID TABLATLAS].MARCA, [ID TABLATLAS].MODELO, [ID TABLATLAS].CARROCERIA, [ID TABLATLAS].MOTOR, [ID TABLATLAS].[GASTOS MEDICO], [PROPIEDADES]*1000 AS EXPR1, [PERSONAS]*1000 AS Expr5, [PERSONAS]*2000 AS EXPR2, [GASTOS MEDICO]*1000 AS Expr3, [EXPR3]*5 AS Expr4, [ID TABLATLAS].[SERVICIO ADICIONAL], IIf([EXPR3]=0,"EXCLUDED",[EXPR3]) AS Expr6, [RC MENSAJE].[RC MEN365], [RC MENSAJE].[RC MEN 30 40], IIf([COBERTURA]=365,[RC MEN365],[RC MEN 30 40]) AS Expr7, *

FROM [RC MENSAJE], DATGRAL INNER JOIN [ID TABLATLAS] ON DATGRAL.[NUM id] = [ID TABLATLAS].[NUMER ID]

WHERE ((([ID TABLATLAS].[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `INCEN` (Select)

```sql
SELECT INCENDIO.[NUM id], INCENDIO.FOLIO, DATGRAL.NOMBRE, INCENDIO.[NO POLIZA], INCENDIO.[NOMBRE ASEG], INCENDIO.[CALLE Y NO], INCENDIO.COL, INCENDIO.EDO, INCENDIO.TEL, INCENDIO.COMP, INCENDIO.AGENT, INCENDIO.DESDE, INCENDIO.HASTA, INCENDIO.[FORMA  PAGO], INCENDIO.[VIG 1], INCENDIO.[VIG 2], INCENDIO.[VIG 3], INCENDIO.[VIG 4], INCENDIO.MONEDA, INCENDIO.[1ER PAGO], INCENDIO.[PAGO SUBSEC], INCENDIO.[FECHA  PAGO], INCENDIO.EFECTIVO, INCENDIO.[NO CHEQUE], INCENDIO.[FECHA PAGO 2], INCENDIO.[MONED 2], INCENDIO.[EFECTIVO 2], INCENDIO.[NO CHEQUE 2], INCENDIO.[FECHA PAGO 3], INCENDIO.[MONED 3], INCENDIO.[EFECTIVO 3], INCENDIO.[NO CHEQUE 3], INCENDIO.[FECHA PAGO 4], INCENDIO.[MONED 4], INCENDIO.[EFECTIVO 4], INCENDIO.[NO CHEQUE 4], INCENDIO.[P NETA], INCENDIO.RECARGO, INCENDIO.[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, INCENDIO.COM, INCENDIO.[P NETA 2], INCENDIO.[RECARGO 2], INCENDIO.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, INCENDIO.[COM 2], INCENDIO.LIQUIDADA, INCENDIO.[LIQUIDADA 2], INCENDIO.EDIFICIO, INCENDIO.[EDIF TERREMOTO], INCENDIO.CONTENIDOS, INCENDIO.[CONT TERREMOTO], INCENDIO.CONSTRUCCION, INCENDIO.OBSERVACIONES, INCENDIO.RENOVACION, INCENDIO.[NUM LIQUIDACION], INCENDIO.[NUM LIQUIDACION2], INCENDIO.[F LIQUIDA1], INCENDIO.[F LIQUIDA2]

FROM IMPUESTOS, DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id];
```

###### `INCEN CALC VIG` (Select)

```sql
SELECT INCENDIO.[NUM id], DATGRAL.NOMBRE, INCENDIO.[NO POLIZA], INCENDIO.[NOMBRE ASEG], INCENDIO.[CALLE Y NO], INCENDIO.COL, INCENDIO.EDO, INCENDIO.TEL, INCENDIO.COMP, INCENDIO.AGENT, INCENDIO.DESDE, INCENDIO.HASTA, INCENDIO.[FORMA  PAGO], INCENDIO.[VIG 1], IIf([FORMA  PAGO]="SEMESTRAL",DateAdd("m",6,[VIG 1]),DateAdd("m",3,[VIG 1])) AS Expr5, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",6,[VIG 1])) AS Expr6, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",9,[VIG 1])) AS Expr7, INCENDIO.MONEDA, INCENDIO.[1ER PAGO], INCENDIO.[PAGO SUBSEC], INCENDIO.[FECHA  PAGO], INCENDIO.EFECTIVO, INCENDIO.[NO CHEQUE], INCENDIO.[FECHA PAGO 2], INCENDIO.[MONED 2], INCENDIO.[EFECTIVO 2], INCENDIO.[NO CHEQUE 2], INCENDIO.[FECHA PAGO 3], INCENDIO.[MONED 3], INCENDIO.[EFECTIVO 3], INCENDIO.[NO CHEQUE 3], INCENDIO.[FECHA PAGO 4], INCENDIO.[MONED 4], INCENDIO.[EFECTIVO 4], INCENDIO.[NO CHEQUE 4], INCENDIO.[P NETA], INCENDIO.RECARGO, INCENDIO.[D POL], ([P NETA]+[RECARGO]+[D POL])*0.1 AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, INCENDIO.COM, INCENDIO.[P NETA 2], INCENDIO.[RECARGO 2], INCENDIO.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*0.1 AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, INCENDIO.[COM 2], INCENDIO.LIQUIDADA, INCENDIO.[LIQUIDADA 2], INCENDIO.EDIFICIO, INCENDIO.[EDIF TERREMOTO], INCENDIO.CONTENIDOS, INCENDIO.[CONT TERREMOTO], INCENDIO.CONSTRUCCION, INCENDIO.OBSERVACIONES, INCENDIO.RENOVACION

FROM DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id];
```

###### `INCEN CALC VIG X POL` (Select)

```sql
SELECT INCENDIO.[NUM id], DATGRAL.NOMBRE, INCENDIO.[NO POLIZA], INCENDIO.[NOMBRE ASEG], INCENDIO.[CALLE Y NO], INCENDIO.COL, INCENDIO.EDO, INCENDIO.TEL, INCENDIO.COMP, INCENDIO.AGENT, INCENDIO.DESDE, INCENDIO.HASTA, INCENDIO.[FORMA  PAGO], INCENDIO.[VIG 1], IIf([FORMA  PAGO]="SEMESTRAL",DateAdd("m",6,[VIG 1]),DateAdd("m",3,[VIG 1])) AS Expr5, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",6,[VIG 1])) AS Expr6, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",9,[VIG 1])) AS Expr7, INCENDIO.MONEDA, INCENDIO.[1ER PAGO], INCENDIO.[PAGO SUBSEC], INCENDIO.[FECHA  PAGO], INCENDIO.EFECTIVO, INCENDIO.[NO CHEQUE], INCENDIO.[FECHA PAGO 2], INCENDIO.[MONED 2], INCENDIO.[EFECTIVO 2], INCENDIO.[NO CHEQUE 2], INCENDIO.[FECHA PAGO 3], INCENDIO.[MONED 3], INCENDIO.[EFECTIVO 3], INCENDIO.[NO CHEQUE 3], INCENDIO.[FECHA PAGO 4], INCENDIO.[MONED 4], INCENDIO.[EFECTIVO 4], INCENDIO.[NO CHEQUE 4], INCENDIO.[P NETA], INCENDIO.RECARGO, INCENDIO.[D POL], ([P NETA]+[RECARGO]+[D POL])*0.1 AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, INCENDIO.COM, INCENDIO.[P NETA 2], INCENDIO.[RECARGO 2], INCENDIO.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*0.1 AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, INCENDIO.[COM 2], INCENDIO.LIQUIDADA, INCENDIO.[LIQUIDADA 2], INCENDIO.EDIFICIO, INCENDIO.[EDIF TERREMOTO], INCENDIO.CONTENIDOS, INCENDIO.[CONT TERREMOTO], INCENDIO.CONSTRUCCION, INCENDIO.OBSERVACIONES, INCENDIO.RENOVACION

FROM DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id]

WHERE (((INCENDIO.[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `INCEN EDITA` (Select)

```sql
SELECT INCENDIO.[NO POLIZA], INCENDIO.FOLIO, INCENDIO.[NUM id], DATGRAL.NOMBRE, INCENDIO.[NOMBRE ASEG], INCENDIO.[CALLE Y NO], INCENDIO.COL, INCENDIO.EDO, DATGRAL.TEL, INCENDIO.COMP, INCENDIO.AGENT, INCENDIO.DESDE, INCENDIO.HASTA, INCENDIO.[FORMA  PAGO], INCENDIO.[VIG 1], INCENDIO.[VIG 2], INCENDIO.[VIG 3], INCENDIO.[VIG 4], INCENDIO.MONEDA, INCENDIO.[1ER PAGO], INCENDIO.[PAGO SUBSEC], INCENDIO.[FECHA  PAGO], INCENDIO.EFECTIVO, INCENDIO.[NO CHEQUE], INCENDIO.[FECHA PAGO 2], INCENDIO.[MONED 2], INCENDIO.[EFECTIVO 2], INCENDIO.[NO CHEQUE 2], INCENDIO.[FECHA PAGO 3], INCENDIO.[MONED 3], INCENDIO.[EFECTIVO 3], INCENDIO.[NO CHEQUE 3], INCENDIO.[FECHA PAGO 4], INCENDIO.[MONED 4], INCENDIO.[EFECTIVO 4], INCENDIO.[NO CHEQUE 4], INCENDIO.[P NETA], INCENDIO.RECARGO, INCENDIO.[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, INCENDIO.COM, INCENDIO.LIQUIDADA, INCENDIO.[P NETA 2], INCENDIO.[RECARGO 2], INCENDIO.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, INCENDIO.[COM 2], INCENDIO.[LIQUIDADA 2], INCENDIO.EDIFICIO, INCENDIO.[EDIF TERREMOTO], INCENDIO.CONTENIDOS, INCENDIO.[CONT TERREMOTO], INCENDIO.CONSTRUCCION, INCENDIO.OBSERVACIONES, INCENDIO.RENOVACION, INCENDIO.[NUM LIQUIDACION], INCENDIO.[NUM LIQUIDACION2], INCENDIO.[F LIQUIDA1], INCENDIO.[F LIQUIDA2]

FROM IMPUESTOS, DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id]

ORDER BY INCENDIO.[NO POLIZA] DESC;
```

###### `INCEN RENEW X MES` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, INCENDIO.COMP, INCENDIO.AGENT, INCENDIO.[NO POLIZA], INCENDIO.[CALLE Y NO], INCENDIO.HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr7, INCENDIO.EDIFICIO, INCENDIO.[EDIF TERREMOTO], IIf([EDIF TERREMOTO]<0,"INCLUDED","EXCLUDED") AS Expr6, INCENDIO.CONTENIDOS, INCENDIO.[CONT TERREMOTO], IIf([CONT TERREMOTO]<0,"INCLUDED","EXCLUDED") AS EXPR8, INCENDIO.RENOVACION, [IN MENS].[IN MENSAJE 1], [IN MENS].[IN MENS2], [IN MENS].[IN MENS3], INCENDIO.LETPOL

FROM [IN MENS], DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id]

WHERE (((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (2002)]));
```

###### `INCEN RENEW X POLIZA` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, INCENDIO.COMP, INCENDIO.AGENT, INCENDIO.[NO POLIZA], INCENDIO.[CALLE Y NO], INCENDIO.HASTA, INCENDIO.EDIFICIO, INCENDIO.[EDIF TERREMOTO], IIf([EDIF TERREMOTO]<0,"INCLUDED","EXCLUDED") AS Expr6, INCENDIO.CONTENIDOS, INCENDIO.[CONT TERREMOTO], IIf([CONT TERREMOTO]<0,"INCLUDED","EXCLUDED") AS EXPR8, INCENDIO.RENOVACION, [MF MENS].[MF MENSAJE 1], INCENDIO.[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","FIRST SEMESTER") AS Expr5

FROM [MF MENS], DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id]

WHERE (((INCENDIO.[NO POLIZA])=[TECLE NUMERO DE POLIZA A IMPRIMIR]));
```

###### `INCEN RENEWAL` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, INCENDIO.COMP, INCENDIO.AGENT, INCENDIO.[NO POLIZA], INCENDIO.[CALLE Y NO], INCENDIO.HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr7, INCENDIO.EDIFICIO, INCENDIO.[EDIF TERREMOTO], IIf([EDIF TERREMOTO]<0,"INCLUDED","EXCLUDED") AS Expr6, INCENDIO.CONTENIDOS, INCENDIO.[CONT TERREMOTO], IIf([CONT TERREMOTO]<0,"INCLUDED","EXCLUDED") AS EXPR8, INCENDIO.RENOVACION, [IN MENS].[MF MENSAJE 1]

FROM [IN MENS], DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id];
```

###### `INCEN X POLIZA` (Select)

```sql
SELECT INCENDIO.[NO POLIZA], INCENDIO.FOLIO, INCENDIO.[NUM id], DATGRAL.NOMBRE, INCENDIO.[NOMBRE ASEG], INCENDIO.[CALLE Y NO], INCENDIO.COL, INCENDIO.EDO, DATGRAL.TEL, INCENDIO.COMP, INCENDIO.AGENT, INCENDIO.DESDE, INCENDIO.HASTA, INCENDIO.[FORMA  PAGO], INCENDIO.[VIG 1], INCENDIO.[VIG 2], INCENDIO.[VIG 3], INCENDIO.[VIG 4], INCENDIO.MONEDA, INCENDIO.[1ER PAGO], INCENDIO.[PAGO SUBSEC], INCENDIO.[FECHA  PAGO], INCENDIO.EFECTIVO, INCENDIO.[NO CHEQUE], INCENDIO.[FECHA PAGO 2], INCENDIO.[MONED 2], INCENDIO.[EFECTIVO 2], INCENDIO.[NO CHEQUE 2], INCENDIO.[FECHA PAGO 3], INCENDIO.[MONED 3], INCENDIO.[EFECTIVO 3], INCENDIO.[NO CHEQUE 3], INCENDIO.[FECHA PAGO 4], INCENDIO.[MONED 4], INCENDIO.[EFECTIVO 4], INCENDIO.[NO CHEQUE 4], INCENDIO.[P NETA], INCENDIO.RECARGO, INCENDIO.[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, INCENDIO.COM, INCENDIO.LIQUIDADA, INCENDIO.[P NETA 2], INCENDIO.[RECARGO 2], INCENDIO.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, INCENDIO.[COM 2], INCENDIO.[LIQUIDADA 2], INCENDIO.EDIFICIO, INCENDIO.[EDIF TERREMOTO], INCENDIO.CONTENIDOS, INCENDIO.[CONT TERREMOTO], INCENDIO.CONSTRUCCION, INCENDIO.OBSERVACIONES, INCENDIO.RENOVACION, INCENDIO.[NUM LIQUIDACION], INCENDIO.[NUM LIQUIDACION2], INCENDIO.[F LIQUIDA1], INCENDIO.[F LIQUIDA2]

FROM IMPUESTOS, DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id]

WHERE (((INCENDIO.[NO POLIZA])=[TECLEE NUM POLIZA A EDITAR]))

ORDER BY INCENDIO.[NO POLIZA] DESC;
```

###### `INCEN X POLIZAREP` (Select)

```sql
SELECT [INCEN CALC VIG X POL].[NUM id], [INCEN CALC VIG X POL].[FORMA  PAGO], [INCEN CALC VIG X POL].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [INCEN CALC VIG X POL].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, [INCEN CALC VIG X POL].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr16, [INCEN CALC VIG X POL].[CONT TERREMOTO], IIf([CONT TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr17, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[hasta],[expr5]) AS Expr18, *

FROM [INCEN CALC VIG X POL], [IN MENS]

WHERE (((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]));
```

###### `INCEN new` (Select)

```sql
SELECT INCENDIO.[NUM id], INCENDIO.FOLIO, DATGRAL.NOMBRE, INCENDIO.[NO POLIZA], INCENDIO.[NOMBRE ASEG], INCENDIO.[CALLE Y NO], INCENDIO.COL, INCENDIO.EDO, INCENDIO.TEL, INCENDIO.COMP, INCENDIO.AGENT, INCENDIO.DESDE, INCENDIO.HASTA, INCENDIO.[FORMA  PAGO], INCENDIO.[VIG 1], INCENDIO.[VIG 2], INCENDIO.[VIG 3], INCENDIO.[VIG 4], INCENDIO.MONEDA, INCENDIO.[1ER PAGO], INCENDIO.[PAGO SUBSEC], INCENDIO.[FECHA  PAGO], INCENDIO.EFECTIVO, INCENDIO.[NO CHEQUE], INCENDIO.[FECHA PAGO 2], INCENDIO.[MONED 2], INCENDIO.[EFECTIVO 2], INCENDIO.[NO CHEQUE 2], INCENDIO.[FECHA PAGO 3], INCENDIO.[MONED 3], INCENDIO.[EFECTIVO 3], INCENDIO.[NO CHEQUE 3], INCENDIO.[FECHA PAGO 4], INCENDIO.[MONED 4], INCENDIO.[EFECTIVO 4], INCENDIO.[NO CHEQUE 4], INCENDIO.[P NETA], INCENDIO.RECARGO, INCENDIO.[D POL], INCENDIO.COM, INCENDIO.[P NETA 2], INCENDIO.[RECARGO 2], INCENDIO.[D POL 2], INCENDIO.[COM 2], INCENDIO.LIQUIDADA, INCENDIO.[LIQUIDADA 2], INCENDIO.EDIFICIO, INCENDIO.[EDIF TERREMOTO], INCENDIO.CONTENIDOS, INCENDIO.[CONT TERREMOTO], INCENDIO.CONSTRUCCION, INCENDIO.OBSERVACIONES, INCENDIO.RENOVACION, INCENDIO.[NUM LIQUIDACION], INCENDIO.[NUM LIQUIDACION2], INCENDIO.[F LIQUIDA1], INCENDIO.[F LIQUIDA2]

FROM DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id];
```

###### `INCEND LIQUIDA` (Select)

```sql
SELECT INCENDIO.[NUM id], INCENDIO.LETPOL, DATGRAL.NOMBRE, INCENDIO.[NO POLIZA], INCENDIO.FOLIO, INCENDIO.[NOMBRE ASEG], INCENDIO.[CALLE Y NO], INCENDIO.COL, INCENDIO.EDO, INCENDIO.TEL, INCENDIO.COMP, INCENDIO.AGENT, INCENDIO.DESDE, INCENDIO.HASTA, INCENDIO.[FORMA  PAGO], INCENDIO.[VIG 1], INCENDIO.[VIG 2], INCENDIO.[VIG 3], INCENDIO.[VIG 4], INCENDIO.MONEDA, INCENDIO.[1ER PAGO], INCENDIO.[PAGO SUBSEC], INCENDIO.[FECHA  PAGO], INCENDIO.EFECTIVO, INCENDIO.[NO CHEQUE], INCENDIO.[FECHA PAGO 2], INCENDIO.[MONED 2], INCENDIO.[EFECTIVO 2], INCENDIO.[NO CHEQUE 2], INCENDIO.[FECHA PAGO 3], INCENDIO.[MONED 3], INCENDIO.[EFECTIVO 3], INCENDIO.[NO CHEQUE 3], INCENDIO.[FECHA PAGO 4], INCENDIO.[MONED 4], INCENDIO.[EFECTIVO 4], INCENDIO.[NO CHEQUE 4], INCENDIO.[P NETA], INCENDIO.RECARGO, INCENDIO.[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, INCENDIO.COM, INCENDIO.[P NETA 2], INCENDIO.[RECARGO 2], INCENDIO.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, INCENDIO.[COM 2], INCENDIO.LIQUIDADA, INCENDIO.[LIQUIDADA 2], INCENDIO.EDIFICIO, INCENDIO.[EDIF TERREMOTO], INCENDIO.CONTENIDOS, INCENDIO.[CONT TERREMOTO], INCENDIO.CONSTRUCCION, INCENDIO.OBSERVACIONES, INCENDIO.RENOVACION

FROM IMPUESTOS, DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id];
```

###### `LIC` (Select)

```sql
SELECT DATGRAL.[NUM id], LICENCIAS.[NO POLIZA], LICENCIAS.FOLIO, LICENCIAS.[P ANTERIOR], LICENCIAS.[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, LICENCIAS.CONTR, LICENCIAS.COMP, LICENCIAS.AGENT, LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[FORMA  PAGO], LICENCIAS.MONEDA, LICENCIAS.[FECHA  PAGO], LICENCIAS.EFECTIVO, LICENCIAS.[NO CHEQUE], LICENCIAS.OBSERVACIONES, LICENCIAS.COBERTURA, LICENCIAS.PERSONAS, IIf([COBERTURA]=365,12,15) AS Expr3, [PERSONAS]*2 AS Expr4, LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.[LIC 1], LICENCIAS.[EDO 1], LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.[LIC 2], LICENCIAS.[EDO 2], LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.[LIC 3], LICENCIAS.[EDO 3], LICENCIAS.PROPIEDADES, LICENCIAS.[SERVICIO ADICIONAL], LICENCIAS.CLAVE, LICENCIAS.HORA, LICENCIAS.[PRIMA NETA], LICENCIAS.[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, LICENCIAS.LIQUIDADA, LICENCIAS.RENOVACION, LICENCIAS.[GASTOS MEDICO], LICENCIAS.[F EMISION], LICENCIAS.ENDOSO, LICENCIAS.[F LIQUIDA1], LICENCIAS.[NUM LIQUIDACION], LICENCIAS.[CONFIRMA L1], LICENCIAS.[SERV CIA], LICENCIAS.[CSL LIMITE], LICENCIAS.RENT

FROM IMPUESTOS, DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

ORDER BY LICENCIAS.[NO POLIZA] DESC , LICENCIAS.[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `LIC AUT TUR EDITA` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.FOLIO, LICENCIAS.[P ANTERIOR], LICENCIAS.[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, LICENCIAS.COMP, LICENCIAS.CONTR, LICENCIAS.AGENT, LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[FORMA  PAGO], LICENCIAS.MONEDA, LICENCIAS.[FECHA  PAGO], LICENCIAS.EFECTIVO, LICENCIAS.[NO CHEQUE], LICENCIAS.OBSERVACIONES, LICENCIAS.COBERTURA, LICENCIAS.PERSONAS, IIf([COBERTURA]=365,12,15) AS Expr3, [PERSONAS]*2 AS Expr4, LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.[LIC 1], LICENCIAS.[EDO 1], LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.[LIC 2], LICENCIAS.[EDO 2], LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.[LIC 3], LICENCIAS.[EDO 3], LICENCIAS.PROPIEDADES, LICENCIAS.[SERVICIO ADICIONAL], LICENCIAS.CLAVE, LICENCIAS.HORA, LICENCIAS.[PRIMA NETA], LICENCIAS.[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, LICENCIAS.LIQUIDADA, LICENCIAS.RENOVACION, LICENCIAS.[GASTOS MEDICO], LICENCIAS.[F EMISION], LICENCIAS.ENDOSO, LICENCIAS.[NUM LIQUIDACION], LICENCIAS.[F LIQUIDA1], LICENCIAS.[CONFIRMA L1], LICENCIAS.[SERV CIA], LICENCIAS.[CSL LIMITE], LICENCIAS.RENT

FROM IMPUESTOS_AUTOS, DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

ORDER BY LICENCIAS.[NO POLIZA] DESC , LICENCIAS.[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `LIC AUT TUR RDITA` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.FOLIO, LICENCIAS.[P ANTERIOR], LICENCIAS.[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, LICENCIAS.COMP, LICENCIAS.CONTR, LICENCIAS.AGENT, LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[FORMA  PAGO], LICENCIAS.MONEDA, LICENCIAS.[FECHA  PAGO], LICENCIAS.EFECTIVO, LICENCIAS.[NO CHEQUE], LICENCIAS.OBSERVACIONES, LICENCIAS.COBERTURA, LICENCIAS.PERSONAS, IIf([COBERTURA]=365,12,15) AS Expr3, [PERSONAS]*2 AS Expr4, LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.[LIC 1], LICENCIAS.[EDO 1], LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.[LIC 2], LICENCIAS.[EDO 2], LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.[LIC 3], LICENCIAS.[EDO 3], LICENCIAS.PROPIEDADES, LICENCIAS.[SERVICIO ADICIONAL], LICENCIAS.CLAVE, LICENCIAS.HORA, LICENCIAS.[PRIMA NETA], LICENCIAS.[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, LICENCIAS.LIQUIDADA, LICENCIAS.RENOVACION, LICENCIAS.[GASTOS MEDICO], LICENCIAS.[F EMISION], LICENCIAS.ENDOSO, LICENCIAS.[NUM LIQUIDACION], LICENCIAS.[F LIQUIDA1], LICENCIAS.[CONFIRMA L1], LICENCIAS.[SERV CIA]

FROM IMPUESTOS, DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

ORDER BY LICENCIAS.[NO POLIZA] DESC , LICENCIAS.[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `LIC AUT TUR X POLIZA` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.FOLIO, LICENCIAS.[P ANTERIOR], LICENCIAS.[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, LICENCIAS.COMP, LICENCIAS.CONTR, LICENCIAS.AGENT, LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[FORMA  PAGO], LICENCIAS.MONEDA, LICENCIAS.[FECHA  PAGO], LICENCIAS.EFECTIVO, LICENCIAS.[NO CHEQUE], LICENCIAS.OBSERVACIONES, LICENCIAS.COBERTURA, LICENCIAS.PERSONAS, IIf([COBERTURA]=365,12,15) AS Expr3, [PERSONAS]*2 AS Expr4, LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.[LIC 1], LICENCIAS.[EDO 1], LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.[LIC 2], LICENCIAS.[EDO 2], LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.[LIC 3], LICENCIAS.[EDO 3], LICENCIAS.PROPIEDADES, LICENCIAS.[SERVICIO ADICIONAL], LICENCIAS.CLAVE, LICENCIAS.HORA, LICENCIAS.[PRIMA NETA], LICENCIAS.[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, LICENCIAS.LIQUIDADA, LICENCIAS.RENOVACION, LICENCIAS.[GASTOS MEDICO], LICENCIAS.[F EMISION], LICENCIAS.ENDOSO, LICENCIAS.[NUM LIQUIDACION], LICENCIAS.[F LIQUIDA1], LICENCIAS.[CONFIRMA L1], LICENCIAS.[SERV CIA]

FROM IMPUESTOS, DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM POLIZA A EDITAR]))

ORDER BY LICENCIAS.[NO POLIZA] DESC , LICENCIAS.[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `LIC AUT TUR X POLIZA Consulta` (Delete)

```sql
UPDATE [LIC AUT TUR X POLIZA PARA LIQUIDA] SET [LIC AUT TUR X POLIZA PARA LIQUIDA].LIQUIDADA = [LICENCIAS]![LIQUIDADA]=1, [LIC AUT TUR X POLIZA PARA LIQUIDA].[NUM LIQUIDACION] = [LICENCIAS]![NUM LIQUIDACION]=Null, [LIC AUT TUR X POLIZA PARA LIQUIDA].[F LIQUIDA1] = [LICENCIAS]![F LIQUIDA1]=Null;
```

###### `LIC AUT TUR X POLIZA PARA LIQUIDA` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.FOLIO, LICENCIAS.[P ANTERIOR], LICENCIAS.[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, LICENCIAS.COMP, LICENCIAS.CONTR, LICENCIAS.AGENT, LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[FORMA  PAGO], LICENCIAS.MONEDA, LICENCIAS.[FECHA  PAGO], LICENCIAS.EFECTIVO, LICENCIAS.[NO CHEQUE], LICENCIAS.OBSERVACIONES, LICENCIAS.COBERTURA, LICENCIAS.PERSONAS, IIf([COBERTURA]=365,12,15) AS Expr3, [PERSONAS]*2 AS Expr4, LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.[LIC 1], LICENCIAS.[EDO 1], LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.[LIC 2], LICENCIAS.[EDO 2], LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.[LIC 3], LICENCIAS.[EDO 3], LICENCIAS.PROPIEDADES, LICENCIAS.[SERVICIO ADICIONAL], LICENCIAS.CLAVE, LICENCIAS.HORA, LICENCIAS.[PRIMA NETA], LICENCIAS.[D POLIZA], ([PRIMA NETA]+[D POLIZA])*0.1 AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, LICENCIAS.LIQUIDADA, LICENCIAS.RENOVACION, LICENCIAS.[GASTOS MEDICO], LICENCIAS.[F EMISION], LICENCIAS.ENDOSO, LICENCIAS.[NUM LIQUIDACION], LICENCIAS.[F LIQUIDA1]

FROM DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE (((LICENCIAS.[NO POLIZA])=[CONFIRME EL NUMERO DE POLIZA A CAMBIAR]))

ORDER BY LICENCIAS.[NO POLIZA] DESC , LICENCIAS.[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `LIC LIQUIDA` (Select)

```sql
SELECT DATGRAL.[NUM id], LICENCIAS.[NO POLIZA], LICENCIAS.LETPOL, LICENCIAS.[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, LICENCIAS.CONTR, LICENCIAS.COMP, LICENCIAS.AGENT, LICENCIAS.CLAVE, LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[FORMA  PAGO], LICENCIAS.MONEDA, LICENCIAS.[FECHA  PAGO], LICENCIAS.EFECTIVO, LICENCIAS.[NO CHEQUE], LICENCIAS.OBSERVACIONES, LICENCIAS.COBERTURA, IIf([COBERTURA]=365,12,15) AS Expr3, [EXPR3]*2 AS Expr4, LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.[LIC 1], LICENCIAS.[EDO 1], LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.[LIC 2], LICENCIAS.[EDO 2], LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.[LIC 3], LICENCIAS.[EDO 3], LICENCIAS.PROPIEDADES, LICENCIAS.[SERVICIO ADICIONAL], LICENCIAS.HORA, LICENCIAS.[PRIMA NETA], LICENCIAS.[D POLIZA], ([PRIMA NETA]+[D POLIZA])*0.16 AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, LICENCIAS.LIQUIDADA, LICENCIAS.RENOVACION

FROM IMPUESTOS_AUTOS, DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

ORDER BY LICENCIAS.[NO POLIZA] DESC , LICENCIAS.[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `LIC RENEW` (Select)

```sql
SELECT LIC.[NO POLIZA], LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [EXPR3]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"ONE YEAR","MULTIPLE ENTRIE") AS EXPR9, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, *

FROM LIC, [LIC MENS];
```

###### `LIC RENEW X POLIZA` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LICENSE COVERAGES ONE YEAR","LICENSE COVERAGES " & "(" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS EXPR9, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]));
```

###### `LIC RENEW X VENCE` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LICENSE COVERAGES ONE YEAR","LICENSE COVERAGES " & "(" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS EXPR9, IIf([COBERTURA]=365,15,10) AS Expr15, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, LIC.[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16, [csl limite]*1000 AS Expr17

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]));
```

###### `LIC RENEW X VENCE ATLAS 2013` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LIABILITY COVERAGE ONE YEAR","LIABILITY COVERAGE " & "(" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS EXPR9, IIf([COBERTURA]=365,15,10) AS Expr15, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, LIC.[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16, [csl limite]*1000 AS Expr17

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]) AND ((LIC.COMP)="ATLAS, S.A."));
```

###### `LIC RENEW X VENCE ATLAS 2013 365` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LIABILITY COVERAGE ONE YEAR","LIABILITY COVERAGE ONLY IN MEXICO" & "(" & [COBERTURA] & ") DAYS ") AS EXPR9, IIf([COBERTURA]=365,15,10) AS Expr15, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, LIC.[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16, [csl limite]*1000 AS Expr17

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.COBERTURA)=365) AND ((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]) AND ((LIC.COMP)="ATLAS, S.A."));
```

###### `LIC RENEW X VENCE ATLAS 2013 40` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LIABILITY COVERAGE ONE YEAR","CURRENT LIABILITY COVERAGE ONLY IN MEXICO" & "(" & [COBERTURA] & ") DAYS ") AS EXPR9, IIf([COBERTURA]=365,15,10) AS Expr15, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, LIC.[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16, [csl limite]*1000 AS Expr17

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.COBERTURA)=40) AND ((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]) AND ((LIC.COMP)="ATLAS, S.A."));
```

###### `LIC RENEW X VENCE ATLAS 2013 50` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LIABILITY COVERAGE ONE YEAR","CURRENT LIABILITY COVERAGE ONLY IN MEXICO" & "(" & [COBERTURA] & ") DAYS ") AS EXPR9, IIf([COBERTURA]=365,15,10) AS Expr15, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, LIC.[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16, [csl limite]*1000 AS Expr17

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.COBERTURA)=50) AND ((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]) AND ((LIC.COMP)="ATLAS, S.A."));
```

###### `LIC RENEW X VENCE ATLAS 2013 NO365` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LIABILITY COVERAGE ONE YEAR","CURRENT LIABILITY COVERAGE ONLY IN MEXICO" & "(" & [COBERTURA] & ") DAYS ") AS EXPR9, IIf([COBERTURA]=365,15,10) AS Expr15, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, LIC.[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16, [csl limite]*1000 AS Expr17

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.COBERTURA)=30) AND ((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]) AND ((LIC.COMP)="ATLAS, S.A."));
```

###### `LIC RENEW X VENCE QUALITAS 30` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LIABILITY COVERAGE ONE YEAR","CURRENT LIABILITY COVERAGE ONLY IN MEXICO" & "(" & [COBERTURA] & ") DAYS ") AS EXPR9, IIf([COBERTURA]=365,15,10) AS Expr15, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, LIC.[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16, [csl limite]*1000 AS Expr17, [LIC MENS].[policy 30]

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.COBERTURA)=30) AND ((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]) AND ((LIC.COMP)="QUALITAS"));
```

###### `LIC RENEW X VENCE QUALITAS 365` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LIABILITY COVERAGE ONE YEAR","LIABILITY COVERAGE ONLY IN MEXICO" & "(" & [COBERTURA] & ") DAYS ") AS EXPR9, IIf([COBERTURA]=365,15,10) AS Expr15, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, LIC.[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16, [csl limite]*1000 AS Expr17, [LIC MENS].[policy 365]

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.COBERTURA)=365) AND ((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]) AND ((LIC.COMP)="QUALITAS"));
```

###### `LIC RENEW X VENCE QUALITAS 40` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LIABILITY COVERAGE ONE YEAR","CURRENT LIABILITY COVERAGE ONLY IN MEXICO" & "(" & [COBERTURA] & ") DAYS ") AS EXPR9, IIf([COBERTURA]=365,15,10) AS Expr15, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, LIC.[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16, [csl limite]*1000 AS Expr17, [LIC MENS].[policy 40]

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.COBERTURA)=40) AND ((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]) AND ((LIC.COMP)="QUALITAS"));
```

###### `LIC RENEW X VENCE QUALITAS 50` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LIABILITY COVERAGE ONE YEAR","CURRENT LIABILITY COVERAGE ONLY IN MEXICO" & "(" & [COBERTURA] & ") DAYS ") AS EXPR9, IIf([COBERTURA]=365,15,10) AS Expr15, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC  MENSAJE 1], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, LIC.[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16, [csl limite]*1000 AS Expr17, [LIC MENS].[policy 50]

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.COBERTURA)=50) AND ((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]) AND ((LIC.COMP)="QUALITAS"));
```

###### `LIC RENEW2 X POLIZA` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LICENSE COVERAGES ONE YEAR","LICENSE COVERAGES " & "(" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS EXPR9, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC MENS2], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]));
```

###### `LIC RENEW2 X VENCE` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LICENSE COVERAGES ONE YEAR","LICENSE COVERAGES " & "(" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS EXPR9, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC MENS2], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, [csl limite]*1000 AS Expr17, IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]));
```

###### `LIC RENEW3 X POLIZA` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LICENSE COVERAGES ONE YEAR","LICENSE COVERAGES " & "(" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS EXPR9, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC MENS3], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((LIC.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]));
```

###### `LIC RENEW3 X VENCE` (Select)

```sql
SELECT LIC.[NUM id], LIC.[NO POLIZA], DATGRAL.NOMBRE, LIC.CONTR, LIC.EXPR2, [CONTR]+[EXPR2] AS EXPR10, LIC.PROPIEDADES, [PROPIEDADES]*1000 AS EXPR11, [PERSONAS]*1000 AS EXPR5, LIC.[SERVICIO ADICIONAL], [EXPR4]*1000 AS EXPR6, LIC.RENOVACION, LIC.COBERTURA, IIf([COBERTURA]=365,"LICENSE COVERAGES ONE YEAR","LICENSE COVERAGES " & "(" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS EXPR9, LIC.HASTA, DatePart("m",([hasta])) AS expr7, DatePart("yyyy",([hasta])) AS expr8, LIC.COMP, LIC.AGENT, [LIC MENS].[LIC MENS3], LIC.[NOMBRE ASEG 1], LIC.[LIC 1], LIC.[EDO 1], LIC.[NOMBRE ASEG 2], LIC.[LIC 2], LIC.[EDO 2], LIC.[NOMBRE ASEG 3], LIC.[LIC 3], LIC.[EDO 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr12, [GASTOS MEDICO]*1000 AS Expr13, [EXPR13]*5 AS Expr14, [csl limite]*1000 AS Expr17, IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR11] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr17] & ".00") AS Expr16

FROM [LIC MENS], (LIC INNER JOIN DATGRAL ON LIC.[NUM id] = DATGRAL.[NUM id]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((DatePart("m",([hasta])))=[TECLEE MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",([hasta])))=[TECLE AÑO VENCIMIENTO (1999)]));
```

###### `LIC T POLIZA X POL` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], IIf([P ANTERIOR]>0,"R- " & [P ANTERIOR]) AS Expr14, LICENCIAS.[NUMER ID], LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.[LIC 1], IIf([LIC 1]>"","LIC. " & [LIC 1]) AS Expr8, LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.[LIC 2], IIf([LIC 2]>"","LIC. " & [LIC 2]) AS Expr15, IIf([LIC 2]>"",1,0) AS Expr24, LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.[LIC 3], IIf([LIC 3]>"","LIC. " & [LIC 3]) AS Expr16, [PROPIEDADES]*1000 AS Expr9, [PERSONAS]*1000 AS Expr10, [PERSONAS]*2*1000 AS Expr11, [GASTOS MEDICO]*1000 AS Expr12, [EXPR12]*5 AS Expr13, LICENCIAS.COBERTURA, LICENCIAS.PROPIEDADES, LICENCIAS.PERSONAS, [PERSONAS]*1000 AS Expr3, [EXPR3]*2 AS Expr4, LICENCIAS.[PRIMA NETA], LICENCIAS.[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, LICENCIAS.[F EMISION], [CLAVE] & " " & [AGENT] AS Expr7, LICENCIAS.HORA, LICENCIAS.DESDE, LICENCIAS.HASTA, IIf([COBERTURA]=30,1,0) AS Expr17, IIf([COBERTURA]=40,1,0) AS Expr18, IIf([COBERTURA]=50,1,0) AS Expr19, IIf([COBERTURA]=60,1,0) AS Expr20, IIf([COBERTURA]=70,1,0) AS Expr21, IIf([COBERTURA]=80,1,0) AS Expr22, ([EXPR17]+[EXPR18]+[EXPR19]+[EXPR20]+[EXPR21]+[EXPR22]) AS Expr23, [EXPR23]+[EXPR24] AS Expr25, LICENCIAS.[EDO 1], LICENCIAS.[EDO 2], LICENCIAS.[EDO 3], LICENCIAS.[SERV CIA]

FROM IMPUESTOS, DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]))

ORDER BY LICENCIAS.[NO POLIZA] DESC;
```

###### `LIC VIG NOW` (Update)

```sql
INSERT INTO [vigenta casa y auto unicos] ( num )

SELECT LICENCIAS.[NUMER ID]

FROM LICENCIAS

WHERE (((LICENCIAS.HASTA)>Now()));
```

###### `LIC new` (Select)

```sql
SELECT DATGRAL.[NUM id], LICENCIAS.[NO POLIZA], LICENCIAS.FOLIO, LICENCIAS.[P ANTERIOR], LICENCIAS.[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, LICENCIAS.CONTR, LICENCIAS.COMP, LICENCIAS.AGENT, LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[FORMA  PAGO], LICENCIAS.MONEDA, LICENCIAS.[FECHA  PAGO], LICENCIAS.EFECTIVO, LICENCIAS.[NO CHEQUE], LICENCIAS.OBSERVACIONES, LICENCIAS.COBERTURA, LICENCIAS.PERSONAS, IIf([COBERTURA]=365,12,15) AS Expr3, [PERSONAS]*2 AS Expr4, LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.[LIC 1], LICENCIAS.[EDO 1], LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.[LIC 2], LICENCIAS.[EDO 2], LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.[LIC 3], LICENCIAS.[EDO 3], LICENCIAS.PROPIEDADES, LICENCIAS.[SERVICIO ADICIONAL], LICENCIAS.CLAVE, LICENCIAS.HORA, LICENCIAS.[PRIMA NETA], LICENCIAS.[D POLIZA], [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, LICENCIAS.LIQUIDADA, LICENCIAS.RENOVACION, LICENCIAS.[GASTOS MEDICO], LICENCIAS.[F EMISION], LICENCIAS.ENDOSO, LICENCIAS.[F LIQUIDA1], LICENCIAS.[NUM LIQUIDACION], LICENCIAS.[CONFIRMA L1], LICENCIAS.[SERV CIA], LICENCIAS.[CSL LIMITE], LICENCIAS.RENT

FROM DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

ORDER BY LICENCIAS.[NO POLIZA] DESC , LICENCIAS.[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `LICEDOCUENT2XPOL` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.[NUMER ID], LICENCIAS.CONTR, [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*[iva] AS Expr2, [EXPR1]+[EXPR2] AS Expr3, LICENCIAS.COMP, LICENCIAS.HASTA, LICENCIAS.[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, LICENCIAS.DESDE

FROM LICENCIAS, IMPUESTOS

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]));
```

###### `LICEDOCUENT2XPOL30` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.[NUMER ID], LICENCIAS.CONTR, [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*[iva] AS Expr2, [EXPR1]+[EXPR2] AS Expr3, LICENCIAS.COMP, LICENCIAS.HASTA, LICENCIAS.[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, LICENCIAS.DESDE, LICENCIAS.COBERTURA, [LIC MENS].[policy 30]

FROM LICENCIAS, IMPUESTOS, [LIC MENS]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND ((LICENCIAS.COBERTURA)=30));
```

###### `LICEDOCUENT2XPOL365` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.[NUMER ID], LICENCIAS.CONTR, [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*[iva] AS Expr2, [EXPR1]+[EXPR2] AS Expr3, LICENCIAS.COMP, LICENCIAS.HASTA, LICENCIAS.[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, LICENCIAS.DESDE, LICENCIAS.COBERTURA, [LIC MENS].[policy 365]

FROM LICENCIAS, IMPUESTOS, [LIC MENS]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND ((LICENCIAS.COBERTURA)=365));
```

###### `LICEDOCUENT2XPOL40` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.[NUMER ID], LICENCIAS.CONTR, [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*[iva] AS Expr2, [EXPR1]+[EXPR2] AS Expr3, LICENCIAS.COMP, LICENCIAS.HASTA, LICENCIAS.[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, LICENCIAS.DESDE, LICENCIAS.COBERTURA, [LIC MENS].[policy 40]

FROM LICENCIAS, IMPUESTOS, [LIC MENS]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND ((LICENCIAS.COBERTURA)=40));
```

###### `LICEDOCUENT2XPOL50` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.[NUMER ID], LICENCIAS.CONTR, [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*[iva] AS Expr2, [EXPR1]+[EXPR2] AS Expr3, LICENCIAS.COMP, LICENCIAS.HASTA, LICENCIAS.[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, LICENCIAS.DESDE, LICENCIAS.COBERTURA, [LIC MENS].[policy 50]

FROM LICENCIAS, IMPUESTOS, [LIC MENS]

WHERE (((LICENCIAS.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND ((LICENCIAS.COBERTURA)=50));
```

###### `LICEDOCUENTXPOL` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.[NUMER ID]

FROM LICENCIAS;
```

###### `LICENCIA ANUAL` (Select)

```sql
SELECT LICENCIAS.[NUMER ID], LICENCIAS.[P NETA], LICENCIAS.[D POL], ([P NETA]+[D POL])*0.1 AS Expr1, [P NETA]+[D POL]+[Expr1] AS Expr2, [P NETA]*0.3 AS Expr3, LICENCIAS.COBERTURA, [NOMBRES] & " " & [APELLIDOS] AS Expr5, LICENCIAS.PROPIEDADES, [PROPIEDADES MULT].[PRIMA PROP], LICENCIAS.PERSONAS, [ATROPELLO MULT].[PRIMA ATR], [PERSONAS]*2 AS Expr4

FROM ((DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]) INNER JOIN [PROPIEDADES MULT] ON LICENCIAS.PROPIEDADES = [PROPIEDADES MULT].[CONCEPTO PROP]) INNER JOIN [ATROPELLO MULT] ON LICENCIAS.PERSONAS = [ATROPELLO MULT].[CONCEPTO ATR];
```

###### `LIQUIDA AMP R SEMES` (Update)

```sql
INSERT INTO [TABLA LIQUIDA RES] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDA2, com )

SELECT [TABLE DATOS LIQUIDA RES].CONTROL, [AMPL LIQUIDA RES].DESDE, [AMPL LIQUIDA RES].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","2/2","1/1") AS Expr7, [AMPL LIQUIDA RES].COMP, [AMPL LIQUIDA RES].LETPOL, [AMPL LIQUIDA RES].[NO POLIZA], [AMPL LIQUIDA RES].AGENT, [PRIMA NETA2]+[RECARGO 2] AS Expr6, [AMPL LIQUIDA RES].[D POLIZA2], [AMPL LIQUIDA RES].Expr3, [AMPL LIQUIDA RES].Expr4, [AMPL LIQUIDA RES].[NOMBRE ASEG], [AMPL LIQUIDA RES].[FECHA PAGO 2], -1 AS Expr5, [AMPL LIQUIDA RES].[COM 2]

FROM [TABLE DATOS LIQUIDA RES] INNER JOIN [AMPL LIQUIDA RES] ON ([TABLE DATOS LIQUIDA RES].AGENTE = [AMPL LIQUIDA RES].AGENT) AND ([TABLE DATOS LIQUIDA RES].COMPANIA = [AMPL LIQUIDA RES].COMP)

WHERE ((([AMPL LIQUIDA RES].[FECHA PAGO 2])>0) AND (([AMPL LIQUIDA RES].LIQUIDADA)=-1) AND ((IIf([forma  pago]="semestral",DateAdd("m",6,[vig 1]))) Between [fecha ini] And [fecha fin]) AND (([AMPL LIQUIDA RES].[LIQUIDADA 2])=0));
```

###### `LIQUIDA AMPL ANUAL` (Update)

```sql
INSERT INTO [TABLA LIQUIDA TUR] ( CONTROL, COMPA, [LET POL], [NO POLIZA], AGENTE, CLAVE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, LIQUIDADA, [F EMISION] )

SELECT [TABLE DATOS LIQUIDA TUR].CONTROL, [AMPL LIQUIDA].COMP, [AMPL LIQUIDA].LETPOL, [AMPL LIQUIDA].[NO POLIZA], [AMPL LIQUIDA].AGENT, [TABLE DATOS LIQUIDA TUR].CLAVE, [AMPL LIQUIDA].[PRIMA NETA], [AMPL LIQUIDA].[D POLIZA], [AMPL LIQUIDA].EXPR1, [AMPL LIQUIDA].EXPR2, [AMPL LIQUIDA].[NOMBRE ASEG], -1 AS Expr5, [AMPL LIQUIDA].[F EMISION]

FROM [TABLE DATOS LIQUIDA TUR] INNER JOIN [AMPL LIQUIDA] ON ([TABLE DATOS LIQUIDA TUR].COMPANIA = [AMPL LIQUIDA].COMP) AND ([TABLE DATOS LIQUIDA TUR].AGENTE = [AMPL LIQUIDA].AGENT)

WHERE ((([AMPL LIQUIDA].DESDE)>0 And ([AMPL LIQUIDA].DESDE) Between [fecha ini] And [fecha fin]) AND (([AMPL LIQUIDA].LIQUIDADA)=False));
```

###### `LIQUIDA AMPL ANUAL EXT` (Update)

```sql
INSERT INTO [TABLA LIQUIDA TUR] ( CONTROL, COMPA, [LET POL], [NO POLIZA], AGENTE, CLAVE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, LIQUIDADA, ENDOSO )

SELECT [TABLE DATOS LIQUIDA TUR].CONTROL, [AMPL LIQUIDA].COMP, [AMPL LIQUIDA].LETPOL, [AMPL LIQUIDA].[NO POLIZA], [AMPL LIQUIDA].AGENT, [TABLE DATOS LIQUIDA TUR].CLAVE, [TABLE DATOS LIQUIDA TUR].[EXT COVERAGE], 5 AS EXPR10, ([EXT COVERAGE]+5)*0.1 AS Expr7, [EXT COVERAGE]+5+[EXPR7] AS Expr8, [AMPL LIQUIDA].[NOMBRE ASEG], -1 AS Expr5, " A" AS Expr9

FROM [TABLE DATOS LIQUIDA TUR] INNER JOIN [AMPL LIQUIDA] ON ([TABLE DATOS LIQUIDA TUR].AGENTE = [AMPL LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA TUR].COMPANIA = [AMPL LIQUIDA].COMP)

WHERE ((([AMPL LIQUIDA].DESDE)>0 And ([AMPL LIQUIDA].DESDE) Between [fecha ini] And [fecha fin]) AND (([AMPL LIQUIDA].LIQUIDADA)=0) AND (([AMPL LIQUIDA].[EXTENDED COVERAGE])=-1));
```

###### `LIQUIDA AMPL ATLAS` (Select)

```sql
SELECT [TABLA AUTOS AMPL].CLAVE, [TABLA AUTOS AMPL].AGENT, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].[FECHA  PAGO], [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*0.1 AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS AMPL].LIQUIDADA

FROM [TABLA AUTOS AMPL]

WHERE ((([TABLA AUTOS AMPL].COMP)="ATLAS, S.A.") AND (([TABLA AUTOS AMPL].[FECHA  PAGO])>0) AND (([TABLA AUTOS AMPL].LIQUIDADA)=0))

ORDER BY [TABLA AUTOS AMPL].[NO POLIZA] DESC;
```

###### `LIQUIDA AMPL R ANN` (Select)

```sql
SELECT [TABLE DATOS LIQUIDA RES].CONTROL, [AMPL LIQUIDA RES].DESDE, [AMPL LIQUIDA RES].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","1/2") AS Expr7, IIf([FORMA  PAGO]="TRIMESTRAL","1/4") AS Expr8, IIf([FORMA  PAGO]="ANNUAL","1/1") AS Expr9, [AMPL LIQUIDA RES].COMP, [AMPL LIQUIDA RES].LETPOL, [AMPL LIQUIDA RES].[NO POLIZA], [AMPL LIQUIDA RES].AGENT, [PRIMA NETA]+[RECARGO] AS Expr6, [AMPL LIQUIDA RES].[D POLIZA], [AMPL LIQUIDA RES].EXPR1, [AMPL LIQUIDA RES].EXPR2, [AMPL LIQUIDA RES].[NOMBRE ASEG], [AMPL LIQUIDA RES].[FECHA  PAGO], -1 AS Expr5, [AMPL LIQUIDA RES].COM

FROM [TABLE DATOS LIQUIDA RES] INNER JOIN [AMPL LIQUIDA RES] ON ([TABLE DATOS LIQUIDA RES].AGENTE = [AMPL LIQUIDA RES].AGENT) AND ([TABLE DATOS LIQUIDA RES].COMPANIA = [AMPL LIQUIDA RES].COMP)

WHERE ((([AMPL LIQUIDA RES].[FECHA  PAGO])>0) AND (([AMPL LIQUIDA RES].[VIG 1]) Between [fecha ini] And [fecha fin]) AND (([AMPL LIQUIDA RES].LIQUIDADA)=0));
```

###### `LIQUIDA AMPL R ANNFIN` (Update)

```sql
INSERT INTO [TABLA LIQUIDA RES] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDADA, com )

SELECT [LIQUIDA AMPL R ANN].CONTROL, [LIQUIDA AMPL R ANN].DESDE, [LIQUIDA AMPL R ANN].[FORMA  PAGO], [EXPR7] & [EXPR8] & [EXPR9] AS Expr3, [LIQUIDA AMPL R ANN].COMP, [LIQUIDA AMPL R ANN].LETPOL, [LIQUIDA AMPL R ANN].[NO POLIZA], [LIQUIDA AMPL R ANN].AGENT, [LIQUIDA AMPL R ANN].Expr6, [LIQUIDA AMPL R ANN].[D POLIZA], [LIQUIDA AMPL R ANN].Expr1, [LIQUIDA AMPL R ANN].Expr2, [LIQUIDA AMPL R ANN].[NOMBRE ASEG], [LIQUIDA AMPL R ANN].[FECHA  PAGO], [LIQUIDA AMPL R ANN].Expr5, [LIQUIDA AMPL R ANN].COM

FROM [LIQUIDA AMPL R ANN]

WHERE ((([LIQUIDA AMPL R ANN].[FECHA  PAGO])>0));
```

###### `LIQUIDA INC ANN` (Update)

```sql
INSERT INTO [TABLA LIQUIDA MF] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], FOLIO, AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDA1, com )

SELECT [TABLE DATOS LIQUIDA MF].CONTROL, [INCEND LIQUIDA].DESDE, [INCEND LIQUIDA].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","1/2","1/1") AS Expr7, [INCEND LIQUIDA].COMP, [INCEND LIQUIDA].LETPOL, [INCEND LIQUIDA].[NO POLIZA], [INCEND LIQUIDA].FOLIO, [INCEND LIQUIDA].AGENT, [P NETA]+[RECARGO] AS Expr6, [INCEND LIQUIDA].[D POL], [INCEND LIQUIDA].Expr1, [INCEND LIQUIDA].Expr2, [INCEND LIQUIDA].[NOMBRE ASEG], [INCEND LIQUIDA].[FECHA  PAGO], -1 AS Expr5, [INCEND LIQUIDA].COM

FROM [TABLE DATOS LIQUIDA MF] INNER JOIN [INCEND LIQUIDA] ON ([TABLE DATOS LIQUIDA MF].AGENTE = [INCEND LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA MF].COMPANIA = [INCEND LIQUIDA].COMP)

WHERE ((([INCEND LIQUIDA].[FECHA  PAGO])>0) AND (([INCEND LIQUIDA].[VIG 1]) Between [fecha ini] And [fecha fin]) AND (([INCEND LIQUIDA].LIQUIDADA)=0));
```

###### `LIQUIDA INC SEM` (Update)

```sql
INSERT INTO [TABLA LIQUIDA MF] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], FOLIO, AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDA2, com )

SELECT [TABLE DATOS LIQUIDA MF].CONTROL, [INCEND LIQUIDA].DESDE, [INCEND LIQUIDA].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","2/2","1/1") AS Expr7, [INCEND LIQUIDA].COMP, [INCEND LIQUIDA].LETPOL, [INCEND LIQUIDA].[NO POLIZA], [INCEND LIQUIDA].FOLIO, [INCEND LIQUIDA].AGENT, [P NETA 2]+[RECARGO 2] AS Expr6, [INCEND LIQUIDA].[D POL 2], [INCEND LIQUIDA].Expr3, [INCEND LIQUIDA].Expr4, [INCEND LIQUIDA].[NOMBRE ASEG], [INCEND LIQUIDA].[FECHA PAGO 2], -1 AS Expr5, [INCEND LIQUIDA].[COM 2]

FROM [TABLE DATOS LIQUIDA MF] INNER JOIN [INCEND LIQUIDA] ON ([TABLE DATOS LIQUIDA MF].AGENTE = [INCEND LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA MF].COMPANIA = [INCEND LIQUIDA].COMP)

WHERE ((([INCEND LIQUIDA].[FECHA PAGO 2])>0) AND ((IIf([forma  pago]="semestral",DateAdd("m",6,[vig 1]))) Between [fecha ini] And [fecha fin]) AND (([INCEND LIQUIDA].[LIQUIDADA 2])=0));
```

###### `LIQUIDA LIC ANN` (Update)

```sql
INSERT INTO [TABLA LIQUIDA TUR] ( CONTROL, COMPA, [LET POL], [NO POLIZA], AGENTE, CLAVE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, LIQUIDADA )

SELECT [TABLE DATOS LIQUIDA TUR].CONTROL, [LIC LIQUIDA].COMP, [LIC LIQUIDA].LETPOL, [LIC LIQUIDA].[NO POLIZA], [LIC LIQUIDA].AGENT, [LIC LIQUIDA].CLAVE, [LIC LIQUIDA].[PRIMA NETA], [LIC LIQUIDA].[D POLIZA], [LIC LIQUIDA].EXPR1, [LIC LIQUIDA].EXPR2, [LIC LIQUIDA].[NOMBRE ASEG 1], -1 AS Expr5

FROM [TABLE DATOS LIQUIDA TUR] INNER JOIN [LIC LIQUIDA] ON ([TABLE DATOS LIQUIDA TUR].AGENTE = [LIC LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA TUR].COMPANIA = [LIC LIQUIDA].COMP)

WHERE ((([LIC LIQUIDA].DESDE)>0 And ([LIC LIQUIDA].DESDE) Between [fecha ini] And [fecha fin]) AND (([LIC LIQUIDA].LIQUIDADA)=0));
```

###### `LIQUIDA LIC ATLAS` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.AGENT, LICENCIAS.[FECHA  PAGO], LICENCIAS.CLAVE, LICENCIAS.[PRIMA NETA], LICENCIAS.[D POLIZA], ([PRIMA NETA]+[D POLIZA])*0.1 AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, LICENCIAS.LIQUIDADA, LICENCIAS.COMP

FROM LICENCIAS

WHERE (((LICENCIAS.[FECHA  PAGO])>0) AND ((LICENCIAS.LIQUIDADA)=0) AND ((LICENCIAS.COMP)="ATLAS, S.A."))

ORDER BY LICENCIAS.[NO POLIZA];
```

###### `LIQUIDA LIMIT ATLAS` (Select)

```sql
SELECT [TABLA AUTOS LIMIT].[NO POLIZA], [TABLA AUTOS LIMIT].AGENT, [TABLA AUTOS LIMIT].[FECHA  PAGO], [TABLA AUTOS LIMIT].CLAVE, [TABLA AUTOS LIMIT].[PRIMA NETA], [TABLA AUTOS LIMIT].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*0.1 AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS LIMIT].LIQUIDADA, [TABLA AUTOS LIMIT].COMP

FROM [TABLA AUTOS LIMIT]

WHERE ((([TABLA AUTOS LIMIT].[FECHA  PAGO])>0) AND (([TABLA AUTOS LIMIT].LIQUIDADA)=0) AND (([TABLA AUTOS LIMIT].COMP)="ATLAS, S.A."))

ORDER BY [TABLA AUTOS LIMIT].[NO POLIZA];
```

###### `LIQUIDA MARCA AMP R` (Delete)

```sql
UPDATE [TABLA LIQUIDA RES] INNER JOIN [TABLA AUTOS AMPL R] ON [TABLA LIQUIDA RES].[NO POLIZA] = [TABLA AUTOS AMPL R].[NO POLIZA] SET [TABLA AUTOS AMPL R].[NUM LIQUIDACION] = [tabla liquida RES].[control], [TABLA AUTOS AMPL R].LIQUIDADA = [tabla liquida RES].[liquidada], [TABLA AUTOS AMPL R].[F LIQUIDA1] = Now()

WHERE ((([TABLA LIQUIDA RES].LIQUIDADA)=-1));
```

###### `LIQUIDA MARCA AMP R SEM` (Delete)

```sql
UPDATE [TABLA LIQUIDA RES] INNER JOIN [TABLA AUTOS AMPL R] ON [TABLA LIQUIDA RES].[NO POLIZA] = [TABLA AUTOS AMPL R].[NO POLIZA] SET [TABLA AUTOS AMPL R].[NUM LIQUIDACION2] = [tabla liquida RES].[control], [TABLA AUTOS AMPL R].[LIQUIDADA 2] = [tabla liquida RES].[liquida2], [TABLA AUTOS AMPL R].[F LIQUIDA2] = Now()

WHERE ((([TABLA LIQUIDA RES].LIQUIDA2)=-1));
```

###### `LIQUIDA MARCA AMPL` (Delete)

```sql
UPDATE [TABLA LIQUIDA TUR] INNER JOIN [TABLA AUTOS AMPL] ON [TABLA LIQUIDA TUR].[NO POLIZA] = [TABLA AUTOS AMPL].[NO POLIZA] SET [TABLA AUTOS AMPL].[NUM LIQUIDACION] = [tabla liquida tur].[control], [TABLA AUTOS AMPL].LIQUIDADA = [tabla liquida tur].[liquidada], [TABLA AUTOS AMPL].[F LIQUIDA1] = Now()

WHERE ((([TABLA LIQUIDA TUR].LIQUIDADA)=-1));
```

###### `LIQUIDA MARCA INC ANN` (Delete)

```sql
UPDATE [TABLA LIQUIDA MF] INNER JOIN INCENDIO ON [TABLA LIQUIDA MF].[NO POLIZA] = INCENDIO.[NO POLIZA] SET INCENDIO.[NUM LIQUIDACION] = [tabla liquida mf].[control], INCENDIO.LIQUIDADA = [tabla liquida mf].[liquida1], INCENDIO.[F LIQUIDA1] = Now()

WHERE ((([TABLA LIQUIDA MF].LIQUIDA1)=-1));
```

###### `LIQUIDA MARCA INC SEM` (Delete)

```sql
UPDATE [TABLA LIQUIDA MF] INNER JOIN INCENDIO ON [TABLA LIQUIDA MF].[NO POLIZA] = INCENDIO.[NO POLIZA] SET INCENDIO.[NUM LIQUIDACION2] = [tabla liquida mf].[control], INCENDIO.[LIQUIDADA 2] = [tabla liquida mf].[liquida2], INCENDIO.[F LIQUIDA2] = Now()

WHERE ((([TABLA LIQUIDA MF].LIQUIDA2)=-1));
```

###### `LIQUIDA MARCA LIC` (Delete)

```sql
UPDATE [TABLA LIQUIDA TUR] INNER JOIN LICENCIAS ON [TABLA LIQUIDA TUR].[NO POLIZA] = LICENCIAS.[NO POLIZA] SET LICENCIAS.[NUM LIQUIDACION] = [tabla liquida tur].[control], LICENCIAS.LIQUIDADA = [tabla liquida tur].[liquidada], LICENCIAS.[F LIQUIDA1] = Now()

WHERE ((([TABLA LIQUIDA TUR].LIQUIDADA)=-1));
```

###### `LIQUIDA MARCA MCA2` (Delete)

```sql
UPDATE [TABLA LIQUIDA MCA2] INNER JOIN MCA2 ON [TABLA LIQUIDA MCA2].[NO POLIZA] = MCA2.POLIZA SET MCA2.NULIQUIDA = [tabla liquida MCA2].[control], MCA2.LIQUIDADA = [tabla liquida MCA2].[liquidada], MCA2.[F LIQUIDA1] = Now()

WHERE ((([TABLA LIQUIDA MCA2].LIQUIDADA)=-1));
```

###### `LIQUIDA MARCA ME ANN` (Delete)

```sql
UPDATE [TABLA LIQUIDA MF] INNER JOIN [M EMPR] ON [TABLA LIQUIDA MF].[NO POLIZA] = [M EMPR].[NO POLIZA] SET [M EMPR].[NUM LIQUIDACION] = [tabla liquida mf].[control], [M EMPR].LIQUIDADA = [tabla liquida mf].[liquida1], [M EMPR].[F LIQUIDA1] = Now()

WHERE ((([TABLA LIQUIDA MF].LIQUIDA1)=-1));
```

###### `LIQUIDA MARCA ME SEM` (Delete)

```sql
UPDATE [TABLA LIQUIDA MF] INNER JOIN [M EMPR] ON [TABLA LIQUIDA MF].[NO POLIZA] = [M EMPR].[NO POLIZA] SET [M EMPR].[NUM LIQUIDACION2] = [tabla liquida mf].[control], [M EMPR].[LIQUIDADA 2] = [tabla liquida mf].[liquida2], [M EMPR].[F LIQUIDA2] = Now()

WHERE ((([TABLA LIQUIDA MF].LIQUIDA2)=-1));
```

###### `LIQUIDA MARCA ME SEM3` (Delete)

```sql
UPDATE [TABLA LIQUIDA MF] INNER JOIN [M EMPR] ON [TABLA LIQUIDA MF].[NO POLIZA] = [M EMPR].[NO POLIZA] SET [M EMPR].[NUM LIQUIDACION3] = [tabla liquida mf].[control], [M EMPR].[LIQUIDADA 3] = [tabla liquida mf].[liquida3], [M EMPR].[F LIQUIDA3] = Now()

WHERE ((([TABLA LIQUIDA MF].LIQUIDA3)=-1));
```

###### `LIQUIDA MARCA ME SEM4` (Delete)

```sql
UPDATE [TABLA LIQUIDA MF] INNER JOIN [M EMPR] ON [TABLA LIQUIDA MF].[NO POLIZA] = [M EMPR].[NO POLIZA] SET [M EMPR].[NUM LIQUIDACION4] = [tabla liquida mf].[control], [M EMPR].[LIQUIDADA 4] = [tabla liquida mf].[liquida4], [M EMPR].[F LIQUIDA4] = Now()

WHERE ((([TABLA LIQUIDA MF].LIQUIDA4)=-1));
```

###### `LIQUIDA MARCA MF ANN` (Delete)

```sql
UPDATE [TABLA LIQUIDA MF] INNER JOIN MULT ON [TABLA LIQUIDA MF].[NO POLIZA] = MULT.[NO POLIZA] SET MULT.[NUM LIQUIDACION] = [tabla liquida mf].[control], MULT.LIQUIDADA = [tabla liquida mf].[liquida1], MULT.[F LIQUIDA1] = Now()

WHERE ((([TABLA LIQUIDA MF].LIQUIDA1)=-1));
```

###### `LIQUIDA MARCA MF SEM` (Delete)

```sql
UPDATE [TABLA LIQUIDA MF] INNER JOIN MULT ON [TABLA LIQUIDA MF].[NO POLIZA] = MULT.[NO POLIZA] SET MULT.[NUM LIQUIDACION2] = [tabla liquida mf].[control], MULT.[LIQUIDADA 2] = [tabla liquida mf].[liquida2], MULT.[F LIQUIDA2] = Now()

WHERE ((([TABLA LIQUIDA MF].LIQUIDA2)=-1));
```

###### `LIQUIDA MARCA RC` (Delete)

```sql
UPDATE [TABLA LIQUIDA TUR] INNER JOIN [TABLA AUTOS] ON [TABLA LIQUIDA TUR].[NO POLIZA] = [TABLA AUTOS].[NO POLIZA] SET [TABLA AUTOS].[NUM LIQUIDACION] = [tabla liquida tur].[control], [TABLA AUTOS].LIQUIDADA = [tabla liquida tur].[liquidada], [TABLA AUTOS].[F LIQUIDA1] = Now()

WHERE ((([TABLA LIQUIDA TUR].LIQUIDADA)=-1));
```

###### `LIQUIDA MARCA RC R` (Delete)

```sql
UPDATE [TABLA LIQUIDA RES] INNER JOIN [TABLA AUTOS RC R] ON [TABLA LIQUIDA RES].[NO POLIZA] = [TABLA AUTOS RC R].[NO POLIZA] SET [TABLA AUTOS RC R].[NUM LIQUIDACION] = [tabla liquida RES].[control], [TABLA AUTOS RC R].LIQUIDADA = [tabla liquida RES].[liquidada], [TABLA AUTOS RC R].[F LIQUIDA1] = Now()

WHERE ((([TABLA LIQUIDA RES].LIQUIDADA)=-1));
```

###### `LIQUIDA MARCA RC R SEM` (Delete)

```sql
UPDATE [TABLA LIQUIDA RES] INNER JOIN [TABLA AUTOS RC R] ON [TABLA LIQUIDA RES].[NO POLIZA] = [TABLA AUTOS RC R].[NO POLIZA] SET [TABLA AUTOS RC R].[NUM LIQUIDACION2] = [tabla liquida RES].[control], [TABLA AUTOS RC R].[LIQUIDADA 2] = [tabla liquida RES].[liquida2], [TABLA AUTOS RC R].[F LIQUIDA2] = Now()

WHERE ((([TABLA LIQUIDA RES].LIQUIDA2)=-1));
```

###### `LIQUIDA MCA2 ANN` (Update)

```sql
INSERT INTO [TABLA LIQUIDA MCA2] ( CONTROL, COMPA, [LET POL], [NO POLIZA], AGENTE, CLAVE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, LIQUIDADA, MENSAJE )

SELECT [TABLE DATOS LIQUIDA MCA2].CONTROL, [MCA2 LIQUIDA].COMP, [MCA2 LIQUIDA].LETPOL, [MCA2 LIQUIDA].POLIZA, [MCA2 LIQUIDA].AGENT, [TABLE DATOS LIQUIDA MCA2].CLAVE, [PRIMA1]+[MP] AS EXPR3, [MCA2 LIQUIDA].[D POLIZA1], [MCA2 LIQUIDA].EXPR1, [MCA2 LIQUIDA].EXPR2, [MCA2 LIQUIDA].NAME1, -1 AS Expr5, [TABLE DATOS LIQUIDA MCA2].MENSAJE

FROM [TABLE DATOS LIQUIDA MCA2] INNER JOIN [MCA2 LIQUIDA] ON ([TABLE DATOS LIQUIDA MCA2].AGENTE = [MCA2 LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA MCA2].COMPANIA = [MCA2 LIQUIDA].COMP)

WHERE ((([MCA2 LIQUIDA].DESDE)>0 And ([MCA2 LIQUIDA].DESDE) Between [fecha ini] And [fecha fin]) AND (([MCA2 LIQUIDA].LIQUIDADA)=0));
```

###### `LIQUIDA ME ANN` (Select)

```sql
SELECT [TABLE DATOS LIQUIDA MF].CONTROL, [ME LIQUIDA].DESDE, [ME LIQUIDA].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","1/2") AS Expr7, IIf([FORMA  PAGO]="TRIMESTRAL","1/4") AS Expr8, IIf([FORMA  PAGO]="ANNUAL","1/1") AS Expr9, [ME LIQUIDA].COMP, [ME LIQUIDA].LETPOL, [ME LIQUIDA].[NO POLIZA], [ME LIQUIDA].FOLIO, [ME LIQUIDA].AGENT, [P NETA]+[RECARGO] AS Expr6, [ME LIQUIDA].[D POL], [ME LIQUIDA].Expr1, [ME LIQUIDA].Expr2, [ME LIQUIDA].[NOMBRE ASEG], [ME LIQUIDA].[FECHA  PAGO], -1 AS Expr5, [ME LIQUIDA].COM

FROM [TABLE DATOS LIQUIDA MF] INNER JOIN [ME LIQUIDA] ON ([TABLE DATOS LIQUIDA MF].AGENTE = [ME LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA MF].COMPANIA = [ME LIQUIDA].COMP)

WHERE ((([ME LIQUIDA].[FECHA  PAGO])>0) AND (([ME LIQUIDA].[VIG 1]) Between [fecha ini] And [fecha fin]) AND (([ME LIQUIDA].LIQUIDADA)=0));
```

###### `LIQUIDA ME ANNFIN` (Update)

```sql
INSERT INTO [TABLA LIQUIDA MF] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], FOLIO, AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDA1, com )

SELECT [LIQUIDA ME ANN].CONTROL, [LIQUIDA ME ANN].DESDE, [LIQUIDA ME ANN].[FORMA  PAGO], [EXPR7] & [EXPR8] & [EXPR9] AS Expr3, [LIQUIDA ME ANN].COMP, [LIQUIDA ME ANN].LETPOL, [LIQUIDA ME ANN].[NO POLIZA], [LIQUIDA ME ANN].FOLIO, [LIQUIDA ME ANN].AGENT, [LIQUIDA ME ANN].Expr6, [LIQUIDA ME ANN].[D POL], [LIQUIDA ME ANN].Expr1, [LIQUIDA ME ANN].Expr2, [LIQUIDA ME ANN].[NOMBRE ASEG], [LIQUIDA ME ANN].[FECHA  PAGO], [LIQUIDA ME ANN].Expr5, [LIQUIDA ME ANN].COM

FROM [LIQUIDA ME ANN]

WHERE ((([LIQUIDA ME ANN].[FECHA  PAGO])>0));
```

###### `LIQUIDA ME SEM` (Select)

```sql
SELECT [TABLE DATOS LIQUIDA MF].CONTROL, [ME LIQUIDA].DESDE, [ME LIQUIDA].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","2/2") AS Expr7, IIf([FORMA  PAGO]="TRIMESTRAL","2/4") AS Expr8, IIf([FORMA  PAGO]="ANNUAL","1/1") AS Expr9, [ME LIQUIDA].COMP, [ME LIQUIDA].LETPOL, [ME LIQUIDA].[NO POLIZA], [ME LIQUIDA].FOLIO, [ME LIQUIDA].AGENT, [P NETA 2]+[RECARGO 2] AS Expr6, [ME LIQUIDA].[D POL 2], [ME LIQUIDA].Expr3, [ME LIQUIDA].Expr4, [ME LIQUIDA].[NOMBRE ASEG], [ME LIQUIDA].[FECHA PAGO 2], -1 AS Expr5, [ME LIQUIDA].[COM 2]

FROM [TABLE DATOS LIQUIDA MF] INNER JOIN [ME LIQUIDA] ON ([TABLE DATOS LIQUIDA MF].AGENTE = [ME LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA MF].COMPANIA = [ME LIQUIDA].COMP)

WHERE ((([ME LIQUIDA].[FECHA PAGO 2])>0) AND ((IIf([forma  pago]="semestral",DateAdd("m",6,[vig 1]))) Between [fecha ini] And [fecha fin]) AND (([ME LIQUIDA].[LIQUIDADA 2])=0));
```

###### `LIQUIDA ME SEMFIN` (Update)

```sql
INSERT INTO [TABLA LIQUIDA MF] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], FOLIO, AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, LIQUIDA2, com )

SELECT [LIQUIDA ME SEM].CONTROL, [LIQUIDA ME SEM].DESDE, [LIQUIDA ME SEM].[FORMA  PAGO], [EXPR7] & [EXPR8] & [EXPR9] AS Expr1, [LIQUIDA ME SEM].COMP, [LIQUIDA ME SEM].LETPOL, [LIQUIDA ME SEM].[NO POLIZA], [LIQUIDA ME SEM].FOLIO, [LIQUIDA ME SEM].AGENT, [LIQUIDA ME SEM].Expr6, [LIQUIDA ME SEM].[D POL 2], [LIQUIDA ME SEM].Expr3, [LIQUIDA ME SEM].Expr4, [LIQUIDA ME SEM].[NOMBRE ASEG], [LIQUIDA ME SEM].Expr5, [LIQUIDA ME SEM].[COM 2]

FROM [LIQUIDA ME SEM];
```

###### `LIQUIDA ME TRI1` (Select)

```sql
SELECT [TABLE DATOS LIQUIDA MF].CONTROL, [ME LIQUIDA].DESDE, [ME LIQUIDA].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","2/2") AS Expr7, IIf([FORMA  PAGO]="TRIMESTRAL","2/4") AS Expr8, IIf([FORMA  PAGO]="ANNUAL","1/1") AS Expr9, [ME LIQUIDA].COMP, [ME LIQUIDA].LETPOL, [ME LIQUIDA].[NO POLIZA], [ME LIQUIDA].FOLIO, [ME LIQUIDA].AGENT, [P NETA 2]+[RECARGO 2] AS Expr6, [ME LIQUIDA].[D POL 2], [ME LIQUIDA].Expr3, [ME LIQUIDA].Expr4, [ME LIQUIDA].[NOMBRE ASEG], [ME LIQUIDA].[FECHA PAGO 2], -1 AS Expr5, [ME LIQUIDA].[COM 2]

FROM [TABLE DATOS LIQUIDA MF] INNER JOIN [ME LIQUIDA] ON ([TABLE DATOS LIQUIDA MF].AGENTE = [ME LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA MF].COMPANIA = [ME LIQUIDA].COMP)

WHERE ((([ME LIQUIDA].[FECHA PAGO 2])>0) AND ((IIf([forma  pago]="TRIMESTRAL",DateAdd("m",3,[vig 1]))) Between [fecha ini] And [fecha fin]) AND (([ME LIQUIDA].[LIQUIDADA 2])=0));
```

###### `LIQUIDA ME TRI1FIN` (Update)

```sql
INSERT INTO [TABLA LIQUIDA MF] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, [LET POL], [NO POLIZA], FOLIO, AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDA2, com, COMPA )

SELECT [LIQUIDA ME TRI1].CONTROL, [LIQUIDA ME TRI1].DESDE, [LIQUIDA ME TRI1].[FORMA  PAGO], [EXPR7] & [EXPR8] & [EXPR9] AS Expr1, [LIQUIDA ME TRI1].LETPOL, [LIQUIDA ME TRI1].[NO POLIZA], [LIQUIDA ME TRI1].FOLIO, [LIQUIDA ME TRI1].AGENT, [LIQUIDA ME TRI1].Expr6, [LIQUIDA ME TRI1].[D POL 2], [LIQUIDA ME TRI1].Expr3, [LIQUIDA ME TRI1].Expr4, [LIQUIDA ME TRI1].[NOMBRE ASEG], [LIQUIDA ME TRI1].[FECHA PAGO 2], [LIQUIDA ME TRI1].Expr5, [LIQUIDA ME TRI1].[COM 2], [LIQUIDA ME TRI1].COMP

FROM [LIQUIDA ME TRI1]

WHERE ((([LIQUIDA ME TRI1].[FECHA PAGO 2])>0));
```

###### `LIQUIDA ME TRI2` (Select)

```sql
SELECT [TABLE DATOS LIQUIDA MF].CONTROL, [ME LIQUIDA].DESDE, [ME LIQUIDA].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","2/2") AS Expr7, IIf([FORMA  PAGO]="TRIMESTRAL","3/4") AS Expr8, IIf([FORMA  PAGO]="ANNUAL","1/1") AS Expr9, [ME LIQUIDA].COMP, [ME LIQUIDA].LETPOL, [ME LIQUIDA].[NO POLIZA], [ME LIQUIDA].FOLIO, [ME LIQUIDA].AGENT, [P NETA 2]+[RECARGO 2] AS Expr6, [ME LIQUIDA].[D POL 2], [ME LIQUIDA].Expr3, [ME LIQUIDA].Expr4, [ME LIQUIDA].[NOMBRE ASEG], [ME LIQUIDA].[FECHA PAGO 3], -1 AS Expr5, [ME LIQUIDA].[COM 2]

FROM [TABLE DATOS LIQUIDA MF] INNER JOIN [ME LIQUIDA] ON ([TABLE DATOS LIQUIDA MF].AGENTE = [ME LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA MF].COMPANIA = [ME LIQUIDA].COMP)

WHERE ((([ME LIQUIDA].[FECHA PAGO 3])>0) AND ((IIf([forma  pago]="TRIMESTRAL",DateAdd("m",6,[vig 1]))) Between [fecha ini] And [fecha fin]) AND (([ME LIQUIDA].[LIQUIDADA 3])=0));
```

###### `LIQUIDA ME TRI2FIN` (Update)

```sql
INSERT INTO [TABLA LIQUIDA MF] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], FOLIO, AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDA3, com )

SELECT [LIQUIDA ME TRI2].CONTROL, [LIQUIDA ME TRI2].DESDE, [LIQUIDA ME TRI2].[FORMA  PAGO], [EXPR7] & [EXPR8] & [EXPR9] AS Expr1, [LIQUIDA ME TRI2].COMP, [LIQUIDA ME TRI2].LETPOL, [LIQUIDA ME TRI2].[NO POLIZA], [LIQUIDA ME TRI2].FOLIO, [LIQUIDA ME TRI2].AGENT, [LIQUIDA ME TRI2].Expr6, [LIQUIDA ME TRI2].[D POL 2], [LIQUIDA ME TRI2].Expr3, [LIQUIDA ME TRI2].Expr4, [LIQUIDA ME TRI2].[NOMBRE ASEG], [LIQUIDA ME TRI2].[FECHA PAGO 3], [LIQUIDA ME TRI2].Expr5, [LIQUIDA ME TRI2].[COM 2]

FROM [LIQUIDA ME TRI2]

WHERE ((([LIQUIDA ME TRI2].[FECHA PAGO 3])>0));
```

###### `LIQUIDA ME TRI3` (Select)

```sql
SELECT [TABLE DATOS LIQUIDA MF].CONTROL, [ME LIQUIDA].DESDE, [ME LIQUIDA].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","2/2") AS Expr7, IIf([FORMA  PAGO]="TRIMESTRAL","4/4") AS Expr8, IIf([FORMA  PAGO]="ANNUAL","1/1") AS Expr9, [ME LIQUIDA].COMP, [ME LIQUIDA].LETPOL, [ME LIQUIDA].[NO POLIZA], [ME LIQUIDA].FOLIO, [ME LIQUIDA].AGENT, [P NETA 2]+[RECARGO 2] AS Expr6, [ME LIQUIDA].[D POL 2], [ME LIQUIDA].Expr3, [ME LIQUIDA].Expr4, [ME LIQUIDA].[NOMBRE ASEG], [ME LIQUIDA].[FECHA PAGO 4], -1 AS Expr5, [ME LIQUIDA].[COM 2]

FROM [TABLE DATOS LIQUIDA MF] INNER JOIN [ME LIQUIDA] ON ([TABLE DATOS LIQUIDA MF].AGENTE = [ME LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA MF].COMPANIA = [ME LIQUIDA].COMP)

WHERE ((([ME LIQUIDA].[FECHA PAGO 4])>0) AND ((IIf([forma  pago]="TRIMESTRAL",DateAdd("m",9,[vig 1]))) Between [fecha ini] And [fecha fin]) AND (([ME LIQUIDA].[LIQUIDADA 4])=0));
```

###### `LIQUIDA ME TRI3FIN` (Update)

```sql
INSERT INTO [TABLA LIQUIDA MF] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], FOLIO, AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDA4, com )

SELECT [LIQUIDA ME TRI3].CONTROL, [LIQUIDA ME TRI3].DESDE, [LIQUIDA ME TRI3].[FORMA  PAGO], [EXPR7] & [EXPR8] & [EXPR9] AS Expr1, [LIQUIDA ME TRI3].COMP, [LIQUIDA ME TRI3].LETPOL, [LIQUIDA ME TRI3].[NO POLIZA], [LIQUIDA ME TRI3].FOLIO, [LIQUIDA ME TRI3].AGENT, [LIQUIDA ME TRI3].Expr6, [LIQUIDA ME TRI3].[D POL 2], [LIQUIDA ME TRI3].Expr3, [LIQUIDA ME TRI3].Expr4, [LIQUIDA ME TRI3].[NOMBRE ASEG], [LIQUIDA ME TRI3].[FECHA PAGO 4], [LIQUIDA ME TRI3].Expr5, [LIQUIDA ME TRI3].[COM 2]

FROM [LIQUIDA ME TRI3]

WHERE ((([LIQUIDA ME TRI3].[FECHA PAGO 4])>0));
```

###### `LIQUIDA MF ANN` (Update)

```sql
INSERT INTO [TABLA LIQUIDA MF] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], FOLIO, AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDA1, com )

SELECT [TABLE DATOS LIQUIDA MF].CONTROL, [MULT FAM LIQUIDA].DESDE, [MULT FAM LIQUIDA].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","1/2","1/1") AS Expr7, [MULT FAM LIQUIDA].COMP, [MULT FAM LIQUIDA].LETPOL, [MULT FAM LIQUIDA].[NO POLIZA], [MULT FAM LIQUIDA].FOLIO, [MULT FAM LIQUIDA].AGENT, [P NETA]+[RECARGO] AS Expr6, [MULT FAM LIQUIDA].[D POL], [MULT FAM LIQUIDA].Expr1, [MULT FAM LIQUIDA].Expr2, [MULT FAM LIQUIDA].[NOMBRE ASEG], [MULT FAM LIQUIDA].[FECHA  PAGO], -1 AS Expr5, [MULT FAM LIQUIDA].COM

FROM [TABLE DATOS LIQUIDA MF] INNER JOIN [MULT FAM LIQUIDA] ON ([TABLE DATOS LIQUIDA MF].AGENTE = [MULT FAM LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA MF].COMPANIA = [MULT FAM LIQUIDA].COMP)

WHERE ((([MULT FAM LIQUIDA].[FECHA  PAGO])>0) AND (([MULT FAM LIQUIDA].[VIG 1]) Between [fecha ini] And [fecha fin]) AND (([MULT FAM LIQUIDA].LIQUIDADA)=0));
```

###### `LIQUIDA MF D` (Select)

```sql
SELECT LIQUIDAAD.POLIZA, LIQUIDAAD.[VIGENCIA INICIAL], LIQUIDAAD.[PRIMA NETA], LIQUIDAAD.[DERECHO DE PÓLIZA], LIQUIDAAD.COM, LIQUIDAAD.OBSERVACIONES, ([PRIMA NETA]+[DERECHO DE PÓLIZA])*0.16 AS IVA, [PRIMA NETA]+[DERECHO DE PÓLIZA]+[IVA] AS TOTAL

FROM LIQUIDAAD;
```

###### `LIQUIDA MF SEM` (Update)

```sql
INSERT INTO [TABLA LIQUIDA MF] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], FOLIO, AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDA2, com )

SELECT [TABLE DATOS LIQUIDA MF].CONTROL, [MULT FAM LIQUIDA].DESDE, [MULT FAM LIQUIDA].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","2/2","1/1") AS Expr7, [MULT FAM LIQUIDA].COMP, [MULT FAM LIQUIDA].LETPOL, [MULT FAM LIQUIDA].[NO POLIZA], [MULT FAM LIQUIDA].FOLIO, [MULT FAM LIQUIDA].AGENT, [P NETA 2]+[RECARGO 2] AS Expr6, [MULT FAM LIQUIDA].[D POL 2], [MULT FAM LIQUIDA].Expr3, [MULT FAM LIQUIDA].Expr4, [MULT FAM LIQUIDA].[NOMBRE ASEG], [MULT FAM LIQUIDA].[FECHA PAGO 2], -1 AS Expr5, [MULT FAM LIQUIDA].[COM 2]

FROM [TABLE DATOS LIQUIDA MF] INNER JOIN [MULT FAM LIQUIDA] ON ([TABLE DATOS LIQUIDA MF].AGENTE = [MULT FAM LIQUIDA].AGENT) AND ([TABLE DATOS LIQUIDA MF].COMPANIA = [MULT FAM LIQUIDA].COMP)

WHERE ((([MULT FAM LIQUIDA].[FECHA PAGO 2])>0) AND (([MULT FAM LIQUIDA].LIQUIDADA)=-1) AND ((IIf([forma  pago]="semestral",DateAdd("m",6,[vig 1]))) Between [fecha ini] And [fecha fin]) AND (([MULT FAM LIQUIDA].[LIQUIDADA 2])=0));
```

###### `LIQUIDA RC ANUAL` (Update)

```sql
INSERT INTO [TABLA LIQUIDA TUR] ( CONTROL, COMPA, [LET POL], [NO POLIZA], AGENTE, CLAVE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, LIQUIDADA )

SELECT [TABLE DATOS LIQUIDA TUR].CONTROL, [RC LIQUIDA].COMP, [RC LIQUIDA].LETPOL, [RC LIQUIDA].[NO POLIZA], [RC LIQUIDA].AGENT, [RC LIQUIDA].CLAVE, [RC LIQUIDA].[PRIMA NETA], [RC LIQUIDA].[D POLIZA], [RC LIQUIDA].EXPR1, [RC LIQUIDA].EXPR2, [RC LIQUIDA].[NOMBRE ASEG], -1 AS Expr5

FROM [TABLE DATOS LIQUIDA TUR] INNER JOIN [RC LIQUIDA] ON ([TABLE DATOS LIQUIDA TUR].COMPANIA = [RC LIQUIDA].COMP) AND ([TABLE DATOS LIQUIDA TUR].AGENTE = [RC LIQUIDA].AGENT)

WHERE ((([RC LIQUIDA].DESDE)>0 And ([RC LIQUIDA].DESDE) Between [fecha ini] And [fecha fin]) AND (([RC LIQUIDA].LIQUIDADA)=0));
```

###### `LIQUIDA RC ATLAS` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].AGENT, [TABLA AUTOS].[FECHA  PAGO], [TABLA AUTOS].CLAVE, [TABLA AUTOS].[PRIMA NETA], [TABLA AUTOS].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*0.1 AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS].LIQUIDADA, [TABLA AUTOS].COMP

FROM [TABLA AUTOS]

WHERE ((([TABLA AUTOS].[FECHA  PAGO])>0) AND (([TABLA AUTOS].LIQUIDADA)=0) AND (([TABLA AUTOS].COMP)="ATLAS, S.A."))

ORDER BY [TABLA AUTOS].[NO POLIZA];
```

###### `LIQUIDA RC R ANN` (Select)

```sql
SELECT [TABLE DATOS LIQUIDA RES].CONTROL, [RC LIQUIDA RES].DESDE, [RC LIQUIDA RES].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","1/2") AS Expr7, IIf([FORMA  PAGO]="TRIMESTRAL","1/4") AS Expr8, IIf([FORMA  PAGO]="ANNUAL","1/1") AS Expr9, [RC LIQUIDA RES].COMP, [RC LIQUIDA RES].LETPOL, [RC LIQUIDA RES].[NO POLIZA], [RC LIQUIDA RES].AGENT, [PRIMA NETA]+[RECARGO] AS Expr6, [RC LIQUIDA RES].[D POLIZA], [RC LIQUIDA RES].EXPR1, [RC LIQUIDA RES].EXPR2, [RC LIQUIDA RES].[NOMBRE ASEG], [RC LIQUIDA RES].[FECHA  PAGO], -1 AS Expr5, [RC LIQUIDA RES].COM

FROM [TABLE DATOS LIQUIDA RES] INNER JOIN [RC LIQUIDA RES] ON ([TABLE DATOS LIQUIDA RES].AGENTE = [RC LIQUIDA RES].AGENT) AND ([TABLE DATOS LIQUIDA RES].COMPANIA = [RC LIQUIDA RES].COMP)

WHERE ((([RC LIQUIDA RES].[FECHA  PAGO])>0) AND (([RC LIQUIDA RES].[VIG 1]) Between [fecha ini] And [fecha fin]) AND (([RC LIQUIDA RES].LIQUIDADA)=0));
```

###### `LIQUIDA RC R ANUAL` (Update)

```sql
INSERT INTO [TABLA LIQUIDA RES] ( CONTROL, COMPA, [LET POL], [NO POLIZA], AGENTE, CLAVE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, LIQUIDADA, PAGOS, com )

SELECT [TABLE DATOS LIQUIDA RES].CONTROL, [RC LIQUIDA RES].COMP, [RC LIQUIDA RES].LETPOL, [RC LIQUIDA RES].[NO POLIZA], [RC LIQUIDA RES].AGENT, [RC LIQUIDA RES].CLAVE, [PRIMA NETA]+[recargo] AS Expr6, [RC LIQUIDA RES].[D POLIZA], [RC LIQUIDA RES].EXPR1, [RC LIQUIDA RES].EXPR2, [RC LIQUIDA RES].[NOMBRE ASEG], -1 AS Expr5, IIf([FORMA  PAGO]="SEMESTRAL","1/2","1/1") AS Expr4, [RC LIQUIDA RES].COM

FROM [TABLE DATOS LIQUIDA RES] INNER JOIN [RC LIQUIDA RES] ON ([TABLE DATOS LIQUIDA RES].AGENTE = [RC LIQUIDA RES].AGENT) AND ([TABLE DATOS LIQUIDA RES].COMPANIA = [RC LIQUIDA RES].COMP)

WHERE ((([RC LIQUIDA RES].[FECHA  PAGO])>0) AND (([RC LIQUIDA RES].DESDE)>0 And ([RC LIQUIDA RES].DESDE) Between [fecha ini] And [fecha fin]) AND (([RC LIQUIDA RES].LIQUIDADA)=0));
```

###### `LIQUIDA RC R SEMES` (Update)

```sql
INSERT INTO [TABLA LIQUIDA RES] ( CONTROL, DESDE, [FORMA PAGO], PAGOS, COMPA, [LET POL], [NO POLIZA], AGENTE, [PRIMA NETA], [D POLIZA], IVA, TOTAL, ASEGURADO, [F PAGO], LIQUIDA2, com )

SELECT [TABLE DATOS LIQUIDA RES].CONTROL, [RC LIQUIDA RES].DESDE, [RC LIQUIDA RES].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","2/2","1/1") AS Expr7, [RC LIQUIDA RES].COMP, [RC LIQUIDA RES].LETPOL, [RC LIQUIDA RES].[NO POLIZA], [RC LIQUIDA RES].AGENT, [PRIMA NETA2]+[RECARGO 2] AS Expr6, [RC LIQUIDA RES].[D POLIZA2], [RC LIQUIDA RES].Expr3, [RC LIQUIDA RES].Expr4, [RC LIQUIDA RES].[NOMBRE ASEG], [RC LIQUIDA RES].[FECHA PAGO 2], -1 AS Expr5, [RC LIQUIDA RES].[COM 2]

FROM [TABLE DATOS LIQUIDA RES] INNER JOIN [RC LIQUIDA RES] ON ([TABLE DATOS LIQUIDA RES].AGENTE = [RC LIQUIDA RES].AGENT) AND ([TABLE DATOS LIQUIDA RES].COMPANIA = [RC LIQUIDA RES].COMP)

WHERE ((([RC LIQUIDA RES].[FECHA PAGO 2])>0) AND (([RC LIQUIDA RES].LIQUIDADA)=-1) AND ((IIf([forma  pago]="semestral",DateAdd("m",6,[vig 1]))) Between [fecha ini] And [fecha fin]) AND (([RC LIQUIDA RES].[LIQUIDADA 2])=0));
```

###### `LIQUIDACION LOCALIZA` (Select)

```sql
SELECT MULT.[NUM id], MULT.[NO POLIZA], MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[NUM LIQUIDACION], MULT.[NUM LIQUIDACION2], MULT.[F LIQUIDA1], MULT.[F LIQUIDA2], MULT.[CONFIRMA L1], MULT.[CONFIRMA L2]

FROM MULT

WHERE (((MULT.[NUM LIQUIDACION])=[TECLEE NUM LIQUIDACION])) OR (((MULT.[NUM LIQUIDACION2])=[TECLEE NUM LIQUIDACION]));
```

###### `LOCALIZARLIQUIDA` (Select)

```sql
SELECT MULT.[NUM LIQUIDACION], MULT.[NUM LIQUIDACION2], *

FROM MULT

WHERE (((MULT.[NUM LIQUIDACION])=[TECLE NUM LIQUIDACION])) OR (((MULT.[NUM LIQUIDACION2])=[TECLE NUM LIQUIDACION]));
```

###### `LQUIDA MF D` (Select)

```sql
SELECT [LIQUIDA MF D].POLIZA, [LIQUIDA MF D].[VIGENCIA INICIAL], [LIQUIDA MF D].[PRIMA NETA], [LIQUIDA MF D].[DERECHO DE PÓLIZA], [LIQUIDA MF D].COM, [LIQUIDA MF D].OBSERVACIONES, [LIQUIDA MF D].IVA, [LIQUIDA MF D].TOTAL, [TABLE DATOS LIQUIDA MF].COMPANIA, [TABLE DATOS LIQUIDA MF].AGENTE, [TABLE DATOS LIQUIDA MF].CONTROL, [TABLE DATOS LIQUIDA MF].[FECHA INI], [TABLE DATOS LIQUIDA MF].[FECHA FIN], GENERICO.AGENT, GENERICO.RFC, GENERICO.CLAVE, GENERICO.COMP

FROM [LIQUIDA MF D], [TABLE DATOS LIQUIDA MF] INNER JOIN GENERICO ON ([TABLE DATOS LIQUIDA MF].COMPANIA = GENERICO.COMP) AND ([TABLE DATOS LIQUIDA MF].AGENTE = GENERICO.AGENT);
```

###### `MCA DATGRAL` (Select)

```sql
SELECT MCA.[NUMER ID], DATGRAL.NOMBRE, MCA.POLIZA, MCA.COMP, MCA.AGENT, MCA.DESDE, MCA.HASTA, MCA.COBERTURA, MCA.[FORMA  PAGO], MCA.[1ER PAGO], MCA.[FECHA  PAGO], MCA.MONED, MCA.EFECTIVO, MCA.[NO CHEQUE], MCA.MOTORISTA, MCA.[GASTOS MEDICO], MCA.AÑO1, MCA.MARCA1, MCA.MODELO1, MCA.[AUTO ID1], MCA.CLASE1, MCA.PLACA1, MCA.EDO1, MCA.AÑO2, MCA.MARCA2, MCA.MODELO2, MCA.[AUTO ID2], MCA.CLASE2, MCA.PLACA2, MCA.EDO2, MCA.AÑO3, MCA.MARCA3, MCA.MODELO3, MCA.[AUTO ID3], MCA.CLASE3, MCA.PLACA3, MCA.EDO3, MCA.PRIMA1, MCA.[D POLIZA1], [PRIMA1]+[D POLIZA1] AS Expr1, MCA.NAME1, MCA.EDAD1, MCA.LIC1, MCA.LICEDO1, MCA.OCUP1, MCA.NAME2, MCA.EDAD2, MCA.LIC2, MCA.LICEDO2, MCA.OCUP2, MCA.NAME3, MCA.EDAD3, MCA.LIC3, MCA.LICEDO3, MCA.OCUP3, MCA.NULIQUIDA, MCA.LIQUIDADA, MCA.OB1, MCA.OB2, MCA.OB3, MCA.RENOVACION, MCA.[CSL LIMITE]

FROM DATGRAL INNER JOIN MCA ON DATGRAL.[NUM id] = MCA.[NUMER ID];
```

###### `MCA DATGRAL EDITA` (Select)

```sql
SELECT MCA2.[NUMER ID], DATGRAL.NOMBRE, MCA2.POLIZA, MCA2.COMP, MCA2.AGENT, MCA2.DESDE, MCA2.HASTA, MCA2.COBERTURA, MCA2.[FORMA  PAGO], MCA2.[1ER PAGO], MCA2.[FECHA  PAGO], MCA2.MONED, MCA2.EFECTIVO, MCA2.[NO CHEQUE], MCA2.PROPIEDADES, MCA2.PERSONAS, MCA2.[GASTOS MEDICO], MCA2.AÑO1, MCA2.MARCA1, MCA2.MODELO1, MCA2.[AUTO ID1], MCA2.CLASE1, MCA2.PLACA1, MCA2.EDO1, MCA2.AÑO2, MCA2.MARCA2, MCA2.MODELO2, MCA2.[AUTO ID2], MCA2.CLASE2, MCA2.PLACA2, MCA2.EDO2, MCA2.AÑO3, MCA2.MARCA3, MCA2.MODELO3, MCA2.[AUTO ID3], MCA2.CLASE3, MCA2.PLACA3, MCA2.EDO3, MCA2.PRIMA1, MCA2.[D POLIZA1], [PRIMA1]+[D POLIZA1]+[MP] AS Expr1, MCA2.NAME1, MCA2.EDAD1, MCA2.LIC1, MCA2.LICEDO1, MCA2.OCUP1, MCA2.NAME2, MCA2.EDAD2, MCA2.LIC2, MCA2.LICEDO2, MCA2.OCUP2, MCA2.NAME3, MCA2.EDAD3, MCA2.LIC3, MCA2.LICEDO3, MCA2.OCUP3, MCA2.NULIQUIDA, MCA2.LIQUIDADA, MCA2.OB1, MCA2.OB2, MCA2.OB3, MCA2.RENOVACION, MCA2.[CSL LIMITE], MCA2.CONTR, MCA2.DIAS, MCA2.SEX1, MCA2.SEX2, MCA2.AM, MCA2.HORA1, MCA2.HORA2, MCA2.MP, MCA2.[CONFIRMA L1], MCA2.RENT

FROM DATGRAL INNER JOIN MCA2 ON DATGRAL.[NUM id] = MCA2.[NUMER ID];
```

###### `MCA DATGRAL X POLIZA2` (Select)

```sql
SELECT MCA2.[NUMER ID], DATGRAL.NOMBRE, MCA2.POLIZA, MCA2.COMP, MCA2.AGENT, MCA2.DESDE, MCA2.HASTA, MCA2.COBERTURA, MCA2.[FORMA  PAGO], MCA2.[1ER PAGO], MCA2.[FECHA  PAGO], MCA2.MONED, MCA2.EFECTIVO, MCA2.[NO CHEQUE], MCA2.PROPIEDADES, MCA2.PERSONAS, MCA2.[GASTOS MEDICO], MCA2.AÑO1, MCA2.MARCA1, MCA2.MODELO1, MCA2.[AUTO ID1], MCA2.CLASE1, MCA2.PLACA1, MCA2.EDO1, MCA2.AÑO2, MCA2.MARCA2, MCA2.MODELO2, MCA2.[AUTO ID2], MCA2.CLASE2, MCA2.PLACA2, MCA2.EDO2, MCA2.AÑO3, MCA2.MARCA3, MCA2.MODELO3, MCA2.[AUTO ID3], MCA2.CLASE3, MCA2.PLACA3, MCA2.EDO3, MCA2.PRIMA1, MCA2.[D POLIZA1], [PRIMA1]+[D POLIZA1]+[MP] AS Expr1, MCA2.NAME1, MCA2.EDAD1, MCA2.LIC1, MCA2.LICEDO1, MCA2.OCUP1, MCA2.NAME2, MCA2.EDAD2, MCA2.LIC2, MCA2.LICEDO2, MCA2.OCUP2, MCA2.NAME3, MCA2.EDAD3, MCA2.LIC3, MCA2.LICEDO3, MCA2.OCUP3, MCA2.NULIQUIDA, MCA2.LIQUIDADA, MCA2.OB1, MCA2.OB2, MCA2.OB3, MCA2.RENOVACION, MCA2.[CSL LIMITE], MCA2.CONTR, MCA2.DIAS, MCA2.SEX1, MCA2.SEX2, MCA2.AM, MCA2.HORA1, MCA2.HORA2, MCA2.MP, MCA2.[CONFIRMA L1]

FROM DATGRAL INNER JOIN MCA2 ON DATGRAL.[NUM id] = MCA2.[NUMER ID]

WHERE (((MCA2.POLIZA)=[TECLEE EL NUM DE POLIZA A EDITAR]));
```

###### `MCA DATGRAL2` (Select)

```sql
SELECT MCA2.[NUMER ID], DATGRAL.NOMBRE, MCA2.POLIZA, MCA2.COMP, MCA2.AGENT, MCA2.DESDE, MCA2.HASTA, MCA2.COBERTURA, MCA2.[FORMA  PAGO], MCA2.[1ER PAGO], MCA2.[FECHA  PAGO], MCA2.MONED, MCA2.EFECTIVO, MCA2.[NO CHEQUE], MCA2.PROPIEDADES, MCA2.PERSONAS, MCA2.[GASTOS MEDICO], MCA2.AÑO1, MCA2.MARCA1, MCA2.MODELO1, MCA2.[AUTO ID1], MCA2.CLASE1, MCA2.PLACA1, MCA2.EDO1, MCA2.AÑO2, MCA2.MARCA2, MCA2.MODELO2, MCA2.[AUTO ID2], MCA2.CLASE2, MCA2.PLACA2, MCA2.EDO2, MCA2.AÑO3, MCA2.MARCA3, MCA2.MODELO3, MCA2.[AUTO ID3], MCA2.CLASE3, MCA2.PLACA3, MCA2.EDO3, MCA2.PRIMA1, MCA2.MP, MCA2.[D POLIZA1], [PRIMA1]+[D POLIZA1]+[MP] AS Expr1, MCA2.NAME1, MCA2.EDAD1, MCA2.LIC1, MCA2.LICEDO1, MCA2.OCUP1, MCA2.NAME2, MCA2.EDAD2, MCA2.LIC2, MCA2.LICEDO2, MCA2.OCUP2, MCA2.NAME3, MCA2.EDAD3, MCA2.LIC3, MCA2.LICEDO3, MCA2.OCUP3, MCA2.NULIQUIDA, MCA2.LIQUIDADA, MCA2.OB1, MCA2.OB2, MCA2.OB3, MCA2.RENOVACION, MCA2.[CSL LIMITE], MCA2.CONTR, MCA2.DIAS, MCA2.SEX1, MCA2.SEX2, MCA2.AM, MCA2.HORA1, MCA2.HORA2, MCA2.[CONFIRMA L1], MCA2.RENT

FROM DATGRAL INNER JOIN MCA2 ON DATGRAL.[NUM id] = MCA2.[NUMER ID];
```

###### `MCA RENEW X MES` (Select)

```sql
SELECT MCA.[NUMER ID], DATGRAL.NOMBRE, MCA.LETPOL, MCA.POLIZA, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, MCA.[FORMA  PAGO], IIf([FORMA  PAGO]="ANNUAL","ONE YEAR","SEMESTRAL") AS Expr1, MCA.HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, MCA.MOTORISTA, *

FROM [MCA MENS], DATGRAL INNER JOIN MCA ON DATGRAL.[NUM id] = MCA.[NUMER ID]

WHERE (((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (1999)]));
```

###### `MCA2 LIQUIDA` (Select)

```sql
SELECT DATGRAL.[NUM id], MCA2.POLIZA, MCA2.LETPOL, MCA2.[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, MCA2.COMP, MCA2.AGENT, MCA2.DESDE, MCA2.HASTA, MCA2.[FORMA  PAGO], MCA2.[FECHA  PAGO], MCA2.EFECTIVO, MCA2.[NO CHEQUE], MCA2.COBERTURA, MCA2.NAME1, MCA2.LIC1, MCA2.LICEDO1, MCA2.NAME2, MCA2.LIC2, MCA2.LICEDO2, MCA2.NAME3, MCA2.LIC3, MCA2.LICEDO3, MCA2.PROPIEDADES, MCA2.PRIMA1, MCA2.MP, MCA2.[D POLIZA1], ([PRIMA1]+[D POLIZA1])*0.1 AS EXPR1, [PRIMA1]+[D POLIZA1]+[EXPR1] AS EXPR2, MCA2.LIQUIDADA

FROM DATGRAL INNER JOIN MCA2 ON DATGRAL.[NUM id] = MCA2.[NUMER ID]

ORDER BY MCA2.POLIZA DESC , MCA2.[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `MCA2 POLIZA X POL` (Select)

```sql
SELECT DISTINCT MCA2.POLIZA, MCA2.[NUMER ID], DATGRAL.TEL, DATGRAL.NOMBRE, MCA2.AÑO1, MCA2.AÑO2, MCA2.AÑO3, MCA2.PLACA1, MCA2.PLACA2, MCA2.PLACA3, MCA2.MARCA1, MCA2.MARCA2, MCA2.MARCA3, MCA2.MODELO1, MCA2.MODELO2, MCA2.MODELO3, MCA2.[AUTO ID1], MCA2.[AUTO ID2], MCA2.[AUTO ID3], MCA2.CLASE1, MCA2.CLASE2, MCA2.CLASE3, MCA2.NAME1, MCA2.BIRTH1, MCA2.EDAD1, MCA2.LIC1, MCA2.LICEDO1, MCA2.OCUP1, MCA2.NAME2, MCA2.BIRTH2, MCA2.EDAD2, MCA2.LIC2, MCA2.LICEDO2, MCA2.OCUP2, MCA2.NAME3, MCA2.BIRTH3, MCA2.EDAD3, MCA2.LIC3, [PROPIEDADES]*1000 AS Expr9, [PERSONAS]*1000 AS Expr10, [PERSONAS]*2*1000 AS Expr11, MCA2.COBERTURA, MCA2.PROPIEDADES, [PERSONAS]*2 AS Expr4, MCA2.PRIMA1, MCA2.[D POLIZA1], ([PRIMA1]+[D POLIZA1])*0.1 AS expr1, [PRIMA1]+[D POLIZA1]+[EXPR1] AS EXPR2, MCA2.AGENT, MCA2.DESDE, MCA2.HASTA, IIf([MARCA2]>"",1,0) AS EXPR24, IIf([COBERTURA]=30,1,0) AS Expr17, IIf([COBERTURA]=40,1,0) AS Expr18, IIf([COBERTURA]=50,1,0) AS Expr19, IIf([COBERTURA]=60,1,0) AS Expr20, IIf([COBERTURA]=70,1,0) AS Expr21, IIf([COBERTURA]=80,1,0) AS Expr22, ([EXPR17]+[EXPR18]+[EXPR19]+[EXPR20]+[EXPR21]+[EXPR22]) AS Expr23, [EXPR23]+[EXPR24] AS Expr25, MCA2.DIAS, [GASTOS MEDICO]*1000 AS Expr8, IIf([DIAS]=-1,2000,[GASTOS MEDICO]*5000) AS Expr12, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.CIUD, DATGRAL.EDO, GENERICO.CLAVE, MCA2.[CSL LIMITE], [CSL LIMITE]*1000 AS Expr3, MCA2.CONTR, MCA2.PERSONAS, MCA2.[GASTOS MEDICO], MCA2.SEX1, MCA2.SEX2, MCA2.EDO1, MCA2.AM, MCA2.HORA1, MCA2.HORA2

FROM (DATGRAL INNER JOIN MCA2 ON DATGRAL.[NUM id] = MCA2.[NUMER ID]) INNER JOIN GENERICO ON MCA2.COMP = GENERICO.COMP

WHERE (((MCA2.POLIZA)=[TECLEE NUM DE POLIZA A IMPRIMIR]))

ORDER BY MCA2.POLIZA;
```

###### `MCA2 RENEW X MES` (Select)

```sql
SELECT MCA2.[NUMER ID], DATGRAL.NOMBRE, MCA2.LETPOL, MCA2.POLIZA, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [gastos medico]*1000 AS Expr9, MCA2.[FORMA  PAGO], IIf([FORMA  PAGO]="ANNUAL","ONE YEAR","SEMESTRAL") AS Expr1, MCA2.HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr8] & ".00") AS Expr7, [csl limite]*1000 AS Expr8, *

FROM [MCA2 MENS], DATGRAL INNER JOIN MCA2 ON DATGRAL.[NUM id] = MCA2.[NUMER ID]

WHERE (((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (1999)]));
```

###### `MCA2 RENEWAL` (Select)

```sql
SELECT MCA2.[NUMER ID], DATGRAL.NOMBRE, MCA2.LETPOL, MCA2.POLIZA, [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, MCA2.[FORMA  PAGO], IIf([FORMA  PAGO]="ANNUAL","ONE YEAR","SEMESTRAL") AS Expr1, MCA2.HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr8] & ".00") AS Expr7, [csl limite]*1000 AS Expr8, *

FROM [MCA2 MENS], DATGRAL INNER JOIN MCA2 ON DATGRAL.[NUM id] = MCA2.[NUMER ID];
```

###### `MCA2 REPORTE` (Select)

```sql
SELECT MCA2.[NUMER ID], DATGRAL.NOMBRE, MCA2.POLIZA, MCA2.COMP, MCA2.HASTA

FROM DATGRAL INNER JOIN MCA2 ON DATGRAL.[NUM id] = MCA2.[NUMER ID];
```

###### `MCA2EDOCUENT2XPOL` (Select)

```sql
SELECT MCA2.POLIZA, MCA2.[NUMER ID], [PRIMA1]+[D POLIZA1] AS Expr1, [EXPR1]*0.1 AS Expr2, [EXPR1]+[EXPR2] AS Expr3, MCA2.COMP, MCA2.HASTA, MCA2.[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, MCA2.AÑO1, MCA2.MARCA1, MCA2.MODELO1, MCA2.[AUTO ID1], MCA2.CLASE1, MCA2.PLACA1, MCA2.EDO1, MCA2.AÑO2, MCA2.MARCA2, MCA2.MODELO2, MCA2.[AUTO ID2], MCA2.CLASE2, MCA2.EDO2, MCA2.PLACA2, MCA2.EDO2, MCA2.AÑO3, MCA2.MARCA3, MCA2.MODELO3, MCA2.[AUTO ID3], MCA2.CLASE3, MCA2.PLACA3, MCA2.EDO3, MCA2.DESDE, MCA2.[1ER PAGO], MCA2.COMP

FROM MCA2

WHERE (((MCA2.POLIZA)=[TECLEE NUM DE POLIZA A IMPRIMIR]));
```

###### `MCA2EDOCUENTXPOL` (Select)

```sql
SELECT MCA2.POLIZA, MCA2.[NUMER ID]

FROM MCA2

WHERE (((MCA2.POLIZA)=[TECLEE NUM DE POLIZA A IMPRIMIR]));
```

###### `ME` (Select)

```sql
SELECT [M EMPR].[NUM id], [M EMPR].FOLIO, DATGRAL.NOMBRE, [M EMPR].[NO POLIZA], [M EMPR].[NOMBRE ASEG], [M EMPR].[CALLE Y NO], [M EMPR].COL, [M EMPR].EDO, [M EMPR].TEL, [M EMPR].COMP, [M EMPR].AGENT, [M EMPR].DESDE, [M EMPR].HASTA, [M EMPR].[FORMA  PAGO], [M EMPR].[VIG 1], [M EMPR].[VIG 2], [M EMPR].[VIG 3], [M EMPR].[VIG 4], [M EMPR].MONED, [M EMPR].[1ER PAGO], [M EMPR].[PAGO SUBSEC], [M EMPR].[FECHA  PAGO], [M EMPR].EFECTIVO, [M EMPR].[NO CHEQUE], [M EMPR].[FECHA PAGO 2], [M EMPR].[MONED 2], [M EMPR].[EFECTIVO 2], [M EMPR].[NO CHEQUE 2], [M EMPR].[FECHA PAGO 3], [M EMPR].[MONED 3], [M EMPR].[EFECTIVO 3], [M EMPR].[NO CHEQUE 3], [M EMPR].[FECHA PAGO 4], [M EMPR].[MONED 4], [M EMPR].[EFECTIVO 4], [M EMPR].[NO CHEQUE 4], [M EMPR].[P NETA], [M EMPR].RECARGO, [M EMPR].[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, [M EMPR].COM, [M EMPR].[P NETA 2], [M EMPR].[RECARGO 2], [M EMPR].[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, [M EMPR].[COM 2], [M EMPR].LIQUIDADA, [M EMPR].[LIQUIDADA 2], [M EMPR].[LIQUIDADA 3], [M EMPR].[LIQUIDADA 4], [M EMPR].EDIFICIO, [M EMPR].[EDIF TERREMOTO], [M EMPR].CONTENIDOS, [M EMPR].[CONT TERREMOTO], [M EMPR].[R CIVIL ACT], [M EMPR].[R CIVIL ARREND], [M EMPR].[ROBO C VIOLENCIA], [M EMPR].CRISTALES, [M EMPR].[ANUNCIOS LUM], [M EMPR].[DIN Y VALORES], [M EMPR].[PLANTA BAJA], [M EMPR].[PLANTA ALTA], [M EMPR].CONSTRUCCION, [M EMPR].OBSERVACIONES, [M EMPR].RENOVACION, [M EMPR].[NUM LIQUIDACION], [M EMPR].[NUM LIQUIDACION2], [M EMPR].[NUM LIQUIDACION3], [M EMPR].[NUM LIQUIDACION4], [M EMPR].[F LIQUIDA1], [M EMPR].[F LIQUIDA2], [M EMPR].[F LIQUIDA3], [M EMPR].[F LIQUIDA4], [M EMPR].[CONFIRMA L1], [M EMPR].[CONFIRMA L2]

FROM IMPUESTOS, DATGRAL INNER JOIN [M EMPR] ON DATGRAL.[NUM id] = [M EMPR].[NUM id];
```

###### `ME CALC VIG` (Select)

```sql
SELECT [M EMPR].[NUM id], DATGRAL.NOMBRE, [M EMPR].[NO POLIZA], [M EMPR].[NOMBRE ASEG], [M EMPR].[CALLE Y NO], [M EMPR].COL, [M EMPR].EDO, [M EMPR].TEL, [M EMPR].COMP, [M EMPR].AGENT, [M EMPR].DESDE, [M EMPR].HASTA, [M EMPR].[FORMA  PAGO], [M EMPR].[VIG 1], IIf([FORMA  PAGO]="SEMESTRAL",DateAdd("m",6,[VIG 1]),DateAdd("m",3,[VIG 1])) AS Expr5, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",6,[VIG 1])) AS Expr6, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",9,[VIG 1])) AS Expr7, [M EMPR].MONED, [M EMPR].[1ER PAGO], [M EMPR].[PAGO SUBSEC], [M EMPR].[FECHA  PAGO], [M EMPR].EFECTIVO, [M EMPR].[NO CHEQUE], [M EMPR].[FECHA PAGO 2], [M EMPR].[MONED 2], [M EMPR].[EFECTIVO 2], [M EMPR].[NO CHEQUE 2], [M EMPR].[FECHA PAGO 3], [M EMPR].[MONED 3], [M EMPR].[EFECTIVO 3], [M EMPR].[NO CHEQUE 3], [M EMPR].[FECHA PAGO 4], [M EMPR].[MONED 4], [M EMPR].[EFECTIVO 4], [M EMPR].[NO CHEQUE 4], [M EMPR].[P NETA], [M EMPR].RECARGO, [M EMPR].[D POL], ([P NETA]+[RECARGO]+[D POL])*0.1 AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, [M EMPR].COM, [M EMPR].[P NETA 2], [M EMPR].[RECARGO 2], [M EMPR].[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*0.1 AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, [M EMPR].[COM 2], [M EMPR].LIQUIDADA, [M EMPR].[LIQUIDADA 2], [M EMPR].EDIFICIO, [M EMPR].[EDIF TERREMOTO], [M EMPR].CONTENIDOS, [M EMPR].[CONT TERREMOTO], [M EMPR].[R CIVIL ACT], [M EMPR].[R CIVIL ARREND], [M EMPR].[ROBO C VIOLENCIA], [M EMPR].CRISTALES, [M EMPR].[ANUNCIOS LUM], [M EMPR].[DIN Y VALORES], [M EMPR].[PLANTA BAJA], [M EMPR].[PLANTA ALTA], [M EMPR].CONSTRUCCION, [M EMPR].OBSERVACIONES, [M EMPR].RENOVACION

FROM DATGRAL INNER JOIN [M EMPR] ON DATGRAL.[NUM id] = [M EMPR].[NUM id];
```

###### `ME EDITA` (Select)

```sql
SELECT [M EMPR].[NO POLIZA], [M EMPR].FOLIO, [M EMPR].[NUM id], DATGRAL.NOMBRE, [M EMPR].[NOMBRE ASEG], [M EMPR].[CALLE Y NO], [M EMPR].COL, [M EMPR].EDO, [M EMPR].TEL, [M EMPR].COMP, [M EMPR].AGENT, [M EMPR].DESDE, [M EMPR].HASTA, [M EMPR].[FORMA  PAGO], [M EMPR].[VIG 1], [M EMPR].[VIG 2], [M EMPR].[VIG 3], [M EMPR].[VIG 4], [M EMPR].MONED, [M EMPR].[1ER PAGO], [M EMPR].[PAGO SUBSEC], [M EMPR].[FECHA  PAGO], [M EMPR].EFECTIVO, [M EMPR].[NO CHEQUE], [M EMPR].[FECHA PAGO 2], [M EMPR].[MONED 2], [M EMPR].[EFECTIVO 2], [M EMPR].[NO CHEQUE 2], [M EMPR].[FECHA PAGO 3], [M EMPR].[MONED 3], [M EMPR].[EFECTIVO 3], [M EMPR].[NO CHEQUE 3], [M EMPR].[FECHA PAGO 4], [M EMPR].[MONED 4], [M EMPR].[EFECTIVO 4], [M EMPR].[NO CHEQUE 4], [M EMPR].[P NETA], [M EMPR].RECARGO, [M EMPR].[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, [M EMPR].COM, [M EMPR].[P NETA 2], [M EMPR].[RECARGO 2], [M EMPR].[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, [M EMPR].[COM 2], [M EMPR].LIQUIDADA, [M EMPR].[LIQUIDADA 2], [M EMPR].[LIQUIDADA 3], [M EMPR].[LIQUIDADA 4], [M EMPR].EDIFICIO, [M EMPR].[EDIF TERREMOTO], [M EMPR].CONTENIDOS, [M EMPR].[CONT TERREMOTO], [M EMPR].[R CIVIL ACT], [M EMPR].[R CIVIL ARREND], [M EMPR].[ROBO C VIOLENCIA], [M EMPR].CRISTALES, [M EMPR].[ANUNCIOS LUM], [M EMPR].[DIN Y VALORES], [M EMPR].[PLANTA BAJA], [M EMPR].[PLANTA ALTA], [M EMPR].CONSTRUCCION, [M EMPR].OBSERVACIONES, [M EMPR].RENOVACION, [M EMPR].[NUM LIQUIDACION], [M EMPR].[NUM LIQUIDACION2], [M EMPR].[NUM LIQUIDACION3], [M EMPR].[NUM LIQUIDACION4], [M EMPR].[F LIQUIDA1], [M EMPR].[F LIQUIDA2], [M EMPR].[F LIQUIDA3], [M EMPR].[F LIQUIDA4], [M EMPR].[CONFIRMA L1], [M EMPR].[CONFIRMA L2]

FROM IMPUESTOS, DATGRAL INNER JOIN [M EMPR] ON DATGRAL.[NUM id] = [M EMPR].[NUM id]

ORDER BY [M EMPR].[NO POLIZA] DESC;
```

###### `ME LIQUIDA` (Select)

```sql
SELECT [M EMPR].[NUM id], [M EMPR].LETPOL, DATGRAL.NOMBRE, [M EMPR].[NO POLIZA], [M EMPR].FOLIO, [M EMPR].[NOMBRE ASEG], [M EMPR].[CALLE Y NO], [M EMPR].COL, [M EMPR].EDO, [M EMPR].TEL, [M EMPR].COMP, [M EMPR].AGENT, [M EMPR].DESDE, [M EMPR].HASTA, [M EMPR].[FORMA  PAGO], [M EMPR].[VIG 1], [M EMPR].[VIG 2], [M EMPR].[VIG 3], [M EMPR].[VIG 4], [M EMPR].MONED, [M EMPR].[1ER PAGO], [M EMPR].[PAGO SUBSEC], [M EMPR].[FECHA  PAGO], [M EMPR].EFECTIVO, [M EMPR].[NO CHEQUE], [M EMPR].[FECHA PAGO 2], [M EMPR].[MONED 2], [M EMPR].[EFECTIVO 2], [M EMPR].[NO CHEQUE 2], [M EMPR].[FECHA PAGO 3], [M EMPR].[MONED 3], [M EMPR].[EFECTIVO 3], [M EMPR].[NO CHEQUE 3], [M EMPR].[FECHA PAGO 4], [M EMPR].[MONED 4], [M EMPR].[EFECTIVO 4], [M EMPR].[NO CHEQUE 4], [M EMPR].[P NETA], [M EMPR].RECARGO, [M EMPR].[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, [M EMPR].COM, [M EMPR].[P NETA 2], [M EMPR].[RECARGO 2], [M EMPR].[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, [M EMPR].[COM 2], [M EMPR].LIQUIDADA, [M EMPR].[LIQUIDADA 2], [M EMPR].[LIQUIDADA 3], [M EMPR].[LIQUIDADA 4], [M EMPR].EDIFICIO, [M EMPR].[EDIF TERREMOTO], [M EMPR].CONTENIDOS, [M EMPR].[CONT TERREMOTO], [M EMPR].[R CIVIL ARREND], [M EMPR].[ROBO C VIOLENCIA], [M EMPR].CRISTALES, [M EMPR].[PLANTA BAJA], [M EMPR].[PLANTA ALTA], [M EMPR].CONSTRUCCION, [M EMPR].OBSERVACIONES, [M EMPR].RENOVACION

FROM IMPUESTOS, DATGRAL INNER JOIN [M EMPR] ON DATGRAL.[NUM id] = [M EMPR].[NUM id];
```

###### `ME RENEW` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, [M EMPR].COMP, [M EMPR].[NO POLIZA], [M EMPR].[CALLE Y NO], [M EMPR].HASTA, [M EMPR].EDIFICIO, [M EMPR].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]<0,"INCLUDED","EXCLUDED") AS Expr6, [M EMPR].CONTENIDOS, [M EMPR].[CONT TERREMOTO], IIf([CONT TERREMOTO]<0,"INCLUDED","EXCLUDED") AS EXPR8, [M EMPR].[R CIVIL ACT], [M EMPR].[R CIVIL ARREND], [M EMPR].[ROBO C VIOLENCIA], [M EMPR].CRISTALES, [M EMPR].[ANUNCIOS LUM], [M EMPR].[DIN Y VALORES], [M EMPR].RENOVACION, [ME MENS].[MF MENSAJE 1]

FROM [ME MENS], DATGRAL INNER JOIN [M EMPR] ON DATGRAL.[NUM id] = [M EMPR].[NUM id];
```

###### `ME RENEW CALC` (Select)

```sql
SELECT [ME CALC VIG].[NUM id], [ME CALC VIG].[FORMA  PAGO], [ME CALC VIG].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [ME CALC VIG].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [ME CALC VIG].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [ME CALC VIG].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, [ME CALC VIG].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]=0,"EXCLUIDO","INCLUIDO") AS Expr16, [ME CALC VIG].[CONT TERREMOTO], IIf([CONT TERREMOTO]=0,"EXCLUIDO","INCLUIDO") AS Expr17, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[hasta]) AS Expr18, IIf([expr10]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[expr5]) AS Expr19, IIf([expr12]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[expr6]) AS Expr20, IIf([expr14]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[expr7]) AS Expr21, [expr18] & [expr19] & [expr20] & [expr21] AS Expr22, *

FROM [ME CALC VIG], [ME MENS]

WHERE (((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]));
```

###### `ME X POLIZA` (Select)

```sql
SELECT [M EMPR].[NO POLIZA], [M EMPR].FOLIO, [M EMPR].[NUM id], DATGRAL.NOMBRE, [M EMPR].[NOMBRE ASEG], [M EMPR].[CALLE Y NO], [M EMPR].COL, [M EMPR].EDO, [M EMPR].TEL, [M EMPR].COMP, [M EMPR].AGENT, [M EMPR].DESDE, [M EMPR].HASTA, [M EMPR].[FORMA  PAGO], [M EMPR].[VIG 1], [M EMPR].[VIG 2], [M EMPR].[VIG 3], [M EMPR].[VIG 4], [M EMPR].MONED, [M EMPR].[1ER PAGO], [M EMPR].[PAGO SUBSEC], [M EMPR].[FECHA  PAGO], [M EMPR].EFECTIVO, [M EMPR].[NO CHEQUE], [M EMPR].[FECHA PAGO 2], [M EMPR].[MONED 2], [M EMPR].[EFECTIVO 2], [M EMPR].[NO CHEQUE 2], [M EMPR].[FECHA PAGO 3], [M EMPR].[MONED 3], [M EMPR].[EFECTIVO 3], [M EMPR].[NO CHEQUE 3], [M EMPR].[FECHA PAGO 4], [M EMPR].[MONED 4], [M EMPR].[EFECTIVO 4], [M EMPR].[NO CHEQUE 4], [M EMPR].[P NETA], [M EMPR].RECARGO, [M EMPR].[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, [M EMPR].COM, [M EMPR].[P NETA 2], [M EMPR].[RECARGO 2], [M EMPR].[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, [M EMPR].[COM 2], [M EMPR].LIQUIDADA, [M EMPR].[LIQUIDADA 2], [M EMPR].[LIQUIDADA 3], [M EMPR].[LIQUIDADA 4], [M EMPR].EDIFICIO, [M EMPR].[EDIF TERREMOTO], [M EMPR].CONTENIDOS, [M EMPR].[CONT TERREMOTO], [M EMPR].[R CIVIL ACT], [M EMPR].[R CIVIL ARREND], [M EMPR].[ROBO C VIOLENCIA], [M EMPR].CRISTALES, [M EMPR].[ANUNCIOS LUM], [M EMPR].[DIN Y VALORES], [M EMPR].[PLANTA BAJA], [M EMPR].[PLANTA ALTA], [M EMPR].CONSTRUCCION, [M EMPR].OBSERVACIONES, [M EMPR].RENOVACION, [M EMPR].[NUM LIQUIDACION], [M EMPR].[NUM LIQUIDACION2], [M EMPR].[NUM LIQUIDACION3], [M EMPR].[NUM LIQUIDACION4], [M EMPR].[F LIQUIDA1], [M EMPR].[F LIQUIDA2], [M EMPR].[F LIQUIDA3], [M EMPR].[F LIQUIDA4], [M EMPR].[CONFIRMA L1], [M EMPR].[CONFIRMA L2]

FROM IMPUESTOS, DATGRAL INNER JOIN [M EMPR] ON DATGRAL.[NUM id] = [M EMPR].[NUM id]

WHERE ((([M EMPR].[NO POLIZA])=[TECLEE POLIZA A EDITAR]))

ORDER BY [M EMPR].[NO POLIZA] DESC;
```

###### `ME new` (Select)

```sql
SELECT [M EMPR].[NUM id], [M EMPR].FOLIO, DATGRAL.NOMBRE, [M EMPR].[NO POLIZA], [M EMPR].[NOMBRE ASEG], [M EMPR].[CALLE Y NO], [M EMPR].COL, [M EMPR].EDO, [M EMPR].TEL, [M EMPR].COMP, [M EMPR].AGENT, [M EMPR].DESDE, [M EMPR].HASTA, [M EMPR].[FORMA  PAGO], [M EMPR].[VIG 1], [M EMPR].[VIG 2], [M EMPR].[VIG 3], [M EMPR].[VIG 4], [M EMPR].MONED, [M EMPR].[1ER PAGO], [M EMPR].[PAGO SUBSEC], [M EMPR].[FECHA  PAGO], [M EMPR].EFECTIVO, [M EMPR].[NO CHEQUE], [M EMPR].[FECHA PAGO 2], [M EMPR].[MONED 2], [M EMPR].[EFECTIVO 2], [M EMPR].[NO CHEQUE 2], [M EMPR].[FECHA PAGO 3], [M EMPR].[MONED 3], [M EMPR].[EFECTIVO 3], [M EMPR].[NO CHEQUE 3], [M EMPR].[FECHA PAGO 4], [M EMPR].[MONED 4], [M EMPR].[EFECTIVO 4], [M EMPR].[NO CHEQUE 4], [M EMPR].[P NETA], [M EMPR].RECARGO, [M EMPR].[D POL], [M EMPR].COM, [M EMPR].[P NETA 2], [M EMPR].[RECARGO 2], [M EMPR].[D POL 2], [M EMPR].[COM 2], [M EMPR].LIQUIDADA, [M EMPR].[LIQUIDADA 2], [M EMPR].[LIQUIDADA 3], [M EMPR].[LIQUIDADA 4], [M EMPR].EDIFICIO, [M EMPR].[EDIF TERREMOTO], [M EMPR].CONTENIDOS, [M EMPR].[CONT TERREMOTO], [M EMPR].[R CIVIL ACT], [M EMPR].[R CIVIL ARREND], [M EMPR].[ROBO C VIOLENCIA], [M EMPR].CRISTALES, [M EMPR].[ANUNCIOS LUM], [M EMPR].[DIN Y VALORES], [M EMPR].[PLANTA BAJA], [M EMPR].[PLANTA ALTA], [M EMPR].CONSTRUCCION, [M EMPR].OBSERVACIONES, [M EMPR].RENOVACION, [M EMPR].[NUM LIQUIDACION], [M EMPR].[NUM LIQUIDACION2], [M EMPR].[NUM LIQUIDACION3], [M EMPR].[NUM LIQUIDACION4], [M EMPR].[F LIQUIDA1], [M EMPR].[F LIQUIDA2], [M EMPR].[F LIQUIDA3], [M EMPR].[F LIQUIDA4], [M EMPR].[CONFIRMA L1], [M EMPR].[CONFIRMA L2]

FROM DATGRAL INNER JOIN [M EMPR] ON DATGRAL.[NUM id] = [M EMPR].[NUM id];
```

###### `MF EDO CUENTA2 X POL` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.LETPOL, MULT.[NUM id], MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, DateAdd("m",6,[DESDE]) AS Expr12, MULT.[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL",[EXPR12],[HASTA]) AS Expr11, IIf([FORMA  PAGO]="SEMESTRAL","1 ST SEMESTER") AS Expr14, MULT.[1ER PAGO], [P NETA]+[RECARGO]+[D POL] AS Expr1, [EXPR1]*[IVA] AS IVA1, [EXPR1]+[IVA1] AS TOT, [1ER PAGO]-[TOT] AS GE, IIf([EDIF TERREMOTO]=0,"WITHOUT EARTHQUAKE ON BUILDING","") AS Expr2, IIf([CONT TERREMOTO]=0,"WITHOUT EARTHQUAKE ON CONTENTS") AS Expr3, IIf([EXPR2] & [EXPR3]="WITHOUT EARTHQUAKE ON BUILDINGWITHOUT EARTHQUAKE ON CONTENTS","WITHOUT EARTHQUAKE",[EXPR2] & [EXPR3]) AS Expr4, IIf([EDIFICIO]=0,", BUILDING") AS Expr5, IIf([CONTENIDOS]=0,", CONTENTS") AS Expr6, IIf([R CIVIL FAMILIAR]=0,", LIABILITY") AS Expr7, IIf([ROBO C VIOLENCIA]=0,", THEFT") AS Expr8, IIf([CRISTALES]=0,", GLASS") AS Expr9, [EXPR5] & [EXPR6] & [EXPR7] & [EXPR8] & [EXPR9] AS Expr10, IIf([EXPR10]>" ","THIS POLICY DOES NOT INCLUDE: " & [EXPR10] & " COVERAGE.") AS Expr13, MULT.HIDR, IIf([hidr]=0,"WITHOUT TSUNAMI NOR WIND COVERAGE") AS Expr15, MULT.TIPO

FROM MULT, IMPUESTOS

WHERE (((MULT.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND ((MULT.TIPO)="casa"));
```

###### `MF EDO CUENTA2CONDOCEDIF X POL` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.LETPOL, MULT.[NUM id], MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, DateAdd("m",6,[DESDE]) AS Expr12, MULT.[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL",[EXPR12],[HASTA]) AS Expr11, IIf([FORMA  PAGO]="SEMESTRAL","1 ST SEMESTER") AS Expr14, MULT.[1ER PAGO], [P NETA]+[RECARGO]+[D POL] AS Expr1, [EXPR1]*[IVA] AS IVA1, [EXPR1]+[IVA1] AS TOT, [1ER PAGO]-[TOT] AS GE, IIf([EDIF TERREMOTO]=0,"WITHOUT EARTHQUAKE ON BUILDING","") AS Expr2, IIf([CONT TERREMOTO]=0,"WITHOUT EARTHQUAKE ON CONTENTS") AS Expr3, IIf([EXPR2] & [EXPR3]="WITHOUT EARTHQUAKE ON BUILDINGWITHOUT EARTHQUAKE ON CONTENTS","WITHOUT EARTHQUAKE",[EXPR2] & [EXPR3]) AS Expr4, IIf([EDIFICIO]=0,", BUILDING") AS Expr5, IIf([CONTENIDOS]=0,", CONTENTS") AS Expr6, IIf([R CIVIL FAMILIAR]=0,", LIABILITY") AS Expr7, IIf([ROBO C VIOLENCIA]=0,", THEFT") AS Expr8, IIf([CRISTALES]=0,", GLASS") AS Expr9, [EXPR5] & [EXPR6] & [EXPR7] & [EXPR8] & [EXPR9] AS Expr10, IIf([EXPR10]>" ","THIS POLICY DOES NOT INCLUDE: " & [EXPR10] & " COVERAGE.") AS Expr13, MULT.HIDR, IIf([hidr]=0,"WITHOUT TSUNAMI NOR WIND COVERAGE") AS Expr15, MULT.TIPO

FROM MULT, IMPUESTOS

WHERE (((MULT.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND ((MULT.TIPO)="1 CONDO"));
```

###### `MF EDO CUENTA2CONDOSEDIF X POL` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.LETPOL, MULT.[NUM id], MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, DateAdd("m",6,[DESDE]) AS Expr12, MULT.[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL",[EXPR12],[HASTA]) AS Expr11, IIf([FORMA  PAGO]="SEMESTRAL","1 ST SEMESTER") AS Expr14, MULT.[1ER PAGO], [P NETA]+[RECARGO]+[D POL] AS Expr1, [EXPR1]*[IVA] AS IVA1, [EXPR1]+[IVA1] AS TOT, [1ER PAGO]-[TOT] AS GE, IIf([EDIF TERREMOTO]=0,"WITHOUT EARTHQUAKE ON BUILDING","") AS Expr2, IIf([CONT TERREMOTO]=0,"WITHOUT EARTHQUAKE ON CONTENTS") AS Expr3, IIf([EXPR2] & [EXPR3]="WITHOUT EARTHQUAKE ON BUILDINGWITHOUT EARTHQUAKE ON CONTENTS","WITHOUT EARTHQUAKE",[EXPR2] & [EXPR3]) AS Expr4, IIf([EDIFICIO]=0,", BUILDING") AS Expr5, IIf([CONTENIDOS]=0,", CONTENTS") AS Expr6, IIf([R CIVIL FAMILIAR]=0,", LIABILITY") AS Expr7, IIf([ROBO C VIOLENCIA]=0,", THEFT") AS Expr8, IIf([CRISTALES]=0,", GLASS") AS Expr9, [EXPR5] & [EXPR6] & [EXPR7] & [EXPR8] & [EXPR9] AS Expr10, IIf([EXPR10]>" ","THIS POLICY DOES NOT INCLUDE: " & [EXPR10] & " COVERAGE.") AS Expr13, MULT.HIDR, IIf([hidr]=0,"WITHOUT TSUNAMI NOR WIND COVERAGE") AS Expr15, MULT.TIPO

FROM MULT, IMPUESTOS

WHERE (((MULT.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND ((MULT.TIPO)="2 CONDO"));
```

###### `MF EDOCUENTA2CONDOCEDIF X POL` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.LETPOL, MULT.[NUM id], MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, DateAdd("m",6,[DESDE]) AS Expr12, MULT.[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL",[EXPR12],[HASTA]) AS Expr11, IIf([FORMA  PAGO]="SEMESTRAL","1 ST SEMESTER") AS Expr14, MULT.[1ER PAGO], [P NETA]+[RECARGO]+[D POL] AS Expr1, [EXPR1]*[IVA] AS IVA1, [EXPR1]+[IVA1] AS TOT, [1ER PAGO]-[TOT] AS GE, IIf([EDIF TERREMOTO]=0,"WITHOUT EARTHQUAKE ON BUILDING","") AS Expr2, IIf([CONT TERREMOTO]=0,"WITHOUT EARTHQUAKE ON CONTENTS") AS Expr3, IIf([EXPR2] & [EXPR3]="WITHOUT EARTHQUAKE ON BUILDINGWITHOUT EARTHQUAKE ON CONTENTS","WITHOUT EARTHQUAKE",[EXPR2] & [EXPR3]) AS Expr4, IIf([EDIFICIO]=0,", BUILDING") AS Expr5, IIf([CONTENIDOS]=0,", CONTENTS") AS Expr6, IIf([R CIVIL FAMILIAR]=0,", LIABILITY") AS Expr7, IIf([ROBO C VIOLENCIA]=0,", THEFT") AS Expr8, IIf([CRISTALES]=0,", GLASS") AS Expr9, [EXPR5] & [EXPR6] & [EXPR7] & [EXPR8] & [EXPR9] AS Expr10, IIf([EXPR10]>" ","THIS POLICY DOES NOT INCLUDE: " & [EXPR10] & " COVERAGE.") AS Expr13, MULT.HIDR, IIf([hidr]=0,"WITHOUT TSUNAMI NOR WIND COVERAGE") AS Expr15, MULT.TIPO

FROM MULT, IMPUESTOS

WHERE (((MULT.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND ((MULT.TIPO)="2 CONDO"));
```

###### `MF QUE SON CONDO` (Select)

```sql
SELECT MULT.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, MULT.[NO POLIZA], MULT.[NOMBRE ASEG], MULT.TIPO

FROM DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]

WHERE (((MULT.TIPO)="1 CONDO" Or (MULT.TIPO)="2 CONDO"));
```

###### `MF RENEW` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, [MULT FAM].COMP, [MULT FAM].[NO POLIZA], [MULT FAM].[CALLE Y NO], [MULT FAM].HASTA, [MULT FAM].EDIFICIO, [MULT FAM].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]<0,"INCLUDED","EXCLUDED") AS Expr6, [MULT FAM].CONTENIDOS, [MULT FAM].[CONT TERREMOTO], IIf([CONT TERREMOTO]<0,"INCLUDED","EXCLUDED") AS EXPR8, [MULT FAM].[R CIVIL FAMILIAR], [MULT FAM].[R CIVIL ARREND], [MULT FAM].[ROBO C VIOLENCIA], [MULT FAM].CRISTALES, [MULT FAM].RENOVACION, [MF MENS].[MF MENSAJE 1]

FROM [MF MENS], DATGRAL INNER JOIN [MULT FAM] ON DATGRAL.[NUM id] = [MULT FAM].[NUM id];
```

###### `MF RENEW CASA` (Select)

```sql
SELECT [MULT CALC VIG].[NUM id], [MULT CALC VIG].[FORMA  PAGO], [MULT CALC VIG].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [MULT CALC VIG].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [MULT CALC VIG].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [MULT CALC VIG].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, [MULT CALC VIG].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr16, [MULT CALC VIG].[CONT TERREMOTO], IIf([CONT TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr17, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[EXPR19] & [hasta],[expr20] & [EXPR5]) AS Expr18, IIf([FORMA  PAGO]="SEMESTRAL"," 1 ST SEMESTER ") AS Expr19, IIf([FORMA  PAGO]="SEMESTRAL"," 2 ND SEMESTER ") AS Expr20, IIf([VIGENT AUTO].[Expr3]=0,"U") AS Expr21, [MULT CALC VIG].CONDO, *

FROM [MULT CALC VIG], [MF MENS]

WHERE (((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG].CONDO)=False)) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG].CONDO)=False)) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG].CONDO)=False)) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG].CONDO)=False));
```

###### `MF RENEW CONDO` (Select)

```sql
SELECT [MULT CALC VIG].[NUM id], [MULT CALC VIG].[FORMA  PAGO], [MULT CALC VIG].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [MULT CALC VIG].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [MULT CALC VIG].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [MULT CALC VIG].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, [MULT CALC VIG].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr16, [MULT CALC VIG].[CONT TERREMOTO], IIf([CONT TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr17, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[EXPR19] & [hasta],[expr20] & [EXPR5]) AS Expr18, IIf([FORMA  PAGO]="SEMESTRAL"," 1 ST SEMESTER ") AS Expr19, IIf([FORMA  PAGO]="SEMESTRAL"," 2 ND SEMESTER ") AS Expr20, IIf([VIGENT AUTO].[Expr3]=0,"U") AS Expr21, [MULT CALC VIG].CONDO, *

FROM [MULT CALC VIG], [MF MENS]

WHERE (((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG].CONDO)=True)) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG].CONDO)=True)) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG].CONDO)=True)) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG].CONDO)=True));
```

###### `MF RENEW X MES` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, [MULT FAM].COMP, [MULT FAM].AGENT, [MULT FAM].[NO POLIZA], [MULT FAM].[CALLE Y NO], [MULT FAM].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr7, [MULT FAM].EDIFICIO, [MULT FAM].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]<0,"INCLUDED","EXCLUDED") AS Expr6, [MULT FAM].CONTENIDOS, [MULT FAM].[CONT TERREMOTO], IIf([CONT TERREMOTO]<0,"INCLUDED","EXCLUDED") AS EXPR8, [MULT FAM].[R CIVIL FAMILIAR], [MULT FAM].[R CIVIL ARREND], [MULT FAM].[ROBO C VIOLENCIA], [MULT FAM].CRISTALES, [MULT FAM].RENOVACION, [MF MENS].[MF MENSAJE 1]

FROM [MF MENS], DATGRAL INNER JOIN [MULT FAM] ON DATGRAL.[NUM id] = [MULT FAM].[NUM id]

WHERE (((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)]));
```

###### `MF RENEW X POLIZA` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, [MULT FAM].COMP, [MULT FAM].AGENT, [MULT FAM].[NO POLIZA], [MULT FAM].[CALLE Y NO], [MULT FAM].HASTA, [MULT FAM].EDIFICIO, [MULT FAM].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]<0,"INCLUDED","EXCLUDED") AS Expr6, [MULT FAM].CONTENIDOS, [MULT FAM].[CONT TERREMOTO], IIf([CONT TERREMOTO]<0,"INCLUDED","EXCLUDED") AS EXPR8, [MULT FAM].[R CIVIL FAMILIAR], [MULT FAM].[R CIVIL ARREND], [MULT FAM].[ROBO C VIOLENCIA], [MULT FAM].CRISTALES, [MULT FAM].RENOVACION, [MF MENS].[MF MENSAJE 1], [MULT FAM].[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL","FIRST SEMESTER") AS Expr5

FROM [MF MENS], DATGRAL INNER JOIN [MULT FAM] ON DATGRAL.[NUM id] = [MULT FAM].[NUM id]

WHERE ((([MULT FAM].[NO POLIZA])=[TECLE NUMERO DE POLIZA A IMPRIMIR]));
```

###### `MF VIG NOW` (Update)

```sql
INSERT INTO [vigenta casa y auto unicos] ( num )

SELECT MULT.[NUM id]

FROM MULT

WHERE (((MULT.HASTA)>Now()));
```

###### `MF X POL CARTA` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.[NUM id], DATGRAL.NOMBRE, MULT.[NOMBRE ASEG], MULT.[CALLE Y NO], MULT.COL, MULT.EDO, DATGRAL.TEL, MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[VIG 1], MULT.[VIG 2], MULT.[VIG 3], MULT.[VIG 4], MULT.MONED, MULT.[1ER PAGO], MULT.[PAGO SUBSEC], MULT.[FECHA  PAGO], MULT.EFECTIVO, MULT.[NO CHEQUE], MULT.[FECHA PAGO 2], MULT.[MONED 2], MULT.[EFECTIVO 2], MULT.[NO CHEQUE 2], MULT.[FECHA PAGO 3], MULT.[MONED 3], MULT.[EFECTIVO 3], MULT.[NO CHEQUE 3], MULT.[FECHA PAGO 4], MULT.[MONED 4], MULT.[EFECTIVO 4], MULT.[NO CHEQUE 4], MULT.[P NETA], MULT.RECARGO, MULT.[D POL], ([P NETA]+[RECARGO]+[D POL])*0.1 AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, MULT.COM, MULT.LIQUIDADA, MULT.[P NETA 2], MULT.[RECARGO 2], MULT.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*0.1 AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, MULT.[COM 2], MULT.[LIQUIDADA 2], MULT.EDIFICIO, MULT.[EDIF TERREMOTO], MULT.CONTENIDOS, MULT.[CONT TERREMOTO], MULT.[R CIVIL FAMILIAR], MULT.[R CIVIL ARREND], MULT.[ROBO C VIOLENCIA], MULT.CRISTALES, MULT.[PLANTA BAJA], MULT.[PLANTA ALTA], MULT.CONSTRUCCION, MULT.OBSERVACIONES, MULT.RENOVACION, MULT.[NUM LIQUIDACION], MULT.[NUM LIQUIDACION2], MULT.[F LIQUIDA1], MULT.[F LIQUIDA2], MULT.CONDO

FROM DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]

WHERE (((MULT.[NO POLIZA])=[TECLEE NUM POLIZA A EDITAR]))

ORDER BY MULT.[NO POLIZA] DESC;
```

###### `MFEDOCUENTACASA X POL` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.LETPOL, MULT.[NUM id], MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, DateAdd("m",6,[DESDE]) AS Expr12, MULT.[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL",[EXPR12],[HASTA]) AS Expr11, IIf([FORMA  PAGO]="SEMESTRAL","1 ST SEMESTER") AS Expr14, MULT.[1ER PAGO], [P NETA]+[RECARGO]+[D POL] AS Expr1, [EXPR1]*0.1 AS IVA, [EXPR1]+[IVA] AS TOT, [1ER PAGO]-[TOT] AS GE, IIf([EDIF TERREMOTO]=0,"WITHOUT EARTHQUAKE ON BUILDING","") AS Expr2, IIf([CONT TERREMOTO]=0,"WITHOUT EARTHQUAKE ON CONTENTS") AS Expr3, IIf([EXPR2] & [EXPR3]="WITHOUT EARTHQUAKE ON BUILDINGWITHOUT EARTHQUAKE ON CONTENTS","WITHOUT EARTHQUAKE",[EXPR2] & [EXPR3]) AS Expr4, IIf([EDIFICIO]=0,", BUILDING") AS Expr5, IIf([CONTENIDOS]=0,", CONTENTS") AS Expr6, IIf([R CIVIL FAMILIAR]=0,", LIABILITY") AS Expr7, IIf([ROBO C VIOLENCIA]=0,", THEFT") AS Expr8, IIf([CRISTALES]=0,", GLASS") AS Expr9, [EXPR5] & [EXPR6] & [EXPR7] & [EXPR8] & [EXPR9] AS Expr10, IIf([EXPR10]>" ","THIS POLICY DOES NOT INCLUDE: " & [EXPR10] & " COVERAGE.") AS Expr13, MULT.CONDO

FROM MULT

WHERE (((MULT.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND ((MULT.CONDO)=False));
```

###### `MFEDOCUENTACONDO X POL` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.LETPOL, MULT.[NUM id], MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, DateAdd("m",6,[DESDE]) AS Expr12, MULT.[FORMA  PAGO], IIf([FORMA  PAGO]="SEMESTRAL",[EXPR12],[HASTA]) AS Expr11, IIf([FORMA  PAGO]="SEMESTRAL","1 ST SEMESTER") AS Expr14, MULT.[1ER PAGO], [P NETA]+[RECARGO]+[D POL] AS Expr1, [EXPR1]*0.1 AS IVA, [EXPR1]+[IVA] AS TOT, [1ER PAGO]-[TOT] AS GE, IIf([EDIF TERREMOTO]=0,"WITHOUT EARTHQUAKE ON BUILDING","") AS Expr2, IIf([CONT TERREMOTO]=0,"WITHOUT EARTHQUAKE ON CONTENTS") AS Expr3, IIf([EXPR2] & [EXPR3]="WITHOUT EARTHQUAKE ON BUILDINGWITHOUT EARTHQUAKE ON CONTENTS","WITHOUT EARTHQUAKE",[EXPR2] & [EXPR3]) AS Expr4, IIf([EDIFICIO]=0,", BUILDING") AS Expr5, IIf([CONTENIDOS]=0,", CONTENTS") AS Expr6, IIf([R CIVIL FAMILIAR]=0,", LIABILITY") AS Expr7, IIf([ROBO C VIOLENCIA]=0,", THEFT") AS Expr8, IIf([CRISTALES]=0,", GLASS") AS Expr9, [EXPR5] & [EXPR6] & [EXPR7] & [EXPR8] & [EXPR9] AS Expr10, IIf([EXPR10]>" ","THIS POLICY DOES NOT INCLUDE: " & [EXPR10] & " COVERAGE.") AS Expr13, MULT.CONDO

FROM MULT

WHERE (((MULT.[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND ((MULT.CONDO)=True));
```

###### `MULT CALC VIG` (Select)

```sql
SELECT MULT.[NUM id], DATGRAL.NOMBRE, MULT.[NO POLIZA], MULT.[NOMBRE ASEG], MULT.[CALLE Y NO], MULT.COL, MULT.EDO, MULT.TEL, MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[VIG 1], IIf([FORMA  PAGO]="SEMESTRAL",DateAdd("m",6,[VIG 1]),DateAdd("m",3,[VIG 1])) AS Expr5, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",6,[VIG 1])) AS Expr6, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",9,[VIG 1])) AS Expr7, MULT.MONED, MULT.[1ER PAGO], MULT.[PAGO SUBSEC], MULT.[FECHA  PAGO], MULT.EFECTIVO, MULT.[NO CHEQUE], MULT.[FECHA PAGO 2], MULT.[MONED 2], MULT.[EFECTIVO 2], MULT.[NO CHEQUE 2], MULT.[FECHA PAGO 3], MULT.[MONED 3], MULT.[EFECTIVO 3], MULT.[NO CHEQUE 3], MULT.[FECHA PAGO 4], MULT.[MONED 4], MULT.[EFECTIVO 4], MULT.[NO CHEQUE 4], MULT.[P NETA], MULT.RECARGO, MULT.[D POL], ([P NETA]+[RECARGO]+[D POL])*0.1 AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, MULT.COM, MULT.[P NETA 2], MULT.[RECARGO 2], MULT.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*0.1 AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, MULT.[COM 2], MULT.LIQUIDADA, MULT.[LIQUIDADA 2], MULT.EDIFICIO, MULT.[EDIF TERREMOTO], MULT.CONTENIDOS, MULT.[CONT TERREMOTO], MULT.[R CIVIL FAMILIAR], MULT.[R CIVIL ARREND], MULT.[ROBO C VIOLENCIA], MULT.CRISTALES, MULT.[PLANTA BAJA], MULT.[PLANTA ALTA], MULT.CONSTRUCCION, MULT.OBSERVACIONES, MULT.RENOVACION, DATGRAL.[NUM UTIL], [VIGENT AUTO].Expr3, MULT.CONDO, MULT.HIDR

FROM (DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]) INNER JOIN [VIGENT AUTO] ON DATGRAL.[NUM id] = [VIGENT AUTO].[NUM id];
```

###### `MULT CALC VIG X POL` (Select)

```sql
SELECT MULT.[NUM id], DATGRAL.[NUM UTIL], DATGRAL.NOMBRE, MULT.[NO POLIZA], MULT.[NOMBRE ASEG], MULT.[CALLE Y NO], MULT.COL, MULT.EDO, MULT.TEL, MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[VIG 1], IIf([FORMA  PAGO]="SEMESTRAL",DateAdd("m",6,[VIG 1]),DateAdd("m",3,[VIG 1])) AS Expr5, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",6,[VIG 1])) AS Expr6, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",9,[VIG 1])) AS Expr7, MULT.MONED, MULT.[1ER PAGO], MULT.[PAGO SUBSEC], MULT.[FECHA  PAGO], MULT.EFECTIVO, MULT.[NO CHEQUE], MULT.[FECHA PAGO 2], MULT.[MONED 2], MULT.[EFECTIVO 2], MULT.[NO CHEQUE 2], MULT.[FECHA PAGO 3], MULT.[MONED 3], MULT.[EFECTIVO 3], MULT.[NO CHEQUE 3], MULT.[FECHA PAGO 4], MULT.[MONED 4], MULT.[EFECTIVO 4], MULT.[NO CHEQUE 4], MULT.[P NETA], MULT.RECARGO, MULT.[D POL], ([P NETA]+[RECARGO]+[D POL])*0.1 AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, MULT.COM, MULT.[P NETA 2], MULT.[RECARGO 2], MULT.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*0.1 AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, MULT.[COM 2], MULT.LIQUIDADA, MULT.[LIQUIDADA 2], MULT.EDIFICIO, MULT.[EDIF TERREMOTO], MULT.CONTENIDOS, MULT.[CONT TERREMOTO], MULT.[R CIVIL FAMILIAR], MULT.[R CIVIL ARREND], MULT.[ROBO C VIOLENCIA], MULT.CRISTALES, MULT.[PLANTA BAJA], MULT.[PLANTA ALTA], MULT.CONSTRUCCION, MULT.OBSERVACIONES, MULT.RENOVACION, [VIGENT AUTO].Expr3, MULT.CONDO

FROM (DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]) INNER JOIN [VIGENT AUTO] ON DATGRAL.[NUM id] = [VIGENT AUTO].[NUM id]

WHERE (((MULT.[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `MULT EMP X POLIZAREP` (Select)

```sql
SELECT [MULT EMPR CALC VIG X POL].[NUM id], [MULT EMPR CALC VIG X POL].[FORMA  PAGO], [MULT EMPR CALC VIG X POL].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [MULT EMPR CALC VIG X POL].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [MULT EMPR CALC VIG X POL].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [MULT EMPR CALC VIG X POL].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, [MULT EMPR CALC VIG X POL].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr16, [MULT EMPR CALC VIG X POL].[CONT TERREMOTO], IIf([CONT TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr17, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[hasta],[expr5]) AS Expr18, *

FROM [MF MENS], [MULT EMPR CALC VIG X POL]

WHERE (((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]));
```

###### `MULT EMPR CALC VIG X POL` (Select)

```sql
SELECT [M EMPR].[NUM id], DATGRAL.NOMBRE, [M EMPR].[NO POLIZA], [M EMPR].[NOMBRE ASEG], [M EMPR].[CALLE Y NO], [M EMPR].COL, [M EMPR].EDO, [M EMPR].TEL, [M EMPR].COMP, [M EMPR].AGENT, [M EMPR].DESDE, [M EMPR].HASTA, [M EMPR].[FORMA  PAGO], [M EMPR].[VIG 1], IIf([FORMA  PAGO]="SEMESTRAL",DateAdd("m",6,[VIG 1]),DateAdd("m",3,[VIG 1])) AS Expr5, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",6,[VIG 1])) AS Expr6, IIf([FORMA  PAGO]="TRIMESTRAL",DateAdd("m",9,[VIG 1])) AS Expr7, [M EMPR].MONED, [M EMPR].[1ER PAGO], [M EMPR].[PAGO SUBSEC], [M EMPR].[FECHA  PAGO], [M EMPR].EFECTIVO, [M EMPR].[NO CHEQUE], [M EMPR].[FECHA PAGO 2], [M EMPR].[MONED 2], [M EMPR].[EFECTIVO 2], [M EMPR].[NO CHEQUE 2], [M EMPR].[FECHA PAGO 3], [M EMPR].[MONED 3], [M EMPR].[EFECTIVO 3], [M EMPR].[NO CHEQUE 3], [M EMPR].[FECHA PAGO 4], [M EMPR].[MONED 4], [M EMPR].[EFECTIVO 4], [M EMPR].[NO CHEQUE 4], [M EMPR].[P NETA], [M EMPR].RECARGO, [M EMPR].[D POL], ([P NETA]+[RECARGO]+[D POL])*0.1 AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, [M EMPR].COM, [M EMPR].[P NETA 2], [M EMPR].[RECARGO 2], [M EMPR].[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*0.1 AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, [M EMPR].[COM 2], [M EMPR].LIQUIDADA, [M EMPR].[LIQUIDADA 2], [M EMPR].EDIFICIO, [M EMPR].[EDIF TERREMOTO], [M EMPR].CONTENIDOS, [M EMPR].[CONT TERREMOTO], [M EMPR].[R CIVIL ACT], [M EMPR].[R CIVIL ARREND], [M EMPR].[ROBO C VIOLENCIA], [M EMPR].CRISTALES, [M EMPR].[ANUNCIOS LUM], [M EMPR].[DIN Y VALORES], [M EMPR].[PLANTA BAJA], [M EMPR].[PLANTA ALTA], [M EMPR].CONSTRUCCION, [M EMPR].OBSERVACIONES, [M EMPR].RENOVACION

FROM DATGRAL INNER JOIN [M EMPR] ON DATGRAL.[NUM id] = [M EMPR].[NUM id]

WHERE ((([M EMPR].[NO POLIZA])=[TECLEE NUM POLIZA]));
```

###### `MULT FAM` (Select)

```sql
SELECT MULT.[NUM id], MULT.FOLIO, MULT.LETPOL, DATGRAL.NOMBRE, MULT.[NO POLIZA], MULT.[NOMBRE ASEG], MULT.[CALLE Y NO], MULT.COL, MULT.EDO, MULT.TEL, MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[VIG 1], MULT.[VIG 2], MULT.[VIG 3], MULT.[VIG 4], MULT.MONED, MULT.[1ER PAGO], MULT.[PAGO SUBSEC], MULT.[FECHA  PAGO], MULT.EFECTIVO, MULT.[NO CHEQUE], MULT.[FECHA PAGO 2], MULT.[MONED 2], MULT.[EFECTIVO 2], MULT.[NO CHEQUE 2], MULT.[FECHA PAGO 3], MULT.[MONED 3], MULT.[EFECTIVO 3], MULT.[NO CHEQUE 3], MULT.[FECHA PAGO 4], MULT.[MONED 4], MULT.[EFECTIVO 4], MULT.[NO CHEQUE 4], MULT.[P NETA], MULT.RECARGO, MULT.[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, MULT.COM, MULT.[P NETA 2], MULT.[RECARGO 2], MULT.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, MULT.[COM 2], MULT.LIQUIDADA, MULT.[LIQUIDADA 2], MULT.EDIFICIO, MULT.[EDIF TERREMOTO], MULT.CONTENIDOS, MULT.[CONT TERREMOTO], MULT.[R CIVIL FAMILIAR], MULT.[R CIVIL ARREND], MULT.[ROBO C VIOLENCIA], MULT.CRISTALES, MULT.[PLANTA BAJA], MULT.[PLANTA ALTA], MULT.CONSTRUCCION, MULT.OBSERVACIONES, MULT.RENOVACION, MULT.[NUM LIQUIDACION], MULT.[NUM LIQUIDACION2], MULT.[F LIQUIDA1], MULT.[F LIQUIDA2], MULT.CONDO, MULT.HIDR, MULT.[DESCR EDIFICIO], MULT.MUROS, MULT.TECHO, MULT.CP, MULT.FOTO1, MULT.[CONFIRMA L1], MULT.[CONFIRMA L2], MULT.[CH COMISION1NU], MULT.COMISION1FE, MULT.[CH COMISION2NU], MULT.COMISION2FE, MULT.TIPO, MULT.[COPIA B], MULT.[DOCS 1], MULT.[DOCS 2]

FROM IMPUESTOS, DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id];
```

###### `MULT FAM EDITA` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.FOLIO, MULT.[NUM id], DATGRAL.NOMBRE, MULT.[NOMBRE ASEG], MULT.[CALLE Y NO], MULT.COL, MULT.EDO, DATGRAL.TEL, MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[VIG 1], MULT.[VIG 2], MULT.[VIG 3], MULT.[VIG 4], MULT.MONED, MULT.[1ER PAGO], MULT.[PAGO SUBSEC], MULT.[FECHA  PAGO], MULT.EFECTIVO, MULT.[NO CHEQUE], MULT.[FECHA PAGO 2], MULT.[MONED 2], MULT.[EFECTIVO 2], MULT.[NO CHEQUE 2], MULT.[FECHA PAGO 3], MULT.[MONED 3], MULT.[EFECTIVO 3], MULT.[NO CHEQUE 3], MULT.[FECHA PAGO 4], MULT.[MONED 4], MULT.[EFECTIVO 4], MULT.[NO CHEQUE 4], MULT.[P NETA], MULT.RECARGO, MULT.[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, MULT.COM, MULT.LIQUIDADA, MULT.[P NETA 2], MULT.[RECARGO 2], MULT.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, MULT.[COM 2], MULT.[LIQUIDADA 2], MULT.EDIFICIO, MULT.[EDIF TERREMOTO], MULT.CONTENIDOS, MULT.[CONT TERREMOTO], MULT.[R CIVIL FAMILIAR], MULT.[R CIVIL ARREND], MULT.[ROBO C VIOLENCIA], MULT.CRISTALES, MULT.[PLANTA BAJA], MULT.[PLANTA ALTA], MULT.CONSTRUCCION, MULT.OBSERVACIONES, MULT.RENOVACION, MULT.[NUM LIQUIDACION], MULT.[NUM LIQUIDACION2], MULT.[F LIQUIDA1], MULT.[F LIQUIDA2], MULT.CONDO, MULT.TIPO, MULT.CP, MULT.[DESCR EDIFICIO], MULT.MUROS, MULT.TECHO, MULT.FOTO1, MULT.HIDR, MULT.[CONFIRMA L1], MULT.[CONFIRMA L2], MULT.[CH COMISION1NU], MULT.[CH COMISION2NU], MULT.COMISION2FE, MULT.COMISION1FE, MULT.[COPIA B], MULT.[DOCS 1], MULT.[DOCS 2]

FROM IMPUESTOS, DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]

ORDER BY MULT.[NO POLIZA] DESC;
```

###### `MULT FAM EDITA FOTO` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.FOLIO, MULT.[NUM id], DATGRAL.NOMBRE, MULT.[NOMBRE ASEG], MULT.[CALLE Y NO], MULT.COL, MULT.EDO, DATGRAL.TEL, MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[VIG 1], MULT.[VIG 2], MULT.[VIG 3], MULT.[VIG 4], MULT.MONED, MULT.[1ER PAGO], MULT.[PAGO SUBSEC], MULT.[FECHA  PAGO], MULT.EFECTIVO, MULT.[NO CHEQUE], MULT.[FECHA PAGO 2], MULT.[MONED 2], MULT.[EFECTIVO 2], MULT.[NO CHEQUE 2], MULT.[FECHA PAGO 3], MULT.[MONED 3], MULT.[EFECTIVO 3], MULT.[NO CHEQUE 3], MULT.[FECHA PAGO 4], MULT.[MONED 4], MULT.[EFECTIVO 4], MULT.[NO CHEQUE 4], MULT.[P NETA], MULT.RECARGO, MULT.[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, MULT.COM, MULT.LIQUIDADA, MULT.[P NETA 2], MULT.[RECARGO 2], MULT.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, MULT.[COM 2], MULT.[LIQUIDADA 2], MULT.EDIFICIO, MULT.[EDIF TERREMOTO], MULT.CONTENIDOS, MULT.[CONT TERREMOTO], MULT.[R CIVIL FAMILIAR], MULT.[R CIVIL ARREND], MULT.[ROBO C VIOLENCIA], MULT.CRISTALES, MULT.[PLANTA BAJA], MULT.[PLANTA ALTA], MULT.CONSTRUCCION, MULT.OBSERVACIONES, MULT.RENOVACION, MULT.[NUM LIQUIDACION], MULT.[NUM LIQUIDACION2], MULT.[F LIQUIDA1], MULT.[F LIQUIDA2], MULT.CONDO, MULT.TIPO, MULT.CP, MULT.[DESCR EDIFICIO], MULT.MUROS, MULT.TECHO, MULT.FOTO1, MULT.HIDR, MULT.[CONFIRMA L1], MULT.[CONFIRMA L2], MULT.[CH COMISION1NU], MULT.[CH COMISION2NU], MULT.COMISION2FE, MULT.COMISION1FE, MULT.[COPIA B], MULT.[DOCS 1], MULT.[DOCS 2]

FROM IMPUESTOS, DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]

WHERE (((MULT.[NO POLIZA])=[TECLEE NUM POLIZA EDITAR FOTO]))

ORDER BY MULT.[NO POLIZA] DESC;
```

###### `MULT FAM LIQUIDA` (Select)

```sql
SELECT MULT.[NUM id], MULT.LETPOL, MULT.FOLIO, DATGRAL.NOMBRE, MULT.[NO POLIZA], MULT.[NOMBRE ASEG], MULT.[CALLE Y NO], MULT.COL, MULT.EDO, MULT.TEL, MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[VIG 1], MULT.[VIG 2], MULT.[VIG 3], MULT.[VIG 4], MULT.MONED, MULT.[1ER PAGO], MULT.[PAGO SUBSEC], MULT.[FECHA  PAGO], MULT.EFECTIVO, MULT.[NO CHEQUE], MULT.[FECHA PAGO 2], MULT.[MONED 2], MULT.[EFECTIVO 2], MULT.[NO CHEQUE 2], MULT.[FECHA PAGO 3], MULT.[MONED 3], MULT.[EFECTIVO 3], MULT.[NO CHEQUE 3], MULT.[FECHA PAGO 4], MULT.[MONED 4], MULT.[EFECTIVO 4], MULT.[NO CHEQUE 4], MULT.[P NETA], MULT.RECARGO, MULT.[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, MULT.COM, MULT.[P NETA 2], MULT.[RECARGO 2], MULT.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, MULT.[COM 2], MULT.LIQUIDADA, MULT.[LIQUIDADA 2], MULT.EDIFICIO, MULT.[EDIF TERREMOTO], MULT.CONTENIDOS, MULT.[CONT TERREMOTO], MULT.[R CIVIL FAMILIAR], MULT.[R CIVIL ARREND], MULT.[ROBO C VIOLENCIA], MULT.CRISTALES, MULT.[PLANTA BAJA], MULT.[PLANTA ALTA], MULT.CONSTRUCCION, MULT.OBSERVACIONES, MULT.RENOVACION

FROM IMPUESTOS, DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id];
```

###### `MULT FAM RENEW CALC` (Select)

```sql
SELECT [MULT CALC VIG].[NUM id], [MULT CALC VIG].[FORMA  PAGO], [MULT CALC VIG].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [MULT CALC VIG].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [MULT CALC VIG].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [MULT CALC VIG].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, [MULT CALC VIG].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr16, [MULT CALC VIG].[CONT TERREMOTO], IIf([CONT TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr17, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[hasta] & [expr19],[expr5] & [EXPR20]) AS Expr18, IIf([FORMA  PAGO]="SEMESTRAL"," 1 ST SEMESTER ") AS Expr19, IIf([FORMA  PAGO]="SEMESTRAL"," 2 ND SEMESTER ") AS Expr20, IIf([VIGENT AUTO].[Expr3]=0,"U") AS Expr21, *

FROM [MULT CALC VIG], [MF MENS]

WHERE (((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]));
```

###### `MULT FAM X POLIZA` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.FOLIO, MULT.[NUM id], DATGRAL.NOMBRE, MULT.[NOMBRE ASEG], MULT.[CALLE Y NO], MULT.COL, MULT.EDO, DATGRAL.TEL, MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[VIG 1], MULT.[VIG 2], MULT.[VIG 3], MULT.[VIG 4], MULT.MONED, MULT.[1ER PAGO], MULT.[PAGO SUBSEC], MULT.[FECHA  PAGO], MULT.EFECTIVO, MULT.[NO CHEQUE], MULT.[FECHA PAGO 2], MULT.[MONED 2], MULT.[EFECTIVO 2], MULT.[NO CHEQUE 2], MULT.[FECHA PAGO 3], MULT.[MONED 3], MULT.[EFECTIVO 3], MULT.[NO CHEQUE 3], MULT.[FECHA PAGO 4], MULT.[MONED 4], MULT.[EFECTIVO 4], MULT.[NO CHEQUE 4], MULT.[P NETA], MULT.RECARGO, MULT.[D POL], ([P NETA]+[RECARGO]+[D POL])*[iva] AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, MULT.COM, MULT.LIQUIDADA, MULT.[P NETA 2], MULT.[RECARGO 2], MULT.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*[iva] AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, MULT.[COM 2], MULT.[LIQUIDADA 2], MULT.EDIFICIO, MULT.[EDIF TERREMOTO], MULT.CONTENIDOS, MULT.[CONT TERREMOTO], MULT.[R CIVIL FAMILIAR], MULT.[R CIVIL ARREND], MULT.[ROBO C VIOLENCIA], MULT.CRISTALES, MULT.[PLANTA BAJA], MULT.[PLANTA ALTA], MULT.CONSTRUCCION, MULT.OBSERVACIONES, MULT.RENOVACION, MULT.[NUM LIQUIDACION], MULT.[NUM LIQUIDACION2], MULT.[F LIQUIDA1], MULT.[F LIQUIDA2], MULT.CONDO, MULT.TIPO, MULT.CP, MULT.[DESCR EDIFICIO], MULT.MUROS, MULT.TECHO, MULT.FOTO1, MULT.HIDR, MULT.[CONFIRMA L1], MULT.[CONFIRMA L2]

FROM IMPUESTOS, DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]

WHERE (((MULT.[NO POLIZA])=[TECLEE NUM POLIZA A EDITAR]))

ORDER BY MULT.[NO POLIZA] DESC;
```

###### `MULT FAM X POLIZA Consulta` (Delete)

```sql
UPDATE [MULT FAM X POLIZA PARA LIQUIDA] SET [MULT FAM X POLIZA PARA LIQUIDA].LIQUIDADA = MULT!LIQUIDADA=1, [MULT FAM X POLIZA PARA LIQUIDA].[LIQUIDADA 2] = MULT![LIQUIDADA 2]=1, [MULT FAM X POLIZA PARA LIQUIDA].[NUM LIQUIDACION] = MULT![NUM LIQUIDACION]=Null, [MULT FAM X POLIZA PARA LIQUIDA].[NUM LIQUIDACION2] = MULT![NUM LIQUIDACION2]=Null, [MULT FAM X POLIZA PARA LIQUIDA].[F LIQUIDA1] = MULT![F LIQUIDA1]=Null, [MULT FAM X POLIZA PARA LIQUIDA].[F LIQUIDA2] = MULT![F LIQUIDA2]=Null;
```

###### `MULT FAM X POLIZA PARA LIQUIDA` (Select)

```sql
SELECT MULT.[NO POLIZA], MULT.FOLIO, MULT.[NUM id], DATGRAL.NOMBRE, MULT.[NOMBRE ASEG], MULT.[CALLE Y NO], MULT.COL, MULT.EDO, DATGRAL.TEL, MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[VIG 1], MULT.[VIG 2], MULT.[VIG 3], MULT.[VIG 4], MULT.MONED, MULT.[1ER PAGO], MULT.[PAGO SUBSEC], MULT.[FECHA  PAGO], MULT.EFECTIVO, MULT.[NO CHEQUE], MULT.[FECHA PAGO 2], MULT.[MONED 2], MULT.[EFECTIVO 2], MULT.[NO CHEQUE 2], MULT.[FECHA PAGO 3], MULT.[MONED 3], MULT.[EFECTIVO 3], MULT.[NO CHEQUE 3], MULT.[FECHA PAGO 4], MULT.[MONED 4], MULT.[EFECTIVO 4], MULT.[NO CHEQUE 4], MULT.[P NETA], MULT.RECARGO, MULT.[D POL], ([P NETA]+[RECARGO]+[D POL])*0.1 AS Expr1, [P NETA]+[RECARGO]+[D POL]+[Expr1] AS Expr2, MULT.COM, MULT.LIQUIDADA, MULT.[P NETA 2], MULT.[RECARGO 2], MULT.[D POL 2], ([P NETA 2]+[RECARGO 2]+[D POL 2])*0.1 AS Expr3, [P NETA 2]+[RECARGO 2]+[D POL 2]+[Expr3] AS Expr4, MULT.[COM 2], MULT.[LIQUIDADA 2], MULT.EDIFICIO, MULT.[EDIF TERREMOTO], MULT.CONTENIDOS, MULT.[CONT TERREMOTO], MULT.[R CIVIL FAMILIAR], MULT.[R CIVIL ARREND], MULT.[ROBO C VIOLENCIA], MULT.CRISTALES, MULT.[PLANTA BAJA], MULT.[PLANTA ALTA], MULT.CONSTRUCCION, MULT.OBSERVACIONES, MULT.RENOVACION, MULT.[NUM LIQUIDACION], MULT.[NUM LIQUIDACION2], MULT.[F LIQUIDA1], MULT.[F LIQUIDA2], MULT.CONDO, MULT.CP, MULT.[DESCR EDIFICIO], MULT.MUROS, MULT.TECHO

FROM DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id]=MULT.[NUM id]

WHERE (((MULT.[NO POLIZA])=[CONFIRME EL NUMERO DE POLIZA A CAMBIAR]))

ORDER BY MULT.[NO POLIZA] DESC;
```

###### `MULT FAM X POLIZAREP` (Select)

```sql
SELECT [MULT CALC VIG X POL].[NUM id], [MULT CALC VIG X POL].[FORMA  PAGO], [MULT CALC VIG X POL].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [MULT CALC VIG X POL].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [MULT CALC VIG X POL].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [MULT CALC VIG X POL].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, [MULT CALC VIG X POL].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr16, [MULT CALC VIG X POL].[CONT TERREMOTO], IIf([CONT TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr17, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[EXPR19] & " " & [HASTA],[expr5] & " " & [EXPR20]) AS Expr18, IIf([FORMA  PAGO]="SEMESTRAL","    1 ST SEMESTER ") AS Expr19, IIf([FORMA  PAGO]="SEMESTRAL","     2 ND SEMESTER ") AS Expr20, IIf([VIGENT AUTO].[Expr3]=0,"U") AS Expr21, *

FROM [MF MENS], [MULT CALC VIG X POL]

WHERE (((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)])) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]));
```

###### `MULT FAM XPOLIZACASA` (Select)

```sql
SELECT [MULT CALC VIG X POL].[NUM id], [MULT CALC VIG X POL].[FORMA  PAGO], [MULT CALC VIG X POL].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [MULT CALC VIG X POL].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [MULT CALC VIG X POL].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [MULT CALC VIG X POL].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, [MULT CALC VIG X POL].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr16, [MULT CALC VIG X POL].[CONT TERREMOTO], IIf([CONT TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr17, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[EXPR19] & " " & [HASTA],[expr5] & " " & [EXPR20]) AS Expr18, IIf([FORMA  PAGO]="SEMESTRAL","    1 ST SEMESTER ") AS Expr19, IIf([FORMA  PAGO]="SEMESTRAL","     2 ND SEMESTER ") AS Expr20, IIf([VIGENT AUTO].[Expr3]=0,"U") AS Expr21, [MULT CALC VIG X POL].CONDO, *

FROM [MF MENS], [MULT CALC VIG X POL]

WHERE (((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG X POL].CONDO)=False)) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG X POL].CONDO)=False)) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG X POL].CONDO)=False)) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG X POL].CONDO)=False));
```

###### `MULT FAM XPOLIZACONDO` (Select)

```sql
SELECT [MULT CALC VIG X POL].[NUM id], [MULT CALC VIG X POL].[FORMA  PAGO], [MULT CALC VIG X POL].HASTA, DatePart("m",[HASTA]) AS Expr8, DatePart("yyyy",[HASTA]) AS Expr9, [MULT CALC VIG X POL].Expr5, IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])) AS Expr10, DatePart("yyyy",[expr5]) AS Expr11, [MULT CALC VIG X POL].Expr6, DatePart("m",[expr6]) AS Expr12, DatePart("yyyy",[expr6]) AS Expr13, [MULT CALC VIG X POL].Expr7, DatePart("m",[expr7]) AS Expr14, DatePart("yyyy",[expr7]) AS Expr15, [MULT CALC VIG X POL].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr16, [MULT CALC VIG X POL].[CONT TERREMOTO], IIf([CONT TERREMOTO]=0,"EXCLUDED","INCLUDED") AS Expr17, IIf([expr8]=[TECLEE MES DE VENCIMIENTO (1 A 12)],[EXPR19] & " " & [HASTA],[expr5] & " " & [EXPR20]) AS Expr18, IIf([FORMA  PAGO]="SEMESTRAL","    1 ST SEMESTER ") AS Expr19, IIf([FORMA  PAGO]="SEMESTRAL","     2 ND SEMESTER ") AS Expr20, IIf([VIGENT AUTO].[Expr3]=0,"U") AS Expr21, [MULT CALC VIG X POL].CONDO, *

FROM [MF MENS], [MULT CALC VIG X POL]

WHERE (((DatePart("m",[HASTA]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG X POL].CONDO)=True)) OR (((IIf([FORMA  PAGO]="ANNUAL",0,DatePart("m",[expr5])))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr5]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG X POL].CONDO)=True)) OR (((DatePart("m",[expr6]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr6]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG X POL].CONDO)=True)) OR (((DatePart("m",[expr7]))=[TECLEE MES DE VENCIMIENTO (1 A 12)]) AND ((DatePart("yyyy",[expr7]))=[TECLEE AÑO DE VENCIMIENTO (1999)]) AND (([MULT CALC VIG X POL].CONDO)=True));
```

###### `MULT FAM new` (Select)

```sql
SELECT MULT.[NUM id], MULT.FOLIO, MULT.LETPOL, DATGRAL.NOMBRE, MULT.[NO POLIZA], MULT.[NOMBRE ASEG], MULT.[CALLE Y NO], MULT.COL, MULT.EDO, MULT.TEL, MULT.COMP, MULT.AGENT, MULT.DESDE, MULT.HASTA, MULT.[FORMA  PAGO], MULT.[VIG 1], MULT.[VIG 2], MULT.[VIG 3], MULT.[VIG 4], MULT.MONED, MULT.[1ER PAGO], MULT.[PAGO SUBSEC], MULT.[FECHA  PAGO], MULT.EFECTIVO, MULT.[NO CHEQUE], MULT.[FECHA PAGO 2], MULT.[MONED 2], MULT.[EFECTIVO 2], MULT.[NO CHEQUE 2], MULT.[FECHA PAGO 3], MULT.[MONED 3], MULT.[EFECTIVO 3], MULT.[NO CHEQUE 3], MULT.[FECHA PAGO 4], MULT.[MONED 4], MULT.[EFECTIVO 4], MULT.[NO CHEQUE 4], MULT.[P NETA], MULT.RECARGO, MULT.[D POL], MULT.COM, MULT.[P NETA 2], MULT.[RECARGO 2], MULT.[D POL 2], MULT.[COM 2], MULT.LIQUIDADA, MULT.[LIQUIDADA 2], MULT.EDIFICIO, MULT.[EDIF TERREMOTO], MULT.CONTENIDOS, MULT.[CONT TERREMOTO], MULT.[R CIVIL FAMILIAR], MULT.[R CIVIL ARREND], MULT.[ROBO C VIOLENCIA], MULT.CRISTALES, MULT.[PLANTA BAJA], MULT.[PLANTA ALTA], MULT.CONSTRUCCION, MULT.OBSERVACIONES, MULT.RENOVACION, MULT.[NUM LIQUIDACION], MULT.[NUM LIQUIDACION2], MULT.[F LIQUIDA1], MULT.[F LIQUIDA2], MULT.CONDO, MULT.HIDR, MULT.[DESCR EDIFICIO], MULT.MUROS, MULT.TECHO, MULT.CP, MULT.FOTO1, MULT.[CONFIRMA L1], MULT.[CONFIRMA L2], MULT.TIPO, MULT.[COPIA B], MULT.[DOCS 1], MULT.[DOCS 2]

FROM DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id];
```

###### `MULTFAMATLAS` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, [MULT FAM].COMP, [MULT FAM].[NO POLIZA], [MULT FAM].[CALLE Y NO], [MULT FAM].HASTA, [MULT FAM].EDIFICIO, [MULT FAM].[EDIF TERREMOTO], IIf([EDIF TERREMOTO]<0,"TERREMOTO") AS Expr6, [MULT FAM].CONTENIDOS, [MULT FAM].[CONT TERREMOTO], [MULT FAM].[R CIVIL FAMILIAR], [MULT FAM].[R CIVIL ARREND], [MULT FAM].[ROBO C VIOLENCIA], [MULT FAM].CRISTALES, [MULT FAM].RENOVACION, [MF MENS].[MF MENSAJE 1], [MULT FAM].DESDE, [MULT FAM].[FORMA  PAGO], [MULT FAM].COL, [MULT FAM].EDO, [MULT FAM].[DESCR EDIFICIO], [MULT FAM].MUROS, [MULT FAM].TECHO, [MULT FAM].CONSTRUCCION, [MULT FAM].HIDR, [MULT FAM].CP, [MULT FAM].[PLANTA BAJA], [MULT FAM].AGENT, [MULT FAM].[NOMBRE ASEG]

FROM [MF MENS], DATGRAL INNER JOIN [MULT FAM] ON DATGRAL.[NUM id] = [MULT FAM].[NUM id]

WHERE ((([MULT FAM].[NO POLIZA])=[TECLEE NUM DE POLIZA]));
```

###### `NUMER` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, TIT.FirstName, TIT.LastName

FROM DATGRAL, TIT

ORDER BY DATGRAL.[NUM id];
```

###### `PASO` (Select)

```sql
SELECT BORRA.CLVE, [CLAVE] AS Expr1

FROM BORRA;
```

###### `POLIZAS TODAS` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, LICENCIAS.LETLIC, LICENCIAS.[NO POLIZA], MULT.LETRMULT, MULT.[NO POLIZA], [TABLA AUTOS].LETREC, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS AMPL].LETAMP, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS LIMIT].LETAMP, [TABLA AUTOS LIMIT].[NO POLIZA]

FROM ((((DATGRAL LEFT JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]) LEFT JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUMER ID]) LEFT JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) LEFT JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]) LEFT JOIN [TABLA AUTOS LIMIT] ON DATGRAL.[NUM id] = [TABLA AUTOS LIMIT].[NUMER ID];
```

###### `PRIMA NETA MCA2` (Select)

```sql
SELECT [FECHAS PRIMA NETA].FECHA1, [FECHAS PRIMA NETA].FECHA2, MCA2.COMP, MCA2.POLIZA, MCA2.DESDE, MCA2.HASTA, MCA2.PRIMA1, MCA2.LETPOL, MCA2.[FORMA  PAGO], MCA2.[NUMER ID]

FROM [FECHAS PRIMA NETA], MCA2

WHERE (((MCA2.DESDE) Between [FECHA1] And [FECHA2]));
```

###### `PRIMA NETA MULT` (Select)

```sql
SELECT [FECHAS PRIMA NETA].FECHA1, [FECHAS PRIMA NETA].FECHA2, MULT.COMP, MULT.[NO POLIZA], MULT.DESDE, MULT.HASTA, MULT.[P NETA], MULT.[P NETA 2], MULT.LETPOL, MULT.[FORMA  PAGO], MULT.[NUM id], [p neta]+[p neta 2] AS [p total]

FROM [FECHAS PRIMA NETA], MULT

WHERE (((MULT.DESDE) Between [FECHA1] And [FECHA2]));
```

###### `PRIMA NETA RCA` (Select)

```sql
SELECT [FECHAS PRIMA NETA].FECHA1, [FECHAS PRIMA NETA].FECHA2, [TABLA AUTOS AMPL R].COMP, [TABLA AUTOS AMPL R].[NO POLIZA], [TABLA AUTOS AMPL R].DESDE, [TABLA AUTOS AMPL R].HASTA, [TABLA AUTOS AMPL R].[PRIMA NETA], [TABLA AUTOS AMPL R].LETPOL, [TABLA AUTOS AMPL R].[NUMER ID]

FROM [FECHAS PRIMA NETA], [TABLA AUTOS AMPL R]

WHERE ((([TABLA AUTOS AMPL R].DESDE) Between [FECHA1] And [FECHA2]));
```

###### `PRIMA NETA RRC` (Select)

```sql
SELECT [FECHAS PRIMA NETA].FECHA1, [FECHAS PRIMA NETA].FECHA2, [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].DESDE, [TABLA AUTOS RC R].HASTA, [TABLA AUTOS RC R].[PRIMA NETA], [TABLA AUTOS RC R].LETPOL, [TABLA AUTOS RC R].[NUMER ID]

FROM [FECHAS PRIMA NETA], [TABLA AUTOS RC R]

WHERE ((([TABLA AUTOS RC R].DESDE) Between [FECHA1] And [FECHA2]));
```

###### `PRIMA NETA TCA` (Select)

```sql
SELECT [FECHAS PRIMA NETA].FECHA1, [FECHAS PRIMA NETA].FECHA2, [TABLA AUTOS AMPL].COMP, [TABLA AUTOS AMPL].[NO POLIZA], [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].[NUMER ID]

FROM [FECHAS PRIMA NETA], [TABLA AUTOS AMPL]

WHERE ((([TABLA AUTOS AMPL].DESDE) Between [FECHA1] And [FECHA2]));
```

###### `PRIMA NETA TLIC` (Select)

```sql
SELECT [FECHAS PRIMA NETA].FECHA1, [FECHAS PRIMA NETA].FECHA2, LICENCIAS.COMP, LICENCIAS.[NO POLIZA], LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[PRIMA NETA], LICENCIAS.[NUMER ID]

FROM [FECHAS PRIMA NETA], LICENCIAS

WHERE (((LICENCIAS.DESDE) Between [FECHA1] And [FECHA2]));
```

###### `PRIMA NETA TRC` (Select)

```sql
SELECT [FECHAS PRIMA NETA].FECHA1, [FECHAS PRIMA NETA].FECHA2, [TABLA AUTOS].COMP, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[PRIMA NETA], [TABLA AUTOS].[NUMER ID]

FROM [FECHAS PRIMA NETA], [TABLA AUTOS]

WHERE ((([TABLA AUTOS].DESDE) Between [FECHA1] And [FECHA2]));
```

###### `QUERIES_USED_BY_TABLE` (Select)

```sql
SELECT DISTINCT MSysObjects.Name

FROM MSysQueries INNER JOIN MSysObjects ON MSysQueries.ObjectId=MSysObjects.Id

WHERE (((MSysQueries.Name1) Like "*" & [TableName] & "*")) OR (((MSysQueries.Name2) Like "*" & [TableName] & "*"));
```

###### `QUERY AUTOS` (Select)

```sql
SELECT LICENCIAS.[NUMER ID], DATGRAL.NOMBRES, DATGRAL.APELLIDOS, LICENCIAS.[NO POLIZA], LICENCIAS.[CALLE Y NO], LICENCIAS.COL, LICENCIAS.EDO, LICENCIAS.TEL, LICENCIAS.COMPAÑIA, LICENCIAS.AGENTE, LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[FORMA  PAGO], LICENCIAS.MONEDA, LICENCIAS.[FECHA  PAGO], LICENCIAS.EFECTIVO, LICENCIAS.[NO CHEQUE], LICENCIAS.[P NETA], LICENCIAS.[D POL], ([P NETA]+[D POL])*0.1 AS Expr1, [P NETA]+[D POL]+[Expr1] AS Expr2, [P NETA]*0.3 AS Expr3, LICENCIAS.OBSERVACIONES, LICENCIAS.COBERTURA, LICENCIAS.[NOMBRE ASEG 1], [NOMBRES] & " " & [APELLIDOS] AS Expr5, LICENCIAS.[LIC 1], LICENCIAS.[EDO 1], LICENCIAS.[NOMBRE ASEG 2], LICENCIAS.[LIC 2], LICENCIAS.[EDO 2], LICENCIAS.[NOMBRE ASEG 3], LICENCIAS.[LIC 3], LICENCIAS.[EDO 3], LICENCIAS.PROPIEDADES, LICENCIAS.PERSONAS, [PERSONAS]*2 AS Expr4, LICENCIAS.[SERVICIO ADICIONAL]

FROM DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID];
```

###### `Query1` (Select)

```sql
SELECT DATGRAL.NOMBRE, DATGRAL.[NUM id], DATGRAL.[NUM UTIL], DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO

FROM DATGRAL

WHERE (((DATGRAL.[NUM UTIL]) Is Null))

ORDER BY DATGRAL.NOMBRE;
```

###### `RC LIQUIDA` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].CONTR, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].CLAVE, [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].[FORMA  PAGO], [TABLA AUTOS].MONEDA, [TABLA AUTOS].[FECHA  PAGO], [TABLA AUTOS].EFECTIVO, [TABLA AUTOS].[NO CHEQUE], [TABLA AUTOS].OBSERVACIONES, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,12,15) AS Expr3, [EXPR3]*2 AS Expr4, [TABLA AUTOS].PROPIEDADES, [TABLA AUTOS].[SERVICIO ADICIONAL], [TABLA AUTOS].HORA, [TABLA AUTOS].[PRIMA NETA], [TABLA AUTOS].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*IMPUESTOS_AUTOS.IVA AS EXPR1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS].LIQUIDADA, [TABLA AUTOS].RENOVACION

FROM IMPUESTOS_AUTOS, DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

ORDER BY [TABLA AUTOS].[NO POLIZA] DESC , [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `RC LIQUIDA RES` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].LETPOL, [TABLA AUTOS RC R].[VIG 1], [TABLA AUTOS RC R].[NUMER ID], DATGRAL.NOMBRE, DATGRAL.[CALLE Y NO], DATGRAL.COL, DATGRAL.EDO, DATGRAL.TEL, [TABLA AUTOS RC R].[NOMBRE ASEG], [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].COM, [TABLA AUTOS RC R].[COM 2], [TABLA AUTOS RC R].AGENT, [TABLA AUTOS RC R].CLAVE, [TABLA AUTOS RC R].DESDE, [TABLA AUTOS RC R].HASTA, [TABLA AUTOS RC R].[FORMA  PAGO], [TABLA AUTOS RC R].MONEDA, [TABLA AUTOS RC R].[FECHA  PAGO], [TABLA AUTOS RC R].[FECHA PAGO 2], [TABLA AUTOS RC R].EFECTIVO, [TABLA AUTOS RC R].[NO CHEQUE], [TABLA AUTOS RC R].OBSERVACIONES, [TABLA AUTOS RC R].COBERTURA, [TABLA AUTOS RC R].PROPIEDADES, [TABLA AUTOS RC R].[PRIMA NETA], [TABLA AUTOS RC R].[D POLIZA], [TABLA AUTOS RC R].RECARGO, ([PRIMA NETA]+[RECARGO]+[D POLIZA])*[iva] AS EXPR1, [PRIMA NETA]+[RECARGO]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS RC R].[PRIMA NETA2], [TABLA AUTOS RC R].[RECARGO 2], [TABLA AUTOS RC R].[D POLIZA2], ([PRIMA NETA2]+[RECARGO 2]+[D POLIZA2])*0.1 AS Expr3, [PRIMA NETA2]+[RECARGO 2]+[D POLIZA2]+[EXPR3] AS Expr4, [TABLA AUTOS RC R].LIQUIDADA, [TABLA AUTOS RC R].[LIQUIDADA 2], [TABLA AUTOS RC R].RENOVACION

FROM IMPUESTOS_AUTOS, DATGRAL INNER JOIN [TABLA AUTOS RC R] ON DATGRAL.[NUM id] = [TABLA AUTOS RC R].[NUMER ID]

ORDER BY [TABLA AUTOS RC R].[NO POLIZA] DESC , [TABLA AUTOS RC R].[NUMER ID], DATGRAL.NOMBRE DESC;
```

###### `RC R X MES` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].HASTA, DatePart("m",[HASTA]) AS Expr1, DatePart("yyyy",[hasta]) AS Expr2, [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].RENOVACION

FROM DATGRAL INNER JOIN [TABLA AUTOS RC R] ON DATGRAL.[NUM id] = [TABLA AUTOS RC R].[NUMER ID]

WHERE (((DatePart("m",[HASTA]))=[TECLE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[hasta]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]));
```

###### `RC RENEW` (Select)

```sql
SELECT [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR","MULTIPLE ENTRIE") AS Expr1, *

FROM [TABLA AUTOS], [RC MENSAJE];
```

###### `RC RENEW X MES` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"LIABILITY ONLY, COVERAGES (ONE YEAR)","LIABILITY ONLY, COVERAGES (" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].RENOVACION, [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15

FROM [RC MENSAJE], (DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE (((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]));
```

###### `RC RENEW X MES ATLAS 13` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"LIABILITY ONLY, COVERAGES (ONE YEAR)","LIABILITY ONLY, COVERAGES (" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].RENOVACION, [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15

FROM [RC MENSAJE], (DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS].COBERTURA)=365) AND ((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS].COMP)="ATLAS, S.A."));
```

###### `RC RENEW X MES ATLAS 13 30` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"LIABILITY ONLY, COVERAGES (ONE YEAR)","LIABILITY ONLY, COVERAGES (" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].RENOVACION, [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15

FROM [RC MENSAJE], (DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS].COBERTURA)=30) AND ((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS].COMP)="ATLAS, S.A."));
```

###### `RC RENEW X MES ATLAS 13 40` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"LIABILITY ONLY, COVERAGES (ONE YEAR)","LIABILITY ONLY, COVERAGES (" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].RENOVACION, [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15

FROM [RC MENSAJE], (DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS].COBERTURA)=40) AND ((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS].COMP)="ATLAS, S.A."));
```

###### `RC RENEW X MES ATLAS 13 50` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"LIABILITY ONLY, COVERAGES (ONE YEAR)","LIABILITY ONLY, COVERAGES (" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].RENOVACION, [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15

FROM [RC MENSAJE], (DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS].COBERTURA)=50) AND ((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS].COMP)="ATLAS, S.A."));
```

###### `RC RENEW X MES QUALITAS 30` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"LIABILITY ONLY, COVERAGES (ONE YEAR)","LIABILITY ONLY, COVERAGES (" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].RENOVACION, [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15, [RC MENSAJE].[POLICY 30]

FROM [RC MENSAJE], (DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS].COBERTURA)=30) AND ((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS].COMP)="QUALITAS"));
```

###### `RC RENEW X MES QUALITAS 365` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"LIABILITY ONLY, COVERAGES (ONE YEAR)","LIABILITY ONLY, COVERAGES (" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].RENOVACION, [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15, [RC MENSAJE].[POLICY 365]

FROM [RC MENSAJE], (DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS].COBERTURA)=365) AND ((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS].COMP)="QUALITAS"));
```

###### `RC RENEW X MES QUALITAS 40` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"LIABILITY ONLY, COVERAGES (ONE YEAR)","LIABILITY ONLY, COVERAGES (" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].RENOVACION, [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15, [RC MENSAJE].[POLICY 40]

FROM [RC MENSAJE], (DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS].COBERTURA)=40) AND ((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS].COMP)="QUALITAS"));
```

###### `RC RENEW X MES QUALITAS 50` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"LIABILITY ONLY, COVERAGES (ONE YEAR)","LIABILITY ONLY, COVERAGES (" & [COBERTURA] & ") DAYS " & "MULTIPLE ENTRY") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].RENOVACION, [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS].[CSL LIMITE], IIf([CSL LIMITE]=0,"PROPERTY DAMAGE: " & "$" & [EXPR4] & ".00","COMBINE SINGLE  LIMIT :" & "$" & [expr15] & ".00") AS Expr14, [csl limite]*1000 AS Expr15, [RC MENSAJE].[POLICY 50]

FROM [RC MENSAJE], (DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS].COBERTURA)=50) AND ((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS].COMP)="QUALITAS"));
```

###### `RC RENEW X POLIZA` (Select)

```sql
SELECT [TABLA AUTOS].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[CALLE Y NO], [PERSONAS]*1000 AS Expr2, [EXPR2]*2 AS Expr3, [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS].COBERTURA, IIf([COBERTURA]=365,"ONE YEAR","(" & [COBERTURA] & ")" & " " & "MULTIPLE ENTRY") AS Expr1, [TABLA AUTOS].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS].COMP, [TABLA AUTOS].AGENT, [TABLA AUTOS].RENOVACION, [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [TABLA AUTOS].[MARCA 2], [TABLA AUTOS].[MODELO 2], [TABLA AUTOS].[CARROCERIA 2], [TABLA AUTOS].[MOTOR 2], [TABLA AUTOS].[MARCA 3], [TABLA AUTOS].[MODELO 3], [TABLA AUTOS].[CARROCERIA 3], [TABLA AUTOS].[MOTOR 3], DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000 AS Expr7, [EXPR7]*5 AS Expr8

FROM [RC MENSAJE], (DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]) INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM DE POLIZA]));
```

###### `RC T POLIZA X POLIZA` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], IIf([P ANTERIOR]>0,"R- " & [P ANTERIOR]) AS Expr14, [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].[NOMBRE ASEG], [TABLA AUTOS].[MARCA 1], [TABLA AUTOS].[MODELO 1], [TABLA AUTOS].[CARROCERIA 1], [TABLA AUTOS].[MOTOR 1], [PROPIEDADES]*1000 AS Expr9, [PERSONAS]*1000 AS Expr10, [PERSONAS]*2*1000 AS Expr11, [TABLA AUTOS].COBERTURA, [TABLA AUTOS].PROPIEDADES, [PERSONAS]*2 AS Expr4, [TABLA AUTOS].[PRIMA NETA], [TABLA AUTOS].[D POLIZA], ([PRIMA NETA]+[D POLIZA])*[iva] AS expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS EXPR2, [TABLA AUTOS].[F EMISION], DatePart("m",[F EMISION]) AS Expr3, DatePart("d",[F EMISION]) AS Expr5, DatePart("yyyy",[F EMISION]) AS Expr6, [CLAVE] & " " & [AGENT] AS Expr7, [TABLA AUTOS].HORA, [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, IIf([MARCA 2]>"",1,0) AS EXPR24, IIf([COBERTURA]=30,1,0) AS Expr17, IIf([COBERTURA]=40,1,0) AS Expr18, IIf([COBERTURA]=50,1,0) AS Expr19, IIf([COBERTURA]=60,1,0) AS Expr20, IIf([COBERTURA]=70,1,0) AS Expr21, IIf([COBERTURA]=80,1,0) AS Expr22, ([EXPR17]+[EXPR18]+[EXPR19]+[EXPR20]+[EXPR21]+[EXPR22]) AS Expr23, [EXPR23]+[EXPR24] AS Expr25, [GASTOS MEDICO]*1000 AS Expr8, [EXPR8]*5 AS Expr12, [TABLA AUTOS].[SERV CIA], IIf([MARCA 2]>" ","** ONE CAR AT ONE TIME IN MEXICO **") AS Expr13

FROM IMPUESTOS, DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]))

ORDER BY [TABLA AUTOS].[NO POLIZA];
```

###### `RC VIG NOW` (Update)

```sql
INSERT INTO [vigenta casa y auto unicos] ( num )

SELECT [TABLA AUTOS].[NUMER ID]

FROM [TABLA AUTOS]

WHERE ((([TABLA AUTOS].HASTA)>Now()));
```

###### `RCEDOCUENT2XPOL` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].CONTR, [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*[iva] AS Expr2, [EXPR1]+[EXPR2] AS Expr3, [TABLA AUTOS].COMP, [TABLA AUTOS].HASTA, [TABLA AUTOS].[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, [MODELO 1] & " " & [MARCA 1] AS Expr5, [MODELO 2] & " " & [MARCA 2] AS Expr6, [MODELO 3] & " " & [MARCA 3] AS Expr7, [TABLA AUTOS].DESDE, [TABLA AUTOS].COBERTURA, [RC MENSAJE].[POLICY 365]

FROM [TABLA AUTOS], IMPUESTOS, [RC MENSAJE]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND (([TABLA AUTOS].COBERTURA)=365));
```

###### `RCEDOCUENT2XPOL30` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].CONTR, [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*[iva] AS Expr2, [EXPR1]+[EXPR2] AS Expr3, [TABLA AUTOS].COMP, [TABLA AUTOS].HASTA, [TABLA AUTOS].[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, [MODELO 1] & " " & [MARCA 1] AS Expr5, [MODELO 2] & " " & [MARCA 2] AS Expr6, [MODELO 3] & " " & [MARCA 3] AS Expr7, [TABLA AUTOS].DESDE, [TABLA AUTOS].COBERTURA, [RC MENSAJE].[POLICY 30]

FROM [TABLA AUTOS], IMPUESTOS, [RC MENSAJE]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND (([TABLA AUTOS].COBERTURA)=30));
```

###### `RCEDOCUENT2XPOL40` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].CONTR, [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*[iva] AS Expr2, [EXPR1]+[EXPR2] AS Expr3, [TABLA AUTOS].COMP, [TABLA AUTOS].HASTA, [TABLA AUTOS].[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, [MODELO 1] & " " & [MARCA 1] AS Expr5, [MODELO 2] & " " & [MARCA 2] AS Expr6, [MODELO 3] & " " & [MARCA 3] AS Expr7, [TABLA AUTOS].DESDE, [TABLA AUTOS].COBERTURA, [RC MENSAJE].[POLICY 40]

FROM [TABLA AUTOS], IMPUESTOS, [RC MENSAJE]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND (([TABLA AUTOS].COBERTURA)=40));
```

###### `RCEDOCUENT2XPOL50` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].CONTR, [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*[iva] AS Expr2, [EXPR1]+[EXPR2] AS Expr3, [TABLA AUTOS].COMP, [TABLA AUTOS].HASTA, [TABLA AUTOS].[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, [MODELO 1] & " " & [MARCA 1] AS Expr5, [MODELO 2] & " " & [MARCA 2] AS Expr6, [MODELO 3] & " " & [MARCA 3] AS Expr7, [TABLA AUTOS].DESDE, [TABLA AUTOS].COBERTURA, [RC MENSAJE].[POLICY 50]

FROM [TABLA AUTOS], IMPUESTOS, [RC MENSAJE]

WHERE ((([TABLA AUTOS].[NO POLIZA])=[TECLEE NUM DE POLIZA A IMPRIMIR]) AND (([TABLA AUTOS].COBERTURA)=50));
```

###### `RCEDOCUENTXPOL` (Select)

```sql
SELECT [TABLA AUTOS].[NO POLIZA], [TABLA AUTOS].[NUMER ID]

FROM [TABLA AUTOS];
```

###### `RCR RENEW X MES` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS RC R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS RC R].LETPOL, [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].[CALLE Y NO], [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS RC R].COBERTURA, IIf([COBERTURA]=365,"SOLO RESPONSABILIDAD CIVIL, COBERTURA (UN AÑO)","SOLO RESPONSABILIDAD CIVIL, COBERTURA (" & [COBERTURA] & ") DIAS " & "MULTIPLES ENTRADAS") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS RC R].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].AGENT, [TABLA AUTOS RC R].RENOVACION, [RC R MENS].[RC MEN1], [RC R MENS].[RC MEN2], [RC R MENS].[RC MEN3], [TABLA AUTOS RC R].MARCA, [TABLA AUTOS RC R].MODELO, [TABLA AUTOS RC R].CARROCERIA, [TABLA AUTOS RC R].MOTOR, DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS RC R].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000/5 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS RC R].[A JURIDICA], [TABLA AUTOS RC R].[A CAMINO]

FROM [RC R MENS], (DATGRAL INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]) INNER JOIN [TABLA AUTOS RC R] ON DATGRAL.[NUM id] = [TABLA AUTOS RC R].[NUMER ID]

WHERE (((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]));
```

###### `RCR RENEW X MES ATLAS 2013` (Select)

```sql
SELECT DATGRAL.[NUM id], [TABLA AUTOS RC R].[NUMER ID], DATGRAL.NOMBRE, [TABLA AUTOS RC R].LETPOL, [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].[CALLE Y NO], [PROPIEDADES]*1000 AS Expr4, [TABLA AUTOS RC R].COBERTURA, IIf([COBERTURA]=365,"SOLO RESPONSABILIDAD CIVIL, COBERTURA (UN AÑO)","SOLO RESPONSABILIDAD CIVIL, COBERTURA (" & [COBERTURA] & ") DIAS " & "MULTIPLES ENTRADAS") AS Expr1, IIf([COBERTURA]=365,15,10) AS Expr9, [TABLA AUTOS RC R].HASTA, DatePart("m",[HASTA]) AS Expr5, DatePart("yyyy",[HASTA]) AS Expr6, [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].AGENT, [TABLA AUTOS RC R].RENOVACION, [RC R MENS].[RC MEN1], [RC R MENS].[RC MEN2], [RC R MENS].[RC MEN3], [TABLA AUTOS RC R].MARCA, [TABLA AUTOS RC R].MODELO, [TABLA AUTOS RC R].CARROCERIA, [TABLA AUTOS RC R].MOTOR, DATGRAL.[NUM UTIL], IIf([VIGENT CASA].[EXPR2]=0,"X") AS Expr10, [TABLA AUTOS RC R].[SERVICIO ADICIONAL], [GASTOS MEDICO]*1000/5 AS Expr7, [EXPR7]*5 AS Expr8, [TABLA AUTOS RC R].[A JURIDICA], [TABLA AUTOS RC R].[A CAMINO]

FROM [RC R MENS], (DATGRAL INNER JOIN [VIGENT CASA] ON DATGRAL.[NUM id] = [VIGENT CASA].[NUM id]) INNER JOIN [TABLA AUTOS RC R] ON DATGRAL.[NUM id] = [TABLA AUTOS RC R].[NUMER ID]

WHERE (((DatePart("m",[HASTA]))=[TECLEE EL MES DE VENCIMIENTO 1 A 12]) AND ((DatePart("yyyy",[HASTA]))=[TECLEE EL AÑO DE VENCIMIENTO (2000)]) AND (([TABLA AUTOS RC R].COMP)="ATLAS, S.A."));
```

###### `RCREDOCUENT2XPOL` (Select)

```sql
SELECT [TABLA AUTOS RC R].[NO POLIZA], [TABLA AUTOS RC R].[NUMER ID], [PRIMA NETA]+[D POLIZA] AS Expr1, [EXPR1]*[iva] AS Expr2, [EXPR1]+[EXPR2]+[recargo] AS Expr3, [TABLA AUTOS RC R].COMP, [TABLA AUTOS RC R].HASTA, [TABLA AUTOS RC R].[GASTOS MEDICO], IIf([GASTOS MEDICO]=0," ONLY"," AND MEDICAL EXPENSES") AS Expr4, [TABLA AUTOS RC R].DESDE, IMPUESTOS.IVA, [TABLA AUTOS RC R].[SERVICIO ADICIONAL]

FROM IMPUESTOS, [TABLA AUTOS RC R]

WHERE ((([TABLA AUTOS RC R].[NO POLIZA])=[TECLEE POLIZA A IMPRIMIR]));
```

###### `SIN DATOS LIC` (Select)

```sql
SELECT LICENCIAS.[NO POLIZA], LICENCIAS.COMP, LICENCIAS.AGENT, LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.[FORMA  PAGO], LICENCIAS.MONEDA, LICENCIAS.[FECHA  PAGO], LICENCIAS.[NOMBRE ASEG 1], LICENCIAS.PROPIEDADES, LICENCIAS.PERSONAS, LICENCIAS.CLAVE, LICENCIAS.HORA, LICENCIAS.ACCIDENTE

FROM LICENCIAS

WHERE (((LICENCIAS.COMP) Is Null)) OR (((LICENCIAS.AGENT) Is Null)) OR (((LICENCIAS.DESDE) Is Null)) OR (((LICENCIAS.HASTA) Is Null)) OR (((LICENCIAS.[FORMA  PAGO]) Is Null)) OR (((LICENCIAS.MONEDA) Is Null)) OR (((LICENCIAS.[FECHA  PAGO]) Is Null)) OR (((LICENCIAS.[NOMBRE ASEG 1]) Is Null)) OR (((LICENCIAS.PROPIEDADES)=0)) OR (((LICENCIAS.PERSONAS)=0)) OR (((LICENCIAS.CLAVE) Is Null)) OR (((LICENCIAS.HORA) Is Null)) OR (((LICENCIAS.ACCIDENTE) Is Null));
```

###### `SINI MF` (Select)

```sql
SELECT DATOS.IDNUM, MULT.LETPOL, DATGRAL.[NUM id], DATGRAL.NOMBRE, MULT.[NUM id], MULT.[NO POLIZA], MULT.COMP, MULT.DESDE, MULT.HASTA, MULT.[NUM LIQUIDACION], DATOS.TIPO, DATOS.FORMA, DATOS.[COPIA DE POLIZA], DATOS.[DAÑOS VECINOS]

FROM (DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]) INNER JOIN DATOS ON DATGRAL.[NUM id] = DATOS.IDNUM;
```

###### `SINIESTROS` (Select)

```sql
SELECT DATOS.POLIZA, DATOS.IDCLIENTE, DATGRAL.NOMBRE, DATGRAL.TELUSA, DATGRAL.FAX, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.EmailAddress, DATOS.TIPO, DATOS.[FECHA SINIESTRO], DATOS.DESCRIPCION, DATOS.[FECHA REPORTADO], DATOS.FORMA, DATOS.[COPIA DE POLIZA], DATOS.[POLIZA LIQUIDADA], DATOS.[DAÑOS VECINOS], DATOS.[FECHA LIQUIDACION], DATOS.COMPAÑIA, DATOS.DESDE, DATOS.HASTA, DATOS.[COMENTARIOS PROCEDE], DATOS.PROCEDE, DATOS.AJUSTADOR, DATOS.[FECHA T AJUSTADOR], DATOS.[FECHA V AJUSTADOR], DATOS.[FECHA CONVENIO], DATOS.[CARTA RECLAMACION], DATOS.[CERTIFICADO M P], DATOS.[NUM M P], DATOS.[FECHA M P], DATOS.[CERT BOMBEROS], DATOS.[NUM BOMBEROS], DATOS.[FECHA BOMBEROS], DATOS.[CERT POLICIA FED], DATOS.[NUM POLICIA FED], DATOS.[FECHA POLICIA FED], DATOS.FINIQUITO, DATOS.[NUM FINIQUITO], DATOS.[FECHA FINIQUITO], DATOS.LESIONADOS, DATOS.[DOCUMETO(S) ADIC], DATOS.[DECLARACION ACCIDENTE], DATOS.[CANTIDAD RECLAMADA], DATOS.[CANTIDAD PACTADA], DATOS.[FECHA CHEQUE], DATOS.RESOLUCION, DATOS.CONCLUIDO, DATOS.[ENVIO CHEQUE], DATOS.[NUM CHEQUE], DATOS.[FECHA ACEPTACION], DATOS.[FECHA REEMBOLSO], DATOS.[SERVICIO ADICONAL], DATOS.[COMENTARIOS PROCEDE], DATOS.[CANTIDAD PACTADA], DATOS.[SINIESTRO NUM], DATOS.[CIA AJUSTADOR], DATOS.[DOCS 1], DATOS.[DOCS 2]

FROM DATGRAL INNER JOIN DATOS ON DATGRAL.[NUM id] = DATOS.IDCLIENTE;
```

###### `TOTALLIC` (Select)

```sql
SELECT Count(LICENCIAS.[NO POLIZA]) AS LIC, Sum(LICENCIAS.[PRIMA NETA]) AS LICDLLS

FROM LICENCIAS

WHERE (((LICENCIAS.HASTA)>Now()));
```

###### `TOTALMCA2DLLS` (Select)

```sql
SELECT Count(MCA2.POLIZA) AS MCA2D, Sum(MCA2.PRIMA1) AS MCA2DLLS

FROM MCA2

WHERE (((MCA2.HASTA)>Now()))

GROUP BY MCA2.MONED

HAVING (((MCA2.MONED)="DOLARES"));
```

###### `TOTALMCA2PESOS` (Select)

```sql
SELECT Count(MCA2.POLIZA) AS MCA2P, Sum(MCA2.PRIMA1) AS MCA2MN

FROM MCA2

WHERE (((MCA2.HASTA)>Now()))

GROUP BY MCA2.MONED

HAVING (((MCA2.MONED)="PESOS"));
```

###### `TOTALMEMPR` (Select)

```sql
SELECT Count([M EMPR].[NO POLIZA]) AS EMPRESARIAL, Sum([P NETA]+[P NETA 2]) AS EMPRESADLLS

FROM [M EMPR]

WHERE ((([M EMPR].HASTA)>Now()));
```

###### `TOTALMULT` (Select)

```sql
SELECT Count(MULT.[NO POLIZA]) AS CASA, Sum([P NETA]+[P NETA 2]) AS CASADLLS

FROM MULT

WHERE (((MULT.HASTA)>Now()));
```

###### `TOTALRAMPDLLS` (Select)

```sql
SELECT Count([TABLA AUTOS AMPL R].[NO POLIZA]) AS RAMDLLS, Sum([TABLA AUTOS AMPL R].[PRIMA NETA]) AS [SumaDePRIMA NETA], Sum([TABLA AUTOS AMPL R].[PRIMA NETA2]) AS [SumaDePRIMA NETA2], Sum([prima neta]+[prima neta2]) AS RAMPLDLLS, [TABLA AUTOS AMPL R].MONEDA

FROM [TABLA AUTOS AMPL R]

WHERE ((([TABLA AUTOS AMPL R].HASTA)>Now()))

GROUP BY [TABLA AUTOS AMPL R].MONEDA

HAVING ((([TABLA AUTOS AMPL R].MONEDA)="DLLS"));
```

###### `TOTALRAMPLIA` (Select)

```sql
SELECT Count([TABLA AUTOS AMPL R].[NO POLIZA]) AS [CuentaDeNO POLIZA], Sum([TABLA AUTOS AMPL R].[PRIMA NETA]) AS [SumaDePRIMA NETA], Sum([TABLA AUTOS AMPL R].[PRIMA NETA2]) AS [SumaDePRIMA NETA2], Sum([prima neta]+[prima neta2]) AS Expr1, [TABLA AUTOS AMPL R].MONEDA

FROM [TABLA AUTOS AMPL R]

WHERE ((([TABLA AUTOS AMPL R].HASTA)>Now()))

GROUP BY [TABLA AUTOS AMPL R].MONEDA;
```

###### `TOTALRAMPLMX` (Select)

```sql
SELECT Count([TABLA AUTOS AMPL R].[NO POLIZA]) AS RAMPX, Sum([TABLA AUTOS AMPL R].[PRIMA NETA]) AS [SumaDePRIMA NETA], Sum([TABLA AUTOS AMPL R].[PRIMA NETA2]) AS [SumaDePRIMA NETA2], Sum([prima neta]+[prima neta2]) AS RAMX, [TABLA AUTOS AMPL R].MONEDA

FROM [TABLA AUTOS AMPL R]

WHERE ((([TABLA AUTOS AMPL R].HASTA)>Now()))

GROUP BY [TABLA AUTOS AMPL R].MONEDA

HAVING ((([TABLA AUTOS AMPL R].MONEDA)="PESOS"));
```

###### `TOTALRRCDLLS` (Select)

```sql
SELECT Count([TABLA AUTOS RC R].[NO POLIZA]) AS RRCDLLS, Sum([TABLA AUTOS RC R].[PRIMA NETA]) AS RRCDLL

FROM [TABLA AUTOS RC R]

WHERE ((([TABLA AUTOS RC R].HASTA)>Now()))

GROUP BY [TABLA AUTOS RC R].MONEDA

HAVING ((([TABLA AUTOS RC R].MONEDA)="DOLARES"));
```

###### `TOTALRRCMX` (Select)

```sql
SELECT Count([TABLA AUTOS RC R].[NO POLIZA]) AS RRCMX, Sum([TABLA AUTOS RC R].[PRIMA NETA]) AS RRCMN

FROM [TABLA AUTOS RC R]

WHERE ((([TABLA AUTOS RC R].HASTA)>Now()))

GROUP BY [TABLA AUTOS RC R].MONEDA

HAVING ((([TABLA AUTOS RC R].MONEDA)="PESOS"));
```

###### `TOTALTCA` (Select)

```sql
SELECT Count([TABLA AUTOS AMPL].[NO POLIZA]) AS TCA, Sum([TABLA AUTOS AMPL].[PRIMA NETA]) AS TCADLLS

FROM [TABLA AUTOS AMPL];
```

###### `TOTALTOTAL` (Select)

```sql
SELECT TOTALTCA.TCA, TOTALTCA.TCADLLS, TOTALTRC.TRC, TOTALTRC.TRCDLLS, TOTALLIC.LIC, TOTALLIC.LICDLLS, TOTALMEMPR.EMPRESARIAL, TOTALMEMPR.EMPRESADLLS, TOTALMULT.CASA, TOTALMULT.CASADLLS, TOTALMCA2DLLS.MCA2D, TOTALMCA2DLLS.MCA2DLLS, TOTALMCA2PESOS.MCA2P, TOTALMCA2PESOS.MCA2MN, TOTALRAMPDLLS.RAMDLLS, TOTALRAMPDLLS.RAMPLDLLS, TOTALRAMPLMX.RAMPX, TOTALRAMPLMX.RAMX, TOTALRRCDLLS.RRCDLLS, TOTALRRCDLLS.RRCDLL, TOTALRRCMX.RRCMX, TOTALRRCMX.RRCMN

FROM TOTALTCA, TOTALTRC, TOTALLIC, TOTALMEMPR, TOTALMULT, TOTALMCA2DLLS, TOTALMCA2PESOS, TOTALRAMPDLLS, TOTALRAMPLMX, TOTALRRCDLLS, TOTALRRCMX;
```

###### `TOTALTRC` (Select)

```sql
SELECT Count([TABLA AUTOS].[NO POLIZA]) AS TRC, Sum([TABLA AUTOS].[PRIMA NETA]) AS TRCDLLS

FROM [TABLA AUTOS]

WHERE ((([TABLA AUTOS].HASTA)>Now()));
```

###### `TOTTALLICSUMA` (Select)

```sql
SELECT Count(TOTALLIC.[NO POLIZA]) AS LICENCIAS, Sum(TOTALLIC.[PRIMA NETA]) AS [PRIMANETA LIC]

FROM TOTALLIC;
```

###### `VER DATOS LIQUIDA MCA2` (Select)

```sql
SELECT [TABLA LIQUIDA MCA2]![LET POL] & "-" & [TABLA LIQUIDA MCA2]![NO POLIZA] AS Expr1, [TABLA LIQUIDA MCA2].CONTROL, [TABLA LIQUIDA MCA2].[PRIMA NETA], [TABLA LIQUIDA MCA2].[D POLIZA], [TABLA LIQUIDA MCA2].MP, [TABLA LIQUIDA MCA2].IVA, [TABLA LIQUIDA MCA2].TOTAL, [TABLA LIQUIDA MCA2].ASEGURADO, [TABLA LIQUIDA MCA2].COMPA, [TABLA LIQUIDA MCA2].AGENTE, [TABLA LIQUIDA MCA2].CLAVE, GENERICO.RFC, [TABLA LIQUIDA MCA2].MENSAJE

FROM [TABLA LIQUIDA MCA2] INNER JOIN GENERICO ON [TABLA LIQUIDA MCA2].AGENTE = GENERICO.AGENT

ORDER BY [TABLA LIQUIDA MCA2]![LET POL] & "-" & [TABLA LIQUIDA MCA2]![NO POLIZA];
```

###### `VER DATOS LIQUIDA MCA2FORM` (Select)

```sql
SELECT [TABLA LIQUIDA MCA2]![LET POL] & "-" & [TABLA LIQUIDA MCA2]![NO POLIZA] AS Expr1, [TABLA LIQUIDA MCA2].CONTROL, [TABLA LIQUIDA MCA2].[PRIMA NETA], [TABLA LIQUIDA MCA2].MP, [TABLA LIQUIDA MCA2].[D POLIZA], [TABLA LIQUIDA MCA2].IVA, [TABLA LIQUIDA MCA2].TOTAL, [TABLA LIQUIDA MCA2].ASEGURADO, [TABLA LIQUIDA MCA2].COMPA, [TABLA LIQUIDA MCA2].AGENTE, [TABLA LIQUIDA MCA2].CLAVE, [TABLA LIQUIDA MCA2].MENSAJE

FROM [TABLA LIQUIDA MCA2]

ORDER BY [TABLA LIQUIDA MCA2]![LET POL] & "-" & [TABLA LIQUIDA MCA2]![NO POLIZA];
```

###### `VER DATOS LIQUIDA MF` (Select)

```sql
SELECT [TABLA LIQUIDA MF]![LET POL] & "-" & [TABLA LIQUIDA MF]![NO POLIZA] & "- " & [PAGOS] & "-" & [TABLA LIQUIDA MF]![FOLIO] AS Expr1, [TABLA LIQUIDA MF].DESDE, [TABLA LIQUIDA MF].CONTROL, [TABLA LIQUIDA MF].[FORMA PAGO], [TABLA LIQUIDA MF].[PRIMA NETA], [TABLA LIQUIDA MF].[D POLIZA], [TABLA LIQUIDA MF].IVA, [TABLA LIQUIDA MF].TOTAL, [TABLA LIQUIDA MF].ASEGURADO, [TABLA LIQUIDA MF].COMPA, [TABLA LIQUIDA MF].AGENTE, GENERICO.CLAVE, [TABLA LIQUIDA MF].LIQUIDA1, [TABLA LIQUIDA MF].LIQUIDA2, [TABLA LIQUIDA MF].com, GENERICO.RFC

FROM [TABLA LIQUIDA MF] INNER JOIN GENERICO ON ([TABLA LIQUIDA MF].COMPA = GENERICO.COMP) AND ([TABLA LIQUIDA MF].AGENTE = GENERICO.AGENT)

ORDER BY [TABLA LIQUIDA MF]![LET POL] & "-" & [TABLA LIQUIDA MF]![NO POLIZA] & "- " & [PAGOS] & "-" & [TABLA LIQUIDA MF]![FOLIO];
```

###### `VER DATOS LIQUIDA MFFORM` (Select)

```sql
SELECT [TABLA LIQUIDA MF]![LET POL] & "-" & [TABLA LIQUIDA MF]![NO POLIZA] & " " & [PAGOS] AS Expr1, [TABLA LIQUIDA MF].DESDE, [TABLA LIQUIDA MF].CONTROL, [TABLA LIQUIDA MF].[FORMA PAGO], [TABLA LIQUIDA MF].[PRIMA NETA], [TABLA LIQUIDA MF].[D POLIZA], [TABLA LIQUIDA MF].IVA, [TABLA LIQUIDA MF].TOTAL, [TABLA LIQUIDA MF].ASEGURADO, [TABLA LIQUIDA MF].COMPA, [TABLA LIQUIDA MF].AGENTE, [TABLA LIQUIDA MF].LIQUIDA1, [TABLA LIQUIDA MF].LIQUIDA2, [TABLA LIQUIDA MF].com

FROM [TABLA LIQUIDA MF]

ORDER BY [TABLA LIQUIDA MF]![LET POL] & "-" & [TABLA LIQUIDA MF]![NO POLIZA] & " " & [PAGOS];
```

###### `VER DATOS LIQUIDA RES` (Select)

```sql
SELECT [TABLA LIQUIDA RES]![LET POL] & "-" & [TABLA LIQUIDA RES]![NO POLIZA] & " " & [pagos] AS Expr1, [TABLA LIQUIDA RES].CONTROL, [TABLA LIQUIDA RES].[PRIMA NETA], [TABLA LIQUIDA RES].[D POLIZA], [TABLA LIQUIDA RES].IVA, [TABLA LIQUIDA RES].TOTAL, [TABLA LIQUIDA RES].ASEGURADO, [TABLA LIQUIDA RES].COMPA, [TABLA LIQUIDA RES].AGENTE, GENERICO.CLAVE, GENERICO.RFC, [TABLA LIQUIDA RES].com

FROM [TABLA LIQUIDA RES] INNER JOIN GENERICO ON ([TABLA LIQUIDA RES].COMPA = GENERICO.COMP) AND ([TABLA LIQUIDA RES].AGENTE = GENERICO.AGENT)

ORDER BY [TABLA LIQUIDA RES]![LET POL] & "-" & [TABLA LIQUIDA RES]![NO POLIZA] & " " & [pagos];
```

###### `VER DATOS LIQUIDA RESFORM` (Select)

```sql
SELECT [TABLA LIQUIDA RES]![LET POL] & "-" & [TABLA LIQUIDA RES]![NO POLIZA] & " " & [PAGOS] AS Expr1, [TABLA LIQUIDA RES].CONTROL, [TABLA LIQUIDA RES].[PRIMA NETA], [TABLA LIQUIDA RES].[D POLIZA], [TABLA LIQUIDA RES].IVA, [TABLA LIQUIDA RES].TOTAL, [TABLA LIQUIDA RES].ASEGURADO, [TABLA LIQUIDA RES].COMPA, [TABLA LIQUIDA RES].AGENTE, [TABLA LIQUIDA RES].CLAVE

FROM [TABLA LIQUIDA RES]

ORDER BY [TABLA LIQUIDA RES]![LET POL] & "-" & [TABLA LIQUIDA RES]![NO POLIZA] & " " & [PAGOS];
```

###### `VER DATOS LIQUIDA TUR` (Select)

```sql
SELECT [TABLA LIQUIDA TUR]![LET POL] & "-" & [TABLA LIQUIDA TUR]![NO POLIZA] & [ENDOSO] AS Expr1, [TABLA LIQUIDA TUR].CONTROL, [TABLA LIQUIDA TUR].[PRIMA NETA], [TABLA LIQUIDA TUR].[D POLIZA], [TABLA LIQUIDA TUR].IVA, [TABLA LIQUIDA TUR].TOTAL, [TABLA LIQUIDA TUR].ASEGURADO, [TABLA LIQUIDA TUR].COMPA, [TABLA LIQUIDA TUR].AGENTE, GENERICO.CLAVE, GENERICO.RFC, [TABLA LIQUIDA TUR].[NO POLIZA], [TABLA LIQUIDA TUR].[F EMISION]

FROM [TABLA LIQUIDA TUR] INNER JOIN GENERICO ON ([TABLA LIQUIDA TUR].COMPA = GENERICO.COMP) AND ([TABLA LIQUIDA TUR].AGENTE = GENERICO.AGENT)

ORDER BY [TABLA LIQUIDA TUR]![LET POL] & "-" & [TABLA LIQUIDA TUR]![NO POLIZA] & [ENDOSO];
```

###### `VER DATOS LIQUIDA TURFORM` (Select)

```sql
SELECT [TABLA LIQUIDA TUR]![LET POL] & "-" & [TABLA LIQUIDA TUR]![NO POLIZA] & [ENDOSO] AS Expr1, [TABLA LIQUIDA TUR].CONTROL, [TABLA LIQUIDA TUR].[PRIMA NETA], [TABLA LIQUIDA TUR].[D POLIZA], [TABLA LIQUIDA TUR].IVA, [TABLA LIQUIDA TUR].TOTAL, [TABLA LIQUIDA TUR].ASEGURADO, [TABLA LIQUIDA TUR].COMPA, [TABLA LIQUIDA TUR].AGENTE, [TABLA LIQUIDA TUR].CLAVE

FROM [TABLA LIQUIDA TUR]

ORDER BY [TABLA LIQUIDA TUR]![LET POL] & "-" & [TABLA LIQUIDA TUR]![NO POLIZA] & [ENDOSO];
```

###### `VIG IN` (Update)

```sql
INSERT INTO EDOSEG ( NUMID, ASEGURADO, LETPOL, POLIZA, [COMP], [PRIMA NETA], IVA, [PRIMA TOTAL], COM, DESDE, HASTA, [FORMA  PAGO], [FECHA  PAGO], [FECHA PAGO 2], [F LIQUIDA1], [F LIQUIDA2] )

SELECT INCENDIO.[NUM id], DATGRAL.NOMBRE, INCENDIO.LETPOL, INCENDIO.[NO POLIZA], INCENDIO.COMP, [P NETA]+[P NETA 2] AS Expr1, ([EXPR1]+[RECARGO]+[RECARGO 2]+[D POL]+[D POL 2])*0.1 AS EXPR2, [EXPR1]+[RECARGO]+[RECARGO 2]+[D POL]+[D POL 2]+[Expr2] AS Expr3, INCENDIO.COM, INCENDIO.DESDE, INCENDIO.HASTA, INCENDIO.[FORMA  PAGO], INCENDIO.[FECHA  PAGO], INCENDIO.[FECHA PAGO 2], INCENDIO.[F LIQUIDA1], INCENDIO.[F LIQUIDA2]

FROM DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id];
```

###### `VIG MCA` (Update)

```sql
INSERT INTO EDOSEG ( NUMID, LETPOL, [PRIMA NETA], [D POLIZA], HASTA )

SELECT MCA.[NUMER ID], MCA.LETPOL, MCA.PRIMA1, MCA.[D POLIZA1], MCA.HASTA

FROM [FECHAS EDOSEG], MCA

WHERE (((MCA.HASTA) Between [fecha1] And [fecha2]));
```

###### `VIG MCA2` (Update)

```sql
INSERT INTO EDOSEG ( NUMID, ASEGURADO, LETPOL, POLIZA, [COMP], DESDE, HASTA, [FORMA  PAGO], [FECHA  PAGO], [PRIMA NETA], IVA, [PRIMA TOTAL] )

SELECT MCA2.[NUMER ID], DATGRAL.NOMBRE, MCA2.LETPOL, MCA2.POLIZA, MCA2.COMP, MCA2.DESDE, MCA2.HASTA, MCA2.[FORMA  PAGO], MCA2.[FECHA  PAGO], MCA2.PRIMA1, ([PRIMA1]+[D POLIZA1])*0.1 AS Expr2, [PRIMA1]+[D POLIZA1]+[EXPR2] AS Expr3

FROM DATGRAL INNER JOIN MCA2 ON DATGRAL.[NUM id] = MCA2.[NUMER ID];
```

###### `VIG ME` (Update)

```sql
INSERT INTO EDOSEG ( NUMID, LETPOL, POLIZA, ASEGURADO, [COMP], [PRIMA NETA], IVA, [PRIMA TOTAL], DESDE, HASTA, COM, [FORMA  PAGO], [FECHA  PAGO], [FECHA PAGO 2], [F LIQUIDA1], [F LIQUIDA2] )

SELECT [M EMPR].[NUM id], [M EMPR].LETPOL, [M EMPR].[NO POLIZA], DATGRAL.NOMBRE, [M EMPR].COMP, [P NETA]+[P NETA 2] AS Expr1, ([EXPR1]+[RECARGO]+[RECARGO 2]+[D POL]+[D POL 2])*0.1 AS Expr2, [EXPR1]+[RECARGO]+[RECARGO 2]+[D POL]+[D POL 2]+[EXPR2] AS Expr3, [M EMPR].DESDE, [M EMPR].HASTA, [M EMPR].COM, [M EMPR].[FORMA  PAGO], [M EMPR].[FECHA  PAGO], [M EMPR].[FECHA PAGO 2], [M EMPR].[F LIQUIDA1], [M EMPR].[F LIQUIDA2]

FROM DATGRAL INNER JOIN [M EMPR] ON DATGRAL.[NUM id] = [M EMPR].[NUM id];
```

###### `VIG MULT` (Update)

```sql
INSERT INTO EDOSEG ( NUMID, LETPOL, POLIZA, ASEGURADO, [PRIMA NETA], IVA, [PRIMA TOTAL], DESDE, HASTA, COM, [COMP], [FORMA  PAGO], [FECHA  PAGO], [FECHA PAGO 2], [F LIQUIDA1], [F LIQUIDA2] )

SELECT MULT.[NUM id], MULT.LETPOL, MULT.[NO POLIZA], DATGRAL.NOMBRE, [P NETA]+[P NETA 2] AS Expr1, ([EXPR1]+[RECARGO]+[RECARGO 2]+[D POL]+[D POL 2])*0.1 AS Expr2, [EXPR1]+[RECARGO]+[RECARGO 2]+[D POL]+[D POL 2]+[EXPR2] AS Expr3, MULT.DESDE, MULT.HASTA, MULT.COM, MULT.COMP, MULT.[FORMA  PAGO], MULT.[FECHA  PAGO], MULT.[FECHA PAGO 2], MULT.[F LIQUIDA1], MULT.[F LIQUIDA2]

FROM DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id];
```

###### `VIG TAMPL` (Update)

```sql
INSERT INTO EDOSEG ( NUMID, LETPOL, POLIZA, ASEGURADO, [PRIMA NETA], IVA, [PRIMA TOTAL], DESDE, HASTA, [COMP], COM, [FORMA  PAGO], [FECHA  PAGO], [F LIQUIDA1] )

SELECT [TABLA AUTOS AMPL].[NUMER ID], [TABLA AUTOS AMPL].LETPOL, [TABLA AUTOS AMPL].[NO POLIZA], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].[PRIMA NETA], ([PRIMA NETA]+[D POLIZA])*0.1 AS Expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS Expr2, [TABLA AUTOS AMPL].DESDE, [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].COMP, ([PRIMA NETA]+[D POLIZA])*0.4 AS Expr3, [TABLA AUTOS AMPL].[FORMA  PAGO], [TABLA AUTOS AMPL].[FECHA  PAGO], [TABLA AUTOS AMPL].[F LIQUIDA1]

FROM DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID];
```

###### `VIG TLIC` (Update)

```sql
INSERT INTO EDOSEG ( NUMID, LETPOL, POLIZA, ASEGURADO, [PRIMA NETA], IVA, [PRIMA TOTAL], DESDE, HASTA, [COMP], COM, [FORMA  PAGO], [FECHA  PAGO], [F LIQUIDA1] )

SELECT LICENCIAS.[NUMER ID], LICENCIAS.LETPOL, LICENCIAS.[NO POLIZA], DATGRAL.NOMBRE, LICENCIAS.[PRIMA NETA], ([PRIMA NETA]+[D POLIZA])*0.1 AS Expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS Expr2, LICENCIAS.DESDE, LICENCIAS.HASTA, LICENCIAS.COMP, ([PRIMA NETA]+[D POLIZA])*0.4 AS Expr3, LICENCIAS.[FORMA  PAGO], LICENCIAS.[FECHA  PAGO], LICENCIAS.[F LIQUIDA1]

FROM DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID];
```

###### `VIG TRC` (Update)

```sql
INSERT INTO EDOSEG ( NUMID, LETPOL, POLIZA, ASEGURADO, [PRIMA NETA], IVA, [PRIMA TOTAL], DESDE, HASTA, [COMP], COM, [FORMA  PAGO], [FECHA  PAGO], [F LIQUIDA1] )

SELECT [TABLA AUTOS].[NUMER ID], [TABLA AUTOS].LETPOL, [TABLA AUTOS].[NO POLIZA], DATGRAL.NOMBRE, [TABLA AUTOS].[PRIMA NETA], ([PRIMA NETA]+[D POLIZA])*0.1 AS Expr1, [PRIMA NETA]+[D POLIZA]+[EXPR1] AS Expr2, [TABLA AUTOS].DESDE, [TABLA AUTOS].HASTA, [TABLA AUTOS].COMP, ([PRIMA NETA]+[D POLIZA])*0.4 AS Expr3, [TABLA AUTOS].[FORMA  PAGO], [TABLA AUTOS].[FECHA  PAGO], [TABLA AUTOS].[F LIQUIDA1]

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID];
```

###### `VIGE INCEN` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, INCENDIO.[P NETA], INCENDIO.HASTA, INCENDIO.LIQUIDADA, DATGRAL.[NUM UTIL], [hasta]-Now() AS Expr1, IIf([expr1]>0,1,0) AS Expr2

FROM DATGRAL INNER JOIN INCENDIO ON DATGRAL.[NUM id] = INCENDIO.[NUM id]

WHERE (((INCENDIO.LIQUIDADA)=-1) AND (([hasta]-Now())>0));
```

###### `VIGE TAMPL` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS AMPL].[PRIMA NETA], [TABLA AUTOS AMPL].HASTA, [TABLA AUTOS AMPL].LIQUIDADA, DATGRAL.[NUM UTIL], [hasta]-Now() AS Expr1, IIf([expr1]>0,1,0) AS Expr2

FROM DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

WHERE ((([TABLA AUTOS AMPL].LIQUIDADA)=-1) AND (([hasta]-Now())>0));
```

###### `VIGEN TRC` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, [TABLA AUTOS].[PRIMA NETA], [TABLA AUTOS].HASTA, [TABLA AUTOS].LIQUIDADA, DATGRAL.[NUM UTIL], [hasta]-Now() AS Expr1, IIf([expr1]>0,1,0) AS Expr2

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([TABLA AUTOS].LIQUIDADA)=-1) AND (([hasta]-Now())>0));
```

###### `VIGENT AUTO` (Select)

```sql
SELECT DISTINCT DATGRAL.[NUM id], [VIGENT LIC].[EXPR2]+[VIGENT TAMPL].[EXPR2]+[VIGENT TRC].[EXPR2] AS Expr3

FROM ((DATGRAL LEFT JOIN [VIGENT LIC] ON DATGRAL.[NUM id] = [VIGENT LIC].[NUM id]) LEFT JOIN [VIGENT TAMPL] ON DATGRAL.[NUM id] = [VIGENT TAMPL].[NUM id]) LEFT JOIN [VIGENT TRC] ON DATGRAL.[NUM id] = [VIGENT TRC].[NUM id];
```

###### `VIGENT CASA` (Select)

```sql
SELECT DISTINCT DATGRAL.[NUM id], [VIGENT MULT].Expr2

FROM DATGRAL LEFT JOIN [VIGENT MULT] ON DATGRAL.[NUM id] = [VIGENT MULT].[NUM id];
```

###### `VIGENT LIC` (Select)

```sql
SELECT DATGRAL.[NUM id], [hasta]-Now() AS Expr1, IIf([expr1]>0,1,0) AS Expr2

FROM DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE ((([hasta]-Now())>0));
```

###### `VIGENT MULT` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.[NUM UTIL], DATGRAL.NOMBRE, MULT.HASTA, MULT.[P NETA], MULT.LIQUIDADA, [hasta]-Now() AS Expr1, IIf([expr1]>0,1,0) AS Expr2, [VIGENT AUTO].Expr3

FROM (DATGRAL INNER JOIN MULT ON DATGRAL.[NUM id] = MULT.[NUM id]) INNER JOIN [VIGENT AUTO] ON DATGRAL.[NUM id] = [VIGENT AUTO].[NUM id]

WHERE (((MULT.LIQUIDADA)=-1) AND (([hasta]-Now())>0));
```

###### `VIGENT TAMPL` (Select)

```sql
SELECT DATGRAL.[NUM id], [hasta]-Now() AS Expr1, IIf([expr1]>0,1,0) AS Expr2

FROM DATGRAL INNER JOIN [TABLA AUTOS AMPL] ON DATGRAL.[NUM id] = [TABLA AUTOS AMPL].[NUMER ID]

WHERE ((([hasta]-Now())>0));
```

###### `VIGENT TRC` (Select)

```sql
SELECT DATGRAL.[NUM id], [hasta]-Now() AS Expr1, IIf([expr1]>0,1,0) AS Expr2

FROM DATGRAL INNER JOIN [TABLA AUTOS] ON DATGRAL.[NUM id] = [TABLA AUTOS].[NUMER ID]

WHERE ((([hasta]-Now())>0));
```

###### `ZY BORRA DAT GRAL TODO` (Crosstab)

```sql
DELETE DATGRAL.[NUM id]

FROM DATGRAL;
```

###### `ZY BORRA INC MENS` (Crosstab)

```sql
DELETE [IN MENS].[MF MENSAJE 1]

FROM [IN MENS];
```

###### `ZY BORRA INC TODO` (Crosstab)

```sql
DELETE INCENDIO.[NUM id]

FROM INCENDIO;
```

###### `ZY BORRA M EMP TODO` (Crosstab)

```sql
DELETE [M EMPR].[NUM id]

FROM [M EMPR];
```

###### `ZY BORRA M FAM TODO` (Crosstab)

```sql
DELETE MULT.[NUM id]

FROM MULT;
```

###### `ZY BORRA MCA MENS` (Crosstab)

```sql
DELETE [MCA MENS].[MF MENSAJE 1]

FROM [MCA MENS];
```

###### `ZY BORRA MCA TODO` (Crosstab)

```sql
DELETE MCA.[NUMER ID]

FROM MCA;
```

###### `ZY BORRA MCA TODO2` (Crosstab)

```sql
DELETE MCA2.[NUMER ID]

FROM MCA2;
```

###### `ZY BORRA MCA2 MENS` (Crosstab)

```sql
DELETE [MCA2 MENS].[MF MENSAJE 1]

FROM [MCA2 MENS];
```

###### `ZY BORRA ME MENS` (Crosstab)

```sql
DELETE [ME MENS].[MF MENSAJE 1]

FROM [ME MENS];
```

###### `ZY BORRA MF MENS` (Crosstab)

```sql
DELETE [MF MENS].[MF MENSAJE 1]

FROM [MF MENS];
```

###### `ZY BORRA R COB AMPL TODO` (Crosstab)

```sql
DELETE [TABLA AUTOS AMPL R].[NUMER ID]

FROM [TABLA AUTOS AMPL R];
```

###### `ZY BORRA R COB LIMI TODO` (Crosstab)

```sql
DELETE [TABLA AUTOS LIMIT R].[NUMER ID]

FROM [TABLA AUTOS LIMIT R];
```

###### `ZY BORRA R RC TODO` (Crosstab)

```sql
DELETE [TABLA AUTOS RC R].[NUMER ID]

FROM [TABLA AUTOS RC R];
```

###### `ZY BORRA T AMPL MENS` (Crosstab)

```sql
DELETE [AMPL MENS].[MF MENSAJE 1]

FROM [AMPL MENS];
```

###### `ZY BORRA T COB AMPL TODO` (Crosstab)

```sql
DELETE [TABLA AUTOS AMPL].[NUMER ID]

FROM [TABLA AUTOS AMPL];
```

###### `ZY BORRA T LIC MENS` (Crosstab)

```sql
DELETE [LIC MENS].[LIC  MENSAJE 1]

FROM [LIC MENS];
```

###### `ZY BORRA T LIC TODO` (Crosstab)

```sql
DELETE LICENCIAS.[NUMER ID]

FROM LICENCIAS;
```

###### `ZY BORRA T LIM TODO` (Crosstab)

```sql
DELETE [TABLA AUTOS LIMIT].[NUMER ID]

FROM [TABLA AUTOS LIMIT];
```

###### `ZY BORRA T RC MENS` (Crosstab)

```sql
DELETE [RC MENSAJE].[MF MENSAJE 1]

FROM [RC MENSAJE];
```

###### `ZY BORRA T RC TODO` (Crosstab)

```sql
DELETE [TABLA AUTOS].[NUMER ID]

FROM [TABLA AUTOS];
```

###### `alfabet con tit` (Select)

```sql
SELECT *

FROM ALFABET, TIT;
```

###### `ap trans mens ampl` (Update)

```sql
INSERT INTO [AMPL MENS] ( [AM MENSAJE 1], [AM MENS2], [AM MENS3] ) IN 'c:\seguros\segurosto.mdb'

SELECT [AMPL MENS].[AM MENSAJE 1], [AMPL MENS].[AM MENS2], [AMPL MENS].[AM MENS3], *

FROM [AMPL MENS]

WITH OWNERACCESS OPTION;
```

###### `ap trans mens inc` (Update)

```sql
INSERT INTO [IN MENS] ( [MF MENSAJE 1] ) IN 'c:\seguros\segurosto.mdb'

SELECT [IN MENS].[MF MENSAJE 1], *

FROM [IN MENS]

WITH OWNERACCESS OPTION;
```

###### `ap trans mens lic` (Update)

```sql
INSERT INTO [LIC MENS] ( [LIC  MENSAJE 1], [LIC MENS2], [LIC MENS3] ) IN 'c:\seguros\segurosto.mdb'

SELECT [LIC MENS].[LIC  MENSAJE 1], [LIC MENS].[LIC MENS2], [LIC MENS].[LIC MENS3], *

FROM [LIC MENS]

WITH OWNERACCESS OPTION;
```

###### `ap trans mens mca2` (Update)

```sql
INSERT INTO [MCA2 MENS] ( [MCA2 MENSAJE 1], MCA2MENS2, MCA2MENS3 ) IN 'c:\seguros\segurosto.mdb'

SELECT [MCA2 MENS].[MCA2 MENSAJE 1], [MCA2 MENS].MCA2MENS2, [MCA2 MENS].MCA2MENS3, *

FROM [MCA2 MENS]

WITH OWNERACCESS OPTION;
```

###### `ap trans mens me` (Update)

```sql
INSERT INTO [ME MENS] ( [MF MENSAJE 1] ) IN 'c:\seguros\segurosto.mdb'

SELECT [ME MENS].[MF MENSAJE 1], *

FROM [ME MENS]

WITH OWNERACCESS OPTION;
```

###### `ap trans mens mf` (Update)

```sql
INSERT INTO [MF MENS] ( [MF MENSAJE 1], [MF MENS2], [MF MENS3] ) IN 'c:\seguros\segurosto.mdb'

SELECT [MF MENS].[MF MENSAJE 1], [MF MENS].[MF MENS2], [MF MENS].[MF MENS3], *

FROM [MF MENS]

WITH OWNERACCESS OPTION;
```

###### `ap trans mens rc` (Update)

```sql
INSERT INTO [RC MENSAJE] ( [RC MEN1], [RC MEN2], [RC MEN3] ) IN 'c:\seguros\segurosto.mdb'

SELECT [RC MENSAJE].[RC MEN1], [RC MENSAJE].[RC MEN2], [RC MENSAJE].[RC MEN3], *

FROM [RC MENSAJE]

WITH OWNERACCESS OPTION;
```

###### `ap transfiere autos amplia` (Update)

```sql
INSERT INTO [TABLA AUTOS AMPL] ( [NUMER ID] ) IN 'c:\seguros\segurosto.mdb'

SELECT [TABLA AUTOS AMPL].[NUMER ID], *

FROM [TABLA AUTOS AMPL]

WITH OWNERACCESS OPTION;
```

###### `ap transfiere datgral` (Update)

```sql
INSERT INTO DATGRAL ( [NUM id], [NUM UTIL] ) IN 'c:\seguros\segurosto.mdb'

SELECT DATGRAL.[NUM id], DATGRAL.[NUM UTIL], *

FROM DATGRAL

WITH OWNERACCESS OPTION;
```

###### `ap transfiere incendio` (Update)

```sql
INSERT INTO INCENDIO ( [NUM id] ) IN 'c:\seguros\segurosto.mdb'

SELECT INCENDIO.[NUM id], *

FROM INCENDIO

WITH OWNERACCESS OPTION;
```

###### `ap transfiere licencias` (Update)

```sql
INSERT INTO licencias ( [NO POLIZA], [NUMER ID] ) IN 'c:\seguros\segurosto.mdb'

SELECT LICENCIAS.[NO POLIZA], LICENCIAS.[NUMER ID], *

FROM LICENCIAS

WITH OWNERACCESS OPTION;
```

###### `ap transfiere mca2` (Update)

```sql
INSERT INTO MCA2 ( [NUMER ID] ) IN 'c:\seguros\segurosto.mdb'

SELECT MCA2.[NUMER ID], *

FROM MCA2

WITH OWNERACCESS OPTION;
```

###### `ap transfiere mult` (Update)

```sql
INSERT INTO mult ( [NUM id] ) IN 'c:\seguros\segurosto.mdb'

SELECT MULT.[NUM id], *

FROM MULT

WITH OWNERACCESS OPTION;
```

###### `ap transfiere mult emp` (Update)

```sql
INSERT INTO [M EMPR] ( [NUM id] ) IN 'c:\seguros\segurosto.mdb'

SELECT [M EMPR].[NUM id], *

FROM [M EMPR]

WITH OWNERACCESS OPTION;
```

###### `ap transfiere r amplia` (Update)

```sql
INSERT INTO [TABLA AUTOS AMPL R] ( [NUMER ID] ) IN 'c:\seguros\segurosto.mdb'

SELECT [TABLA AUTOS AMPL R].[NUMER ID], *

FROM [TABLA AUTOS AMPL R]

WITH OWNERACCESS OPTION;
```

###### `ap transfiere r rc` (Update)

```sql
INSERT INTO [TABLA AUTOS] ( [NUMER ID] ) IN 'c:\seguros\segurosto.mdb'

SELECT [TABLA AUTOS RC R].[NUMER ID], *

FROM [TABLA AUTOS RC R]

WITH OWNERACCESS OPTION;
```

###### `ap transfiere tabla autos` (Update)

```sql
INSERT INTO [TABLA AUTOS] ( [NUMER ID] ) IN 'c:\seguros\segurosto.mdb'

SELECT [TABLA AUTOS].[NUMER ID], *

FROM [TABLA AUTOS]

WITH OWNERACCESS OPTION;
```

###### `ap transfiere tabla autos limit` (Update)

```sql
INSERT INTO [TABLA AUTOS LIMIT] ( [NUMER ID] ) IN 'c:\seguros\segurosto.mdb'

SELECT [TABLA AUTOS LIMIT].[NUMER ID], *

FROM [TABLA AUTOS LIMIT]

WITH OWNERACCESS OPTION;
```

###### `mail auto vig` (Select)

```sql
SELECT DATGRAL.[NUM id], [VIGENT AUTO].Expr3, DATGRAL.NOMBRE, DATGRAL.[DIRECCION 1], DATGRAL.[DIRECCION 2], DATGRAL.CIUDAD, DATGRAL.ESTADO, DATGRAL.CODIGO, DATGRAL.PAIS

FROM DATGRAL INNER JOIN [VIGENT AUTO] ON DATGRAL.[NUM id] = [VIGENT AUTO].[NUM id]

WHERE ((([VIGENT AUTO].Expr3)=1));
```

###### `vig lic` (Select)

```sql
SELECT DATGRAL.[NUM id], DATGRAL.NOMBRE, LICENCIAS.[PRIMA NETA], LICENCIAS.HASTA, LICENCIAS.LIQUIDADA, [hasta]-Now() AS Expr1, DATGRAL.[NUM UTIL], IIf([expr1]>0,1,0) AS Expr2

FROM DATGRAL INNER JOIN LICENCIAS ON DATGRAL.[NUM id] = LICENCIAS.[NUMER ID]

WHERE (((LICENCIAS.LIQUIDADA)=-1) AND (([hasta]-Now())>0));
```

### SEGUROS 16_be.mdb (backend)

##### Reports (0)

_none_

##### Forms (0)

_none_

##### Queries (0 total — 0 real, 0 hidden internal subqueries)

### SCOTHIA.mdb

##### Reports (3)

- `CH1`
- `INFORME`
- `INFORME1`

##### Forms (10)

- `ASIGNAR FECHAS`
- `CAPTURA INGRESOS`
- `CAPTURAR CHEQUE`
- `CAPTURAR EGRESOS`
- `EDITAR CHEQUE`
- `EDITAR TRANSITO`
- `INICIO`
- `NO BIEN`
- `SE IMPRIMIO BIEN ONO`
- `banco`

##### Queries (33 total — 23 real, 10 hidden internal subqueries)

_10 hidden `~sq_`-prefixed queries omitted — these are Access-generated internal subquery caches, not authored business logic._

###### `BALANCE ANT E AP` (Update)

```sql
INSERT INTO [INFORME BA] ( EGRESO, [fecha inicial], [fecha final] )

SELECT [BALANCE ANTERIOR E].SumaDeEGRESO, [BALANCE ANTERIOR E].[FECHA INICIAL], [BALANCE ANTERIOR E].[FECHA FINAL]

FROM [BALANCE ANTERIOR E];
```

###### `BALANCE ANT I AP` (Update)

```sql
INSERT INTO [INFORME BA] ( INGRESO, [fecha inicial], [fecha final] )

SELECT [BALANCE ANTERIOR I].SumaDeINGRESO, [BALANCE ANTERIOR I].[FECHA INICIAL], [BALANCE ANTERIOR I].[FECHA FINAL]

FROM [BALANCE ANTERIOR I];
```

###### `BALANCE ANTERIOR E` (Select)

```sql
SELECT FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL], [DATOS E].TIPO, Sum([DATOS E].EGRESO) AS SumaDeEGRESO

FROM FECHAIF, [DATOS E]

WHERE ((([DATOS E].FECHA)<[fecha inicial]))

GROUP BY FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL], [DATOS E].TIPO, [DATOS E].OPERADO

HAVING ((([DATOS E].OPERADO)=-1));
```

###### `BALANCE ANTERIOR I` (Select)

```sql
SELECT FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL], [DATOS I].TIPO, Sum([DATOS I].INGRESO) AS SumaDeINGRESO

FROM FECHAIF, [DATOS I]

WHERE ((([DATOS I].FECHA)<[fecha inicial]))

GROUP BY FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL], [DATOS I].TIPO, [DATOS I].OPERADO

HAVING ((([DATOS I].OPERADO)=-1));
```

###### `BORRA BAL ANT` (Crosstab)

```sql
DELETE [INFORME BA].TIPO

FROM [INFORME BA];
```

###### `BORRA INFORME` (Crosstab)

```sql
DELETE INFORME.TIPO

FROM INFORME;
```

###### `CH1` (Select)

```sql
SELECT [DATOS E].FECHA, [DATOS E].NUM, [DATOS E].CONCEPTO, [DATOS E].EGRESO, [DATOS E].NOTAS, [DATOS E].[CANTIDAD EN LETRA]

FROM [DATOS E]

WHERE ((([DATOS E].NUM)=[TECLEE NUM DE CHEQUE A IMPRIMIR]));
```

###### `CHCANCELADO` (Delete)

```sql
UPDATE [DATOS E] SET [DATOS E].CONCEPTO = "CANCELADO", [DATOS E].EGRESO = 0, [DATOS E].NOTAS = " ", [DATOS E].[CANTIDAD EN LETRA] = " ", [DATOS E].OPERADO = -1

WHERE ((([DATOS E].NUM)=[TECLEE NUM DE CHEQUE A CANCELAR]));
```

###### `EDITA TRANSITO` (Select)

```sql
SELECT DATOS.TIPO, DATOS.FECHA, DATOS.NUM, DATOS.CONCEPTO, DATOS.INGRESO, DATOS.EGRESO, DATOS.STATUS, DATOS.NOTAS

FROM DATOS

WHERE (((DATOS.STATUS)="TRANSITO"));
```

###### `INFORME BA AP` (Update)

```sql
INSERT INTO INFORME ( [fecha inicial], [fecha final], TIPO, INGRESO, FECHA )

SELECT [INFORME BA].[fecha inicial], [INFORME BA].[fecha final], [INFORME BA].TIPO, Sum([INGRESO]-[EGRESO]) AS Expr1, [FECHA INICIAL]-1 AS Expr2

FROM [INFORME BA]

GROUP BY [INFORME BA].[fecha inicial], [INFORME BA].[fecha final], [INFORME BA].TIPO;
```

###### `INFORME1` (Select)

```sql
SELECT INFORME.TIPO, INFORME.CONCEPTO, Sum(INFORME.INGRESO) AS SumaDeINGRESO, Sum(INFORME.EGRESO) AS SumaDeEGRESO, INFORME.[fecha inicial], INFORME.[fecha final]

FROM INFORME

GROUP BY INFORME.TIPO, INFORME.CONCEPTO, INFORME.[fecha inicial], INFORME.[fecha final];
```

###### `MES E` (Select)

```sql
SELECT FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL], [DATOS E].TIPO, [DATOS E].FECHA, [DATOS E].NUM, [DATOS E].CONCEPTO, [DATOS E].EGRESO, [DATOS E].OPERADO, [DATOS E].NOTAS

FROM FECHAIF, [DATOS E]

WHERE ((([DATOS E].FECHA) Between [FECHA INICIAL] And [FECHA FINAL]) AND (([DATOS E].OPERADO)=-1));
```

###### `MES E AP` (Update)

```sql
INSERT INTO INFORME ( [fecha inicial], [fecha final], TIPO, FECHA, NUM, CONCEPTO, EGRESO, OPERADO, NOTAS )

SELECT [MES E].[FECHA INICIAL], [MES E].[FECHA FINAL], [MES E].TIPO, [MES E].FECHA, [MES E].NUM, [MES E].CONCEPTO, [MES E].EGRESO, [MES E].OPERADO, [MES E].NOTAS

FROM [MES E];
```

###### `MES I` (Select)

```sql
SELECT FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL], [DATOS I].TIPO, [DATOS I].FECHA, [DATOS I].NUM, [DATOS I].CONCEPTO, [DATOS I].INGRESO, [DATOS I].OPERADO, [DATOS I].NOTAS

FROM FECHAIF, [DATOS I]

WHERE ((([DATOS I].FECHA) Between [FECHA INICIAL] And [FECHA FINAL]) AND (([DATOS I].OPERADO)=-1));
```

###### `MES I AP` (Update)

```sql
INSERT INTO INFORME ( [fecha inicial], [fecha final], TIPO, FECHA, NUM, CONCEPTO, INGRESO, OPERADO, NOTAS )

SELECT [MES I].[FECHA INICIAL], [MES I].[FECHA FINAL], [MES I].TIPO, [MES I].FECHA, [MES I].NUM, [MES I].CONCEPTO, [MES I].INGRESO, [MES I].OPERADO, [MES I].NOTAS

FROM [MES I];
```

###### `MES TRAN E` (Select)

```sql
SELECT FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL], [DATOS E].TIPO, [DATOS E].FECHA, [DATOS E].NUM, [DATOS E].CONCEPTO, [DATOS E].EGRESO, [DATOS E].OPERADO, [DATOS E].NOTAS

FROM FECHAIF, [DATOS E]

WHERE ((([DATOS E].OPERADO)=0));
```

###### `MES TRAN E AP` (Update)

```sql
INSERT INTO INFORME ( [fecha inicial], [fecha final], TIPO, FECHA, NUM, CONCEPTO, EGRESO, OPERADO, NOTAS )

SELECT [MES TRAN E].[FECHA INICIAL], [MES TRAN E].[FECHA FINAL], [MES TRAN E].TIPO, [MES TRAN E].FECHA, [MES TRAN E].NUM, [MES TRAN E].CONCEPTO, [MES TRAN E].EGRESO, [MES TRAN E].OPERADO, [MES TRAN E].NOTAS

FROM [MES TRAN E];
```

###### `MES TRAN I` (Select)

```sql
SELECT FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL], [DATOS I].TIPO, [DATOS I].FECHA, [DATOS I].NUM, [DATOS I].CONCEPTO, [DATOS I].INGRESO, [DATOS I].OPERADO, [DATOS I].NOTAS

FROM FECHAIF, [DATOS I]

WHERE ((([DATOS I].OPERADO)=0));
```

###### `TRANSITO E` (Select)

```sql
SELECT FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL], [DATOS E].TIPO, [DATOS E].FECHA, [DATOS E].NUM, [DATOS E].CONCEPTO, [DATOS E].EGRESO, [DATOS E].OPERADO, [DATOS E].NOTAS

FROM FECHAIF, [DATOS E]

WHERE ((([DATOS E].FECHA)<=[FECHA FINAL]) AND (([DATOS E].OPERADO)=0));
```

###### `TRANSITO E AP` (Update)

```sql
INSERT INTO INFORME ( [fecha inicial], [fecha final], TIPO, FECHA, NUM, CONCEPTO, EGRESO, OPERADO, NOTAS )

SELECT [TRANSITO E].[FECHA INICIAL], [TRANSITO E].[FECHA FINAL], [TRANSITO E].TIPO, [TRANSITO E].FECHA, [TRANSITO E].NUM, [TRANSITO E].CONCEPTO, [TRANSITO E].EGRESO, [TRANSITO E].OPERADO, [TRANSITO E].NOTAS

FROM [TRANSITO E];
```

###### `TRANSITO I` (Select)

```sql
SELECT FECHAIF.[FECHA INICIAL], FECHAIF.[FECHA FINAL], [DATOS I].TIPO, [DATOS I].FECHA, [DATOS I].NUM, [DATOS I].CONCEPTO, [DATOS I].INGRESO, [DATOS I].OPERADO, [DATOS I].NOTAS

FROM FECHAIF, [DATOS I]

WHERE ((([DATOS I].OPERADO)=0));
```

###### `TRANSITO I AP` (Update)

```sql
INSERT INTO INFORME ( [fecha inicial], [fecha final], TIPO, FECHA, NUM, CONCEPTO, INGRESO, OPERADO, NOTAS )

SELECT [TRANSITO I].[FECHA INICIAL], [TRANSITO I].[FECHA FINAL], [TRANSITO I].TIPO, [TRANSITO I].FECHA, [TRANSITO I].NUM, [TRANSITO I].CONCEPTO, [TRANSITO I].INGRESO, [TRANSITO I].OPERADO, [TRANSITO I].NOTAS

FROM [TRANSITO I];
```

###### `edo cuenta` (Select)

```sql
SELECT INFORME.FECHA, INFORME.TIPO, INFORME.NUM, INFORME.CONCEPTO, INFORME.INGRESO, INFORME.EGRESO, INFORME.OPERADO, INFORME.[fecha inicial], INFORME.[fecha final], INFORME.[FECHA INF]

FROM INFORME;
```
