Wide tables compute sample program

The wide_compute.c sample program demonstrates processing of compute results with wide tables and larger column sizes. It performs the following:

Following 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 sample program, see the leading comments in the sample source file.

NoteThis sample requires the pubs2 database.