# Database Query Task

데이타베이스 커넥터를 대상으로 SQL 쿼리를 실행할 수 있는 태스크이다.

SQL 쿼리를 작성할 때, 변수성 값은 시나리오 컨텍스트의 data와 variables등 [스크립트 내장변수](../concept/script-internal-variables.md)를 활용할 수 있다.

```
# SQL 예시

Select * from LOT
where product='${variables.search.product}' // variables : 시나리오 입력변수
  and operation='${data.lot.operation}' // data : 시나리오 실행 데이타
  and factory='${domain.attributes.factory}' // domain : 현재 테넌시 정보
```
