Viewing 15 posts - 44,251 through 44,265 (of 59,063 total)
I believe you've successfully converted the Cross Join to an Inner Join with the criteria so, I think this will do the same thing...
[font="Courier New"]Select t1.UserId, t2.StatusDate LogoutDate, Min(DateDiff(n, t1.StatusDate,...
April 8, 2009 at 4:43 pm
Florian Reischl (4/8/2009)
It's another concept than Lowell's but might also help in some cases. Keep in mind, if possible use CONVERT due to a...
April 8, 2009 at 4:37 pm
Lowell (4/8/2009)
one format, the ISO one, is really handy for me, as I have to do a lot of that conversions;
ISO8601 (XML) ...
April 8, 2009 at 4:33 pm
Ells (4/8/2009)
exec sp_spaceused
This then returns
...
April 8, 2009 at 2:53 pm
andrewd.smith (4/8/2009)
Obviously, the actual value of the resulting datetime column is meaningless.
At the risk of rattling the rubble, that statement is 100% spot on. The original developer made a...
April 8, 2009 at 2:46 pm
Ummm.... no.... to be as safe as possible with this method, you MUST include a FROM clause in the update and it must use a TabLockX and index hint that...
April 8, 2009 at 10:27 am
Way to go, Roy! I had a similar experience where I'd interviewed person after person after person for a Sr. Developer position. They all had degrees and certs...
April 7, 2009 at 11:56 pm
Bob Hovious (4/7/2009)
... this is the kind of newbie I like to see...
He is a trophy. Stuff him and mount him on the wall. You could tell from...
April 7, 2009 at 10:53 pm
AFIFM (4/7/2009)
Is this domain type??
No it is not. One of the legacy applications (A) uses 'Access_Level' as VARCHAR which only uses "1", "2", "3",....."8". The second application (B) uses the...
April 7, 2009 at 10:45 pm
Ok... here we go. I copied your very fine test data code and added the answer to it...
[font="Courier New"]--Post to SQL Server Central
--===== If the test table already exists,...
April 7, 2009 at 9:19 pm
Maxim Picard (3/27/2009)
Cross Tabs and Pivots, Part 1...
April 7, 2009 at 8:30 pm
Joseph Henry (4/7/2009)
I'm posting code to create my tables...
Now we're cooking with gas! Well done, Joseph. Lemme see what I can do.
April 7, 2009 at 8:29 pm
By the way... this is the kind of newbie I like to see...
http://www.sqlservercentral.com/Forums/Topic685148-338-1.aspx
The man's original post was absolutely typical of a newbie post. So were a couple of his...
April 7, 2009 at 8:24 pm
Lynn Pettis (4/7/2009)
Jeff Moden (4/7/2009)
Actually, there are a dozen or so good folks on this forum that I'd like to see get the MVP.
I did a little more reading, Jeff....
April 7, 2009 at 8:10 pm
GilaMonster (4/7/2009)
Jeff Moden (4/7/2009)
April 7, 2009 at 8:03 pm
Viewing 15 posts - 44,251 through 44,265 (of 59,063 total)