Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to get student marks greater than 60 from a table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
tmaheswara

New User


Joined: 20 Apr 2010
Posts: 8
Location: pune

PostPosted: Thu Sep 15, 2011 2:16 pm    Post subject: How to get student marks greater than 60 from a table
Reply with quote

Hi

I want a query to get the marks of all students who got more than 60 in 6 subjects.If any of the subject they failed dont considering it.Please give me a query regarding this.

Thanks,

Maheswara
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Sep 15, 2011 2:18 pm    Post subject:
Reply with quote

Quote:

Please give me a query regarding this.


Yeh sure.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Sep 15, 2011 2:52 pm    Post subject:
Reply with quote

Please tell us what have you tried? Did it work, per you requirement, or not? Was there some error, yes? What was that?
Back to top
View user's profile Send private message
gylbharat

Active Member


Joined: 31 Jul 2009
Posts: 565
Location: Bangalore

PostPosted: Thu Sep 15, 2011 3:42 pm    Post subject:
Reply with quote

Code:
Select name,sub1,sub2,sub3
from table
where sub1 > 60
and sub2 > 60
and sub3 > 60 ;
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Thu Sep 15, 2011 6:11 pm    Post subject: Reply to: How to get student marks greater than 60 from a ta
Reply with quote

Quote:
I want a query to get the marks of all students who got more than 60 in 6 subjects.If any of the subject they failed dont considering it.Please give me a query regarding this.


given the wording of the question, you will be certainly more at ease in the other forum here
http://ibmmainframeforum.com/index.php

even if in Your profile You pretend to ..
Quote:
Occupation: software professional
Mainframe Skills: cobol,jcl,db2,vsam,cics,TWS


a software professional, would have never asked a question with so little information to build on
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm
No new posts Command UNIQUE CONSTRAINT on any tabl... rohanthengal DB2 2 Thu Aug 18, 2016 3:48 pm
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm
No new posts How to find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us