Query Translation
Translation step: SQL text → RA expression
Example:
SQL: select name from Students where id=7654321;
RA: Proj[name](Sel[id=7654321]Students)
|
Processes: lexer/parser, mapping rules, rewriting rules.
Mapping from SQL to RA may include some optimisations, e.g.
select * from Students where id = 54321 and age > 50;
Sel[age>50](Sel[id=54321]Students)
Sel[id=54321&age>50](Students)
|
|