Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

[jira] Updated: (DERBY-81) Datetime datatypes should allow arithmetic opera: msg#00216

apache.db.derby.devel

Subject: [jira] Updated: (DERBY-81) Datetime datatypes should allow arithmetic operations on them.

[ http://nagoya.apache.org/jira/browse/DERBY-81?page=history ]

Satheesh Bandaram updated DERBY-81:
-----------------------------------

Description:
Datetime datatypes in Derby are date, time and timestamp. Currently Derby
doesn't allow any arithmetic operations on them, limiting their use. It would
be great to allow statements like:

SELECT * FROM log
WHERE modified_time > CURRENT_TIMESTAMP - 1 MONTH

Commercial databases like Oracle, DB2 and mySQL also have this feature. SQL
standard allows these operations along with INTERVAL types. Since Derby doesn't
have INTERVAL datatypes, I would like to propose datetime arithmetic to Derby
without INTERVALs.

It should be possible to add, subtract datetime datatypes with a constant like
'1 MONTH' (called a duration or INTERVAL in SQL standard). It should also be
possible to subtract datetime types where the semantics are allowed according
to SQL standard specification.

was:
Datetime datatypes in Derby are date, time and timestamp. Currently Derby
doesn't allow any arithmetic operations on them, limiting their use. It would
be great to allow statements like:

SELECT * FROM log
WHERE modified_time > CURRENT_TIMESTAMP – 1 MONTH

Commercial databases like Oracle, DB2 and mySQL also have this feature. SQL
standard allows these operations along with INTERVAL types. Since Derby doesn't
have INTERVAL datatypes, I would like to propose datetime arithmetic to Derby
without INTERVALs.

It should be possible to add, subtract datetime datatypes with a constant like
'1 MONTH' (called a duration or INTERVAL in SQL standard). It should also be
possible to subtract datetime types where the semantics are allowed according
to SQL standard specification.


> Datetime datatypes should allow arithmetic operations on them.
> --------------------------------------------------------------
>
> Key: DERBY-81
> URL: http://nagoya.apache.org/jira/browse/DERBY-81
> Project: Derby
> Type: New Feature
> Components: SQL
> Versions: 10.0.2.0
> Environment: Generic
> Reporter: Satheesh Bandaram
> Assignee: Satheesh Bandaram

>
> Datetime datatypes in Derby are date, time and timestamp. Currently Derby
> doesn't allow any arithmetic operations on them, limiting their use. It would
> be great to allow statements like:
> SELECT * FROM log
> WHERE modified_time > CURRENT_TIMESTAMP - 1 MONTH
> Commercial databases like Oracle, DB2 and mySQL also have this feature. SQL
> standard allows these operations along with INTERVAL types. Since Derby
> doesn't have INTERVAL datatypes, I would like to propose datetime arithmetic
> to Derby without INTERVALs.
> It should be possible to add, subtract datetime datatypes with a constant
> like '1 MONTH' (called a duration or INTERVAL in SQL standard). It should
> also be possible to subtract datetime types where the semantics are allowed
> according to SQL standard specification.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira




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

Recently Viewed:
hardware.arm.at...    cms.citadel.dev...    video.gstreamer...    java.facelets.u...    misc.basics.qna...    web.wiki.instik...    network.uip.use...    xdg.devel/2003-...    tex.bibtex.bibd...    finance.quotesp...    ietf.zeroconf/2...    redhat.blinux.g...    suse.db2/2003-0...    php.phpesp/2004...    uml.devel/2003-...    gnome.labyrinth...    qnx.openqnx.dev...    boot-loaders.gr...    db.dataperfect....    audio.audacity....    linux.uclinux.m...    editors.j.devel...    os.openbsd.tech...    kde.users.multi...   
Home | 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

Navigation