parser OUTPUT.txt finished
This commit is contained in:
parent
a7463a1e89
commit
6fe791a41f
1 changed files with 12 additions and 14 deletions
26
OUTPUT.txt
26
OUTPUT.txt
|
@ -1,5 +1,3 @@
|
||||||
show incorrect/correct example for each cmd/query
|
|
||||||
|
|
||||||
---------------
|
---------------
|
||||||
Queries
|
Queries
|
||||||
---------------
|
---------------
|
||||||
|
@ -12,27 +10,27 @@ incorrect: select ( age ))))) people ;
|
||||||
Projection:
|
Projection:
|
||||||
|
|
||||||
correct: project ( age ) people ;
|
correct: project ( age ) people ;
|
||||||
incorrect: x
|
incorrect: project age people ;
|
||||||
|
|
||||||
Renaming:
|
Renaming:
|
||||||
|
|
||||||
correct: rename ( age, years old ) ;
|
correct: rename ( age, years old ) ;
|
||||||
incorrect: x
|
incorrect: rename age years ;
|
||||||
|
|
||||||
Set Union:
|
Set Union:
|
||||||
|
|
||||||
correct: x
|
correct: union ( people + animals ) ;
|
||||||
incorrect: x
|
incorrect: union people animals ;
|
||||||
|
|
||||||
Set Difference:
|
Set Difference:
|
||||||
|
|
||||||
correct: x
|
correct: difference ( people - animals ) ;
|
||||||
incorrect: x
|
incorrect: difference people animals ;
|
||||||
|
|
||||||
Cross Product:
|
Cross Product:
|
||||||
|
|
||||||
correct: x
|
correct: product ( people * animals ) ;
|
||||||
incorrect: x
|
incorrect: product people animals ;
|
||||||
|
|
||||||
-------------------
|
-------------------
|
||||||
Commands
|
Commands
|
||||||
|
@ -70,8 +68,8 @@ incorrect: CREATE TABLE people age name ;
|
||||||
|
|
||||||
Update:
|
Update:
|
||||||
|
|
||||||
correct: x
|
correct: UPDATE people SET ( age = 10 ) WHERE ( name == "Bob" ) ;
|
||||||
incorrect: x
|
incorrect: UPDATE ( age = 10 ) WHERE people ;
|
||||||
|
|
||||||
Insert:
|
Insert:
|
||||||
|
|
||||||
|
@ -80,5 +78,5 @@ incorrect: INSERT INTO people 12 "Benny" ;
|
||||||
|
|
||||||
Delete:
|
Delete:
|
||||||
|
|
||||||
correct: x
|
correct: DELETE FROM people WHERE ( name == "John" ) ;
|
||||||
incorrect: x
|
incorrect: DELETE IN people WHEN (name=John) ;
|
||||||
|
|
Reference in a new issue