Sql Procedure in Pro C file

Hi,

Can any one help me how to write a sql procedure in a pro *c file for selecting the data from a database and inserting the rows into a queue in a .pc file.

thanx in advance.

This appears to be homework. Please post homework in our special homework forum.