This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in Divison  RSS feed

 
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
Bartender
Posts: 4083
21
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
Boost this thread!