Dim str As String
str = $"CREATE VIEW view_moshtari_sath as
Select ROW_NUMBER() OVER ( ORDER BY year ASC , mon ASC , day ASC , ath1.ID ASC )
RowNum , ath1.bedehkari , ath1.talabkari , ath1.tozih , ath1.ID , ath1.year , ath1.mon , ath1.day , ath1.ID_moshtari , ID_hesab
from Tbl_moshtari_sath2 As ath1
ORDER BY year DESC , mon DESC , day DESC , ath1.ID DESC"$
sql.ExecNonQuery(str)