Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

FETCHING DATA FROM IN BETWEEN DATAS

$
0
0

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!=''))



Viewing all articles
Browse latest Browse all 23857

Trending Articles