Hi There,
I'm working on some functions which will generate reports from SQL queries automatically with values for headers and footers. For example, the query I might run would be:
"Select FirstName, LastName, Age from Table"
... so the result might be:
John Smith 15
Joe Law 25
Sue Knight 32
mySQL or the database server is returning 3 rows and 3 columns. The question I have is, does SQL ONLY specify returns of this type? Or is there any language set that would return more so that we'd get a resource of:
FirstName LastName Age
John Smith 15
Joe Law 25
Sue Knight 32
82
Which is of course FIVE rows by 3 columns now (82 is the sum of the ages for example).
Was Structured Query Langauge ever remotely envisioned for this type of functionality? And if you have any URL links, I'd appreciate if you let me know.
Sincerely,
Sam Fullman
Compass Point Media