Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

couldn't figure out a sql statement for what I want, anyone can help? thanks

From: raybristol <raygrrr(at)gmail.com>
Date: Thu Oct 04 2007 - 12:35:13 EDT

I have 2 tables in database:

table A:
ID(int) | receivedDate (Timestamp)

table B:

ID(int) | Days (int)

I want to use 'Select into' to create a new table with 2 columns like:

new table:

ID(int) | newReceivedDate (Timestamp)

Do you need help?X

the column 'newReceivedDate' will be based on A.receivedDate + B.Days, so if I got a row in table A: 1, 01-12-2007, a row in table B: 1, 3, then I should have a row in new table: 1, 04-12-2007

I hope that make sense and wonder whether I can do it with sql statement, many thanks!
--

View this message in context: http://www.nabble.com/couldn%27t-figure-out-a-sql-statement-for-what-I-want%2C-anyone-can-help--thanks-tf4569972.html#a13043880 Sent from the MySQL - Java mailing list archive at Nabble.com.

--

MySQL Java Mailing List
For list archives: http://lists.mysql.com/java To unsubscribe: http://lists.mysql.com/java?unsub=lists@pantek.com Received on Thu Oct 4 12:35:33 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 10:14:17 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library