BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

syntax error in from clause

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Terry
Guest





PostPosted: Thu Feb 17, 2005 9:46 pm    Post subject: syntax error in from clause Reply with quote



using ADO, D6, microsoft access 2000 data base.

get syntax error in from clause for

select c.cntr_name, c.cntr_fedid, p.pyt_fedid, p.pyt_depositdate,
p.pyt_payrolldate,
p.pyt_unionid
from contractor c
join payments p on (c.cntr_fedid = p.pyt_fedid)

payments tables is a child table for contractor (one contractor to many
payments)


Back to top
Andy
Guest





PostPosted: Thu Feb 17, 2005 11:19 pm    Post subject: Re: syntax error in from clause Reply with quote



try changing the Join type eg

select c.cntr_name, c.cntr_fedid, p.pyt_fedid, p.pyt_depositdate,
p.pyt_payrolldate,
p.pyt_unionid
from contractor c
inner join payments p on (c.cntr_fedid = p.pyt_fedid)

Andy

"Terry" <cooleyt (AT) woh (DOT) rr.com> wrote

Quote:
using ADO, D6, microsoft access 2000 data base.

get syntax error in from clause for

select c.cntr_name, c.cntr_fedid, p.pyt_fedid, p.pyt_depositdate,
p.pyt_payrolldate,
p.pyt_unionid
from contractor c
join payments p on (c.cntr_fedid = p.pyt_fedid)

payments tables is a child table for contractor (one contractor to many
payments)





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.