Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Database > BOOK: Beginning SQL
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning SQL
This is the forum to discuss the Wrox book Beginning SQL by Paul Wilton, John Colby; ISBN: 9780764577321
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning SQL section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 8th, 2013, 06:51 AM
Authorized User
Points: 247, Level: 4
Points: 247, Level: 4 Points: 247, Level: 4 Points: 247, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2006
Location: Stone, California, Malaysia.
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Copy date/time (DD/MM/YYYY HH24:MI:SS) in same table and same field but 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...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with date/time (DD/MM/YYYY HH24:MI:SS) to copy in different row. Wenggo Oracle 1 December 10th, 2013 08:32 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 02:46 AM
Date formats... dd/mm/yyyy SeanW Classic ASP Databases 3 June 14th, 2004 12:34 PM



All times are GMT -4. The time now is 03:06 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.