Confusion between the query

Hi friends


I use oracle 8i and I will try the following


Logically in my software day starts at 04:00 and ends at 03:59 the next day


so need a query that returns the hours passed since today morning 4 AM until now. I'm only using sysdate at the moment, but there is a twist since date starts at 04:00 and not at 12 AM @ 12 h I have hours including hours of the previous day until 03:59

at 12:20 hours
at 1:21 hours

I mentioned the following queries but without success
select (to_date(trunc(sysdate) || ' 04:00:00','dd-mon-yy hh24:mi:ss') -  to_date(trunc(sysdate),'dd-mon-yy hh24:mi:ss'))*24 from dual
select (sysdate+4/24 - sysdate) * 24 from dual;
Any help would be appreciated

Concerning
Park

Published by: Park February 11, 2011 01:56

The difference between the time so you have to current system and last time from 04:00.

The time difference in days is:

(SYSDATE-(TRUNC(SYSDATE-4/24)+4/24))

Within hours, it is:

24*(SYSDATE-(TRUNC(SYSDATE-4/24)+4/24))

Tags: Database

Similar Questions

  • Confusion between the performance problem with a query

    I have a query that takes 3 minutes (according to another developer, but when I run it not even returned after 10 minutes) to return lines nil. But the interesting part is that instead of select * if I give a count (*) select, he returned in less than a second. And even the subquery returns no rows in less than one second. The query is as follows. I see no option to answer this confusing behavior. Please suggest me an option I can verify, what explains this scenario. I am interested to know the root cause of it. Please let me know if you need any details.
    select * from order_lines_flmnt_stg_in ol
     WHERE order_lines_flmnt_stg_in_id IN (
              SELECT DISTINCT order_lines_flmnt_stg_in_id
                         FROM order_lines_flmnt_stg_in ol,
                              order_header_flmnt_stg_in oh,
                              order_lines oln
                        WHERE ol.TYPE = 'Original'
                          AND ol.item_code NOT IN (
                                 SELECT oln.item_code
                                   FROM order_lines oln,
                                        order_lines_flmnt_stg_in ol,
                                        order_header_flmnt_stg_in oh
                                  WHERE oh.po_id = ol.po_id
                                    AND ol.item_code = oln.item_code)
                          AND (    ol.error_message IS NULL
                               AND oh.error_message IS NULL
                               AND oh.activate_flag = 1
                              ));
    SQL*Plus: Release 10.2.0.1.0 - Production on Wed Sep 30 16:41:53 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP and Data Mining options
    
    SQL> set lines 10000
    SQL> alter session set current_schema = epix;
    
    Session altered.
    
    SQL> set timing on
    SQL>           SELECT DISTINCT order_lines_flmnt_stg_in_id
      2                       FROM order_lines_flmnt_stg_in ol,
      3                            order_header_flmnt_stg_in oh,
      4                            order_lines oln
      5                      WHERE ol.TYPE = 'Original'
      6                        AND ol.item_code NOT IN (
      7                               SELECT oln.item_code
      8                                 FROM order_lines oln,
      9                                      order_lines_flmnt_stg_in ol,
     10                                      order_header_flmnt_stg_in oh
     11                                WHERE oh.po_id = ol.po_id
     12                                  AND ol.item_code = oln.item_code)
     13                        AND (    ol.error_message IS NULL
     14                             AND oh.error_message IS NULL
     15                             AND oh.activate_flag = 1
     16                            );
    
    no rows selected
    
    Elapsed: 00:00:00.11
    SQL> select count(*) from order_lines_flmnt_stg_in ol
      2   WHERE order_lines_flmnt_stg_in_id IN (
      3            SELECT DISTINCT order_lines_flmnt_stg_in_id
      4                       FROM order_lines_flmnt_stg_in ol,
      5                            order_header_flmnt_stg_in oh,
      6                            order_lines oln
      7                      WHERE ol.TYPE = 'Original'
      8                        AND ol.item_code NOT IN (
      9                               SELECT oln.item_code
     10                                 FROM order_lines oln,
     11                                      order_lines_flmnt_stg_in ol,
     12                                      order_header_flmnt_stg_in oh
     13                                WHERE oh.po_id = ol.po_id
     14                                  AND ol.item_code = oln.item_code)
     15                        AND (    ol.error_message IS NULL
     16                             AND oh.error_message IS NULL
     17                             AND oh.activate_flag = 1
     18                            ));
    
      COUNT(*)
    ----------
             0
    
    Elapsed: 00:00:00.18
    SQL> select count(*) from order_lines_flmnt_stg_in;
    
      COUNT(*)
    ----------
          3198
    
    Elapsed: 00:00:00.18
    SQL> 
    I don't know if it's relevant, but there are no locks on the tables involved.

    Published by: release 6' - 8 "September 30, 2009 16:49

    count (*) SELECT can use the index only without having to consult the table at all...
    Amiel

  • Confusion between the Satellite A200-13O and A100-784

    Hello...

    Please can you help me decide which laptop I will buy.

    The concern here is the difference in performance between the "GMA 950 up to 256' in the A200 and the" 128 "in up to the A100.". "

    Is there a significant difference in performance (all game), or it's like the same.
    Because if there is little or no difference in performance, I'll go for the cheaper A100.

    Thank you.

    Hey Buddy,

    There is no huge difference, so if you take the A100 you get quite the same performance as on A200.

    I have an A100 with XP and it works well for me. For example: prey runs very nice and the machine does its job.

    Hope I could tell you because your question to which machine is best for you.

    Welcome them

  • Confusion between the physical schema definition MSSQL Server

    Hello

    I'm learning ODI 11 g and I am currently working under the physical definition of the schema under topology Navigator. I want to import data from MS SQL Oracle Server; I have defined the source (MSSQL Server) and target servers (Oracle). Testicles of connections and that they are working correctly.

    When you set the physical schema for MS SQL server I am confused with the following fields. Can someone help me understand its use here? I'll be very grateful

    (1) database (catalogue)
    (2) owner (schema) here I read-only user which I already defined as part of the definition of the SQL Server. It does not appear in the list.
    (3) database (catalogue of the work)
    (4) owner (scheme of work)

    Best regards
    Muhammad

    >

    Work catalog database is the location of the temporary objects of ODI (for example, C$, $ I, I have$ tables etc.)
    == I use a single user reading to read the data. How ODI creates temporary objects in SQL server. My work and master repository is the Oracle database.

    Temporary tables are used for a number of things, remember that at this moment in the topology - ODI don't know if your connection to the SQL Server is a source or a target, so he wants all the details, just in case. Reasons for Temp of source tables might be:
    Source of the joins of tables in different data sets with a staging expliitly, set on the source.
    Format (change data capture) objects - Tables to langer, newspaper views (items of $ J) etc.
    If you use only MSSQL tables as sources, you proably find no temporary object created side soruce, arrays of C$ will go into the scheme of work target (in this case, Oracle) that the I'll tables$. So in your case, it's normal.

    Scheme of work is the owner of the database value (catalog of the work) - once again, usually of dbo.
    == use dbo as sys in oracle?

    Type-IIRC no matter what user to the sysadmin role that creates objects have these objects as dbo by default.
    Im not MSSQL DBA if.
    Think of it as a qualifier that ODI will use when generation code selection based on the mappings of interface (for example select database.catalog.table xyz) etc.

    Hope that helps

    Published by: PeakIndicators_Alastair on May 14, 2013 08:53

    Published by: PeakIndicators_Alastair on May 14, 2013 08:54

  • Confusion between the theories of computation

    Hello

    I confused with the notion of computation Essbase as States of SER60 who, for scripts of calc optmtal DIFFICULTY on members in the order of (Dense in first and then scattered) hour glass model m... However, according to what I read in a blog, he states that FIX is supposed to be used on sparse and if its inevitable to fix on the dense members then dense are supposed to be in last place in the order...

    the given reason was that sparse setting first reduces the number of blocks in memory and then dense members would be filtered from these final calculation blocks...

    Can anyone help clear this confusion?

    Thanks in advance

    Could you give links to or cite references of SER60 that you mention?

    Anyway, dense fixation will not reduce the number of blocks processed, but he could still improve performance and make a script more readable in various situations. A big one, is that a FIX on dense can prevent dynamic Calc. Members assessment in your building. The order of the dimensions in the FIX should be irrelevant, because Essbase restocking. So ' last dense "shouldn't matter.

    There is a very interesting discussion here: http://www.network54.com/Forum/58296/thread/1208974485/Order+of+Fixes+-doneit + material. Edward gives a good example of a script that can be written more efficiently thanks to a CORRECTION on dense (that OBVIOUS).

    Incidentally, I think Ben White should be stored members setting won't always prevent the evaluation of dynamically calculated members (all depends what else stored reference formulas, see FRMLRTDYNAMIC also PUT in the Ref Tech documentation).

  • Confusion between the MSO triggering behavior

    Hi people,

    I see some behavior confusing trigger on the ASM and I hope someone can help me understand what is happening.

    I have my FGEN you ed enter the two inputs of the oscilloscope and extinction of output. In the standalone VirtualBench, I put the FGEN for outupt a 1 Hz sine wave. Then I run the attached vi, which is just data collection. When I asked him to collect data on the same channel, as is the trigger, it fires once per second, which is what I expect. When I ask him to collect data from channel 1 and trigger off channel 2, or vice versa, it fires as fast I leave the while loop execute. This can be seen by the timestamp of trigger and also the chart update. This isn't what I expect, because I do not expect the choice of the data channel to influence the outbreak.

    Also note that I put the time pre-trigger at 2 ms, but it is 4 US when I question him. I don't know what changes this value. This may or may not be related, but happens to whatever the configuration of trigger/collection of data.

    thoughts?

    -Allison

    You don't set a time sample rate or acquisition. If you want to than to keep the settings that you made in the application of VirtualBench, you must set 'Reset' to 'false' on MSO initialize VI. Otherwise, they get to the default values. The default values for the acquisition and the rate of sample time are 250 MHz and 4 US, respectively. You set a time 2 ms pre-trigger, which goes far beyond the acquisition time, so he gets converted to 3,992 US (which is the largest value for pre-trigger, we can use with a US 4 acquisition at this sampling frequency time).

    In the intervention itself, in the API VirtualBench, you should activate the channel that you want to use as a trigger. If you configure an analog channel without mail in a trigger, your type of trigger gets under duress to a trigger immediate (you can see with the OSM query trigger Type VI). It was by design, even if I agree, in this particular case, it seems counterintuitive.

    The solution would be to allow two channels, but then only chart the channel you are interested in (you can use the table of primitive Index on the waveform to choose individual channels).

  • Confusion between the issue of fonts for a new user

    Hey everyone, my apologies in advance because I just do not know how to ask the question in the right words for my research gaps. My question is I have a series of files HAVE (~ 75 or almost) and I need the police in each to match. The problem is when I open them, some do give 1 PT while others give almost 7. When the same zoom, is the size of the two texts however (the pt 1 could even be bigger?). It seems there are two scales, but I can't give a sense or understand how to put on a single scale of correspondence. I tried to learn this program stumbled right through it, so I guess there is something incredibly simple, that I'm missing but just don't know how to look for it. Any thoughts?

    Thanks a bunch

    Working from ARCMap, I see? To reset the fonts for their correct size test by selecting all, and use the arrow keys on the keyboard to move all objects, click to the left and back to the right. Reset the font size.

  • Difference between the operator NOT EXISTS and NOT IN

    Hi experts,

    I understand that this question has been asked several times, but I would like to have a clear understanding of the following:

    SELECT MEANING FROM FND_LOOKUPS WHERE LOOKUP_TYPE='WIS_WORK_DEFINITION_NAME';
    

    The results are:

    Spare

    Main working definition

    Rework

    Test

    User_Defined_WD

    Check

    I have run this query:

    select work_definition_name from  WIS_WORK_DEFINITIONS WSD WHERE WSD.ORGANIZATION_ID=207 AND WSD.INVENTORY_ITEM_ID=2686;;

    The query gives output below:

    MAIN

    REWORK

    When I run the sub query, I expect no result because the inner query in the NOT IN operator returns a NULL value.

    Query -1: the query is:

    SELECT fl.meaning FROM fnd_lookups fl WHERE fl.lookup_type='WIS_WORK_DEFINITION_NAME' AND fl.lookup_code NOT in
    (SELECT NULL FROM wis_work_Definitions wsd WHERE wsd.organization_id=207 AND wsd.inventory_item_id=2686
    AND  fl.lookup_code=wsd.work_Definition_name);
    

    If the inner query returns null, the query gives the result:

    Spare

    Test

    User_Defined_WD

    Check

    I was under the assumption that if the inner query returns null, then the global query would return no data. Example:

    Query-2:

    SELECT fl.meaning fl fnd_lookups WHERE fl.lookup_type = 'WIS_WORK_DEFINITION_NAME' fl.lookup_code AND NOT IN (SELECT NULL FROM dual);

    The query above pulled out no data as the inner query returned NULL. What I failed to understand was the difference between the query-1 and query-2.

    While Query1 returns data, query-2 not return all the data.

    There is no apparent difference between these two queries, because of the last sentence of your NOT IN query:

    AND fl.lookup_code = wsd.work_Definition_name

    Consider the row where lookup_code = HAND. The NOT IN query is a single line in wis_work_definitions where wsd.organization_id = 207 AND wsd.inventory_item_id = 2686 AND 'MAIN' = wsd.work_Definition_name. If your queries are actually like that for this line:

    SELECT fl.meaning fl fnd_lookups WHERE fl.lookup_type = 'WIS_WORK_DEFINITION_NAME' AND fl.lookup_code = 'MAIN' fl.lookup_code AND NOT in ('HAND')

    SELECT fl.meaning fl fnd_lookups WHERE fl.lookup_type = 'WIS_WORK_DEFINITION_NAME' AND fl.lookup_code = 'MAIN' fl.lookup_code AND NOT in (NULL)

    No one who will return a line, for reasons that are obvious, hopefully.

    Now consider the row where lookup_code = TEST. The NOT IN query finds a no line in wis_work_definitions where wsd.organization_id = 207 AND wsd.inventory_item_id = 2686 AND 'TEST' = wsd.work_Definition_name. A list NOT IN containing no words can be ignored, so the two queries become like this:

    SELECT fl.meaning fl fnd_lookups WHERE fl.lookup_type = 'WIS_WORK_DEFINITION_NAME' AND fl.lookup_code = 'TEST'

    Which returns a line.

    So the effect of these two queries is to return all values except those that appear in that particular (set of) definition (s) of work.

  • The difference between the ADR green vs JAVA API usage? It's confusing

    Can u clarify the difference between the ADR green vs JAVA API usage? It's confusing. If I want to create a custom algorithm, what should I use. Is it Java APIs or green Marl

    Thanks in advance,

    Akhil

    Hi Akhil,

    Thank you for your interest in the PGX! If you want to write a custom algorithm, you should do it in green-Marl. Marno-Green is a custom DSL specially designed for writing of graph algorithms. You can then use the Java API of PGX to compile and run your algorithm. Find a detailed tutorial: http://docs.oracle.com/cd/E56133_01/tutorials/compile.html

    PGX is delivered with a set of built-in algorithms, each available as a convenient Java method. Internally, all algorithms are written in green-Marl as well. The signature of the Java method aligns with the signature of the underlying green-ADR procedure. Find information about the algorithms here: http://docs.oracle.com/cd/E56133_01/tutorials/builtins.html

  • Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?

    Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?

    Welcome to Oracle Forms!  Out of curiosity, what do you mean by 'new '?  You are a student or new to an organization that uses Oracle Forms?  Or just play with Oracle Forms to learn something new?

    Let me start by saying that many of your questions designtime can answer by searching in the help of the constructor of the form library.  It's accessible, like most of the other products in the Builder menu > help.

    Regarding your question, ENTER QUERY mode, as the term implies, is when it is in a State where it is accept input for the execution of a query.  When in this mode, there are various restrictions.  Yet once, it will find more details in the Builder Help.  In this case, search help for these two subjects, "SYSTEM." MODE'and "built-ins comments that are not allowed in the input query Mode".  There are many other pages that contain information about the ENTER_QUERY method, but these two should help you get started.

    Normal mode, as its name implies, is when it is in a State of 'normal '.  Basically to do nothing in particular, but also not in ENTER QUERY mode.  In this State, you can move the shape, INSERT, UPDATE, DELETE, documents, etc..

    You will find additional information, as well as a lot of documentation on the product page of forms of OTN:

    http://www.Oracle.com/technetwork/developer-tools/forms

  • Hierarchical Oracle query help needed - path between the crux of two brothers and sisters

    I want to find the path between two nodes of oracle hierarchical Table.

    Consider the following case-
    NodeId - ParentId
    =============
    1 > > > > > > 0
    2 > > > > > > 1
    3 > > > > > > 2
    4 > > > > > > 3
    5 > > > > > > 0
    6 > > > > > > 5
    Here I want to query the database table that if there is a path between nodes 3 and 5?
    The previous query you provided work upwards to the root node.

    Here is my expected result, 3-> 2-> 1-> 0-> 5

    Yet once if I have a query in the table to get the path between 1 and 3, I want to get out of the way - next
    1-> 2-> 3

    Therefore, the query works in both cases. Where ADI root can act as an intermediate or no node.

    Can you please guide me how I can get it?

    Thank you.

    Hello

    user13276471 wrote:
    I want to find the path between two nodes of oracle hierarchical Table.

    Consider the following case-
    NodeId - ParentId
    =============
    1 >>>>>> 0
    2 >>>>>> 1
    3 >>>>>> 2
    4 >>>>>> 3
    5 >>>>>> 0
    6 >>>>>> 5
    Here I want to query the database table that if there is a path between nodes 3 and 5?
    The previous query

    What application is this? If you're referering to another thread, then post a link, such as {message identifier: = 10769125}

    you provided work upwards to the root node.

    Here is my expected result, 3--> 2--> 1--> 0--> 5

    Yet once if I have a query in the table to get the path between 1 and 3, I want to get out of the way - next
    1--> 2--> 3

    Therefore, the query works in both cases. Where ADI root can act as an intermediate or no node.

    Can you please guide me how I can get it?

    I think you want something like this:

    WITH     bottom_up_from_src    AS
    (
         SELECT     nodeid
         ,     parentid
         FROM     table_x
         START WITH     nodeid      = :src_nodeid
         CONNECT BY     nodeid   = PRIOR parentid
    )
    ,     bottom_up_from_dst     AS
    (
         SELECT     *
         FROM     bottom_up_from_src
        UNION ALL
         SELECT     parentid     AS nodeid
         ,     nodeid          AS parentid
         FROM     table_x
         WHERE     nodeid     NOT IN (
                                          SELECT  nodeid
                                   FROM    bottom_up_from_src
                                      )
         START WITH     nodeid        = :dst_nodeid
         CONNECT BY     nodeid        = PRIOR parentid
    )
    SELECT      :src_nodeid || SYS_CONNECT_BY_PATH (parentid, '-->')     AS display_path
    FROM       bottom_up_from_dst
    WHERE       parentid     = :dst_nodeid
    START WITH  nodeid     = :src_nodeid
    CONNECT BY  nodeid     = PRIOR parentid
    ;
    

    This will show how you can get it from: src_nodeid at dst_nodeid, moving to the top or to the bottom of a hierarchy at a time step. This will work regardless of the fact that


    • : src_nodeid is the ancestor of the: dst_nodeid, or
    • : src_nodeid is a descendant of: dst_nodeid, or
    • both: src_nodeid and: dst_nodeid are the descendants of another node (e.g. 0).

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0). It is always important, but particularly so with CONNECT BY queries, because each version since Oracle 7 had significant improvements in this area.
    See the FAQ forum {message identifier: = 9360002}

  • Any difference between the separate function and aggregation in sql query cost?

    Hello
    I've run many models sql stmts - such as:
    one) using a single table
    (b) using the two tables, using simple joins or outer joins

    but I didn't notice a difference in sql stmts in cost and implementation plan...
    In any case, my colleague insists on only using the aggregate function is less expensive compared to
    separate... (something I've not confirmed, that is why I believe that they are exactly the same...)

    For the situation described above under 1 sql... We could for example use
    select distinct deptno
    from emp
    select count(*), deptno
    from emp
    group by deptno
    select distinct owner, object_type from all_objects
    select count(*), owner, object_type from all_objects
    group by owner, object_type
    Have you ever found no difference between the two...?

    Note: I use Ora DB 10g v2.

    Thank you
    SIM

    Alexandre Gelin says:
    function separate and aggregation are for different uses and can give the same result, but if you use the aggregate function to get the separate records, it will be expensive...

    really? I find them almost identical to 11g. Actually GROUP BY is almost always more fast for me in the old days.

    article about this askTom Re: any difference between the separate function and aggregation in sql query cost?
    This applies mainly to the older oracle versions http://www.oracle.com/technology/products/rdb/pdf/distinct_derivedtables_groupby_sort_tech_article.pdf

  • Join the query - confused behavior

    Hello.. I need to make a join on four tables and select one data tables. The query is as below,

    SELECT THE VIRTUAL MACHINE. SEGMENT, VM.CA, VM. PR, VM. BP, VM. TERM_ID, VM. TL v_mlr_cable VM, v_neicode NEI, v_mlr MLR, v_fibre_ntwk_type FIBER WHERE MLR.master_key = 62 AND MLR.dslam_tid = NEI.id AND NEI.type = 'OLT' AND MLR.ntwk_type = FIBRE.id AND MLR.master_key = VM.master_key;

    This query works very well. I want to change the query to have an OR condition by combining certain conditions in the WHERE clause as below,

    SELECT THE VIRTUAL MACHINE. SEGMENT, VM.CA, VM. PR, VM. BP, VM. TERM_ID, VM. TL v_mlr_cable VM, v_neicode NEI, v_mlr MLR, v_fibre_ntwk_type FIBER WHERE MLR.master_key = 62 AND ((MLR.dslam_tid = NEI.id ET NEI.type = 'OLT') or MLR.ntwk_type = FIBRE.id) AND MLR.master_key = VM.master_key;

    This translates into several duplicates of the correct result lines (about 93 272 rows).
    I suspect this is a unwanted Cartesian product.
    I am limited to use a 'different' because my application performs custom, so 'distinct' query analysis is out of the option.

    I struggle to understand the result of this query. You can help... ! Thanks in advance.

    My database: Oracle Enterprise Edition 10.2.0.2.0

    Published by: vanessa on June 9, 2011 12:49 AM

    Hello

    Can hide you the SELECT DISTINCT in a subquery, like this:

    SELECT  *
    FROM    (
                SELECT DISTINCT  VM.SEGMENT, ...
            );
    

    or in a view?

    If this is not the case, use GROUP BY. The GROUP BY clause contains all the columns in the SELECT clause.

    You could also re - write the query to use EXISTS or IN, instead of a jon.
    For example:

    SELECT      SEGMENT
    ,     CA
    ,     PR
    ,     BP
    ,     TERM_ID
    ,     TL
    FROM     v_mlr_cable     vm
    WHERE     master_key     = 62
    AND     EXISTS (
              SELECT  0
              FROM     v_neicode       NEI
              ,     v_mlr            MLR
              ,      v_fibre_ntwk_type FIBRE
              WHERE     MLR.master_key      = vm.master_key
              AND      (     (     MLR.dslam_tid      = NEI.id
                        AND      NEI.type      = 'OLT'
                        )
                   OR      MLR.ntwk_type      = FIBRE.id
                   )
                )
    ;
    

    Do you think it is easier to read and understand the code formatted, as the query above, or unformatted, as what you posted?
    Who do you think will encourage people to read your question and provide accurate responses?
    Never write, not to mention NPA, not formatted.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and INSERT, only relevant columns instructions) of all the tables and the results desired from these data.
    Explain how you get these results from these data.
    Always tell what version of Oracle you are using.

  • Win7 has exchanged information on the material between the integrated video card and add on video card - need to share in return. Registry hack?

    A remote desktop client from one office to another from 10 feet.  Now Win7 has become confused about the video card.  When you use the add on the map with two monitors on DVI cables, Windows thinks that he uses the onboard video (vga on motherboard).  When you use the onboard vga video, Win7 think he's using the add on video card.
    Windows has exchanged information on video cards.  Is there a way to hack the registry and exchange their return?  Or clear the entries and have windows discover video cards again?
    So far, I pulled the add on the map but Win7 still thought he used it.  I checked the BIOS settings and display settings.  Desktop is a Dell OptiPlex 980.  Using Win7 enterprise.
    Customer does not do without office while it would be re-created, I was looking for a solution.

    They would extend the desktop between the two monitors, but now it reflects only the monitors because he thinks that it's using the vga output (when he really uses the add on the map).  Discovered this when you look at the description of the graphics cards and monitors trying each installer.

    Hello Matt,

    Thanks for posting your query on the Microsoft Community.

    I would like to inform you that, the question you have posted in the community is more on the management of the computer hardware rather than the Windows operating system. So, I recommend you contact the manufacturer of the computer hardware, which gives you a better opportunity to get rid of the problem.

    Dell Community

    Hope this information is useful. Let us know if you need help with Windows, we will be happy to help you.

  • Need help to understand the query result

    Hi gurus

    I was reading one of the question here in this forum and its link is below:

    Query required for scenario

    I had some confusion related to this code and don't understand the logic of the out put, see query below:

    Query

    with sub_services as

    (

    Select su_seq 12323, 'HLR1' so_id, 1 seq Union double all the

    Select su_seq 12323, "HLR2' so_id, seq 2 Union double all the

    Select su_seq 12323, "A09" so_id, seq 3 of all the double union

    Select su_seq 12333, "MO1" so_id, seq 4 Union double all the

    Select su_seq 12333, "MO2' so_id, seq 5 Union double all the

    Select su_seq 12333, "A09" so_id, 6 seq in union double all the

    Select su_seq 12333, 'M0CR' so_id, seq 7 Union double all the

    Select su_seq 12999, "LOL1' so_id, seq 8 Union double all the

    Select su_seq 12999, "LOL2' so_id, seq 9 double

    )

    Select *.

    of sub_services b

    where exists (select 1 from sub_services

    where su_seq = b.su_seq

    and so_id = 'A09.

    )

    order by 2;

    The query result

    12323 A09 3

    12333 6 A09

    12323 HLR1 1

    12323 HLR2 2

    12333 M0CR 7

    12333 4 MO1

    12333 5 MO2

    According to my understanding, the above query should return records in red only because of her is below command

    It exists (select 1 from sub_services

    where su_seq = b.su_seq

    and so_id = 'A09.

    but don't know why he's back 7 files, can someone help me understand the result...

    It is query is functionally identical to the PL/SQL block, but much more effective.

    declare

    number of l_res;

    Start

    for line (select *)

    sub_services) loop

    Start

    Select 1 from l_res

    of sub_services

    where su_seq = row.su_seq and

    so_id = "A09" and

    rownum = 1;

    exception when

    NO_DATA_FOUND then

    null;

    end;

    end loop;

    end;

    Essentially every row in the outer query are tested against him exists query.  Given the correlation between two requests is based only on su_seq each line with a su_seq value returned by him is returned in the output.

    Another way to think he uses instead a join condition.  This query is equivalent to the query to exist

    Select the main

    of main sub_services

    Join select (separate su_seq

    of sub_services

    where so_id = "A09") cond

    We main.su_seq = cond.su_seq;

    John

Maybe you are looking for