I have the following from and to dates and need to list using a dynamic sql query only the 3 dates that are mentioned below in netezza database
From To
20120603 20120831
Required Result:
20120702
20120703
20120801
Is there a possibility using dynamic SQL query for netezza that dates in a user specified range can be generated.