I am very limited in my sql abilities, I have only used simple queries and joins in MS Access. My task is to convert this data:
Meter_Number Date Time Kwh
93112575 23/05/2019 08:00:00 278.334
93112575 23/05/2019 09:00:00 279.254
93112575 23/05/2019 10:00:00 280.012
93112575 23/05/2019 11:00:00 281.315
93112575 23/05/2019 12:00:00 282.256
93112575 23/05/2019 13:00:00 285.852
18794160 22/05/2019 14:00:00 6145.504
18794160 22/05/2019 15:00:00 6147.968
18794160 22/05/2019 16:00:00 6150.855
18794160 22/05/2019 17:00:00 6155.283
18794160 22/05/2019 18:00:00 6161.977
18794160 22/05/2019 19:00:00 6162.854
18794160 22/05/2019 20:00:00 6163.644
18794160 22/05/2019 21:00:00 6165.763
18794160 22/05/2019 22:00:00 6169.031
18794160 22/05/2019 23:00:00 6172.302
18794160 23/05/2019 00:00:00 6175.58
18794160 23/05/2019 01:00:00 6178.863
18794160 23/05/2019 02:00:00 6182.146
18794160 23/05/2019 03:00:00 6185.426
18794160 23/05/2019 04:00:00 6188.709
18794160 23/05/2019 05:00:00 6191.994
18794160 23/05/2019 06:00:00 6195.276
18794160 23/05/2019 07:00:00 6197.547
18794160 23/05/2019 08:00:00 6198.336
18794160 23/05/2019 09:00:00 6199.126
18794160 23/05/2019 10:00:00 6200.301
18794160 23/05/2019 11:00:00 6208.569
15296497 22/05/2019 14:00:00 62.064
15296497 22/05/2019 15:00:00 62.095
15296497 22/05/2019 16:00:00 63.044
15296497 22/05/2019 17:00:00 64.062
15296497 22/05/2019 18:00:00 65.024
15296497 22/05/2019 19:00:00 65.085
into this format:
93112575,#1,23/05/2019,08:00:00,278.334,#2,23/05/2019,09:00:00,279.254,#3,23/05/2019,10:00:00,280.012 ~etc.
18794160,#1,22/05/2019,14:00:00,6145.504,#2,22/05/2019,15:00:00,6147.968,#3,22/05/2019,16:00:00,6150.855,#4,22/05/2019,17:00:00,6155.283 ~etc.
15296497,#1,22/05/2019,14:00:00,62.064,#2,15296497,22/05/2019,15:00:00,62.095,#3,22/05/2019,16:00:00,63.044
This is a similar problem posted on your site: R Programming Converting data columns to Rows
Any assistance will be be very much appreciated. I do understand that this is not a simple task and will not be offended if no one has time to assist me in this.
I copied some of the code off one of your pages and added it to an event procedure, it populated the table but it placed all the data in one column.

