|
Hello,
I have a table with 2 fields: unique ID, user ID (foreign key) and date-time. This is an access-log to a service. I work in SQL Server but I would appreciate agnostic answers.
I would like using SQL to find for a certain user the ID from where ...
Started by Rax Olgud on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Join....
If desired, you can fix #2 above by changing "t1.time < t2.time" to "t1.time <= t2.time", which will give you a gap of 0 if there is only one record for the user.
Records on the starting or ending boundary of their largest gap.
|
|
The 9 years (1973-1982) between Radar Love and Twilight Zone is a pretty big gap for Golden Earring.
Started by aynrandgirl on
, 20 posts
by 17 people.
Answer Snippets (Read the full thread at stevehoffman):
|
|
I wonder if anyone knows the (optimal?) algorithm for longest recurring non-overlapping sub string.
For example, in the string
ABADZEDGBADEZ
the longest recurring would be "BAD". Incidentally if there is no such result, the algorithm should alert that...
Started by Brandon Pelfrey on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I+1]: return index lst.append(i-k+1) else: substrings[cur]=[i-k+1] return -1 def longest_substring.
|
Ask your Facebook Friends
|
Given a list of assorted length words, what is the best way to find the maximum length of any words?
For example, the following should return 6
findMaxLen("a,set,of,random,words")
Of course, it's fairly trivial to do this...
<cffunction name="findMaxLen...
Started by Peter Boughton on
, 13 posts
by 13 people.
Answer Snippets (Read the full thread at stackoverflow):
FindLongestWord(char* str) { char* lastComma = str - 1; int longest = 0; int length; char* pCheckChar - 1; if(length > longest) { longest = length; } lastComma = pCheckChar; } } // Check to see if the last word is the longest....
|
|
On Fri, 29 May 2009 08:54:52 -0400, Chris/Power Salad <chaff@powersalad.com
I just noticed that my Janis Joplin parody "Hot Dogs and Beans" was
played in April 1985, then again at the end of 2008. I wonder what the
longest gap between plays on the...
Started by Chris/Power Salad on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at omgili):
He'd certainly played the flip side of it since then--"Delicious .
So that's
nearly a 35-year gap.
|
|
Keeping it emo. What is the longest you have gone without a hug? I would say somewhere close to the 6 month range for me.
Started by MAJOR METAL on
, 20 posts
by 20 people.
Answer Snippets (Read the full thread at talkbass):
So that keeps the hug gap inside a week usually..
Mediocre Bass Club #681 * Florida Bassist I see them .
A couple years? Longest time between hugs - about 6 years.
|
|
What is the longest time you went unemployed for? Hi guys,
so my gap year is officially over and I did it.A year of lying on the beach and vegetating is complete and I feel refreshed to head back to the city to find a new job. I am slowly starting to ...
Started by Positively Negative on
, 15 posts
by 10 people.
Answer Snippets (Read the full thread at za):
Vodacom....
I cannot recall the number of days I went home depressed at how people can be so intolerant and ignorant when it comes to IT .
Software or Hardware? http://vleislus.mybrute.com Originally Posted by volstruis Software or Hardware? supported both .
|
|
What are the longest songs in your library? Do you actually listen to them? If so, how many times have you listened to them all the way through?
My longest track is Impossible Soul - Sufjan Stevens @ 25:35. I've only listened to it all the way through...
Started by Patchisou Yutohru on
, 25 posts
by 25 people.
Answer Snippets (Read the full thread at pokecommunity):
The....
It's 14:36.
Longest one I have is Frances the Mute by The Mars Volta.
The top two longest I have are two Pink Floyd songs, but I don't even listen to them that much through my phone, but using my library alone it's only been a handful.
|
|
Posted 24 December 2011 - 10:32 AM
Quote: The Colorado Avalanche’s 2-1 overtime victory over the Tampa Bay Lightning tonight at Pepsi Center was the club’s eighth consecutive win at home, the longest single-season home winning streak since the franchise...
Started by Fan on
, 12 posts
by 1 people.
Answer Snippets (Read the full thread at thenhlarena):
:gap: Posted 01 January 2012 - 04.
Or only winning home games, so the home streak is probably over .
|
|
I came up with this one it runs 29,361 km, 59 days 21 hours
Bear Cove Point Rd to Pineapple Rocks Trk
As far as longest time, I haven't tried as hard at it, but this route is 59 days 23 hours, (but only 29,252 km)
Nain, Canada to Pineapple Rocks
I'm really...
Started by OmnipotentEntity on
, 26 posts
by 19 people.
Answer Snippets (Read the full thread at xkcd):
Reverse travelling salesman problem! Find....
To be within US?
Because wouldn't the longest path be from the eastern part of Russia to the south point google maps has indexed for the longest possible route.
|