Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-02-2008, 12:35 PM
Member
 
Join Date: Mar 2008
Posts: 13
geeta_ravikanti is on a distinguished road
how to display the alerts in table
This is my table

Sno Close1 avg

1 150 110
2 210 175
3 110 150

its my table structure
i am comparing the close1 values with avg values
that is if close1>avg i want to display the message like "Good"
if close1<avg i want diplay the the message like"bad"

my final structure is

Sno Close1 avg result

1 150 110 bad
2 210 175 bad
3 110 150 good


how to write the qery for above table

if any body have idea please tell how to display the messages in table
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-02-2008, 12:40 PM
sanjeevtarar's Avatar
Senior Member
 
Join Date: Apr 2008
Location: Delhi(India)
Posts: 249
sanjeevtarar is on a distinguished road
need SQL query or something else
Hello Geeta

do u need a SQL query to update the data in db or something else.?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 04-02-2008, 01:48 PM
Member
 
Join Date: Mar 2008
Posts: 13
geeta_ravikanti is on a distinguished road
i want message(good/bad) when the codition is satisfied/not satisfied in the table or i want alert it(good/bad) depends on te codition
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 04-02-2008, 04:22 PM
DonCash's Avatar
Moderator
 
Join Date: Aug 2007
Location: London, UK
Posts: 239
DonCash will become famous soon enoughDonCash will become famous soon enough
Hello Geeta,

I understand the bit about the good/bad message but are you looking for a SQL query to do this or are you looking to do this in Java?

Do you currently have any code extracting this data from the database?
__________________
Did this post help you? Please
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
me!

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Bookmark Post in Technorati
Reply With Quote
  #5 (permalink)  
Old 04-04-2008, 07:45 AM
Member
 
Join Date: Mar 2008
Posts: 13
geeta_ravikanti is on a distinguished road
I want the sql query to display the good/bad when the condtion is satisfied/not satified
any idea
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to refresh the table when a new account is added and display instantly sravanthi narra SWT / JFace 4 01-05-2008 08:39 PM
AWT Table Scrolling albert_kam AWT / Swing 0 01-03-2008 12:37 PM
Data formatting for the <display:table> yuchuang Web Frameworks 3 12-14-2007 11:52 AM
regarding to creating table..... daredavil82 New To Java 0 11-18-2007 05:55 AM
Table Help CoOlbOyCoOl NetBeans 1 05-06-2007 05:19 PM


All times are GMT +3. The time now is 08:25 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org