Register   Login
     
  Latest Posts  
RE: Google Maps
by smcculloch on 11/23/2008 10:29 AM
RE: I cant get rss feeds to work correctly
by smcculloch on 11/23/2008 10:27 AM
captcha still proken
by StatisticsIO on 11/23/2008 6:11 AM
RE: Comments RSS feeds
by StatisticsIO on 11/23/2008 6:09 AM
Regions and Copuntry List scripts for Location Types
by rodneyjoyce on 11/23/2008 4:56 AM
RE: BUG: Sort by: Price
by usheen on 11/23/2008 1:23 AM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 11:16 PM
RE: I cant get rss feeds to work correctly
by davidthomson on 11/22/2008 11:14 PM
Google Maps
by bmurphy on 11/22/2008 11:11 PM
RE: News Articles 301 Redirect
by swebster on 11/22/2008 10:47 PM
  Forums  
Subject: SQL Question
Prev Next
You are not authorized to post a reply.

Author Messages
p spethUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:114

8/27/2008 7:26 AM  

I am trying to query database tables setup w/ Many to Many Relasionship.

[tblBusiness] - [tblBusCats] - [tblCategories]

My goal is to return the fields in tblBusiness, and a field w/ Comma delimited list of Categories.

This will Return the comma delimited list of Categories for a single input.

 

      

 

I tried to combinw this with the select for Businesses using a subquery but I get the following errror:

Incorrect syntax near '='.

Here is the code:

 

Could anyone give me a suggestion on how to resolve this?

Thanks

You are not authorized to post a reply.



ActiveForums 3.7