Hey,
I am trying to take two dates, end date and start date, and find the difference between the two. I am then going to add all the differences up to find an average length of time based on a certain criteria. How do I go about finding the difference between the two dates, is there a function? I seem to remember using a interval function or something like that but I can't find it anywhere in the book I have.
Also I was wondering about string manipulation functions, I work with perl, so I was thinking along the lines of a split function; I want to split a field on the | symbol (don't ask why I just have to), does sql have this sort of power or am I going to have to find another way around.
Maybe someone could point me to a good website that has lots of examples and stuff or failing that maybe a good book.
Thanks for the help
I am trying to take two dates, end date and start date, and find the difference between the two. I am then going to add all the differences up to find an average length of time based on a certain criteria. How do I go about finding the difference between the two dates, is there a function? I seem to remember using a interval function or something like that but I can't find it anywhere in the book I have.
Also I was wondering about string manipulation functions, I work with perl, so I was thinking along the lines of a split function; I want to split a field on the | symbol (don't ask why I just have to), does sql have this sort of power or am I going to have to find another way around.
Maybe someone could point me to a good website that has lots of examples and stuff or failing that maybe a good book.
Thanks for the help