由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - How to do this using JDBC?
相关主题
Provide A Interview QuestionRe: JDBC连接SYBASE数据库问题求助。
文件分割的问题Re: JDBC 处理日期的问题(日期插入数据库)
thread signaling 的一个问题Re: JDBC and Sybase
LinkedList 问题Re: Help! JDBC-ODBC in servlet. Thanks.
Re: 网上哪里有JDBC的入门书呢Re: Interesting thing about JDBC-ODBC! Help please.
Re: JDBC question: getXXX methodsRe: how to handle Null in JDBC servlet?
Re: Need help with EJBRe: can Applet use JDBC?
Re: JDBC, Java vs. JavascriptRe: how to connect to oracle using servlet?
相关话题的讨论汇总
话题: 01话题: 05话题: date话题: jdbc话题: cost
进入Java版参与讨论
1 (共1页)
b*****o
发帖数: 284
1
Suppose I have a table taking care of incoming:
Date amount unit_price($)
01/01/05 5 7
01/02/05 4 2
01/03/05 6 3
01/04/05 3 6
01/05/05 8 1
Also have a table taking care of outgoing:
Date amount cost($)
01/01/05 2
01/02/05 7
01/03/05 6
01/04/05 3
01/05/05 4
I would like to define the outgoing cost using "First in First out", so the
cost should be calculated as:
Date amount cost($)
01/01/05 2 2*$7
w*r
发帖数: 2421
2
I am lost, what is the calculation mean?
what is the def of FIFO here in your case?

【在 b*****o 的大作中提到】
: Suppose I have a table taking care of incoming:
: Date amount unit_price($)
: 01/01/05 5 7
: 01/02/05 4 2
: 01/03/05 6 3
: 01/04/05 3 6
: 01/05/05 8 1
: Also have a table taking care of outgoing:
: Date amount cost($)
: 01/01/05 2

1 (共1页)
进入Java版参与讨论
相关主题
Re: how to connect to oracle using servlet?Re: 网上哪里有JDBC的入门书呢
Re: JDBC access Oracle?? & Connection PoolingRe: JDBC question: getXXX methods
Re: OR mappingRe: Need help with EJB
Re: 推荐推荐Re: JDBC, Java vs. Javascript
Provide A Interview QuestionRe: JDBC连接SYBASE数据库问题求助。
文件分割的问题Re: JDBC 处理日期的问题(日期插入数据库)
thread signaling 的一个问题Re: JDBC and Sybase
LinkedList 问题Re: Help! JDBC-ODBC in servlet. Thanks.
相关话题的讨论汇总
话题: 01话题: 05话题: date话题: jdbc话题: cost