Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
8 replies
Subscribers
4 subscribers
Views
4424 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Export to xlsx file
ravinderl352
over 7 years ago
Hi,
We have a requirement to export database data to the excel (.xlsx) file.
The first column in excel is in "freeze" mode and contains field names. Each row of the db data should go as a column in the excel.
Is there any smart service available to achieve this ?
Attached is the sample file.
Thanks.
OriginalPostID-253002
dummy.xlsx
Discussion posts and replies are publicly visible
Parents
0
Raviteja Varma Jampana
A Score Level 2
over 7 years ago
Hi Ravinder, You can try dynamic pivot tables in SQL for this if number of columns is going to be a small. Please check the link below. However this is not advisable for a growing transaction table because as number grows the query will take long time and it may eventually cause smart service to time out. This one is ideal for lookups.
stackoverflow.com/.../mysql-pivot-row-into-dynamic-number-of-columns
If Number of columns is Big, than it is better to write data into an hidden sheet in excel and use Excel formulas to transponse data into sheets where you want to show it. This approach takes less time to implement and is scalable upto a good extent. Using smart services like SQL to CSV or Excel plugins we can write data into hidden sheets.
Please let me know if you need any help further.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Raviteja Varma Jampana
A Score Level 2
over 7 years ago
Hi Ravinder, You can try dynamic pivot tables in SQL for this if number of columns is going to be a small. Please check the link below. However this is not advisable for a growing transaction table because as number grows the query will take long time and it may eventually cause smart service to time out. This one is ideal for lookups.
stackoverflow.com/.../mysql-pivot-row-into-dynamic-number-of-columns
If Number of columns is Big, than it is better to write data into an hidden sheet in excel and use Excel formulas to transponse data into sheets where you want to show it. This approach takes less time to implement and is scalable upto a good extent. Using smart services like SQL to CSV or Excel plugins we can write data into hidden sheets.
Please let me know if you need any help further.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data