I was asked this question in a job interview:
There is a table with vehicle names mentioned in a column. Output when we check for name=car we must get as 4 i.e the maximum count of continuous occurrence of 'car' in the column.
Can somebody help me get this solution in PostgreSQL?
I tried using rank and dense rank but it didn't work.