Hi,
I have written following sql query, but output is not getting proper. It is not showing that state wise proper result.
1. In first sql query I want output my with state and year wise with quarters
2. In second sql query I want out with Quarters if must be compared with Quarter and years . ie.( 'January-March’, 'April-June')
Select DISTRICT_NAME, TOTAL_POPULATION_AS_PER_CENSUS_2011, YEAR From NINTY_SIX_COLUMN_MASTER
Where ((DISTRICT_NAME ='AHMEDNAGAR' and TOTAL_POPULATION_AS_PER_CENSUS_2011 > 500) Or (DISTRICT_NAME ='AKOLA' And TOTAL_POPULATION_AS_PER_CENSUS_2011 < 600))
And (YEAR = 2013 And Quaters ='January-March')
Select DISTRICT_NAME, TOTAL_POPULATION_AS_PER_CENSUS_2011, YEAR From NINTY_SIX_COLUMN_MASTER
Where ((DISTRICT_NAME ='AHMEDNAGAR' and TOTAL_POPULATION_AS_PER_CENSUS_2011 > 500 And YEAR = 2013 And
Quaters ='January-March') Or (DISTRICT_NAME ='AKOLA' And TOTAL_POPULATION_AS_PER_CENSUS_2011 < 600 YEAR = 2013 And Quaters ='April-June'))