-1
Good morning, fellow programmers. I would like an aid, I have a database in mysql with a certain amount of users, and I need to take the interval of hours (ex: 10:00 until 14:00) and divide by the amount of users, and then set the value divided for each user. That is, let’s assume that I have 4 users, then divide the interval of hours and give one hour each. Then I need this division result to be inserted for users.
Ex: Divide the range (10:00 to 14:00), and assign to each user.
user1 = 10:00 to 10:59:59
user2 = 11:00 to 11:59:59
user3 = 12:00 to 12:59:59
user4 = 13:00 to 14:00:00
So that we can help, give some concrete example, for example the structure of this table where you store this data.
– arllondias