Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Analytic question - lead

Status
Not open for further replies.

saragosti

Programmer
Jan 19, 2012
8
CA
Hi there,
I'm trying to write a function to select a series of events in one location, and tell me the time between these events. Lead has worked well thus far for this, however, I also want it to stop on certain events. Is there a way to tell it for example if it's been more than an hour, to not use the previous or next event?

Thanks,
Eric
 
Yes, Eric, you can do this, but to illustrate how, please post appropriate CREATE TABLE and INSERT INTO statements for us.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
“People may forget what you say, but they will never forget how you made them feel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top