Create Query to create View.txt