Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A little SQL puzzle
Message
De
17/01/2010 16:06:05
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., Nouvelle Zélande
 
 
À
17/01/2010 16:02:36
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01444375
Message ID:
01444454
Vues:
57
Actually, in SQL OLAP, there's a built-in MDX function for MEDIAN

That was to be my second answer: for a billion rows I'd use Oracle, since Oracle PSQL has a MEDIAN expression. ;-)

But perhaps the best answer would be that if you really need to do stats on resultsets of that magnitude you'd have to consider one of the specialist big-iron stats packages rather than trying to roll your own.
"... They ne'er cared for us
yet: suffer us to famish, and their store-houses
crammed with grain; make edicts for usury, to
support usurers; repeal daily any wholesome act
established against the rich, and provide more
piercing statutes daily, to chain up and restrain
the poor. If the wars eat us not up, they will; and
there's all the love they bear us.
"
-- Shakespeare: Coriolanus, Act 1, scene 1
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform