Both answer 1 and 2 in this thread indicate that for this type of task, a relational db, for instance Access, could be a better choice.
Then you proposed that we're going to extract data from spreadsheets using SQL. That's were I got stuck. I have been using SQL to import data to Excel from an Oracle database, but I have never seen SQL as a tool to retrieve data from a spreadsheet.
Even in OpenOffice, one would have to copy or link the data from Calc to Base in order to perform thesse tasks.
Regarding my last question, I was just curios how one in a typical SQL statment would refer to rows and columns in a spreadsheet, but I believe the simple answer to this is: "You don't".