Posts by Iago Gomes • 3 points
2 posts
-
0
votes2
answers79
viewsA: Pivot with Temporary Table
I was able to solve the problem through the following script: SELECT DISTINCT MAX(pivot_table.TCK_SEQUENCIAL) AS TCK_SEQUENCIAL, MAX([1]) AS CAT_NUMERO_1, MAX([2]) AS CAT_NUMERO_2, MAX([3]) AS…
-
0
votes2
answers79
viewsQ: Pivot with Temporary Table
Hello. I am building a query where I need to use pivot to analyze the results, but it does not return the necessary data. Original table: select * from tbCampoAdicionalTicket where TCK_SEQUENCIAL =…