[prev] 3 [next]

Assignment 2 (cont)

Commands:

$ ./create  R  3  5  "0,0:0,1:1,0:2,0:1,1:0,2"
... makes new MALH file called R with 3 attrs, 8 data pages, ...

$ ./gendata  1000  3 | ./insert  R
... generates 1000 tuples and inserts them into R files ...

$ ./gendata  500  3  1001  13 | ./insert  R
... generates another 500 tuples and inserts them into R ...

$ ./select  R  "?,eyes,girl"
... finds all tuples with "eyes" as second attribute value ... 
...                   and "girl" as third attribute value ... 

$ ./select  R  "123,?,?"
... finds all tuples with 123 as first attribute value ... 

$ ./stats  R
... display information about the relation/files (debugging) ...