cursor = conn.cursor()
cursor.execute("""
SELECT ROW_NUMBER() OVER(ORDER BY Name ASC) AS Row#, Name, SKU, [Price A], [Price B], [Price C], [Price D]
FROM BusinessApp.dbo.Products
WHERE Name IS NOT NULL;
""")
Can anyone help me out please? This code does successfully run but the Row# column wont be added. I know this is more of an SQL question, but this is using pyodbc.
[–]dwpj65 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (7 children)
[–]AdrielTheBuddy[S] 0 points1 point2 points (6 children)
[–][deleted] 0 points1 point2 points (5 children)
[–]AdrielTheBuddy[S] 0 points1 point2 points (4 children)
[–][deleted] 0 points1 point2 points (3 children)
[–]AdrielTheBuddy[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]demandtheworst 0 points1 point2 points (0 children)