Question Caio Timm · Jan 22 Transform rows to colums or colums to rows Hello guys, I need to tranform columns into rows or rows into columns.I'm using only SQL Cache. The code: SELECT codRepresentante ,vendasAbril ,vendasAgosto FROM Ped.MetasRepresen WHERE ano = 2024 The columns: #SQL #Caché #InterSystems IRIS 0 1 0 24
Question Caio Timm · Feb 1, 2023 NEED NUMBER ROWS IN SQL SELECT Hi guys, I'm trying find a way to create a row with the number of each row. For example: In the SQL above, i want a way to create a collum with the number of corresponding row, in this case: 1 2 3 In SQl SERVER i can use FOR, RANK or ROM_NUMBER to do this, but, i can't find a way to do the same in cache SQL. Can someone help me? Thank you. #Databases #SQL #Caché 0 4 0 417