August 4, 2010 at 2:02 pm
Steve Jones - Editor (8/4/2010)
I vote no. I like my watch. I don't want to have to buy a new one that has 10 digits.Plus I have this cool clock:
I have that same clock hanging in my office.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 4, 2010 at 2:14 pm
Stefan Krzywicki (8/4/2010)
mtillman-921105 (8/4/2010)
ALZDBA (8/4/2010)
GilaMonster (8/4/2010)
Jack Corbett (8/4/2010)
Probably the most complex SQL I've had to write. Too many OUTER JOINs (business requires this design), and then parameters that could turn the OUTER JOINs to INNER JOINs and may not be what the business wants in some cases.Swap?
I got stuck this afternoon helping out with a query where I needed to add several columns that stored elapsed time.
Easy enough? Sure, except that the person who designed the database stored those elapsed times as the TIME datatype.
And you can't add two time columns. Makes sense, there's no meaning to 11am + 5pm. However in this case 11am meant 11 hours and 5pm meant 17 hours. Cue multiple conversions to datetime followed by DATEPART(mi,...) followed by DATEADD followed by a cast back to TIME.
and how do they store +24 hours in that time column ? (add an extra daycounter column ??) π
When can we convert to Metric Time?
Metric time really isn't all that farfetched! You'd have 10 hours in a day, 100 minutes in an hour and 100 seconds in a minute. The only adjustment that needs to to be made is to make the second a little longer than the second is now.
Wouldn't the seconds actually have to be shorter?
24 hr x 60 min x 60 sec = 86,400
10 hr x 100 min x 100 sec = 100,000
August 4, 2010 at 2:14 pm
Going back to a topic from a few days ago - here is a very pleasant post.
http://www.sqlservercentral.com/Forums/Topic960157-1292-1.aspx#bm963812
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 4, 2010 at 2:23 pm
Lynn Pettis (8/4/2010)
Stefan Krzywicki (8/4/2010)
mtillman-921105 (8/4/2010)
ALZDBA (8/4/2010)
GilaMonster (8/4/2010)
Jack Corbett (8/4/2010)
Probably the most complex SQL I've had to write. Too many OUTER JOINs (business requires this design), and then parameters that could turn the OUTER JOINs to INNER JOINs and may not be what the business wants in some cases.Swap?
I got stuck this afternoon helping out with a query where I needed to add several columns that stored elapsed time.
Easy enough? Sure, except that the person who designed the database stored those elapsed times as the TIME datatype.
And you can't add two time columns. Makes sense, there's no meaning to 11am + 5pm. However in this case 11am meant 11 hours and 5pm meant 17 hours. Cue multiple conversions to datetime followed by DATEPART(mi,...) followed by DATEADD followed by a cast back to TIME.
and how do they store +24 hours in that time column ? (add an extra daycounter column ??) π
When can we convert to Metric Time?
Metric time really isn't all that farfetched! You'd have 10 hours in a day, 100 minutes in an hour and 100 seconds in a minute. The only adjustment that needs to to be made is to make the second a little longer than the second is now.
Wouldn't the seconds actually have to be shorter?
24 hr x 60 min x 60 sec = 86,400
10 hr x 100 min x 100 sec = 100,000
It is certainly possible I have it wrong, I did the calculations years ago when I was bored in a meeting. You know the kind, has absolutely nothing to do with you or your work, but they want the whole department there?
--------------------------------------
When you encounter a problem, if the solution isn't readily evident go back to the start and check your assumptions.
--------------------------------------
Itβs unpleasantly like being drunk.
Whatβs so unpleasant about being drunk?
You ask a glass of water. -- Douglas Adams
August 4, 2010 at 2:46 pm
Steve Jones - Editor (8/4/2010)
I vote no. I like my watch. I don't want to have to buy a new one that has 10 digits.Plus I have this cool clock:
Okay, looks like I'm getting a new clock for the office! :w00t:
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
August 4, 2010 at 2:52 pm
We have that clock in the kitchen in our house. People think it's funny.
And that we're geeks.
August 4, 2010 at 2:57 pm
I prefer a digital clock.
I once programmed one that would display the time in different formats: hex, binary, BCD, roman numerals, octal, and the good old base ten system.
The roman numeral version was fun.
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
August 4, 2010 at 3:11 pm
Alvin Ramard (8/4/2010)
I prefer a digital clock.I once programmed one that would display the time in different formats: hex, binary, BCD, roman numerals, octal, and the good old base ten system.
The roman numeral version was fun.
ThinkGeek has plenty of clocks along those lines.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
August 4, 2010 at 3:21 pm
Steve Jones - Editor (8/4/2010)
We have that clock in the kitchen in our house. People think it's funny.And that we're geeks.
Bazinga! :exclamation:
The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge. - Stephen Hawking
August 4, 2010 at 3:24 pm
mtillman-921105 (8/4/2010)
Steve Jones - Editor (8/4/2010)
We have that clock in the kitchen in our house. People think it's funny.And that we're geeks.
Bazinga! :exclamation:
No Bazinga for that one. It's true! π
For best practices on asking questions, please read the following article: Forum Etiquette: How to post data/code on a forum to get the best help[/url]
August 4, 2010 at 3:27 pm
Steve Jones - Editor (8/4/2010)
We have that clock in the kitchen in our house. People think it's funny.
My supervisor at the university has a very irritating clock. No numbers on it, just lines to indicate the hours. That alone would be fine, except this clock runs anti-clockwise. Without numbers it's very hard to realise that.
My meetings with him are always from 10:30. Once, we'd been talking for a while, I looked up at the clock and panicked, thinking it was 12:40. It wasn't, it was 11:20.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
August 4, 2010 at 3:29 pm
Alvin Ramard (8/4/2010)
mtillman-921105 (8/4/2010)
Steve Jones - Editor (8/4/2010)
We have that clock in the kitchen in our house. People think it's funny.And that we're geeks.
Bazinga! :exclamation:
No Bazinga for that one. It's true! π
I believe it. I was just looking for an excuse to say "Bazinga!" :hehe:
The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge. - Stephen Hawking
August 4, 2010 at 6:10 pm
GilaMonster (8/4/2010)
Steve Jones - Editor (8/4/2010)
We have that clock in the kitchen in our house. People think it's funny.My supervisor at the university has a very irritating clock. No numbers on it, just lines to indicate the hours. That alone would be fine, except this clock runs anti-clockwise. Without numbers it's very hard to realise that.
My meetings with him are always from 10:30. Once, we'd been talking for a while, I looked up at the clock and panicked, thinking it was 12:40. It wasn't, it was 11:20.
We have a similar clock in our party room - just with numbers. And there's a rule: If you can't tell the time you asked for a drink all you deserve is sparkling water! It's fun.
Before we moved the clock to the party room it was in our kitchen. But when our oldest started to learn the clock we decided to move it to a different place. It was just confusing her....
August 4, 2010 at 8:11 pm
Just made my first "real" forum post in awhile. Had to pick a thread where Mr. Celko has already weighed in. http://www.sqlservercentral.com/Forums/Topic963903-391-1.aspx
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
August 4, 2010 at 9:30 pm
Jack Corbett (8/4/2010)
Just made my first "real" forum post in awhile. Had to pick a thread where Mr. Celko has already weighed in. http://www.sqlservercentral.com/Forums/Topic963903-391-1.aspx
Then it looks like you went on a roll and posted another half-dozen posts (that I saw)!
Welcome back! :w00t:
Wayne
Microsoft Certified Master: SQL Server 2008
Author - SQL Server T-SQL Recipes
Viewing 15 posts - 17,101 through 17,115 (of 66,712 total)
You must be logged in to reply to this topic. Login to reply