the basic query would be
select column1, column2 from table where column1 is not null
additionally you can add table hint INDEX, but that depends on your data in database
With kind regards
Krystian Zieja
http://www.projectnenvision.com
Follow me on twitter
My Blog