#43443 - 23/10/200116:05Re: Way OT: any SQL gurus here?
[Re: SpiceBoy]
eternalsun Pooh-Bah
Registered: 09/09/1999
Posts: 1721
Loc: San Jose, CA
Some databases support on-the-fly temp tables that self garbage collect.
If you're very clever, you can nest-select-insert-select and pull a top 10. But you have to be clever. Depending on the database, you'll get yelled at, or you'll get very fast top tens that nobody else will be able to understand because you're so clever....