hi i want select the data from facplan table where time id is start from 100007. now i want to sum all the data in 100001 to 1000007. how can i do it?
SELECT SUM(SIGNEDDATA)
FROM FACPLAN
WHERE TIMEID IN
(SELECT TIMEID FROM Time
WHERE ID IN
(SELECT CURRENT_MONTH FROM mbrVERSION WHERE CURRENT_MONTH!=''))