Jump to content

Help Please with SELECT...


messer

Recommended Posts

I'm new in SQL,and i don't know how to make to work this query? Any advice would help me... Thanks

SELECT table1 . coloum1 , table1 . coloum2 , table1 . coloum3 , table1 . coloum4 , SUM(table1 . coloum3) , SUM(table1 . coloum4)  
FROM `table1`   
WHERE ( SUM(table1 . coloum3) >= SUM(table1 . coloum4) ) 
GROUP BY table1 . coloum1 

 

Link to comment
https://forums.phpfreaks.com/topic/161378-help-please-with-select/
Share on other sites

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.