sql=select distinct top 199 premium,cast(datemmm+' '+datedd+' '+dateyyyy as datetime),ggevent.timeampm,ggevent.timehh,ggevent.timemm,genre,feature,ggevent.xid,groupname,longitudex as longitude,latitudex as latitude,ggevent.xid,timemm,timehh,timeampm,title,ggevent.zip,ggevent.city,ggevent.state,venue,location,datemmm,datedd,dateyyyy,groupname,ggevent.groupid,ggevent.areacode,ggevent.prefix,ggevent.suffix,ggevent.extension,description,ggevent.contact,ggevent.email,admission,cost,sqrt(power(69.1*(35.110055-latitudex),2)+power(53*(-89.945392-longitudex),2)) as miles from ggevent,gguser,zipcodes where ggevent.datemmm > ' ' and ggevent.dateyyyy > ' ' and ggevent.datedd > ' ' and ggevent.title <> 'ggnew' and ggevent.title > ' ' and ggevent.groupid > ' ' and gguser.groupid=ggevent.groupid and gguser.approved='Y' and title='Macedonia ' and zipcodes.zipcode=ggevent.zip and cast(datemmm+' '+datedd+' '+dateyyyy as datetime) >= '1/1/1956' and cast(datemmm+' '+datedd+' '+dateyyyy as datetime) <= '12/31/2099' and approved='Y' and ggevent.title <> 'ggnew' and ggevent.title > ' ' and ggevent.groupid > ' ' and gguser.groupid=ggevent.groupid and zipcodes.zipcode=ggevent.zip and (feature='P' or feature='Y' or feature is null or feature='N') and getdate()-1 < cast(datemmm+' '+datedd+' '+dateyyyy as datetime) and sqrt(power(69.1*(35.110055-latitudex),2)+power(53*(-89.945392-longitudex),2)) < 100 order by cast(datemmm+' '+datedd+' '+dateyyyy as datetime),ggevent.timeampm,ggevent.timehh,ggevent.timemm

LINK TO US | CUSTOMIZED EVENT LISTINGS | ABOUT GOSPEL GIGS | PRIVACY POLICY | CONTACT US

Copyright  © 2007-2009 - GospelGigs.com