I'm not sure I understand what your problem is.
Do you know what the contents of the table are and don't know how to output the data?
Is the output to be printed on a console screen using print or...