How about this:

SELECT          e.eventID, e.eventName, e.eventTeaser,
                e.eventDate, m.musicGenreID, m.musicGenreName
FROM            tbl_020eventDetails e
INNER JOIN      tbl_020musicGenres m
        ON      e.musicGenreID = m.musicGenreID
WHERE           e.eventDate >= #DateAdd("d", -1, UKtodayDate)#
ORDER BY        e.eventDate ASC


Steve Bryant.
Bryant Web Consulting LLC
http://www.BryantWebConsulting.com/
http://steve.coldfusionjournal.com/ 

>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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:222298
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to