Jump to content

i've lost my mind. help with simple (JOIN) query...?


glennn.php

Recommended Posts

ok, I have two tables:

 


Petitions
+------------------+-----------------+
| petition         | petition_auth
+------------------+-----------------+
| 1                | 1                   
| 2                | 2                   
| 3                | 2                   
+------------------+-----------------+

Signatures
+------------------+-----------------+
| petition         | petition_sig   
+------------------+-----------------+
| 1                | glenn            
| 1                | bob               
| 2                | alice              
| 3                | jane              
+------------------+-----------------+

 

i have lost my mind and cannot figure out how to get JUST the Signatures for ALL of the petitions belonging to Author 2. i'm not very good with JOINs, but i'm not even sure that that's necessary. could someone lend a hand?

 

thanks

GN

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.