An automated translation of SQL to relational algebra: A lexical analysis and rule-based approach

Show simple item record

dc.contributor.author Herath, H.M.A.K.
dc.contributor.author Linosh, N.E.
dc.date.accessioned 2022-08-17T06:20:05Z
dc.date.available 2022-08-17T06:20:05Z
dc.date.issued 2021-09-15
dc.identifier.uri http://drr.vau.ac.lk/handle/123456789/309
dc.description.abstract Both academic and industry has been increasingly paid more attention to the quality of the relational database system. Relational algebra serves as the query language of relational databases that are often used to explain principles of relational operations. However, there is no software support for assessing relational algebra expressions: Modern relational database management systems implement only the SQL query language. The queries using relational algebra as SQL queries are declarative, specify a query execution plan. It is necessary to convert SQL to relational algebra to get a quicker and optimized implementation version accurately. Many researchers proposed only theoretical approaches for a subset of the SQL statements within this context in the literature. This paper explores an automated translation of SQL into relational algebra using lexical analysis and rule-based approaches. A software tool has been developed for checking syntactic and semantic correctness of given SQL statements and which will be converted into relational algebra expressions. A given SQL tokenized (lexical analysis) as lexical tokens, strings with a classified category and thus identified semantic meaning (tagged part of speech). A syntax analyser sequentially checks the syntax of the SQL with the help of lexical grammar and a data dictionary. Finally, a ruled-based engine and relational algebra expression generator map the tagged part of speech into a meaningful relational algebra expression. We have implemented the theoretical methodology in a software platform with a GUI, which is helpful for the SQL user interface for DBMS that internally employ relational algebra without needing to write an SQL interpreter/compiler. The GUI of the translation will help for the understanding of database manipulation for the students at the university level. en_US
dc.language.iso en en_US
dc.publisher Faculty of Applied Science en_US
dc.subject Lexical analysis en_US
dc.subject Relational algebra en_US
dc.subject Rule-based approach en_US
dc.subject Syntax analyzer en_US
dc.title An automated translation of SQL to relational algebra: A lexical analysis and rule-based approach en_US
dc.type Conference paper en_US
dc.identifier.proceedings FARS 2021 en_US


Files in this item

This item appears in the following Collection(s)

Show simple item record

Search


Browse

My Account