Following is the sql query:
SELECT DISTINCT USR.USERID FROM USER USR, USERWATCH UW WHERE USR.ADDEDBYID =1 AND
USR.COUNTRY = CASE WHEN (UW.COUNTRY is null) THEN USR.COUNTRY ELSE UW.COUNTRY END AND
USR.ALIVE = 'A'
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157968#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...