SQL Querry
SQL Querry
for revenue billed , replace bilprocess by revcoll and (bl) by r for substation wise, replace circuitcode by substacode select substcode,sum(currentamount) from billprocess a, mconsumer b, substation c where a.substacode=b.substationcode and b.substationcode =c.substationcode and blyear=2013 and blmonth=02 and readercode=5 group by substacode order by substacode IN VERY FIRST COMMAND REPLACE - BY = where a.consumercode=b.consumercode and blyear=2013