MySQL

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsDatabasesMySQL

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old June 21st, 2013, 08:47 PM
irvpost irvpost is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Jun 2013
Posts: 1 irvpost User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 28 m 23 sec
Reputation Power: 0
Question Locate date from 1 field and prepend to time in another column if the date is missing

Another Date question
space delimited file with fields -uid ( autonumber )
caller, called, 'origination date/time', 'connection date/time',
'disconnect date/time' and other info like trunks, cic, direction....

Goal- the first column that is missing the date, prepend it from the date of the previous column while importing.
Bonus- Retain date format.

Not sure if this is possible with load data infile or if it could be done with Python or some other way.

This is a lot of data about 1 million records per day. I will have 1 table per month and retain 3 years.

I can do this using excel and macros but it is way to time consuming.

Any assistance, advice, comments or snide remarks will be appreciated.

Thanks in advance.

Sample data-
3232501111 37120992370 12/31/12.23:59:53 23:59:54 01/01/13.00:00:01 - - 110 0 N 0 - ORG IN A T 5142
3232501111 6263577606 12/31/12.23:59:25 - 01/01/13.00:00:03 611 6019 - - N 0 - TER - A F 0314
3232501111 6263051292 12/31/12.23:59:43 - 01/01/13.00:00:03 - - - - N 0 N INT LO A F -
3232501111 886225971234 01/01/13.00:00:01 - 00:00:03 - - - - N 0 B INT LO A F -
3232501111 8775872045 01/01/13.00:58:34 00:58:35 00:59:42 - - - - N 0 - INT - A T -
3232501111 8775872045 01/01/13.00:58:34 00:58:35 00:59:42 - - 601 57 N 0 - ORG TF A T 0288
3232501111 8883241110 01/01/13.00:59:45 - 00:59:45 609 1 - - 003 0 - TER - A F -
3232501111 8776971099 01/03/13.22:59:53 - 23:00:00 - - 110 0 N 0 - ORG IN A F 5142
3232501111 8004337300 01/03/13.22:55:50 22:55:51 23:00:00 - - - - N 0 - INT - A T -

Reply With Quote
Reply

Viewing: Tutorialized ForumsDatabasesMySQL > Locate date from 1 field and prepend to time in another column if the date is missing


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap