in reply to Re: Filling spreadsheet columns with data from database
in thread Filling spreadsheet columns with data from database
The actual SQL could be more complex, e.g. several joins and subselects. And I'd like to be more general: there might be cases when the primary key is not specified in the sheet's columns.