More along the lines of

SELECT     count(ts.*) as number, tr.*
FROM        tbl_stuff ts,  tbl_stuffReference tr
WHERE     ts.id_stuff = tr.id_stuff
group by tr.*

Robert Everland III
Dixon Ticonderoga
Web Developer Extraordinaire

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 2:57 PM
To: CF-Talk
Subject: Re: Easy SQL query, brain died


Is this it?

SELECT     ts.*, tr.*
FROM        tbl_stuff ts,  tbl_stuffReference tr
WHERE     ts.id_stuff = tr.id_stuff

Hope it helps

Michael Corrigan
Programmer
Endora Digital Solutions 
www.endoradigital.com
630/942-5211 x-134
  ----- Original Message ----- 
  From: Robert Everland 
  To: CF-Talk 
  Sent: Monday, November 26, 2001 1:39 PM
  Subject: Easy SQL query, brain died


  Here is what I am trying to do. I have a table that lists types of
  stuff. In another table I refer to this stuff. So say one record will 
refer
  to stuff 1. another to stuff 2, but maybe no stuff 3
  how would I make a query to show 

  stuff 1 = 1
  stuff 2 = 1
  stuff 3 = 0

  My brain isn't working anymore

  Robert Everland III
  Dixon Ticonderoga
  

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to