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

"Christopher G. Stach II" <[email protected]> Thu, 04 Oct 2007 16:25:43 -0500
Newsgroups gmane.comp.db.mysql.java
Message-ID <[email protected]>
raybristol wrote:
> 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)   
> 
> 
> 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!

This is the Java list.  Many thanks.

-- 
Christopher G. Stach II


-- 
MySQL Java Mailing List
For list archives: http://lists.mysql.com/java
To unsubscribe:    http://lists.mysql.com/[email protected]