logo       

Re: UPDATE comparing dates and non-dates data: msg#00184

Subject: Re: UPDATE comparing dates and non-dates data
On Friday 13 December 2002 09:43, javier garcia wrote:
> Hi;
> I've got date data, extracted from rain gauge stations. The date of a row in 
> my data are structured in three integer fields, and as a result of a query I 
> can get the following (what is quite good for my):
>  cod_station | year | month | day | rain
> -------------+------+-------+-----+------
>  7250        | 1933 |     8 |   1 |    45
>  7250        | 1933 |     8 |   2 |    3
>  7250        | 1933 |     8 |   3 |    0
> ... 
> and this for several rain station for about forty years. My problem is that 
I 
> need to find missing data (a missing data here is a non-existent row).
> 
> I think I could prepare a table with a complete series of date field, and 
> ALTER it to ADD aditional fields for every station I need to add:
> 
>  date         |  stat_7250   | stat_7237 ...
> ----------------+--------------------+---------------+------...
> 1/11/1999
> 2/12/1999
> ...
> , and make an UPDATE that in someway, will compare the "date" of this table 
> with an extracted date from "year", "day" and "rain" from the aforementioned 
> SELECT, leaving the non-coincident dates in blank and filling the rain data 
> of the coincident dates. Is this possible? How?

I don't think this is the best method to find missing dates.  However, I'm  a 
little confused as to what you consider a "missing" date.  Could you be more 
explicit?


-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco


---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to majordomo@xxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
web.pylons.gene...    hurd.l4/2002-10...    kernel.commits....    user-groups.lin...    yellowdog.gener...    java.drools.use...    security.openva...    package-managem...    linux.debian.us...    qnx.openqnx.dev...    genealogy.gramp...    file-systems.if...    voip.wengophone...    tex.context/200...    ietf.smime/2003...    audio.csound.de...    culture.region....    xfree86.devel/2...    mobile.kannel.u...    distributed.con...    education.engli...    org.user-groups...    bug-tracking.gn...    recreation.bicy...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe