-1
Hello, I would like to know how data could be exported from a database to an Excel spreadsheet, not necessarily need a code that does this, but I would like to know which languages can be used, where I can find this information and if it would be possible for example to take a table of cars, and separate into more sheets within a same excel file based on a type. For example: Inside the Automoveis table in the Database there is the type column that can be filled with bike, car, truck, bus. Instead of putting them all together in a single spreadsheet, separating them within the same file, that is, within the excel file, there would be 4 spreadsheets, one for a car, one for a motorcycle, one for a truck and one for a bus.
I am developing my application with Angular6 and Graphql and using some services in Python.
From now on, thank you.
Any language solves this problem, only more details to solve your doubt.
– Tmilitino
@Tmilitino I would prefer to use python or javascript, but the real question is whether it is possible to create a spreadsheet for each type of column in the table in the same excel file. I never messed with it, so I have no idea how it works. In short, if there are 4 types in a database table, 4 spreadsheets would be generated in the same excel file.
– Lucas Morse
it is possible yes, split into 4 files, the way you want. your database is sql? the query would be through which?
– Tmilitino
In Python, the library pandas is widely used for this type of task. It is possible to read csv, excel and sql to a dataframe in memory, modify it and export it as you like, including to several tabs of the same excel file. But of course pandas is not the only tool - and nor Python the only language - existing to do this.
– jfaccioni
@Tmilitino the idea would not be 4 files, but yes, 1 file containing 4 tabs, as said by the colleague above, inside it.
– Lucas Morse