Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2012
    Posts
    36

    Unanswered: Multiple calculation

    Hi frielnds,

    my requirement as as given below,

    "total_loan_amt =
    loan_amount
    + ((car_price - down_payment) * cast(trunc(interest_rate) as int))
    / 100
    * (loan_term/ 12)
    + (car_price * cast(ins_rate/100 as float ) * (loan_term/ 12))"

    Where in
    total_loan_amount,loan_amount,car_price,down_payme nt,interest_rate,loan_term,ins_rate are my columns.
    Please helpe in doing the above calculation For a Column.

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    SELECT loan_amount
    + ((car_price - down_payment) * cast(trunc(interest_rate) as int))
    / 100
    * (loan_term/ 12)
    + (car_price * cast(ins_rate/100 as float ) * (loan_term/ 12)) TOTAL_LOAN_AMOUNT
    FROM CAR_TABLE;
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •