Polaris Interview questions

db2 sql interview questions

Moderator: Moderator Group

Post Reply
User avatar
Vamsi99
Active Member
Posts: 183
Joined: Wed Nov 05, 2008 11:20 am

Polaris Interview questions

Post by Vamsi99 » Sun Oct 11, 2009 9:40 pm

There is one input file and one database is there.we need to create a output file that contains the records which are present in Database and not present in inputfile. Give the logic?

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Mon Oct 12, 2009 5:05 pm

1. "Unload" the table to a DSN and then compare the other file with this unload using sort product at your shop.

2. If possible, create a table of using the "input file" and then write a query to compare two tables. You may use the "not exist" phrase, please have a look into DB2 SQL reference about that.
Regards,
Anuj

Post Reply

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



Other References
Mainframe Tools and others