Create select in proc