Query takes to much time
| From: | Andr� Sannerholt | Date: | Tue, 03 Jun 2003 13:59:44 +0000 |
| Subject: | Query takes to much time | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-28258@lists.php.net to get a copy of this message | ||
Hi everybody,
now I have the following qery that still needs to much time:
select distinct Anschriften.ID as aid, Anschriften.PLZ as aplz,
Anschriften.STRASSE as astrasse, Anschriften.HNR as ahnr from Anschriften
inner join Master on Anschriften.ID=Master.A
inner join Master as m on Master.FN=m.FN
inner join Personen on m.NN=Personen.ID
where Personen.ID = "$id"
It gives me the correct results
I hope you can help me to get it faster!
André