I seriously doubt that. The article body is most likely a CLOB. So you
want to retrieve that 100x just because you have 100 authors???? Don't
tell me this would be faster.

Pascal

> -----Original Message-----
> From: Greg Morphis [mailto:[EMAIL PROTECTED]
> Sent: 09 November 2004 20:08
> To: CF-Talk
> Subject: Re: When two tables go to war (JOIN)
> 
> I'm sorry I have to disagree...
> I'd much rather make one call to the DB and get all of my results in 1
> query. It's faster.
> 
> 
> 
> On Tue, 9 Nov 2004 19:59:14 +0100, Pascal Peters <[EMAIL PROTECTED]>
wrote:
> > Don't join them, there is no reason to in this case. Use 2 queries.
> >
> > Pascal
> >
> >
> >
> > > -----Original Message-----
> > > From: Stuart Kidd [mailto:[EMAIL PROTECTED]
> > > Sent: 09 November 2004 19:22
> > > To: CF-Talk
> > > Subject: When two tables go to war (JOIN)
> > >
> > > Hi guys,
> > >
> > > I've got two tables:
> > >
> > > 1 is full of articles (articleID, articleName, articleBody,
authorID)
> > > 2 is full of authors (authorID, authorFirstName, authorSurname)
> > >
> > > I would like to join them.
> > >
> > > <cfquery name="showArticle" datasource="user020">
> > > SELECT *
> > > FROM Articles
> > > WHERE articleID = '#url.updateID#
> > > </cfquery>
> > >
> > > And
> > >
> > > <cfquery name="getAuthor" datasource="user020">
> > > SELECT authorID, authorFirstName, authorSurname
> > > FROM Authors
> > > </cfquery>
> > >
> > > Could somebody please explain how to join them so I only retrieve
> > certain
> > > articles (where articleID = #url.updateID#) but get all the
Authors
> > (as I
> > > want to populate a list whereby the user can select who is the
author
> > of
> > > this particular article).
> > >
> > > Thanks very much guys,
> > >
> > > Saturday
> > >
> > >
> > >
> > >
> >
> >
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183785
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to