MySQL Forums
Forum List  »  Performance

Anyidea why not ? or solution
Posted by: helo worl
Date: November 10, 2005 11:57AM

mysql> select agentid,compid,pin,destno,blegzone,duration,
-> (
-> select rate from agentcost,
-> (
-> select rate1 from agentprofile,agent where
-> agentprofile.agentid=cdr.agentid and profile=wk_profile and agent.agentid=cdr.agentid and agent.agentid=cdr.agentid and hour2>=left(cdr.time,2) limit 1
-> ) ratetmp
-> where agentid=cdr.agentid and rateid = ratetmp.rate and c_code=substr(cdr.destno,1,agentcost.c_code_len) limit 1
-> ) as cost
-> from cdr where date='03/11/2005' and duration>0 limit 1;

ERROR 1109 (42S02): Unknown table 'cdr' in where clause
mysql>

Options: ReplyQuote


Subject
Views
Written By
Posted
Anyidea why not ? or solution
1579
November 10, 2005 11:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.