[personal profile] barking_iguana
WishList: SQL extensions that operate on lists, returning lists. _sum(<select ... > and table-name = and data-type = "integer";_

One should be able to pass the results of that to another select statement, for instance the kind of statement I have at the top: _select sum(select column-name...) from table-name as select column-name..._ would return the sums of all integer columns, appropriately labeled. add a few constants in the outer select and you'd be ready to insert a TOTAL row in any tables whose constraints didn't prevent it.

(If Google+ has an escape character, I can't find it documented and I didn't feel like trial and error. those hyphens are underscores.)

I've been able to make most any environment I've worked in or toyed around with sing tunes like that. If you name related fields according to a set scheme, multiple levels of referentiality can be turn longish scripts into single lines. Spreadsheets, which are criticized for being 'flat' actually have some of the best support for it, if you don't mind formulas that look to the uninitiated as indecipherable as Perl looks to me.

But I don't think I'll be able to do it in SQL. When I feel like exploring more (rather than getting back to work or not working by writing this post) I'll see what temporary tables could accomplish, but if I can't pas computed strings as column names, I don't think I'll get very far.

Date: 2011-12-23 02:29 am (UTC)
From: [identity profile] elgorade.livejournal.com
Strings as column names are basically a no-no is SQL. It can't compute the query plan if it doesn't know what column you might actually be using. Not really defending SQL -- it isn't really a favorite of mine -- but it isn't meant to be a general purpose language.

Profile

Dvd Avins

March 2020

S M T W T F S
123 4567
891011121314
15161718192021
22232425262728
293031    

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 16th, 2026 10:53 am
Powered by Dreamwidth Studios