Topics Topics Help/Instructions Help Edit Profile Profile Member List Register Paatha Gnyapakaalu - Archives from Old DB  
Search New Posts 1 | 2 | 8 Hours Search New Posts 1 | 3 | 7 Days Search Search Tree View Tree View Latest tweets Live Tweets   Hide Images

Rate this post by selecting a number. 1 is the worst and 5 is the best.

    (Worst)    1    2    3    4    5     (Best)

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Ravanabrahma
Mudiripoyina Bewarse
Username: Ravanabrahma

Post Number: 20049
Registered: 06-2004

Rating: N/A
Votes: 0

Posted on Monday, June 18, 2012 - 10:11 pm:   

eyyy..raasesa..below query is working :-)


select * from test_debug a
where 1 = 1
and exists (select project_id
from test_debug b
where 1 = 1
and a.project_id = b.project_id
having sum(amount1) != 0 and sum(amount2) != 0
group by project_id)

Topics | Last Hour | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration