parser OUTPUT.txt finished

This commit is contained in:
Rebecca Schofield 2015-09-22 23:03:50 -05:00
parent a7463a1e89
commit 6fe791a41f

View file

@ -1,5 +1,3 @@
show incorrect/correct example for each cmd/query
---------------
Queries
---------------
@ -12,27 +10,27 @@ incorrect: select ( age ))))) people ;
Projection:
correct: project ( age ) people ;
incorrect: x
incorrect: project age people ;
Renaming:
correct: rename ( age, years old ) ;
incorrect: x
incorrect: rename age years ;
Set Union:
correct: x
incorrect: x
correct: union ( people + animals ) ;
incorrect: union people animals ;
Set Difference:
correct: x
incorrect: x
correct: difference ( people - animals ) ;
incorrect: difference people animals ;
Cross Product:
correct: x
incorrect: x
correct: product ( people * animals ) ;
incorrect: product people animals ;
-------------------
Commands
@ -70,8 +68,8 @@ incorrect: CREATE TABLE people age name ;
Update:
correct: x
incorrect: x
correct: UPDATE people SET ( age = 10 ) WHERE ( name == "Bob" ) ;
incorrect: UPDATE ( age = 10 ) WHERE people ;
Insert:
@ -80,5 +78,5 @@ incorrect: INSERT INTO people 12 "Benny" ;
Delete:
correct: x
incorrect: x
correct: DELETE FROM people WHERE ( name == "John" ) ;
incorrect: DELETE IN people WHEN (name=John) ;