« first day (1281 days earlier)      last day (3037 days later) » 

5:02 AM
hii
I want a stored procedure. I have table1 with columns pageid, description and table2 with pageid and pagecreateddate.

I want hourly count of pageid.

Sample output :

table2.pageid || table1.description || count(table2.pageid) as hourlycount.

And I have a table3 with pageid and countOfPageid which contain some predefined values.

I want to compare the the hourly count of table2.pageid with count of table3.pageid.

if count (table2.pageid ) < count ( table3.pageid)

then I want to return the pageid, count and a message like count is less than expected.
 
 
2 hours later…
7:21 AM
good evening
 
 
2 hours later…
9:09 AM
Hello
 
 
6 hours later…
2:40 PM
Does it make sense to have 2 indexes on the same column?
 

« first day (1281 days earlier)      last day (3037 days later) »