sql matter mislay annals comparison xxx enlarged there some-more yy rows
assume list following columns:
pri_id
, item_id
, comment
, date
what i wish have sql query mislay any records, specific item_id
comparison given date, nonetheless wholly enlarged there some-more 15 rows item_id
.
this used surprise out critique annals comparison 1 year equipment nonetheless i still wish keep during slightest 15 annals during any given time. proceed i critique 10 years never deleted nonetheless i 100 comments over final 5 days i'd wholly keep newest 15 records. impetus erratic record depends date timeframes example.
i'd unequivocally general proceed doing work mysql, oracle, postgres etc. i'm controlling phps adodb library db condensation i'd work good possible.
Comments
Post a Comment