[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] [OT] - SQL question and fastest sorting algorithm
- Subject: [ale] [OT] - SQL question and fastest sorting algorithm
- From: jason.vinson at mindspring.com (Jason Vinson)
- Date: Fri, 25 Apr 2003 08:30:39 -0400
first a question for the DBA/SQL coders out there:
I have a table that i want to grab data out of by referencing two
separate keys as follows:
select create_time, info from table_notes where case2notes = 12345 or
subcase2notes in (select from table subcase where subcase2case = 12345)
From what i understand, you can't do a join on the same table with two
separate keys, and this method is horribly inefficient (read that as it
kills my schema browser to even run that command) and i wanted to see
if there was a better way to request this data, or if i would be better
off just getting all the data from separate queries and then using a
sorting algorithm by date.
which leads me to my second question: what's the most efficient
sorting algorithm by most standards?
TIA,
Jason
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale