A method and system for performing spreadsheet-like operations in a database
system
is described herein. As explained, a database language is extended to introduce
new clauses ("spreadsheet-like clauses"), for defining and executing spreadsheet-like
operations on data contained within a RDBMS. According to one aspect of the invention,
in response to receiving a database query that specifies an operation for manipulating
data, data from a relational structure is retrieved and stored in a non-relational
structure that can be addressed as a multi-dimensional array. The operation specified
in the database query is the performed on then data.