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

85 lines
1.1 KiB
Text
Raw Normal View History

2015-09-22 22:49:17 -05:00
show incorrect/correct example for each cmd/query
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
---------------
Queries
---------------
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
Selection:
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
correct: select ( age == 12 ) people ;
incorrect: select ( age ))))) people ;
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
Projection:
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
correct: project ( age ) people ;
incorrect: x
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
Renaming:
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
correct: rename ( age, years old ) ;
incorrect: x
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
Set Union:
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
correct: x
incorrect: x
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
Set Difference:
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
correct: x
incorrect: x
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
Cross Product:
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
correct: x
incorrect: x
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
-------------------
Commands
-------------------
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
Open:
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
correct: OPEN people ;
incorrect: OPEN ;
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
Close:
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
correct: CLOSE people ;
incorrect: CLOSE ;
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
Save:
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
correct: SAVE people ;
incorrect: SAVE ;
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
Exit:
2015-09-15 23:13:28 -05:00
2015-09-22 22:49:17 -05:00
correct: EXIT ;
incorrect: EXIT people ;
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
Show:
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
correct: SHOW people ;
incorrect: SHOW ;
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
Create:
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
correct: CREATE TABLE people ( age INTEGER, name VARCHAR ( 20 ) ) PRIMARY KEY ( name ) ;
incorrect: CREATE TABLE people age name ;
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
Update:
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
correct: x
incorrect: x
2015-09-17 17:14:28 -05:00
2015-09-22 22:49:17 -05:00
Insert:
2015-09-17 17:14:28 -05:00
2015-09-22 22:49:17 -05:00
correct: INSERT INTO people VALUES FROM ( 12, "Benny" ) ;
incorrect: INSERT INTO people 12 "Benny" ;
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
Delete:
2015-09-15 23:21:38 -05:00
2015-09-22 22:49:17 -05:00
correct: x
incorrect: x