Compute rows example program

The compute.c example program demonstrates processing compute results and performs the following:

This is the canned query:

select type, price from titles 
 where type like "%cook" 
 order by type, price 
 compute sum(price) by type 
 compute sum(price)

This query returns both regular rows and compute rows. The compute rows are generated by the two compute clauses:

For more information about this program, see the leading comments in the example source file.

NoteThis example requires the pubs2 database and titles table.