Click here to Skip to main content
15,902,636 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I want to convert column into rows in Access 2013.
I have tried by using pivot /U n Pivot , but still i have got n Issue.

please see the following Command I have written in access database.

SQL
SELECT [Case Number], [Author 1], [Author 2], [Author 3]
FROM 
(
SELECT [Case Number], [Author 1], [Author 2], [Author 3]
FROM [Gold Metadata]
) 
UNPIVOT
(Orders FOR [Gold Metadata] IN 
( [Author 1], [Author 2], [Author 3])
)AS unpvt;
GO



Please give me any solution on it

Thanks ,
Samadhan Kshirsagar
Posted
Updated 8-Jun-14 20:48pm
v3
Comments
DamithSL 6-Jun-14 9:11am    
can you add sample input output?
samadhan_kshirsagar 6-Jun-14 10:04am    
I have this following Input:

CaseNumber Author1 Author2 Author3

C001 Gaurav Samadhan Vijay
C002 Harish Shivprasad srinivas


I want this type of output:

CaseNumber C001 C002
Author1 Gaurav Harish
Author2 Samadhan Shivprasad
Author3 Vijay srinivas


I want this is in Access 2013
thanks,
Samadhan
karthik Udhayakumar 7-Jun-14 0:11am    
Acces 2013 or SharePoint 2013.pls confirm or recheck your question for better solutions
samadhan_kshirsagar 9-Jun-14 2:49am    
Sorry For that...

it is access 2013.
karthik Udhayakumar 9-Jun-14 3:23am    
It's ok,Then fine my solution should work for you..all the best

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900