Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^6: find difference in dates/items in same column

by zerocred (Beadle)
on Nov 15, 2008 at 22:32 UTC ( #723855=note: print w/replies, xml ) Need Help??

in reply to Re^5: find difference in dates/items in same column
in thread find difference in dates/items in same column

I think your brand/date and reverse date/brand index is a great idea for this and all sorts of other applications! I hadn't thought to set them up quite that way in this case.

To maintain the rank would mean searching backward through the table to find the last 'brand' entry and its corresponding rank. I'll investgate triggers and think about how to do it when the new records are being inserted rather than after the fact.

Thanks for all the help! it has been great... Apologies for contaminating a perl forum with what turned out to be a SQL question!
  • Comment on Re^6: find difference in dates/items in same column

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://723855]
[choroba]: also, seeing communist propaganda I remember from my childhood... very strange experience
[LanX]: ha the Cuban experience
[LanX]: one strange thing I heard was that pharmacies in Vietnam are run by Russians

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2017-02-26 04:49 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (371 votes). Check out past polls.