Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem in Divison

 
Sujay Nadkarni
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I found out the values and stored it in x and p.
Since x is the result of aggregate function it contains only one value. P contains multiple value.
Now I want to divide each value stored in p with x and insert it into the database. How do i do that?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

P contains multiple value.

No it doesn't, unless there is only one row returned by the SQL "Select mcap from Nifty". Otherwise it contains one value which you overwrite.

 
Scott Selikoff
author
Saloon Keeper
Posts: 4008
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DO NOT USE JDBC INSIDE OF JSP!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic