It is currently 27 Jun 2017 8:19


Post new topic  Reply to topic  [ 2 posts ] 
Author Message
PostPosted: 20 Sep 2014 5:07 
Offline
Nouveau
Nouveau
User avatar

Joined: 21 Sep 2013 8:00
Posts: 48
Hello All,

i need a SQL query which would pull out in-conditions and out-conditions of all jobs in a table. irrespective of jobs having any one condition.

ie : If a job doesnt have out condition, i want it to show in-condition.

_________________
Anirudh


Top
   
PostPosted: 31 Jan 2015 8:15 
Offline
Nouveau
Nouveau
User avatar

Joined: 14 Jan 2010 9:00
Posts: 58
Try this to Get jobname, in/outconditions, and cmd line.

SELECT a.CONDITION AS "In Condition",c.GROUP_NAME AS "Group Name",c.JOB_NAME AS "Job name",
b.CONDITION AS "Out Condition", c.CMD_LINE AS "Command Line"
FROM ((DEF_VER_JOB c
LEFT JOIN DEF_VER_LNKI_P a
ON
c.TABLE_ID = a.TABLE_ID and c.JOB_ID = a.JOB_ID and c.VERSION_SERIAL = a.VERSION_SERIAL)
LEFT JOIN DEF_VER_LNKO_P b
ON
c.TABLE_ID = b.TABLE_ID and c.JOB_ID = b.JOB_ID and c.VERSION_SERIAL = b.VERSION_SERIAL)
WHERE
c.APPLICATION='Enter an app name or remove line' and
c.GROUP_NAME='enter a group name or remove this line' and
c.IS_CURRENT_VERSION='Y'


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 2 posts ] 

All times are UTC+10:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited
The site created by Franck YOT. Images, logo, content and trademarks about Control-M products are property of BMC Software.
All the comments are property of their posters. Images, logo, content and design are © copyright by Scheduler-Usage.com. All Rights Reserved