KR20220111020A - Method and apparatus for generating auto sql sentence using computer data request basend on text in bigdata integrated management environmnet - Google Patents

Method and apparatus for generating auto sql sentence using computer data request basend on text in bigdata integrated management environmnet Download PDF

Info

Publication number
KR20220111020A
KR20220111020A KR1020210014139A KR20210014139A KR20220111020A KR 20220111020 A KR20220111020 A KR 20220111020A KR 1020210014139 A KR1020210014139 A KR 1020210014139A KR 20210014139 A KR20210014139 A KR 20210014139A KR 20220111020 A KR20220111020 A KR 20220111020A
Authority
KR
South Korea
Prior art keywords
sql
generating
extraction
natural language
conditional clause
Prior art date
Application number
KR1020210014139A
Other languages
Korean (ko)
Other versions
KR102512528B1 (en
Inventor
최현길
최영재
Original Assignee
(주)메인라인
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by (주)메인라인 filed Critical (주)메인라인
Priority to KR1020210014139A priority Critical patent/KR102512528B1/en
Publication of KR20220111020A publication Critical patent/KR20220111020A/en
Application granted granted Critical
Publication of KR102512528B1 publication Critical patent/KR102512528B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2452Query translation
    • G06F16/24522Translation of natural language queries to structured queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/243Natural language query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24535Query rewriting; Transformation of sub-queries or views
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

A method for an SQL phrase generation apparatus to generate an SQL phrase to search for computer data, includes the following steps of: receiving a computer data search request through an integrated management environment; generating a natural language conditional clause based on extraction information written in a Korean text and an extraction search condition through the computer data inquiry request; receiving one target database selected from among a plurality of databases, and connecting the selected target database; deriving a mapping table satisfying the natural language conditional clause by parsing the natural language conditional clause with the target database; and generating an SQL phrase based on the derived mapping table. Therefore, the present invention is capable of generating a SQL phrase based on a derived mapping table satisfying a natural language conditional clause.

Description

빅데이터 통합 관리 환경에서 텍스트 기반의 전산 자료 요청서를 이용하여 자동 SQL 구문 생성 방법 및 장치{METHOD AND APPARATUS FOR GENERATING AUTO SQL SENTENCE USING COMPUTER DATA REQUEST BASEND ON TEXT IN BIGDATA INTEGRATED MANAGEMENT ENVIRONMNET}Method and device for automatic SQL statement generation using text-based computational data request form in big data integrated management environment

본 발명은 이미지에 전산 자료를 조회하기 위한 SQL 구문을 생성하는 방법에 관한 것이다. The present invention relates to a method for generating an SQL statement for inquiring computational data on an image.

SQL 언어는 데이터의 조회, 저장, 삭제를 위해 데이터베이스와 컴퓨터 언어로 통신을 수행할 수 있도록 하는 언어를 의미한다. SQL 언어는 표준 SQL 언어를 통해 대다수의 데이터베이스(예를 들어, 오라클, DB2, SQLServer, MySQL 등)에 접속할 수 있으며, 데이터베이스에 저장된 데이터의 이관이 발생된 경우, SQL의 수정, 변환, 성능 등에 대해 재점검이 수행될 수 있다. The SQL language refers to a language that enables communication between a database and a computer language for data inquiry, storage, and deletion. The SQL language can connect to most databases (eg, Oracle, DB2, SQLServer, MySQL, etc.) through the standard SQL language. A recheck may be performed.

이러한 SQL 언어 중 프로그래밍 언어의 요소를 가지는 PL/SQL(Procedural Language for SQL)의 경우, for??Loop, If??else, Case??then과 Int, char, varchar 등과 같이 변수와 관련된 프로그래밍의 요소를 포함할 수 있다. Among these SQL languages, in the case of PL/SQL (Procedural Language for SQL), which has elements of a programming language, elements of programming related to variables such as for??Loop, If??else, Case??then and Int, char, varchar, etc. may include.

이러한 SQL 언어와 관련하여, 한국등록특허 제 10-1119179호는 데이터베이스에 접근하기 위한 구조화 질의어를 정형화 포맷에 적용하는 시스템을 개시하고 있다. In relation to the SQL language, Korean Patent Registration No. 10-1119179 discloses a system for applying a structured query language for accessing a database to a standardized format.

일반적으로, SQL 언어를 통해 데이터베이스와 통신을 수행하기 위해서는, 데이터베이스의 모델링 및 설계 시 대부분의 엔티티의 속성(Attribute)이 영문으로 작성되며, 개발자, DBA, 관리자 모두 영문 사전을 생성하여 최적의 shot 영문명을 생성하게 된다. 이를 통해, 전산 자료 조회를 위해 영문으로 작성된 문서에 기초하여 SQL 언어가 생성될 수 있다. In general, in order to communicate with the database through the SQL language, most of the attributes of entities are written in English when modeling and designing the database. will create Through this, SQL language can be generated based on documents written in English for computerized data inquiry.

그러나 한글로 작성된 문서의 경우, 문서를 파악하기 어려워 SQL 언어의 생성이 어렵다는 단점을 가지고 있었다. However, in the case of documents written in Korean, it was difficult to understand the documents, so it was difficult to generate the SQL language.

통합 관리 환경을 통해 전산 자료 조회 요청서를 입력받고, 전산 자료 조회 요청서를 통해 한글 텍스트로 작성된 추출 정보 및 추출 조회 조건에 기초하여 자연어 조건절을 생성하는 방법을 제공하고자 한다. To provide a method to receive a computerized data inquiry request form through an integrated management environment, and to generate natural language conditional clauses based on extracted information and extracted inquiry conditions written in Korean text through the computerized data inquiry request form.

복수의 데이터베이스 중 어느 하나의 대상 데이터베이스를 선택받고, 선택된 대상 데이터베이스로 연결하고, 자연어 조건절을 대상 데이터베이스로 파싱하여 자연어 조건절을 만족하는 매핑 테이블을 도출하고, 도출된 매핑 테이블에 기초하여 SQL 구문을 생성하는 방법을 제공하고자 한다. A target database of any one of a plurality of databases is selected, connected to the selected target database, a natural language conditional clause is parsed into the target database to derive a mapping table that satisfies the natural language conditional clause, and an SQL statement is generated based on the derived mapping table. We want to provide a way to

다만, 본 실시예가 이루고자 하는 기술적 과제는 상기된 바와 같은 기술적 과제들로 한정되지 않으며, 또 다른 기술적 과제들이 존재할 수 있다. However, the technical problems to be achieved by the present embodiment are not limited to the technical problems described above, and other technical problems may exist.

상술한 기술적 과제를 달성하기 위한 수단으로서, 본 발명의 일 실시예는, 통합 관리 환경을 통해 전산 자료 조회 요청서를 입력받는 단계, 상기 전산 자료 조회 요청서를 통해 한글 텍스트로 작성된 추출 정보 및 추출 조회 조건을 입력받는 단계; 상기 입력된 추출 정보 및 추출 조회 조건에 기초하여 자연어 조건절을 생성하는 단계, 복수의 데이터베이스 중 어느 하나의 대상 데이터베이스를 선택받고, 상기 선택된 대상 데이터베이스로 연결하는 단계, 상기 자연어 조건절을 상기 대상 데이터베이스로 파싱하여 상기 자연어 조건절을 만족하는 매핑 테이블을 도출하는 단계 및 상기 도출된 매핑 테이블에 기초하여 SQL 구문을 생성하는 단계를 포함하는 SQL 구문 생성 방법을 제공할 수 있다. As a means for achieving the above-described technical problem, an embodiment of the present invention includes the steps of receiving a computerized data inquiry request through an integrated management environment, extraction information and extraction inquiry conditions written in Korean text through the computerized data inquiry request form receiving input; generating a natural language conditional clause based on the input extraction information and extraction query condition, receiving a selection of a target database from among a plurality of databases, and connecting to the selected target database, parsing the natural language conditional clause into the target database and deriving a mapping table that satisfies the natural language conditional clause and generating an SQL syntax based on the derived mapping table may be provided.

상술한 과제 해결 수단은 단지 예시적인 것으로서, 본 발명을 제한하려는 의도로 해석되지 않아야 한다. 상술한 예시적인 실시예 외에도, 도면 및 발명의 상세한 설명에 기재된 추가적인 실시예가 존재할 수 있다.The above-described problem solving means are merely exemplary, and should not be construed as limiting the present invention. In addition to the exemplary embodiments described above, there may be additional embodiments described in the drawings and detailed description.

전술한 본 발명의 과제 해결 수단 중 어느 하나에 의하면, 통합 관리 환경을 통해 전산 자료 조회 요청서를 입력받고, 전산 자료 조회 요청서를 통해 한글 텍스트로 작성된 추출 정보 및 추출 조회 조건에 기초하여 자연어 조건절을 생성하는 방법을 제공할 수 있다. According to any one of the above-described problem solving means of the present invention, a computerized data inquiry request is input through the integrated management environment, and a natural language conditional clause is generated based on the extraction information and extraction query conditions written in Korean text through the computerized data inquiry request form can provide a way to

복수의 데이터베이스 중 어느 하나의 대상 데이터베이스를 선택받고, 선택된 대상 데이터베이스로 연결함으로써, 자연어 조건절을 대상 데이터베이스로 파싱하여 자연어 조건절을 만족하는 매팽 테이블을 도출하고, 도출된 매핑 테이블에 기초하여 SQL 구문을 생성하는 방법을 제공할 수 있다. By selecting one target database from among a plurality of databases and connecting to the selected target database, the natural language conditional clause is parsed into the target database to derive a mapping table that satisfies the natural language conditional clause, and SQL statements are generated based on the derived mapping table can provide a way to

도 1은 본 발명의 일 실시예에 따른 SQL 구문 생성 시스템을 도시한 예시적인 도면이다.
도 2는 본 발명의 일 실시예에 따른 전산 자료를 조회하기 위한 SQL 구문을 생성하는 방법의 순서도이다.
도 3은 본 발명의 일 실시예에 따른 전산 자료 조회 요청서를 입력받는 과정을 설명하기 위한 예시적인 도면이다.
도 4는 본 발명의 일 실시예에 따른 매핑 테이블을 도출하는 과정을 설명하기 위한 예시적인 도면이다.
도 5a 내지 도 5i는 본 발명의 일 실시예에 따른 통합 관리 환경을 도시한 예시적인 도면이다.
1 is an exemplary diagram illustrating a system for generating SQL statements according to an embodiment of the present invention.
2 is a flowchart of a method of generating an SQL statement for inquiring computerized data according to an embodiment of the present invention.
3 is an exemplary view for explaining a process of receiving a computerized data inquiry request form according to an embodiment of the present invention.
4 is an exemplary diagram for explaining a process of deriving a mapping table according to an embodiment of the present invention.
5A to 5I are exemplary diagrams illustrating an integrated management environment according to an embodiment of the present invention.

아래에서는 첨부한 도면을 참조하여 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 본 발명의 실시예를 상세히 설명한다. 그러나 본 발명은 여러 가지 상이한 형태로 구현될 수 있으며 여기에서 설명하는 실시예에 한정되지 않는다. 그리고 도면에서 본 발명을 명확하게 설명하기 위해서 설명과 관계없는 부분은 생략하였으며, 명세서 전체를 통하여 유사한 부분에 대해서는 유사한 도면 부호를 붙였다. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily carry out the present invention. However, the present invention may be embodied in several different forms and is not limited to the embodiments described herein. And in order to clearly explain the present invention in the drawings, parts irrelevant to the description are omitted, and similar reference numerals are attached to similar parts throughout the specification.

명세서 전체에서, 어떤 부분이 다른 부분과 "연결"되어 있다고 할 때, 이는 "직접적으로 연결"되어 있는 경우뿐 아니라, 그 중간에 다른 소자를 사이에 두고 "전기적으로 연결"되어 있는 경우도 포함한다. 또한 어떤 부분이 어떤 구성요소를 "포함"한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있는 것을 의미하며, 하나 또는 그 이상의 다른 특징이나 숫자, 단계, 동작, 구성요소, 부분품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다. Throughout the specification, when a part is "connected" with another part, this includes not only the case of being "directly connected" but also the case of being "electrically connected" with another element interposed therebetween. . Also, when a part "includes" a certain component, it means that other components may be further included, rather than excluding other components, unless otherwise stated, and one or more other features However, it is to be understood that the existence or addition of numbers, steps, operations, components, parts, or combinations thereof is not precluded in advance.

본 명세서에 있어서 '부(部)'란, 하드웨어에 의해 실현되는 유닛(unit), 소프트웨어에 의해 실현되는 유닛, 양방을 이용하여 실현되는 유닛을 포함한다. 또한, 1 개의 유닛이 2 개 이상의 하드웨어를 이용하여 실현되어도 되고, 2 개 이상의 유닛이 1 개의 하드웨어에 의해 실현되어도 된다.In this specification, a "part" includes a unit realized by hardware, a unit realized by software, and a unit realized using both. In addition, one unit may be implemented using two or more hardware, and two or more units may be implemented by one hardware.

본 명세서에 있어서 단말 또는 디바이스가 수행하는 것으로 기술된 동작이나 기능 중 일부는 해당 단말 또는 디바이스와 연결된 서버에서 대신 수행될 수도 있다. 이와 마찬가지로, 서버가 수행하는 것으로 기술된 동작이나 기능 중 일부도 해당 서버와 연결된 단말 또는 디바이스에서 수행될 수도 있다.Some of the operations or functions described as being performed by the terminal or device in this specification may be instead performed by a server connected to the terminal or device. Similarly, some of the operations or functions described as being performed by the server may also be performed in a terminal or device connected to the corresponding server.

이하 첨부된 도면을 참고하여 본 발명의 일 실시예를 상세히 설명하기로 한다. Hereinafter, an embodiment of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 일 실시예에 따른 SQL 구문 생성 시스템을 도시한 예시적인 도면이다. 도 1을 참조하면, SQL 구문 생성 시스템은 SQL 구문 생성 장치(100) 및 데이터베이스(110)를 포함할 수 있다. 1 is an exemplary diagram illustrating a system for generating SQL statements according to an embodiment of the present invention. Referring to FIG. 1 , the SQL syntax generating system may include an SQL syntax generating apparatus 100 and a database 110 .

SQL 구문 생성 장치(100)는 데이터베이스(110)에 접속하여 데이터를 조회, 저장, 삭제를 하기 위해 데이터베이스와 컴퓨터 언어로 통신을 수행할 수 있도록 SQL(Structured Query Language) 언어를 생성할 수 있다. SQL 언어를 이용함으로써, 데이터베이스(110)에 데이터를 입력, 삭제, 변경, 저장 등을 수행할 수 있다.The SQL syntax generating apparatus 100 may generate a Structured Query Language (SQL) language to access the database 110 and communicate with the database in a computer language in order to inquire, store, and delete data. By using the SQL language, it is possible to input, delete, change, store, etc. data in the database 110 .

데이터베이스(110)는 특정 기관에서 수집한 자료를 저장할 수 있다. 이 때, 데이터베이스(110)는 SQL 구문 생성 장치(100)로부터 전산 자료 조회 요청을 수신한 경우, 해당 전산 자료를 SQL 구문 생성 장치(100)로 제공할 수 있다. The database 110 may store data collected by a specific institution. In this case, the database 110 may provide the corresponding computational data to the SQL syntax generating device 100 when receiving the computational data inquiry request from the SQL syntax generating device 100 .

예를 들어, 특정 기관이 건강보험심사평가원인 경우, 데이터베이스(110)는 명세서내역, 의료기관진료내역, 진료내역지식상세, 특정내역, 수진자상병내역, 처방전교부상세내역 등을 저장할 수 있다. 예를 들어, 명세서내역의 경우, 데이터베이스(110)는 건강보험의 심사를 위해 병원, 의원, 치과, 한방 등으로부터 매월 수집된 청구명세서를 저장할 수 있다. 이 때, 명세서내역은 청구 및 지급의 단위를 수진자레벨로 정의될 수 있으며, 데이터베이스(110)는 수진자 단위로 탐색하여 통계 및 자료를 추출할 수 있다. For example, when a specific institution is the Health Insurance Review and Assessment Service, the database 110 may store specification details, medical institution treatment details, medical history knowledge details, specific details, patient injury and illness details, prescription issuance details, and the like. For example, in the case of specification details, the database 110 may store the billing statements collected monthly from hospitals, clinics, dentists, oriental medicine, etc. for examination of health insurance. In this case, in the specification, the unit of claim and payment may be defined at the examinee level, and the database 110 may extract statistics and data by searching for the examinee unit.

이러한 데이터베이스(110)는 모델링 및 설계 시, 메타정보의 등록을 위해 테이블명(Table명), 컬럼명(Column명) 등의 다양한 엔티티(예를 들어, Table, View, Index 등)의 정보를 데이터베이스(110)의 딕셔너리(Dictionary)에 입력을 저장함으로써, 모델이 설계될 수 있다. 이러한 과정을 통해, 엔티티와 그에 대한 속성 정보를 파악할 수 있게 된다. The database 110 stores information of various entities (eg, Table, View, Index, etc.) such as a table name (Table name) and a column name (Column name) in order to register meta information during modeling and design. By storing the input in a dictionary of (110), a model can be designed. Through this process, it is possible to grasp the entity and its attribute information.

일반적으로, 대부분의 엔티티의 속성(Attribute)은 영문으로 작성됨, 개발자, DBA, 관리자 모두 영문 사전을 생성하여 최적의 shot 영문명을 생성하게 된다. In general, the attributes of most entities are written in English. Developers, DBAs, and administrators all create English dictionaries to generate the best English name of the shot.

그러나 본원은 한글로 구성된 서식의 문서를 이용하더라도, 한글의 의미를 파악하여 자동으로 SQL이 생성되도록 할 수 있다. However, in the present application, even if a document in a Korean format is used, SQL can be automatically generated by grasping the meaning of Hangul.

도 2는 본 발명의 일 실시예에 따른 전산 자료를 조회하기 위한 SQL 구문을 생성하는 방법의 순서도이다. 2 is a flowchart of a method of generating an SQL statement for inquiring computerized data according to an embodiment of the present invention.

단계 S210에서 SQL 구문 생성 장치(100)는 통합 관리 환경을 통해 전산 자료 조회 요청서를 입력받을 수 있다. In step S210, the SQL syntax generating apparatus 100 may receive a computerized data inquiry request through the integrated management environment.

단계 S220에서 SQL 구문 생성 장치(100)는 전산 자료 조회 요청서를 통해 한글 텍스트 기반의 추출 정보 및 추출 조회 조건을 입력받을 수 있다. In step S220, the SQL syntax generating apparatus 100 may receive the Korean text-based extraction information and extraction query conditions through the computerized data inquiry request form.

단계 S230에서 SQL 구문 생성 장치(100)는 추출 정보 및 추출 조회 조건에 기초하여 자연어 조건절을 생성할 수 있다. 전산 자료 조회 요청서를 입력받아 자연어 조건절을 생성하는 과정에 대해서는 도 3을 통해 상세히 설명하도록 한다. In step S230, the SQL syntax generating apparatus 100 may generate a natural language conditional clause based on the extraction information and the extraction query condition. The process of generating a natural language conditional clause by receiving a computerized data inquiry request form will be described in detail with reference to FIG. 3 .

도 3은 본 발명의 일 실시예에 따른 전산 자료 조회 요청서를 입력받는 과정을 설명하기 위한 예시적인 도면이다. 도 3을 참조하면, SQL 구문 생성 장치(100)는 사용자로부터 통합 관리 환경을 통해 전산 자료 조회 요청서(300)의 작성을 입력받을 수 있다. 또는, SQL 구문 생성 장치(100)는 사용자로부터 통합 관리 환경의 불러오기 메뉴를 통해 HWP 포맷, DOC 포맷 등의 한글 텍스트로 작성된 전산 자료 요청서(300)를 입력받을 수 있다. 3 is an exemplary diagram for explaining a process of receiving a computerized data inquiry request form according to an embodiment of the present invention. Referring to FIG. 3 , the SQL syntax generating apparatus 100 may receive an input of the computerized data inquiry request 300 through the integrated management environment from the user. Alternatively, the SQL syntax generating apparatus 100 may receive the computerized data request form 300 written in Korean text such as HWP format and DOC format through the import menu of the integrated management environment from the user.

전산 자료 조회 요청서(300)는 편/장/절/관/조/항/호/목에 기초하여 작성될 수 있다. 또한, 전산 자료 조회 요청서는 인덱스 순서에 따라 1. 업무내용→가. 업무 상세 내역→(1) 상세 예시→(가) 업무 정의의 순으로 작성될 수 있다. 여기서, 업무 정의는 세부 목차, 자료 조회 요청 기관에서 지정한 표준 폰트, 문서 작성 순서에 기초하여 작성될 수 있다. The computerized data inquiry request 300 may be prepared based on part/chapter/section/subsection/article/paragraph/subject/subject. In addition, the computerized data inquiry request form is in the order of the index 1. Business contents → A. Task details → (1) Detailed examples → (A) It can be written in the order of task definition. Here, the task definition may be prepared based on the detailed table of contents, the standard font designated by the data inquiry requesting institution, and the document creation order.

SQL 구문 생성 장치(100)는 전산 자료 조회 요청서(300)를 통해 사용자로부터 문서의 목적의 작성을 입력받을 수 있다. 문서의 목적은 예를 들어, "[치매 예비평가] 관련 치매 환자의 의료서비스 일반현황 등을 파악하기 위한 전산자료를 구축하고자 함"과 같이 관련 작업의 요점을 사용자로부터 간결하게 입력받을 수 있다.The SQL syntax generating apparatus 100 may receive an input of the purpose of the document from the user through the computerized data inquiry request 300 . The purpose of the document is, for example, "to establish computerized data to understand the general status of medical services for patients with dementia related to [dementia preliminary evaluation]", so that the main points of the related work can be received concisely from the user.

전산 자료 조회 요청서(300)는 추출 정보를 포함할 수 있다. 여기서, 추출 정보는 상세 내역 및 별첨으로 자동 생성될 수 있다. 추출 정보는 예를 들어, '1. 청구서 정보, 2. 명세서 정보(의과, 치과, 한방, 약국 등), 3. 상병 정보, 4. 진료내역 정보, 5. 원외처방전 정보, 6. 기타정보' 등을 포함할 수 있다. The computerized data inquiry request 300 may include extraction information. Here, the extraction information may be automatically generated as a detailed description and an appendix. Extraction information is, for example, '1. Bill information, 2. Specification information (medical, dental, oriental medicine, pharmacy, etc.), 3. Injury information, 4. Medical treatment history information, 5. Outpatient prescription information, 6. Other information', etc. may be included.

전산 자료 조회 요청서(300)는 추출 조회 조건을 포함할 수 있다. 추출 조회 조건은 추출 정보와 관련된 각각의 상세 항목 정보를 포함할 수 있다. 추출 조회 조건은 예를 들어, '1. 청구서 정보(예를 들어, 진료년월, 심사년월, 요양기호, 청구일자의 From~to), 2. 명세서 정보(주상병='AA100', 부상병 in('xx', 'xx2', 'xx3'), 수진자 나이>19세 이상, 성별 구분 등), 3. 진료내역('148601ATB', '385201ATB', '190001ALQ), 4. 상병('F00', 'F01', ??)' 등을 포함할 수 있다. The computerized data inquiry request 300 may include an extract inquiry condition. The extraction query condition may include detailed item information related to the extraction information. The extract query condition is, for example, '1. Invoice information (eg, year of treatment, year of examination, medical care symbol, from-to of billing date), 2. Statement information (injured person = 'AA100', injured person in('xx', 'xx2', 'xx3') ), age > 19 years old, gender classification, etc.), 3. Medical history ('148601ATB', '385201ATB', '190001ALQ), 4. Injury ('F00', 'F01', ??)', etc. can do.

전산 자료 조회 요청서(300)는 추출 정보 및 추출 조회 조건이 테이블 형식으로 작성된 것일 수 있다. 예를 들어, 추출 정보 및 추출 조회 조건은 다음의 표 1과 같이 생성될 수 있다. The computerized data inquiry request 300 may be prepared in the form of a table of extraction information and extraction inquiry conditions. For example, extraction information and extraction query conditions may be generated as shown in Table 1 below.

Figure pat00001
Figure pat00001

SQL 구문 생성 장치(100)는 전산 자료 조회 요청서(300)를 통해 추출 조회 조건과 관련하여 작성된 추가 추출 조회 조건을 더 고려하여 자연어 조건절(310)을 생성할 수 있다. 여기서, 추가 추출 조회 조건은 추출 조회 조건에서 세분화된 작업을 통해 내역의 정보의 조건을 포함할 수 있다. 추가 추출 조건은 예를 들어, 1. 자료구축 기준 1) 치매 대상 명세서 중 요양개시일이 '18.10.3~12.31.'에 해당하는 외래 명세서, 2. 동일한 요양기호 및 수진자 기준으로 요양개시일이 가장 늦은 명세서, 3. 치매 상병(전체 상병 기준, 배제상병 제외), 4. +90일 이내의 외래 명세서, 5. 기타 등을 포함할 수 있다. The SQL syntax generating apparatus 100 may generate the natural language conditional clause 310 by further considering the additional extracted query condition written in relation to the extracted query condition through the computerized data query request 300 . Here, the additional extraction inquiry condition may include a condition of information of the details through a subdivided operation in the extraction inquiry condition. Additional extraction conditions are, for example, 1. Data construction criteria 1) Outpatient specification with the treatment start date of '18.10.3~12.31.' among the specifications for dementia, 2. Specification, 3. Dementia disease (based on total disease, excluding excluded disease), 4. Outpatient statement within +90 days, 5. Others, etc. may be included.

SQL 구문 생성 장치(100)는 전산 자료 조회 요청서(300)를 통해 한글 텍스트로 작성된 추출 제외 조건을 더 고려하여 자연어 조건절(310)을 생성할 수 있다.The SQL syntax generating apparatus 100 may generate the natural language conditional clause 310 by further considering the extraction exclusion condition written in Korean text through the computerized data inquiry request 300 .

이와 같이, 전산 자료 조회 요청서(300)를 통해 요청서 작성자의 의존도를 낮추면서 전산 자료 조회가 전산적으로 처리될 수 있도록 할 수 있다. 또한, 복수의 전산 자료 조회 요청서(300)에서 빈번하게 나타나는 표현들을 미리 작성함으로써, 재사용할 수 있도록 하는 장점을 제공할 수 있다. 이 때, 경험적으로 적용되는 구문에 대한 관리 및 다수의 문서에서 다르게 표현되는 동일 객체에 대한 표준화 작업의 선행이 요구될 수 있다. 또한, 전산 자료 조회 요청서의 관리 및 보관의 중앙화를 통해 일원화시킴으로써, 기관의 타부서와 자료의 연계를 제공할 수 있다. As such, it is possible to reduce the dependence of the request writer through the computerized data inquiry request 300 and to allow the computerized data inquiry to be computerized. In addition, by pre-writing the expressions frequently appearing in the plurality of computerized data inquiry request 300, it is possible to provide the advantage of allowing reuse. In this case, it may be required to manage the empirically applied syntax and to precede the standardization work for the same object expressed differently in multiple documents. In addition, by centralizing the management and storage of computerized data inquiry forms, it is possible to provide linkage of data with other departments of the institution.

다시 도 2로 돌아와서, 단계 S240에서 SQL 구문 생성 장치(100)는 복수의 데이터베이스 중 어느 하나의 대상 데이터베이스를 선택받고, 선택된 대상 데이터베이스로 연결할 수 있다. Returning again to FIG. 2 , in step S240 , the SQL syntax generating apparatus 100 may select one target database from among a plurality of databases and connect to the selected target database.

단계 S250에서 SQL 구문 생성 장치(100)는 자연어 조건절을 대상 데이터베이스(110)로 파싱하여 자연어 조건절을 만족하는 매핑 테이블을 도출할 수 있다. 여기서, SQL 구문 생성 장치(100)는 대상 데이터베이스로부터 추출 정보와 매핑되는 엔티티 및 추출 조회 조건과 매핑되는 속성 정보에 기초하여 매핑 테이블을 도출할 수 있다. In step S250 , the SQL syntax generating apparatus 100 may parse the natural language conditional clause into the target database 110 to derive a mapping table that satisfies the natural language conditional clause. Here, the SQL syntax generating apparatus 100 may derive a mapping table from the target database based on the entity mapped with the extraction information and the attribute information mapped with the extraction query condition.

단계 S260에서 SQL 구문 생성 장치(100)는 도출된 매핑 테이블에 기초하여 SQL 구문을 생성할 수 있다. 예를 들어, SQL 구문 생성 장치(100)는 SELECT절, FROM절, WHERE절, AND, OR, JOIN CONDITION 등에 기초하여 SQL 구문을 생성할 수 있다. In step S260 , the SQL syntax generating apparatus 100 may generate an SQL syntax based on the derived mapping table. For example, the SQL statement generating apparatus 100 may generate an SQL statement based on a SELECT clause, a FROM clause, a WHERE clause, AND, OR, JOIN CONDITION, and the like.

여기서, SQL 구문 생성 장치(100)는 매핑 테이블로부터 추출 조회 조건에 해당하는 속성 정보에 기초하여 메인 쿼리를 구성하고, 추가 추출 조회 조건에 해당하는 속성 정보에 기초하여 메인 쿼리 내 서브 쿼리를 구성하여 SQL 구문을 생성할 수 있다. 예를 들어, SQL 구문 생성 장치(100)는 In, or, form 절의 서브쿼리에 기초하여 SQL을 생성할 수 있다. 매핑 테이블에 기초하여 SQL 구문을 생성하는 과정에 대해서는 도 4를 통해 상세히 설명하도록 한다. Here, the SQL syntax generating device 100 constructs a main query based on attribute information corresponding to the extracted query condition from the mapping table, and constructs a sub-query within the main query based on the attribute information corresponding to the additional extracted query condition. You can create SQL statements. For example, the SQL syntax generating apparatus 100 may generate SQL based on a subquery of an In, or, form clause. A process of generating an SQL statement based on the mapping table will be described in detail with reference to FIG. 4 .

도 4는 본 발명의 일 실시예에 따른 매핑 테이블을 도출하는 과정을 설명하기 위한 예시적인 도면이다. 도 3 및 도 4를 참조하면, SQL 구문 생성 장치(100)는 데이터베이스(110)의 테이블 정보를 읽어들임으로써, 자연어 조건절 및 데이터베이스 정보 간의 매핑 테이블(400)을 도출할 수 있다. 4 is an exemplary diagram for explaining a process of deriving a mapping table according to an embodiment of the present invention. 3 and 4 , the SQL syntax generating apparatus 100 may derive the mapping table 400 between the natural language conditional clause and the database information by reading the table information of the database 110 .

예를 들어, SQL 구문 생성 장치(100)는 전산 자료 조회 요청서로부터 생성된 자연어 조건절과 도출된 매핑 테이블(400)을 조합하여 SQL 구문의 FROM과 WHERE절을 생성할 수 있다. 이 때, 다수의 매핑 테이블(400)이 도출된 경우, 조인 조건(JOIN Condition)은 특정 기관의 레이아웃 정보를 기반으로 자동 생성될 수 있다. For example, the SQL syntax generating apparatus 100 may generate the FROM and WHERE clauses of the SQL syntax by combining the natural language conditional clause generated from the computational data inquiry request and the derived mapping table 400 . In this case, when a plurality of mapping tables 400 are derived, a JOIN Condition may be automatically generated based on layout information of a specific organization.

SQL 구문 생성 장치(100)는 전산 자료 조회 요청서(300)의 '수진자 마트 컬럼내역'(320) 테이블의 값을 이용하여 SELECT절의 컬럼 리스트를 생성할 수 있다. The SQL statement generating apparatus 100 may generate a column list of the SELECT clause by using the values of the 'Sujinja Mart Column Details' 320 table of the computerized data inquiry request 300 .

다시 도 2로 돌아와서, SQL 구문 생성 장치(100)는 SQL 구문에 대한 수정 정보를 입력받는 단계 및 입력된 수정 정보에 기초하여 SQL 구문을 편집하는 단계를 더 포함할 수 있다. Returning to FIG. 2 , the SQL syntax generating apparatus 100 may further include receiving correction information for the SQL syntax and editing the SQL syntax based on the input correction information.

SQL 구문 생성 장치(100)는 생성된 SQL 구문을 포함하는 SQL 파일을 생성하는 단계, 생성된 SQL 파일을 대상 데이터베이스로 전송하는 단계 및 대상 데이터베이스로부터 SQL 파일에 기초하여 도출된 전산 자료 조회 결과 데이터를 수신하는 단계를 더 포함할 수 있다. The SQL syntax generating device 100 generates an SQL file including the generated SQL syntax, transmitting the generated SQL file to the target database, and computing data query result data derived based on the SQL file from the target database. It may further include the step of receiving.

이러한 과정을 통해, SQL 구문 생성 장치(100)는 특정 기관(예를 들어, 건강보험심사평가원)의 다양한 청구명세서의 통계정보 중 명세서의 정보를 추출할 수 있다. 또한, 사용자가 한글 텍스트를 실시간으로 입력함으로써, 실시간으로 SQL을 생성하고, 결과를 직접 확인하도록 할 수 있다. 이 때, SQL의 생성 후 수정이 가능함으로써, 사용자 정의의 SQL 튜닝도 용이하게 수행될 수 있다. Through this process, the SQL syntax generating apparatus 100 may extract the information of the specification from among the statistical information of various claim specifications of a specific institution (eg, Health Insurance Review and Assessment Service). In addition, by inputting Korean text in real time, the user can generate SQL in real time and directly check the result. In this case, user-defined SQL tuning can be easily performed because the SQL can be modified after it is created.

또한, 본원은 모든 로직과 스펙을 작성함으로써, 데이터베이스(110)의 설계 단계의 산출물에 대해 SQL을 자동으로 추출하여 분석, 설계, 개발단계의 생산성을 개선시킬 수 있다. 여기서, 테이블 기준의 방식으로 추출 정보 및 추출 조회 조건이 작성되지 않은 경우, A Select 절과 B Select 절의 조인(Join) 관계를 통해 다양한 쿼리를 자동으로 생성할 수 있다. In addition, the present application can improve productivity in the analysis, design, and development stages by automatically extracting SQL for the output of the design stage of the database 110 by writing all the logic and specifications. Here, when the extraction information and extraction query conditions are not written in the table-based method, various queries can be automatically generated through the join relationship between the A Select clause and the B Select clause.

도 5a 내지 도 5i는 본 발명의 일 실시예에 따른 통합 관리 환경을 도시한 예시적인 도면이다. 5A to 5I are exemplary diagrams illustrating an integrated management environment according to an embodiment of the present invention.

도 5a를 참조하면, 통합 관리 환경(500)의 화면 구성도를 도시한 것으로, 통합 관리 환경(500)은 메뉴 툴바(501), 탐색기(502), 편집 영역(503) 및 개요 화면(504)을 표시할 수 있다. 탐색기(502)는 프로그램의 모든 파일이 트리 형태로 표시되고, 탐색기(502)를 통해 파일이 선택된 경우, 편집 영역(503)을 통해 파일의 내용이 표시되고, 개요 화면(504)을 통해 현재 편집 중인 파일의 개요 정보가 표시될 수 있다. Referring to FIG. 5A , a screen configuration diagram of the integrated management environment 500 is shown. The integrated management environment 500 includes a menu toolbar 501 , a navigator 502 , an editing area 503 , and an overview screen 504 . can be displayed. In the explorer 502 , all files of the program are displayed in a tree form, and when a file is selected through the explorer 502 , the contents of the file are displayed through the editing area 503 , and the current editing is performed through the overview screen 504 . The outline information of the file in progress can be displayed.

도 5b를 참조하면, 통합 관리 환경(500)의 DB 접속 관리 화면(510)을 도시한 것으로, 사용자는 DB 접속 관리 화면(510)을 통해 DB 접속 정보를 설정할 수 있다. 이 때, 데이터베이스(110)로의 접속은 JDBC 드라이버를 통해 가능해질 수 있다. 통합 관리 환경(500)은 사용자로부터 DB 접속 관리 화면(510)의 찾기 버튼(511)을 통해 JDBC 드라이버 및 클래스를 선택받을 수 있다. 통합 관리 환경(500)은 샘플 버튼(512)을 통해 데이터베이스별 접속 주소 샘플을 제공할 수 있으며, 확인 버튼(513)을 통해 접속 테스트를 수행할 수 있다. 개요 화면(514)을 통해 데이터베이스(110) 내 모든 객체가 화면에 표시될 수 있다.Referring to FIG. 5B , the DB connection management screen 510 of the integrated management environment 500 is illustrated, and the user can set DB connection information through the DB connection management screen 510 . In this case, the connection to the database 110 may be enabled through a JDBC driver. The integrated management environment 500 may receive a JDBC driver and class selection from the user through the find button 511 of the DB connection management screen 510 . The integrated management environment 500 may provide an access address sample for each database through the sample button 512 , and may perform a connection test through the confirmation button 513 . All objects in the database 110 may be displayed on the screen through the overview screen 514 .

도 5c를 참조하면, 통합 관리 환경(500)의 DB 접속 관리 화면(510)을 통해 인터렉티브 SQL 구문(520)을 입력받을 수 있다. 예를 들어, 인터렉티브 SQL 구문(520)을 통해 사용자가 데이터베이스에 접속하여, 자유롭게 각종 SQL 구문을 입력하여 실행할 수 있도록 하는 환경을 제공할 수 있다. 예를 들어, 통합 관리 환경(500)은 사용자로부터 SQL 구문을 입력받은 후, ';' 문자를 입력받고, 엔터키를 입력받으면, 해당 SQL 구문을 실행시킬 수 있다. 여기서, 통합 개발 환경(500)은 사용자로부터 Ctrl+스페이스 키 입력 또는 개요 화면(521)에서 마우스 드래그를 통해 테이블(Table)명, 컬럼(Column)명 등을 입력받을 수 있다. Referring to FIG. 5C , the interactive SQL syntax 520 may be input through the DB connection management screen 510 of the integrated management environment 500 . For example, it is possible to provide an environment in which a user can access a database through the interactive SQL statement 520 and freely input and execute various SQL statements. For example, the integrated management environment 500 receives the SQL syntax input from the user, and then ';' When a character is input and the Enter key is input, the corresponding SQL statement can be executed. Here, the integrated development environment 500 may receive a table name, a column name, etc. from the user by inputting a Ctrl+space key or by dragging a mouse on the overview screen 521 .

도 5d를 참조하면, 통합 관리 환경(500)은 SQL 구문 편집기(530)를 통해 SQL 파일을 편집할 수 있다. 이 때, 통합 관리 환경(500)은 SQL 구문 편집기(530)를 통해 라인 번호, 문법 강조(Syntax Coloring), 찾기/바꾸기 등의 다양한 편집 기능을 제공할 수 있다. 여기서, 개요 화면(531)은 SQL 구문의 구조를 트리 형식으로 표시할 수 있다. 통합 관리 환경(500)은 사용자로부터 실행 환경 영역(532)은 드래그 입력, 선택 입력 등을 통해 SQL을 수행할 데이터베이스를 선택받고, 실행 버튼(533)을 입력받음으로써, SQL 파일을 실행할 수 있다. Referring to FIG. 5D , the integrated management environment 500 may edit the SQL file through the SQL syntax editor 530 . In this case, the integrated management environment 500 may provide various editing functions such as line numbers, syntax coloring, and find/replace through the SQL syntax editor 530 . Here, the overview screen 531 may display the structure of the SQL syntax in a tree format. In the integrated management environment 500 , the execution environment area 532 receives a selection of a database to execute SQL through a drag input, a selection input, and the like from a user, and receives an execution button 533 to execute an SQL file.

도 5e를 참조하면, 통합 관리 환경(500)은 요청서 편집기(540)를 통해 전산 자료 조회 요청서를 편집할 수 있다. 요청서 편집기(540)는 실행 환경 영역(541)을 통해 사용자로부터 SQL을 수행할 데이터베이스(110)를 선택 또는 입력받고, 실행 버튼(542)을 입력받음으로써, SQL 구문을 생성할 수 있다. 이 때, 통합 관리 환경(500)은 '선택 후 추가' 기능을 통해 데이터베이스에서 값을 선택함으로써, 입력받을 수 있다. Referring to FIG. 5E , the integrated management environment 500 may edit the computerized data inquiry request form through the request editor 540 . The request editor 540 may generate an SQL statement by selecting or receiving a database 110 to execute SQL from a user through the execution environment area 541 and receiving an execution button 542 . In this case, the integrated management environment 500 may receive input by selecting a value from the database through the 'select and add' function.

통합 관리 환경(500)은 입력된 추출 정보(543)에 기초하여 SQL 구문이 생성되도록 할 수 있다. The integrated management environment 500 may generate an SQL syntax based on the input extracted information 543 .

도 5f를 참조하면, 통합 관리 환경(500)은 입력된 추출 조회 조건(544)에 기초하여 SQL 구문이 생성되도록 할 수 있다. Referring to FIG. 5F , the integrated management environment 500 may generate SQL statements based on the input extraction query condition 544 .

도 5g를 참조하면, 통합 관리 환경(500)은 합산 기준(545)에 기초하여 SQL 구문이 생성되도록 할 수 있다. 여기서, 합산 기준(545)은 예를 들어, '동일 대상 기간 내 요양기호, 수진자 식별번호가 동일한 건이 두 건 이상이 발생하여 연속입원의 조건이 되는 경우에 진료내역을 합산'하는 기능을 포함할 수 있다. Referring to FIG. 5G , the integrated management environment 500 may generate an SQL statement based on the summation criterion 545 . Here, the summation criterion 545 includes, for example, a function of 'summing up the treatment details when two or more cases with the same care symbol and examinee identification number occur within the same target period and become a condition for continuous hospitalization'. can

도 5h를 참조하면, 통합 관리 환경(500)은 요청서 편집기(540)를 통해 추출 정보(543) 및 추출 조회 조건(544)과 관련된 상세 내역 정보(546)를 표시할 수 있다. Referring to FIG. 5H , the integrated management environment 500 may display the detailed information 546 related to the extraction information 543 and the extraction inquiry condition 544 through the request editor 540 .

도 5i를 참조하면, 통합 관리 환경(500)은 쿼리 화면(550)을 통해 자동으로 생성된 SQL 구문을 표시할 수 있다. 여기서, 쿼리 화면(550)에서는 SQL 구문의 내용이 변경되지 않을 수 있다. Referring to FIG. 5I , the integrated management environment 500 may display the automatically generated SQL syntax through the query screen 550 . Here, in the query screen 550, the content of the SQL syntax may not be changed.

도 1 내지 도 5i를 통해 설명된 SQL 구문 생성 장치에서 전산 자료를 조회하기 위한 SQL 구문을 생성하는 방법은 컴퓨터에 의해 실행되는 매체에 저장된 컴퓨터 프로그램 또는 컴퓨터에 의해 실행 가능한 명령어를 포함하는 기록 매체의 형태로도 구현될 수 있다. 또한, 도 1 내지 도 5i를 통해 설명된 SQL 구문 생성 장치에서 전산 자료를 조회하기 위한 SQL 구문을 생성하는 방법은 컴퓨터에 의해 실행되는 매체에 저장된 컴퓨터 프로그램의 형태로도 구현될 수 있다. The method of generating an SQL statement for inquiring computational data in the SQL statement generating apparatus described through FIGS. 1 to 5I is a computer program stored in a medium executed by a computer or a recording medium including instructions executable by the computer. It can also be implemented in a form. In addition, the method of generating an SQL statement for inquiring computational data in the SQL statement generating apparatus described with reference to FIGS. 1 to 5I may be implemented in the form of a computer program stored in a medium executed by a computer.

컴퓨터 판독 가능 매체는 컴퓨터에 의해 액세스될 수 있는 임의의 가용 매체일 수 있고, 휘발성 및 비휘발성 매체, 분리형 및 비분리형 매체를 모두 포함한다. 또한, 컴퓨터 판독가능 매체는 컴퓨터 저장 매체를 포함할 수 있다. 컴퓨터 저장 매체는 컴퓨터 판독가능 명령어, 데이터 구조, 프로그램 모듈 또는 기타 데이터와 같은 정보의 저장을 위한 임의의 방법 또는 기술로 구현된 휘발성 및 비휘발성, 분리형 및 비분리형 매체를 모두 포함한다. Computer-readable media can be any available media that can be accessed by a computer and includes both volatile and nonvolatile media, removable and non-removable media. Also, computer-readable media may include computer storage media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data.

전술한 본 발명의 설명은 예시를 위한 것이며, 본 발명이 속하는 기술분야의 통상의 지식을 가진 자는 본 발명의 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 쉽게 변형이 가능하다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적이 아닌 것으로 이해해야만 한다. 예를 들어, 단일형으로 설명되어 있는 각 구성 요소는 분산되어 실시될 수도 있으며, 마찬가지로 분산된 것으로 설명되어 있는 구성 요소들도 결합된 형태로 실시될 수 있다. The above description of the present invention is for illustration, and those of ordinary skill in the art to which the present invention pertains can understand that it can be easily modified into other specific forms without changing the technical spirit or essential features of the present invention. will be. Therefore, it should be understood that the embodiments described above are illustrative in all respects and not restrictive. For example, each component described as a single type may be implemented in a distributed manner, and likewise components described as distributed may also be implemented in a combined form.

본 발명의 범위는 상기 상세한 설명보다는 후술하는 특허청구범위에 의하여 나타내어지며, 특허청구범위의 의미 및 범위 그리고 그 균등 개념으로부터 도출되는 모든 변경 또는 변형된 형태가 본 발명의 범위에 포함되는 것으로 해석되어야 한다. The scope of the present invention is indicated by the following claims rather than the above detailed description, and all changes or modifications derived from the meaning and scope of the claims and their equivalent concepts should be interpreted as being included in the scope of the present invention. do.

100: SQL 구문 생성 장치
110: 텍스트 인식 장치
100: SQL syntax generator
110: text recognition device

Claims (8)

SQL 구문 생성 장치에서 전산 자료를 조회하기 위한 SQL 구문을 생성하는 방법에 있어서,
통합 관리 환경을 통해 전산 자료 조회 요청서를 입력받는 단계;
상기 전산 자료 조회 요청서를 통해 한글 텍스트 기반의 추출 정보 및 추출 조회 조건을 입력받는 단계;
상기 입력된 추출 정보 및 추출 조회 조건에 기초하여 자연어 조건절을 생성하는 단계;
복수의 데이터베이스 중 어느 하나의 대상 데이터베이스를 선택받고, 상기 선택된 대상 데이터베이스로 연결하는 단계;
상기 자연어 조건절을 상기 대상 데이터베이스로 파싱하여 상기 자연어 조건절을 만족하는 매핑 테이블을 도출하는 단계; 및
상기 도출된 매핑 테이블에 기초하여 SQL 구문을 생성하는 단계
를 포함하는, SQL 구문 생성 방법.
A method of generating an SQL statement for inquiring computational data in an SQL statement generating device, the method comprising:
receiving a computerized data inquiry request through an integrated management environment;
receiving input of Korean text-based extraction information and extraction inquiry conditions through the computerized data inquiry request form;
generating a natural language conditional clause based on the input extraction information and extraction query condition;
receiving a selection of a target database from among a plurality of databases, and connecting to the selected target database;
parsing the natural language conditional clause into the target database to derive a mapping table that satisfies the natural language conditional clause; and
Generating an SQL statement based on the derived mapping table
A method for generating SQL statements, including.
제 1 항에 있어서,
상기 자연어 조건절을 생성하는 단계는,
상기 전산 자료 조회 요청서를 통해 한글 텍스트로 작성된 추출 제외 조건을 더 고려하여 상기 자연어 조건절을 생성하는 단계;
를 더 포함하는 것인, SQL 구문 생성 방법.
The method of claim 1,
The step of generating the natural language conditional clause,
generating the natural language conditional clause by further considering an extraction exclusion condition written in Korean text through the computerized data inquiry request form;
Which will further include, SQL syntax generation method.
제 1 항에 있어서,
상기 매핑 테이블을 도출하는 단계는,
상기 대상 데이터베이스로부터 상기 추출 정보와 매핑되는 엔티티 및 상기 추출 조회 조건과 매핑되는 속성 정보에 기초하여 상기 매핑 테이블을 도출하는 단계를 포함하는 것인, SQL 구문 생성 방법.
The method of claim 1,
The step of deriving the mapping table comprises:
and deriving the mapping table from the target database based on an entity mapped with the extraction information and attribute information mapped with the extraction query condition.
제 3 항에 있어서,
상기 자연어 조건절을 생성하는 단계는,
상기 전산 자료 조회 요청서를 통해 상기 추출 조회 조건과 관련하여 작성된 추가 추출 조회 조건을 더 고려하여 상기 자연어 조건절을 생성하는 단계를 포함하는 것인, SQL 구문 생성 방법.
4. The method of claim 3,
The step of generating the natural language conditional clause,
and generating the natural language conditional clause by further considering the additional extracted query condition written in relation to the extracted query condition through the computerized data query request form.
제 4 항에 있어서,
상기 SQL 구문을 생성하는 단계는,
상기 매핑 테이블로부터 상기 추출 조회 조건에 해당하는 속성 정보에 기초하여 메인 쿼리를 구성하고, 상기 추가 추출 조회 조건에 해당하는 속성 정보에 기초하여 상기 메인 쿼리 내 서브 쿼리를 구성하여 상기 SQL 구문을 생성하는 단계를 포함하는 것인, SQL 구문 생성 방법.
5. The method of claim 4,
The step of generating the SQL statement is:
Constructing a main query from the mapping table based on attribute information corresponding to the extraction query condition, and constructing a sub-query in the main query based on attribute information corresponding to the additional extraction query condition to generate the SQL syntax A method for generating SQL statements, comprising the steps of:
제 1 항에 있어서,
상기 SQL 구문에 대한 수정 정보를 입력받는 단계; 및
상기 입력된 수정 정보에 기초하여 상기 SQL 구문을 편집하는 단계를 더 포함하는 것인, SQL 구문 생성 방법.
The method of claim 1,
receiving correction information for the SQL syntax; and
The method of generating an SQL statement, further comprising the step of editing the SQL statement based on the input correction information.
제 1 항에 있어서,
상기 전산 자료 조회 요청서는 상기 추출 정보 및 상기 추출 조회 조건이 테이블 형식으로 작성된 것인, SQL 구문 생성 방법.
The method of claim 1,
The method of generating an SQL statement, wherein the computerized data inquiry request form is written in a table format in which the extraction information and the extraction query condition are written.
제 1 항에 있어서,
상기 생성된 SQL 구문을 포함하는 SQL 파일을 생성하는 단계;
상기 생성된 SQL 파일을 상기 대상 데이터베이스로 전송하는 단계; 및
상기 대상 데이터베이스로부터 상기 SQL 파일에 기초하여 도출된 전산 자료 조회 결과 데이터를 수신하는 단계를 더 포함하는 것인, SQL 구문 생성 방법.
The method of claim 1,
generating an SQL file including the generated SQL syntax;
transmitting the generated SQL file to the target database; and
The method further comprising the step of receiving computational data inquiry result data derived based on the SQL file from the target database.
KR1020210014139A 2021-02-01 2021-02-01 Method and apparatus for generating auto sql sentence using computer data request basend on text in bigdata integrated management environmnet KR102512528B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020210014139A KR102512528B1 (en) 2021-02-01 2021-02-01 Method and apparatus for generating auto sql sentence using computer data request basend on text in bigdata integrated management environmnet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020210014139A KR102512528B1 (en) 2021-02-01 2021-02-01 Method and apparatus for generating auto sql sentence using computer data request basend on text in bigdata integrated management environmnet

Publications (2)

Publication Number Publication Date
KR20220111020A true KR20220111020A (en) 2022-08-09
KR102512528B1 KR102512528B1 (en) 2023-03-22

Family

ID=82844892

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020210014139A KR102512528B1 (en) 2021-02-01 2021-02-01 Method and apparatus for generating auto sql sentence using computer data request basend on text in bigdata integrated management environmnet

Country Status (1)

Country Link
KR (1) KR102512528B1 (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140078072A (en) * 2012-12-15 2014-06-25 (주)이맥스 Device and method for generating query

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140078072A (en) * 2012-12-15 2014-06-25 (주)이맥스 Device and method for generating query

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
신희철, 구문 패턴과 개체명사전을 이용한 자연어 질의문장의 SQL 자동 변환 방법, 학위 논문, 조선대학교(2018)* *
심규철 외, 맵핑파일과 HWPML을 이용한 아래한글(HWP) 데이터 추출 방법, 한국정보통신학회 2014년도 춘계학술대회, pp652-654(2014)* *

Also Published As

Publication number Publication date
KR102512528B1 (en) 2023-03-22

Similar Documents

Publication Publication Date Title
JP2022526242A (en) Methods, devices, and systems for annotating text documents
US7490099B2 (en) Rapid application development based on a data dependency path through a body of related data
Tu et al. A practical method for transforming free-text eligibility criteria into computable criteria
US9613125B2 (en) Data store organizing data using semantic classification
US9239872B2 (en) Data store organizing data using semantic classification
US20140149132A1 (en) Adaptive medical documentation and document management
US20140149446A1 (en) Question Answering Framework for Structured Query Languages
US20130198233A1 (en) Integrated repository of structured and unstructured data
CN106663101A (en) Ontology mapping method and apparatus
US9147040B2 (en) Point-in-time query system
US9081847B2 (en) Data store organizing data using semantic classification
Si et al. An OMOP CDM-based relational database of clinical research eligibility criteria
Ramos et al. An archetype query language interpreter into MongoDB: managing NoSQL standardized electronic health record extracts systems
US20210202111A1 (en) Method of classifying medical records
Maldonado et al. Concept-based exchange of healthcare information: The LinkEHR approach
KR102512528B1 (en) Method and apparatus for generating auto sql sentence using computer data request basend on text in bigdata integrated management environmnet
Abdelhedi et al. Extraction Process of the Logical Schema of a Document-oriented NoSQL Database.
GB2573512A (en) Database and associated method
US11960824B2 (en) Document creation system
Katsimpa et al. Application modeling using reverse engineering techniques
EP2720160A2 (en) Data store organizing data using semantic classification
Patrick et al. Intelligent Clinical Notes System: An information retrieval and information extraction system for Clinical Notes
N. Karanikolas et al. Comparison of Post-Relational and Object-Relational modelling for real-world database applications
CN114610791A (en) Data blood relationship analysis method and device, computer equipment and storage medium
Kumaran Multilingual information processing on relational database architectures

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right