Rexolio
Technical User
- Aug 29, 2001
- 230
I have a 3 table relational database. I keep getting a timeout on the script below. I'm sure its horrible and would appreciate someone helping me to neaten up! 
SELECT Names.*, Info.*, Categories.* FROM Names, Info, Categories WHERE (Names.EntryDate BETWEEN '4/1/02' AND '4/15/02') AND Names.Updates = 'Yes' AND Names.NameID = Info.NameID AND (86 In (Info.CityID,Info.CityID2,Info.CityID3,Info.Shared)) ORDER BY Info.CancelDate ASC
SELECT Names.*, Info.*, Categories.* FROM Names, Info, Categories WHERE (Names.EntryDate BETWEEN '4/1/02' AND '4/15/02') AND Names.Updates = 'Yes' AND Names.NameID = Info.NameID AND (86 In (Info.CityID,Info.CityID2,Info.CityID3,Info.Shared)) ORDER BY Info.CancelDate ASC