HI
i have a table who has many col.
one col is ref as parent record and other col as its child record.
ex :
I need a record with this selection .this is a parent one
qry1 : Src='IPT' and ID='125AG'
and then below this record i need its child records which will be selected using
qry 2 : AG_ABC_SRC='IPT' AND AG_ABC_ID='125AG' .
Both the selection criterion is from same table say 'RANGE'.
What do i do to put both these condition in a single querry that i can get record first using qry 1 and then below it records using qry 2.
If i am using querry like
SELECT * FROM ABCXXX.RANGE
WHERE Src='IPT' and ID='125AG'
AND AG_ABC_SRC='IPT' AND AG_ABC_ID='125AG'
tHEN I AM GETTING NO RECORDS.
Please someone help.
need to retrive diff records from same table using diff crit
Moderators: Kalicharan, Moderator Group
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page