CodingEasy MySQL probably :(

 

Press Ctrl+Enter to quickly submit your post
Quick Reply  
 
 
  
 From:  Peter (BOUGHTONP)  
 To:  steve      
30083.7 In reply to 30083.6 
I think this is what you want...

sql code:
SELECT *
FROM second_table
WHERE bid IN (
              SELECT bid
              FROM first_table
              WHERE lid IN (2,8)
              GROUP BY bid
              HAVING COUNT(*) > 1
             )
0/0
 Reply   Quote More 

 From:  steve   
 To:  Peter (BOUGHTONP)     
30083.8 In reply to 30083.7 
Aaaaaaaah! Awesome! Thankyou! I didn't know you just put a whole query in another query :O

IS THAT CALLED A SUBQUERY? :O

*awaits ben's reply*

0/0
 Reply   Quote More 

 From:  Peter (BOUGHTONP)  
 To:  steve      
30083.9 In reply to 30083.8 
No, it's called a Disilekad.





(Yes, it's a subquery)
0/0
 Reply   Quote More 

Reply to All    
 

1–9

Rate my interest:

Adjust text size : Smaller 10 Larger

Beehive Forum 1.5.2 |  FAQ |  Docs |  Support |  Donate! ©2002 - 2024 Project Beehive Forum

Forum Stats