Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Teaser
Message
De
08/02/1999 16:28:50
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Teaser
Divers
Thread ID:
00185277
Message ID:
00185277
Vues:
55
Since there's no activity here maybe I can generate some...

This is a favorite of mine. First, without trying it, which query would you expect to generate more IO:

SELECT MIN(column1), MAX(column1) FROM table
SELECT MIN(column1), (SELECT MAX(column1) FROM table) FROM table

IMPORTANT: It only works on 6.5 and there must be an NC index on column1!!!

After you've guessed, run both queries. Don't forget to SET STATS IO ON to get the IO counts.

Have fun

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform