Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Database > Oracle
|
Oracle General Oracle database discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Oracle section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 5th, 2013, 07:42 AM
Authorized User
 
Join Date: Mar 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Problem with date/time (DD/MM/YYYY HH24:MI:SS) to copy in different row.

Evening, I got problem with Oracle code below when executed, because giving my field 'a.SAME_TABLE_DATE' null or blank.

I would like to copy a date/time (DD/MM/YYYY HH24:MI:SS) in same table and same field but different row.

UPDATE SAME_TABLE a
SET a.SAME_TABLE_DATE = (SELECT b.SAME_TABLE_DATE FROM SAME_TABLE b WHERE b.SAME_NAME = a.SAME_NAME AND b.SAME_TABLE_DISPLAYNAME = 'ROW_2')
WHERE a.SAME_TABLE_DISPLAYNAME = 'ROW_1';


Anybody help...
 
Old December 10th, 2013, 09:32 PM
Authorized User
 
Join Date: Mar 2006
Posts: 58
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by Wenggo View Post
Evening, I got problem with Oracle code below when executed, because giving my field 'a.SAME_TABLE_DATE' null or blank.

I would like to copy a date/time (DD/MM/YYYY HH24:MI:SS) in same table and same field but different row.

UPDATE SAME_TABLE a
SET a.SAME_TABLE_DATE = (SELECT b.SAME_TABLE_DATE FROM SAME_TABLE b WHERE b.SAME_NAME = a.SAME_NAME AND b.SAME_TABLE_DISPLAYNAME = 'ROW_2')
WHERE a.SAME_TABLE_DISPLAYNAME = 'ROW_1';


Anybody help...

World pls help me...i am stuck here..





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to pull Month & Year from Date(dd/mm/yyyy) istcomnet Classic ASP Basics 2 April 22nd, 2008 06:22 PM
Date dd-mm-yyyy John2112 SQL Server 2000 2 March 16th, 2007 05:15 AM
Converting short date to show mm/dd/yyyy crabjoe Access 4 March 7th, 2007 03:46 AM
Date formats... dd/mm/yyyy SeanW Classic ASP Databases 3 June 14th, 2004 12:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.