Yes, I forgot that - doh! Can't believe I forgot that.
Thanks Charlie! :)
> <cfquery datasource="user020" name="GetEvents">
> SELECT e.eventID, e.eventName, e.eventTeaser,
> e.eventDate, m.musicGenreID, m.musicGenreName
> FROM tbl_020eventDetails e, tbl_020musicGenres m
> WHERE e.eventDate >= #DateAdd("d", -1, UKtodayDate)#
> <!--- join tables --->
> AND e.musicGenreID = m.musicgenreid
>
> ORDER BY e.eventDate ASC
> </cfquery>
>
> Try this. I think you are getting mulitple records because you're
> original
> query did not join the two tables in you're 'From' clause.
>
> rgds,
> Charlie Hanlon
>
>
>
> ----- Original Message -----
> From: "Saturday (Stuart Kidd)" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[email protected]>
> Sent: Wednesday, October 26, 2005 9:49 AM
> Subject: Simple SQL
>
>
>
>> Hi guys,
>>
>> I'm trying to do a simple query but am having a blank and pulling
>> multiples.
>>
>> <!--- get all event details and their corresponding
>> music genre type --->
>> <cfquery datasource="user020" name="GetEvents">
>> SELECT e.eventID, e.eventName, e.eventTeaser,
>> e.eventDate, m.musicGenreID, m.musicGenreName
>> FROM tbl_020eventDetails e, tbl_020musicGenres m
>> WHERE e.eventDate >= #DateAdd("d", -1, UKtodayDate)#
>> ORDER BY e.eventDate ASC
>> </cfquery>
>>
>> What i'd like it to do is pull each event and the corresponding music
>> genre but instead each record is getting pulled multiple times all
>> with the same musicGenreID details.
>>
>> Any help I'd be grateful,
>>
>> Thanks,
>>
>> Saturday
>>
>>
>>
>>
>>
>>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222301
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