UNPIVOT
è disponibile in MS SQL-Server 2005, ma AFAIK non in MS Access 2010. Come può essere implementato con mezzi integrati? Per esempio, ho una tabellaCome simulare UNPIVOT in Access 2010?
ID | A | B | C | Key 1 | Key 2 | Key 3
---------------------------------------
1 | x | y | z | 3 | 199 | 452
2 | x | y | z | 57 | 234 | 452
e vogliono avere una tabella come
ID | A | B | C | Key
--------------------
1 | x | y | z | 3
2 | x | y | z | 57
1 | x | y | z | 199
2 | x | y | z | 234
2 | x | y | z | 452
Key 452 è un caso speciale. Attualmente eseguo la rotazione in OLEDB/ATL C++. Anche se è abbastanza veloce sono ancora curioso. Qual è l'istruzione SQL più efficiente per Access 2010 qui?
Sembra buono e ovvio! –