Good Morning Guys, I have a small rookie problem here with my database. I have a database containing all states and (local government areas) Lga's in a country.
NOTE:- Each state has its own unique local government area.
I need an SQL query that would enable me to extract each state containing each LGA. Using Nigeria as an example (37 states, 770 LGA Each )
In ms Excel language, from my database containing about 400k records, I want to export 37 workbooks ( States ), all containing their respective LGAs in worksheets of the state workbook.
Would go a long way if I can be assisted with a SQL query that allows me to export these results as an .xlsx (excel) file(s)
NOTE:- Each state has its own unique local government area.
I need an SQL query that would enable me to extract each state containing each LGA. Using Nigeria as an example (37 states, 770 LGA Each )
In ms Excel language, from my database containing about 400k records, I want to export 37 workbooks ( States ), all containing their respective LGAs in worksheets of the state workbook.
Would go a long way if I can be assisted with a SQL query that allows me to export these results as an .xlsx (excel) file(s)