how to convert an sql view to table i have a view and its taking longer time to execute so i need to write simple query to rather than view