This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
dmspine64backup/OUTPUT.txt
2015-09-22 23:03:50 -05:00

82 lines
1.4 KiB
Text
Executable file

---------------
Queries
---------------
Selection:
correct: select ( age == 12 ) people ;
incorrect: select ( age ))))) people ;
Projection:
correct: project ( age ) people ;
incorrect: project age people ;
Renaming:
correct: rename ( age, years old ) ;
incorrect: rename age years ;
Set Union:
correct: union ( people + animals ) ;
incorrect: union people animals ;
Set Difference:
correct: difference ( people - animals ) ;
incorrect: difference people animals ;
Cross Product:
correct: product ( people * animals ) ;
incorrect: product people animals ;
-------------------
Commands
-------------------
Open:
correct: OPEN people ;
incorrect: OPEN ;
Close:
correct: CLOSE people ;
incorrect: CLOSE ;
Save:
correct: SAVE people ;
incorrect: SAVE ;
Exit:
correct: EXIT ;
incorrect: EXIT people ;
Show:
correct: SHOW people ;
incorrect: SHOW ;
Create:
correct: CREATE TABLE people ( age INTEGER, name VARCHAR ( 20 ) ) PRIMARY KEY ( name ) ;
incorrect: CREATE TABLE people age name ;
Update:
correct: UPDATE people SET ( age = 10 ) WHERE ( name == "Bob" ) ;
incorrect: UPDATE ( age = 10 ) WHERE people ;
Insert:
correct: INSERT INTO people VALUES FROM ( 12, "Benny" ) ;
incorrect: INSERT INTO people 12 "Benny" ;
Delete:
correct: DELETE FROM people WHERE ( name == "John" ) ;
incorrect: DELETE IN people WHEN (name=John) ;