Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
DB2 Query runs very long
Goto page Previous  1, 2
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 2319
Location: NY,USA

PostPosted: Mon Aug 26, 2019 10:39 pm    Post subject:
Reply with quote

Since you added <> For table A and also added when getting max timetamp similarly , you need > current date condition added to table A along with <>.

Moreover, if you want to mimic what TS did from the ioriginal post then you don’t need <> and > current date in table B but very much needed in table A. Without doing this step the results are going to mismatch from TS.
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2274
Location: Hampshire, UK

PostPosted: Tue Aug 27, 2019 12:49 am    Post subject: Reply to: DB2 Query runs very long
Reply with quote

Why don't you just answer the OPs query and get on with life? OP has not come back so all you 2 are doing is conjecture. Do this conversation with PMs if you wish to continue answering the question about how long the dtring is when you do not even know if it is a bit of string.

OP (topic starter) get back with some feedback - that, at least, is the minimal politeness.
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
Goto page Previous  1, 2
Page 2 of 2

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Query on JCL abdulrafi DFSORT/ICETOOL 5 Wed Oct 16, 2019 7:02 pm
No new posts LOAD JCL for db2 table, taking too lo... Somnath Giri DB2 5 Mon Oct 14, 2019 3:35 pm
No new posts Query to Truncate value in table bhaskar_kanteti DB2 2 Mon Aug 12, 2019 3:26 pm
No new posts Verify WITH UR present inside program... priyankakir CLIST & REXX 23 Wed Jun 12, 2019 3:37 pm
No new posts Query on updating the control cards. abdulrafi DFSORT/ICETOOL 2 Tue Feb 26, 2019 2:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us