Support of SQL query: what tasks are Sunday from 07:00 - 12:00

Hello tide Admins.

I need to do a SQL query that can give me a list of jobs that are running on a given (Sunday) day from 07:00 - 12:00.  Our environment is not a maintenance window.  Therefore, whenever there is application of patches or upgrades, it causes more work and risk of failure of the tide tasks.    By moving jobs over the period from 07:00 - 12:00 Sunday, patch can be completed without disrupting the calendar.

Im not the best at the SQL script and can not get my script to work. any help would be great. Here's what I have so far.  I get the error ' could not find identifier multi-player jobmst.jobmst_name.  IM using Tidal 6.0.3 with SQL for DB Admeral table.

SELECT dbo.jobdtl.jobdtl_id, dbo.jobmst.jobmst_prntname, dbo.jobmst.jobmst_name

FROM dbo.jobdtl INNER JOIN

dbo.jobmst ON dbo.jobdtl.jobdtl_id = dbo.jobmst.jobdtl_id

WHERE (dbo.jobdtl.jobdtl_fromdt > 14 September 2016 06:00 ') AND (dbo.jobdtl.jobdtl_fromdt< '09/11/2016="" 012:00:00="">

GROUP OF dbo.jobdtl.jobdtl_id, dbo.jobmst.jobmst_prntname, dbo.jobmst.jobmst_name

Hi Jeff

The time window from the jobdtl returns only jobs that have an early start time and windows of time from beginning to the end, so there may be some tasks which are not time bound but have dependencies on other jobs, variables, etc.

Here are the 2 SQL queries against the table jobrun and jobmst:

-The list of jobs that took place last Sunday between 07:00 and 12:00

SELECT jobmst.jobmst_prntname, jobmst.jobmst_name, jobrun.jobrun_time FROM jobrun
JOIN jobmst on jobrun.jobmst_id = jobmst.jobmst_id
WHERE jobrun.jobrun_time > = 9/11/2016 07:00 ' and jobrun.jobrun_time<= '9/11/2016="" 12:00="">
ORDER BY jobrun.jobrun_time

-For a list of jobs that are scheduled to run on Sunday to come between 07:00 and 12:00

SELECT jobmst.jobmst_prntname, jobmst.jobmst_name, jobrun.jobrun_esttime FROM jobrun
JOIN jobmst on jobrun.jobmst_id = jobmst.jobmst_id
WHERE jobrun.jobrun_esttime > = 9/18/2016 07:00 ' and jobrun.jobrun_esttime<= '9/18/2016="" 12:00="">
ORDER BY jobrun.jobrun_esttime

ARO

The Derrick

Tags: Cisco DataCenter

Similar Questions

  • SQL query to get the numbers from 0 to 99

    How can we write a sql query to get values from 0 to 99... This should not come from any table
    SELECT LEVEL - 1
      FROM  DUAL
      CONNECT BY LEVEL <= 100
    /
    

    SY.

  • Is it possible to query what nodes are part of a service?

    To the CARS, is it possible to query (in db) which nodes belong to a particular Department?

    DanielD wrote:
    To the CARS, is it possible to query (in db) which nodes belong to a particular Department?

    You can use gv$ services and it is the instance ID that runing according to the node.

  • Report with the sql query area

    Hello

    I have a region in relation to the sql query. There are two regions in the page. Top of page, the user enters data and after that second data enterd to see the region, which is related region
    based on a sql query.

    Now, when this page is opned, because the user has not entered anything, region report shows the message "no data found". Is it possible to remove this message or
    may I have conditionally disaply region report IE if data are inserted only region report is dispalyed.

    Thank you

    Hello

    You can use conditions for example "Exists (SQL query returns at least one row).

    Kind regards
    Jari

  • Clarification of the SQL query in 2 day + Guide APEX

    I worked through the Oracle Database Express Edition 2 day + Application Express Developer's Guide, and try to decipher the SQL query in Chapter 4 (building your app).

    The code is:

    SELECT d.DEPARTMENT_ID,

    d.DEPARTMENT_NAME,

    (select count (*) from oehr_employees where department_id = d.department_id)

    "Number of employees", he said.

    substr (e.first_name, 1, 1) |'. ' || Select 'Name Manager',

    c.COUNTRY_NAME 'place '.

    OEHR_DEPARTMENTS d,

    E OEHR_EMPLOYEES

    OEHR_LOCATIONS l,

    C OEHR_COUNTRIES

    WHERE d.LOCATION_ID = l.LOCATION_ID

    AND l.COUNTRY_ID = c.COUNTRY_ID

    AND e.department_id = d.DEPARTMENT_ID

    AND d.manager_id = e.employee_id

    AND instr (superior (d.department_name), superior (nvl (:P2_REPORT_SEARCH,d.department_name))) > 0)

    I don't know exactly what is happening in the last line. I think I understand what the different functions but I'm not clear on the use of the: P2_REPORT_SEARCH string.

    What does this string? This code simply checking that d.department_name isn't NA?

    I have SQL experience but am not very familiar with the Oracle PL/SQL implementation. Can someone please give me a brief breakdown that check is doing in the context of the overall query? The application seems to work even if the conditional statement is not included.

    Thank you.

    2899145 wrote:

    Thanks for the reply. I apologize if the information I added was incomplete. The code came from the day 2 + Application Express (version 4.2) Developer Guide.

    In the section 'your own Application of 4 Buuilding' https://docs.oracle.com/cd/E37097_01/doc.42/e35122/build_app.htm#TDPAX04000 , they describe the creation of a report

    page that includes the "manager_id" and 'location_id '. The SQL query, I pasted above extracted from the data in other tables to substitute the real 'name of the Manager' and 'rent '.

    for the corresponding ID values. It makes sense, and the part of the SQL query that explicitly doing this makes sense.

    However, given that the document is a guide for the development of the APEX, I guess the command:

    AND instr (upper (d.department_name), upper (nvl (:P2_REPORT_SEARCH,d.department_name))) > 0

    done something valuable, and I do not recognize what is exactly the value.

    From a practical point of view why would I need to include this conditional statement?  Which only added to the application?

    Looking at the guide in question, it is clear that the

    AND instr(upper(d.department_name),upper(nvl(:P2_REPORT_SEARCH,d.department_name)))>0
    

    the line is completely unnecessary in the context of this tutorial, and it can be removed. The search in the tutorial app page is implemented by using a report filter interactive rather than a P2_REPORT_SEARCH element, which does not seem to exist at all. (It's a quirk of the APEX that bind variable references to non-existent items are replaced with NULL silently rather than exceptions). I thought that perhaps it would be legacy code a version of the tutorial prior to the introduction of interactive reports at the APEX 3.1, but I can't find explicit instructions to create such an element of filter in the 3.0 tutorial. I guess it must have been automatically generated by the application wizard when you create a standard report page.

    If you do not want to see the effect he would have (as described in the post above), leave it in the source report, add a text element of P2_REPORT_SEARCH, and a button "submit" on page 2 and experimenting to find different values of the element and clicking on the submit button...

  • Data model - SQL query

    Hello world

    I hope someone can point me in the right direction.

    I have the SQL code following in the type of SQL query data model.

    Select * from ap_invoices

    The following select statement is not to return all the rows in the view, but the fact of sqlplus.

    I have setup the EBS security model uses BEEP 10.1.3.4.1.


    What I do wrong, is there some setting I'm missing?

    Do I need to use a different security model to BEEP?

    Help, please
    Thank you.

    Hello

    AP_INVOICES is a view as you know, sound based on the ORG_ID set when you select from it. IM thinking that when you use just select * from AP_INVOICES at RANDOM. Its not abreast of your org id and its is not defining for you when you run a query, so its not rehired data. Two options:

    1. use a data model and in the pre-reading trigger set the context of the org. As you may be in an Oracle report. Data models are very powerful and offer everything that OReports done in EBS incl. triggers flex extensions

    2 use the AP_INVOICES_ALL table and set the org id in the query where clause.

    Both approaches need so that you know the id org that you want to set. The integration of the security that you won't it's to say it does not pass it when the user opens a session. I suppose you have a report folder for every responsibility you could hardcode the org id in the reports in a given folder. Or you can add it as a parameter to the user to fill out report.
    Integration level just does not quite go enough away for the time to manage the org and, therefore, the views of the org.

    hope this is clear

    Concerning

    Tim

  • SQL (body of function from PL/SQL returning the SQL) query when you use to_char

    We are trying to build a page of Type SQL Query report (body of function from PL/SQL returning SQL query).
    our request is simple, to extract the month of the column recording_date.

    declare
    l_query varchar2 (1000);
    Start
    l_query: = 'select to_char (recording_date, 'MM') of re_productive;
    Return l_query;
    end;

    but we would like the following for this query problem

    Function returning SQL query: query cannot be parsed in the generator. If you believe that your query is syntactically correct, check the box of generic columns below the source of the region without analysis.
    (ORA-06550: line 4, column 42: PLS-00103: encountered the symbol "MY" what awaits one of the following values:.) (* @ % & = - +; <>/ at is mod remains not rem <>or! = or ~ = > = < = <>and or as between | multiset Member SUBMULTISET_ the symbol ".") was inserted before 'MY' to continue.)

    Notes:
    1 - the request is correct and it has been tested under sqlplus and toad.
    2. we tried option use generic name (analysis of query runtime only) column, but we get the same problem.


    any quick help please.

    Hello

    You have not escaped your quote in the string. Try this...

    DECLARE
    l_query VARCHAR2(32767);
    
    BEGIN
    
    l_query:= 'select to_char(recording_date,''MM'') from re_productive';
    
    RETURN l_query;
    
    END;
    

    See you soon

    Ben

  • IOM sql Query to get the status of the failed task

    Hello world

    We have an obligation as we need to get the status of a particular task (say Create User in OID - Completed\Rejected status resource) for the particular user. We are able to get the status of the provisioed of resources to the user but not the status of the special mission which is trigerred for the user.can someone put some light on it. We must have the SQL query to do this.

    Thanks in advance.

    Kind regards
    MKN

    Hello
    Use this query to get the status of the task, also check the cooments

    SELECT USR. USR_LOGIN, OSI. SCH_KEY, ANN. SCH_STATUS, STA. STA_BUCKET OF
    OSI, CHS, STA, MIL, TOS, PKG, OUEDRAOGO, USR, OBJ, OST
    WHERE OSI.MIL_KEY = MIL.MIL_KEY
    AND ANN. SCH_KEY = OSI. SCH_KEY
    AND STA. STA_STATUS = SCH. SCH_STATUS
    AND TOS. PKG_KEY = PKG. PKG_KEY
    AND MIL. TOS_KEY = TOS. TOS_KEY
    AND OUÉDRAOGO. USR_KEY = USR. USR_KEY
    AND OUÉDRAOGO. OST_KEY = OST. OST_KEY
    AND OST. OBJ_KEY = OBJ. OBJ_KEY
    AND OSI. ORC_KEY = OUEDRAOGO. ORC_KEY
    AND OBJ. OBJ_NAME = "User AD".
    AND OST. OST_STATUS = "Provisioning" - filter accordinglly
    AND STA. STA_BUCKET = 'pending' - filter accordinglly
    AND PKG. PKG_NAME = "AD User" - filter accordinglly
    AND MIL.MIL_NAME = 'System' - filter accordinglly Validation
    ;
    Thank you
    Kuldeep

  • SQL query to a / columns of values for all the rows that are returned by default

    Hello everyone.
    I was looking for help to make an SQL query that can be achieved if all goes well-

    I want that all the rank values in a particular column of a set of rows returned by default for a specified string. For example, consider the SQL below:

    Select date, start_time, building and room
    of star.events

    Consider this example output of the query above-

    Start_time date room
    2009-07-01 9: 00 AB 99
    2009-02-03 7:11 ED
    2009-01-03 8:23 FF
    2009-03-04 4 am SD 29

    How can I change my statement default SQL column space to say ' 57 "regardless of what the actual database values are showing this instead?

    Start_time date room
    01/07/2009 9:57 AB
    2009-02-03 7:57 ED
    03/01/2009 8:57 FF
    2009-03-04 4 am JJ 57

    Any direction/suggestions would be much appreciated.
    Thank you!

    Hello

    SELECT DATE,
           start_time,
           building,
           57 as room
    FROM   star.events;
    

    Kind regards

  • What devices are supported for an Adobe Air application?

    What devices are supported for an Adobe Air application?

    A BlackBerry app created with Adobe Air (Air 2.5) work on a BlackBerry 9900 for example?

    Thank you.

    Only phones PlayBook and BB10

  • What will happen to the SQL Query based object View (EmployeesVO)

    Schema used: HR

    1. I created a view through SQL Query view object object (Table Employees - EmployeesVO).
    2. Creates an entity of the Employees (EmployeesEO) table object.
    3. In the section EmployeesVO (View object) entity objects, I chose EmployeesEO (entity object).

    What will happen to the View SQL Query object based on (EmployeesVO) will it change to VO based on entities or still to be based query VO.

    It is there because you can still base your query based Vo EO according to Vo.

    After that you base your VO on EO you can now use 'Add the attribute of the entity' to base your attribute on the atrributes of EO. Or if you skilled enough you can manually change the XML to VO

  • What is the best way to optimize a SQL query: call a function or doing a join?

    Hi, I want to know what is the best way to optimize a SQL query, call a function inside the SELECT statement, or make a simple join?

    It depends on.  Could be a.  Could be the other.  Could be no difference.  You would need to compare with your tables in your environment with your settings.

    If you put a gun to my head, I was given no other information and required that I answered the question, I would tend to wait that the join would be more effective.  In general, if you can do something in pure SQL, it will be more effective than if you call PL/SQL.

    Justin

  • How do I know what sql query is taken on time for the concurrent program

    Hi Sir,

    I am running simultaneous program, which takes time to run, I want to know what sql query causing performance

    Thanaks,

    Anthony

    Hi Anthony,.

    Activate the traces on the simultaneous program and then run tkprof on trace file.

    Octavio

  • Why do I get a message saying 'you are running an operating system that InDesign can't. See the system requirements for a complete list of the supported platforms. » ? What does that mean?

    Why do I get a message saying 'you are running an operating system that InDesign can't. See the system requirements for a complete list of the supported platforms. » ? What does that mean?

    This means that your machine does not meet the requirements of system for InDesign.  Check the system requirements for InDesign against those of your machine to see where your machine is delivered in default.

    InDesign - http://helpx.adobe.com/indesign/system-requirements.html

  • SQL query to find approved projects that are open

    Hello

    Can anyone provide a SQL query which will display only the approved projects that are open.

    Thank you

    Titas

    Try this

    Select project NAME of pa_projects_all
    where project_status_code = 'APPROVED '.
    and NVL (CLOSED_DATE, SYSDATE + 1) > SYSDATE

    Thank you
    Pradeep

Maybe you are looking for

  • my windows base filtering engine service does not work according to norton

    just sub renewed norton 360 v6 displays an error saying my base filtering engine service window does not work

  • Aspire V3 does not work on battery

    I have a week old Aspire V3 - 372T initally worked on the battery.  One day it won't turn at all out of fashion 'sleep' with or without battery.  According to the instructions here, I reset the battery with a paper clip, and it worked to the power.  

  • Why won't my CD/DVD Slymtype player work, error: this device cannot start. (Code 10).

    Original title: why not my job as a player of DVD/CD of Slymtype at all?Here's what I have: SlimType DVD C DS24CZP ATA Device Windows Vista Home Basic Acer aspire 3680 series------------------------------------------So here's my problem: Recently, I

  • Is XPS 8900 1 TB HDD to Samsung SSD upgrade - a sound plan?

    I'll be unboxing my new XPS 8900 this weekend containing a 1 to drive HARD and Windows 10.  My ultimate plan is to add/replace this with a SSD from Samsung 850 (probably a 1 TB) and have a clean install of Windows 10.  Based on this goal and what I'v

  • BBM SDK BBMPlatformContact

    Hello world I would like to know if I can use 'handful' of a contact as an id (contact.getHandle ()) unique, I mean, since I can't get the PIN of the contact (for security reasons) is this "handful", the replacement of the PIN product or it's differe