> For the complete documentation index, see [llms.txt](https://kythuat.dtechvn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kythuat.dtechvn.com/effect/bao-cao/kiem-tra-convert.md).

# KIỂM TRA CONVERT

## 1. Kiểm tra cột dữ liệu có sử dụng trong báo cáo không

```sql
/* 
- check báo cáo xem có đặt công thức cột báo cáo liên quan tới cột dữ liệu không
- kiểm tra cột 'so_lenhsx' có sử dụng trong báo cáo hay không
*/
select t1.ma, t1.vietnam, t1.ma_repo, t1.DISABLE
from 
(select * from _REPORT) t1 inner join (
select iMa_repo from _Noidung1
where cVar1 like '%so_lenhsx%')T2 on t1.ma_repo = t2.iMa_repo

```

## 2. thông tin cột report, reportColum thường dùng

```sql
/*
- Các cột của báo cáo 
*/
-- dk: điều kiện lọc trong của báo cáo
-- from_tk: từ tài khoản nào
-- tinh_sau: tính sau
-- dk_cuoi: điều kiện cuối
-- ps: chỉ số phát sinh.
-- nhom: hình cây
-- nbang: ngoài bảng
-- proc_f1: code proc f1
-- theo_par: đánh dấu theo par
-- mloaidl: loại dữ liệu
-- beforeAll: trước tất cả
-- tienxl_mem: tiền xử lý
-- hauxl_mem: hậu xử lý
-- xuly2_mem: code chữ C
/*
- Các cột của cấu trúc báo cáo 
*/
-- cten: tiêu đề cột
-- cKieu: kiểu cột
-- cvar1: công thức cột
-- cDK: điều kiện cột
-- bgop_them: gộp thêm
-- iSxep: sắp xếp
-- iSum_type: kiểu cộng
-- isoam: số âm
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kythuat.dtechvn.com/effect/bao-cao/kiem-tra-convert.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
