Показать сообщение отдельно
Старый 03.06.2005, 10:13   #5  
arnold is offline
arnold
Участник
 
30 / 11 (1) +
Регистрация: 27.04.2005
Наверное так будет оптимальнее, хотя к вопросу похоже это не имеет отношения

PHP код:
display Name getCountyName()
{
    
County   county;
    
State       state;
    ;
    return (
select firstonly Name from state
                     where this
.state ==state.StateId
                         join Name from county
                            where state
.StateId == county.StateId).Name;