Discussion: Simple MySQL issue
Afficher un message
Vieux 02/10/2007, 19h45   #2
worldcyclist@gmail.com
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Simple MySQL issue

I have been doing this...
SELECT tmp.count, tmp.mailing_id, lists.name
FROM
tmp, lists
WHERE
tmp.mailing_id = lists.mailing_id

I keep getting a zero result.


On Oct 2, 2:38 pm, worldcycl...@gmail.com wrote:
> Hey folks. I have been formulating SQL queries to the point of my
> brain turning to tapioca today. I have a simple query or at least it
> seems simple enough.. Two tables...
>
> TMP
> count - mailing_id
> 20 10
> 30 11
> ....
>
> LISTS
> mailing_id name
> 10 list 10
> 11 list 11
>
> I simply need to for every record in TMP match the name from LISTS so
> that the results look like this...
>
> count mailing_id name
> 20 10 list 10
>
> I think my brain has just given out because this is a remarkably
> simple query I know.



  Réponse avec citation
 
Page generated in 0,10766 seconds with 9 queries