Skip to content
Advertisement

Sqlite Counter query

When I put query like counter and simple with (distinct nlri), I got a different number of results with timestamp..although the nature of both queries quite similar. is my counter query regarding timestamp have any problem?? Could someone check my queries…

Basically I want to count the number of results per day based on this checking where nlri like '%/32%' and nlri not like '%:%'

first query with counter:

it gives me result 55

and when I put that query

it gives me result OF 52

I am testing on one day timestamp but I have to apply on multiple days…. dataset like that

Advertisement

Answer

I really wouldn’t do this using a sub query and left join.

Just group by the timestamp rounded down to a day?

What does this give for you?

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement