I’m working with a SQL view that I created but I want to add in an ID column (identity seed) as the current one has none. How can I accomplish this in SQL View?

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If there is no identity column in the underlying table, you can generate one with pseudo-columns.
In SQL server: SELECT ROW_NUMBER() OVER (ORDER BY FiscalYear, FiscalMonth), FiscalYear, FiscalMonth, … FROM …
See http://msdn.microsoft.com/en-us/library/ms186734.aspx
In Oracle: SELECT ROWNUM, FiscalYear, FiscalMonth, … FROM … .
In oracle, ROWNUM uses the order in the result set.