mysql - SQLite logic error while retrieving person name -


i have doubt regarding sqlite command should written getting name of min(count) , max(timestamp) , after retrieving, timestamp should set current timestamp amd , count should incremented 1.

enter image description here

for first time, table updates sa follows -

enter image description here

and next time, have update timestamp lil current timestamp. third time, jil's timestamp must updated.

i have tried work this, getting logical errors, table not getting updated per requirement. how can implement this?

i have solved problem making changes in database. initially, have set timestamp in descending order. wrote command to display name min(count)and min(timestamp) , updated in same order. worked me.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -