Thursday, May 09, 2013

It's Five O'Clock Somewhere...

Is it Friday Five O'Clock Yet???

Here's a little way you can do a countdown to Friday Five O'Clock using a simple little Oracle PL/SQL function and query.

Enjoy!

Until next time...Rich

CREATE OR REPLACE FUNCTION fx_elapsed_string(
    p_start                 DATE,
    p_end                   DATE)
RETURN VARCHAR2 IS
    lv_big                  DATE;
    lv_small                DATE;
    lv_string               VARCHAR2(120);
BEGIN
    IF      p_start > p_end
    THEN    lv_big := p_start;
            lv_small := p_end;
    ELSE    lv_big := p_end;
            lv_small := p_start;
    END IF;

    SELECT (extract(day from ((lv_big - lv_small) day to second))*24) +
           extract(hour from ((lv_big - lv_small) day to second))||':'||
           substr('0'||
           extract(minute from ((lv_big - lv_small) day to second)), -2)
            ||':'||
           substr('0'||
          extract(second from ((sysdate - lv_small) day to second)), -2)
    INTO    lv_string
    FROM DUAL;

    RETURN lv_string;

EXCEPTION 
WHEN others THEN RAISE;
END;
/
show errors

SQL> SELECT fx_elapsed_string(sysdate,  
       trunc(NEXT_DAY(SYSDATE, 'FRI')) + 17/24) "HH:MM:SS until Friday 5pm"
     FROM DUAL;

HH:MM:SS until Friday 5pm
----------------------------------
34:14:00

Note: This assumes your database server is in your same timezone!!!

Thursday, October 11, 2012

This Girl is on Fire...

For the last two years the SAS DataFlux team has celebrated October 11th as "Data Stewards Day" and one of the most exciting parts of the "holiday" is that folks in the data management community can nominate their favorite Data Steward for the award called "Data Steward of the Year".

Last year's winner (Barb Deemer of Sallie Mae) was the first winner of the award and has really set the bar very high for not only what it takes to win the award but to bring significant value to an organization by ensuring her organization keeps their data in order.

The team at my shop (iJET) submitted our nominations for our colleague Falguni Sanghani by both submitting nominations directly and/or by sending them to me to include in a video. I cobbled the video together, submitted it as a nomination and have it here for you to take a peek at if you'd like.



...and then we waited to see what might happen...

This was one of the slides we included in the video, do you think it looks like Falguni?


Falguni and I are here Las Vegas for the SAS DataFlux IDEAS conference and yesterday morning the DataFlux team announced the winner and guess who won?



...FALGUNI SANGHANI...

Congratulations to all the nominees, the honorable mentions, and the finalists. The work you do is probably undervalued 364 days a year, but today is the day to take a step back and really be proud of the work you do for your organizations.

With all that said, I'm very proud to have Falguni on my team and no doubt, This Girl is on Fire...

Until next time...Rich

Friday, August 17, 2012

DataGeek & the Design Decision...

DataGeek has been busy working quite hard lately, however his friends Mark Horseman and Axel Troike where tweeting about the design options between "star schemas" and "snowflake schemas" yesterday (link here) so he took a few minutes off this morning and thought about it the issue just like any other DataGeek would do!




Clearly DataGeek has more on his mind this summer than DataGeek stuff! Hopefully all of you DataGeeks out there are having a fantastic summer too!

Until next time...Rich

Thursday, May 17, 2012

DataGeek & The Data Quality Search Story...

DataGeek has been busy working quite hard lately, he did however take a few minutes off this morning to create a new Google Search Story.







Until next time...Rich

Saturday, April 28, 2012

Visual.ly Image...

Take a peek at the image Visual.ly did by peeking into my twitter account:

Friday, March 23, 2012

DataGeek & Refrigerator Data...

DataGeek and his colleague are discussing methods to understand how much ice cream their customers eat.




Something tells me that DataGeek isn't alone out there and sure enough sooner or later there will be some incentive to connecting our ice boxes up to our WiFi routers.

Today's DataGeek was inspired by the TechNewsWorld.com post named "Customers, Big Data, and the Internet of Things" by Christopher J. Bucholtz which can be found here.


Until next time...Rich

Related Post: DataGeek joined the travel data department last time, to see what happened click here...

Tuesday, February 14, 2012

DataGeek & The Travel Data...

DataGeek's been assigned to a different department today, the travel data department. He's heard some things about travel data, I wonder if they are true?





The post I published yesterday at the "Data RoundTable" discusses this in further detail, to read it take peek here.

Until next time...Rich

Related Post: Bigger isn't better, better is better! To find out why, click here...