2019
DOI: 10.1017/s1471068419000206
|View full text |Cite
|
Sign up to set email alerts
|

Applying Constraint Logic Programming to SQL Semantic Analysis

Abstract: This paper proposes the use of Constraint Logic Programming (CLP) to model SQL queries in a data-independent abstract layer by focusing on some semantic properties for signalling possible errors in such queries. First, we define a translation from SQL to Datalog, and from Datalog to CLP, so that solving this CLP program will give information about inconsistency, tautology, and possible simplifications. We use different constraint domains which are mapped to SQL types, and propose them to cooperate for improvin… Show more

Help me understand this report
View preprint versions

Search citation statements

Order By: Relevance

Paper Sections

Select...
1

Citation Types

0
1
0

Year Published

2022
2022
2022
2022

Publication Types

Select...
1
1

Relationship

0
2

Authors

Journals

citations
Cited by 2 publications
(1 citation statement)
references
References 16 publications
0
1
0
Order By: Relevance
“…DES is a deductive database system that supports many formats and query methods: Datalog, Relational Algebra, Tuple Relational Calculus, Domain Relational Calculus, and SQL. When handling a query, DES performs a set of complex analyses on the code that can detect several semantic errors [10], e.g. unnecessary joins, inconsistent or tautological conditions, or unnecessary subqueries.…”
Section: Learnsqlmentioning
confidence: 99%
“…DES is a deductive database system that supports many formats and query methods: Datalog, Relational Algebra, Tuple Relational Calculus, Domain Relational Calculus, and SQL. When handling a query, DES performs a set of complex analyses on the code that can detect several semantic errors [10], e.g. unnecessary joins, inconsistent or tautological conditions, or unnecessary subqueries.…”
Section: Learnsqlmentioning
confidence: 99%