I need issue of SQL/PLSQL for practice

Hi all

I need to question of SQL/PLSQL for practice; could everything on send me the URL.

I need only the PDF file.

Thank you
Gregory

Here is the link for the link of PL/SQL oracle

http://www.Oracle.com/pls/db111/portal.portal_db?selected=5&frame=

IN the section of SQL and PL/SQL language, there is the language Pl/SQL.. PDF reference .you can download... its preety good to start.

Tags: Database

Similar Questions

  • SQL / PLSQL practice review

    Hello
    I'm looking for SQL, PLSQL practice Exam questions.
    Can you get it someone please let me know where I can find these?

    Concerning
    FM

    Perhaps the [certificate Forum | http://forums.oracle.com/forums/forum.jspa?forumID=459] can help you.
    We are mostly just typing (PL /) here on this forum SQL and PL/SQL SQL statements ;-)

  • Do need me a separate license for VMware vCenter Server Heartbeat for a remote SQL Server database?

    Do need me a separate license for VMware vCenter Server Heartbeat for a remote SQL Server database?

    Only a single vCenter Server Heartbeat license is necessary to protect the components of the vCenter Server installed remotely, including SQL Server. A single license is also used for several UNIQUE for vCenter Server services protected authentication servers. A license is required per instance of vCenter Server.

  • Need to hcheck.sql

    Hello

    Am in need of file hcheck.sql looking for data dictionary discripencies...

    If anyone has it please send to the [email protected]

    Connect to Oracle support and look for the following document where you can download the correct Hcontrolez file:

    'hcheck.sql' script to check the known issues with Oracle8i, Oracle9i, Oracle10g and Oracle 11 g (Doc ID 136697.1)

    HTH - Mark D Powell.

  • execute the block via file sql plsql

    Hi all

    I'm trying to run under plsql block by putting in a sql file and run it as (-oradb/BDC/oracle/OracleHomes/db/111/bin/sqlplus cpa@bdcd/cpa @/ apps/bkrdlr/interface_programs/IDSI_apply_rec_H_apply_test.sql--) but for some reason his hanging in there any idea what I'm doing wrong here. These sql statements are run very well when I run by physically logging in. appreciate your help. Thank you
    set serveroutput on;
    DECLARE
    x NUMBER(10):=0;
    BEGIN
    DBMS_OUTPUT.PUT_LINE('Loading A0 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_A0;
    DBMS_OUTPUT.PUT_LINE('total records fetched from A0: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading D1 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_D1;
    DBMS_OUTPUT.PUT_LINE('total records fetched from D1: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading D2 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_D2;
    DBMS_OUTPUT.PUT_LINE('total records fetched from D2: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading B0 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_B0;
    DBMS_OUTPUT.PUT_LINE('total records fetched from B0: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading B2 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_B2;
    DBMS_OUTPUT.PUT_LINE('total records fetched from B2: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading M0 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_M0;
    DBMS_OUTPUT.PUT_LINE('total records fetched from M0: ' || x);
    
    DBMS_OUTPUT.PUT_LINE('Loading M2 Records');
    x:=cms_idsi_prices_pkg.fn_upd_idsi_prices_from_M2;
    DBMS_OUTPUT.PUT_LINE('total records fetched from M2: ' || x);
    END;
    commit;
    exit
    Hanging out:
    $ /oradb/BDC/oracle/OracleHomes/db/111/bin/sqlplus cpa@bdcd/cpa @/apps/bkrdlr/interface_programs/IDSI_apply_rec_H_apply_test.sql
    
    SQL*Plus: Release 11.1.0.7.0 - Production on Mon Mar 7 10:48:41 2011
    
    Copyright (c) 1982, 2008, Oracle.  All rights reserved.
    
    
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, Real Application Clusters, OLAP, Data Mining
    and Real Application Testing options
    
     34
    expected results (ran the connection manually)
    SQL> /
    Loading A0 Records
    total records fetched from A0: 4253
    Loading D1 Records
    total records fetched from D1: 4253
    Loading D2 Records
    total records fetched from D2: 4253
    Loading B0 Records
    total records fetched from B0: 2853
    Loading B2 Records
    total records fetched from B2: 2799
    Loading M0 Records
    total records fetched from M0: 0
    Loading M2 Records
    total records fetched from M2: 96
    
    PL/SQL procedure successfully completed.

    Try to make / issue;

  • sql/PLSQL algorithm: is a rectangle filled with the other rectangles

    Hello
    I have 2 tables: T1 and T2:
    with T1 as
    (select 2 FromPeriod, 4 ToPeriod, 10 FromSum, 12 ToSum  from dual)
    select * from t1;
    
    
    with T2 as
    (select 1 FromPeriod, 2 ToPeriod, 9 FromSum, 5 ToSum  from dual
    union all
    select 1 FromPeriod, 3 ToPeriod, 9 FromSum, 4 ToSum  from dual
    union all
    select 2 FromPeriod, 5 ToPeriod, 9 FromSum, 11 ToSum  from dual
    union all
    select 2 FromPeriod, 5 ToPeriod, 11 FromSum, 12 ToSum  from dual)
    select * from t2;
    FromPeriod, ToPeriod are positive whole number without decimal point.
    FromSum, ToSum are positive numbers can have the comma.

    Table T1 contains unique in the columns 'FromPeriod-ToPeriod' points, that means that is there is a record where "FromPeriod-ToPeriod" = [2-4], then it is certainly not rendered as "FromPeriod-ToPeriod" = [1-4] keys wich [2-4] period, such a thing is not possible in table P1, it contains only unique periods that do not touch. Then the records with periods [2-4], [5-6] are ok in there.
    But table T2 allows periods affecting somehow. You can see that T2 contains "FromPeriod-ToPeriod" = [1-2] and also [1-3] that touch each other.

    We can look at the two tables T1 and T2 as rectangles where X - axis is the values of the axes and the "FromPeriod-ToPeriod" is [FromSum, ToSum].
    I need sql/plsql algorithm that returns true if the rectangle of table T1 is discovered/filled with rectangles in table T2. If the rectangle in T1 is completely filled or even more filled than necessary, then algorithm should return true. If even a small neighborhood in rectangle T1 is not filled by rectangles in T2, then the algorithm must return false.

    As see you in the sample data, T1 has a rectangle: [2-4; 10-12] T2 contains 4 mentions that fill/overdraw this area defined by T1. So for the moment the algorithm must return true.

    I do not know how to write effective elsewhere such algorithm, can you help me?

    --
    At the moment I only came with such algorithm/query:

    Test1: this test should return true:
    --query: is rectangle [2-4;10-12] filled? -Yes.
    with T2 as
    (select 1 FromPeriod, 2 ToPeriod, 9 FromSum, 5 ToSum  from dual
    union all
    select 1 FromPeriod, 3 ToPeriod, 9 FromSum, 4 ToSum  from dual
    union all
    select 2 FromPeriod, 5 ToPeriod, 9 FromSum, 11 ToSum  from dual
    union all
    select 2 FromPeriod, 5 ToPeriod, 11 FromSum, 12 ToSum  from dual)
    select * from t2
    where (2 <= ToPeriod and 4 >= FromPeriod) -- x-axes overlapping
    and (10 <= ToSum and 12 >= FromSum)--y-axes overlapping
    ;--2 rows
    
    --
    
    2     5     9     11
    2     5     11     12
    I takes as input the T1 table horizontal axes (2, [4]) and research data table T2 that affect this horizontal axes, also the value axes is compared. But how then? There are 2 files, but it can give 10 stores overlap in the periods and amounts. How to determine now that rectange T1 is filled?

    Test2: This case should return false:
    --query: is rectangle [2-4;10-12] filled? -No.
    with T2 as
    (select 1 FromPeriod, 2 ToPeriod, 9 FromSum, 4 ToSum  from dual
    union all
    select 1 FromPeriod, 3 ToPeriod, 9 FromSum, 4 ToSum  from dual
    union all
    select 2 FromPeriod, 4 ToPeriod, 9 FromSum, 11 ToSum  from dual
    union all
    select 2 FromPeriod, 5 ToPeriod, 13 FromSum, 13 ToSum  from dual)
    select * from t2
    where (2 <= ToPeriod and 4 >= FromPeriod) -- x-axes overlapping
    and (10 <= ToSum and 12 >= FromSum)--y-axes overlapping
    ;--1 row.
    
    2     4     9     11

    Charles,

    I see 2 choices, but none is likely to evolve very well. The first can be with SQL - subdivision T1 into unit squares and see if everything not covered by T2:

    with T1 as
    (select 2 FromPeriod, 4 ToPeriod, 10.1 FromSum, 12 ToSum  from dual)
    , T1X as
    (select (FromPeriod+level)-1 as Period from T1 connect by level <= (ToPeriod-FromPeriod)+1)
    , T1Y as
    (select (FromSum+level*.01)-.01 as Summ from T1 connect by level <= (ToSum-FromSum+.01)/.01)
    , T1XY as (select Period,Summ from T1X,T1Y)
    ,T2 as
    (select 1 FromPeriod, 2 ToPeriod, 9.99 FromSum, 10.1 ToSum  from dual--satisfies sub-region [(2,2);(10.1,10.1)]
    union all
    select 1 FromPeriod, 2 ToPeriod, 9.99 FromSum, 10.11 ToSum  from dual--now satisfied sub-regions: [(2,2);(10.1,10.11)
    union all
    select 2 FromPeriod, 2 ToPeriod, 10 FromSum, 12.01 ToSum  from dual--now satisfied sub-regions: [(2,2);(10.1,12)
    union all
    select 3 FromPeriod, 4 ToPeriod, 10 FromSum, 11.99 ToSum  from dual--now satisfied sub-regions: [(2,2);(10.1,12)],[(3,4);(10,11.99)]
    union all
    select 4 FromPeriod, 4 ToPeriod, 10 FromSum, 13 ToSum  from dual--now satisfied sub-regions: all filled, return true
    )
    select Period,Summ from T1XY
    where not exists (
    select 1
    from T2
    where T2.FromPeriod<=T1XY.Period
    and   T2.ToPeriod>=T1XY.Period
    and   T2.FromSum<=T1XY.Summ
    and   T2.ToSum>=T1XY.Summ
    )
    ;
    

    The second option is more inspiring you described, using a recursive algorithm to subdivide the T1 into small rectangles for each rectangle in T2. For example:

    X(1)={[a,b;c,d]}
    
    Y={[e,f;g,h];[i,j;k,l]}
    
    X(2)={[a,e;c,g];[e,f;c,g];[f,b;c,g];[a,e;g,h];[f,b;g,h];[a,e;h,d];[e,f;h,d];[f,b;h,d]}
    or
    X(2)={[a,b;c,g];[a,b;h,d];[a,e;c,d];[f,b;c,d]}  -- this gives some overlap, but fewer rectangles and the algorithm still works.
    
    You would have to refine it to handle partial overlaps correctly, then drop areas that don't have a positive area. If
    X(2) becomes empty then it is fully covered. It might be most efficient to sort T2 in order of descending area.
    

    Kind regards
    Bob

  • Need to find a driver for NETWORK card for my P7-1010

    I had a few difficulties to connect to my cable company and they said that it's maybe because I didn't install the necessary NETWORK card driver. That sounds wrong and if so, where can I find 'he'... or all the other drivers, I may need. Is there a central database driver? PS - I am born a Mac person and due to costs and conditions of work ended up on a PC... and I've had hundreds of issues with both platforms... but less Apple... so do not hate the user ID

    For what operatng system you need the NETWORK card driver for?

    All drivers available for your desktop P7-1010 PC are stored here.

  • "Any new name for the program" has encountered a problem and needs to close. Sorry for the inconvience

    Whenever we try to install something new, that settles it, but when we get the same error message

    "the new name of the program" has encountered a problem and needs to close.  Sorry for the inconvience

    We can't get anything to run now

    Hello

    1 is this problem limited only when installing an application?
    2. what application are you trying to install?

    Method 1.
    I recommend you to reregister the Installer engine.
    Here's how:
    a. Click Start, click Accessories and then click command prompt.
    b. at the command prompt, type the following and press ENTER after each line:

    MSIExec /Unregister
     
    MSIExec/regserver

    Method 2.
    For other methods, see the article below.
    How to troubleshoot issues that may occur when you install, uninstall, or upgrade one program on a Windows computer
    http://support.Microsoft.com/kb/2438651/en-us

    I hope this helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Error "Generic Host process for Win 32 services has encountered a problem and needs to close." Sorry for the inconvenience. "Please tell MIcrosoft this problem."

    Original title: programs appearing and disappearing

    Generic Host process for Win 32 services has encountered a problem and needs to close.
    Sorry for the inconvenience.
    Please tell this problem to MIcrosoft. We have created an error report that you can send to help us improve the generic
    Host Process for Win 32 Services. We will treat this report as confidential and anonymous. To see the data click on send
    Error report or not send.
    I clicked on the error report, and that's what he said... szAppname:svchost.exe szAppver: 5.1.2600.5512
    szModver: 5.1.2600.5755 szModname: ntdll.dll compensate 00023845 etc, etc.

    Hi 1jimbo1,

    1. when exactly you receive this error message?
    2. did you of recent changes to the computer?

    Method 1:

    Step 1:

    You can try to start in safe mode and check if the problem occurs.

    Check out the link for more information on starting your computer in SafeMode below:

    http://support.Microsoft.com/kb/315222

    Step 2:

    If the problem does not happen in safe mode and then, try to perform a clean boot.

    A clean boot to check if startup item or services to third-party application is causing this issue.

    You can read the following article to put the computer in a clean boot:

    http://support.Microsoft.com/kb/310353

    If your problem is resolved after the clean boot, and then follow the steps mentioned in the article above to refine the exact source.

    After you have used the boot is a way to solve your problem, you can follow the steps to configure Windows XP to start normally.

    Method 2:

    You can also check the following link and complete the scan line on your computer to check whether your computer is infected with a virus or not.

    http://OneCare.live.com/site/en-us/default.html

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • I use Windows Vista and that you need to download SQL Server 2005 Express Service Pack 4. I get an error code of 64 C. Please tell me what to do?

    I use Windows Vista and that you need to download SQL Server 2005 Express Service Pack 4. I get an error code 64 C help, please.

    Hello

    I suggest you to try the steps below and check if it helps.

    Method 1: Try to reset components to update Windows from the following link, which would help you to install the updates of windows. http://support.Microsoft.com/kb/971058

    Method 2: If the problem persists, then try to set up your computer in a clean boot state, and check to see if the same problem happens.

    By setting your boot system minimum state helps determine if third-party applications or startup items are causing the problem.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or Windows 7:
    http://support.Microsoft.com/kb/929135

    Note: After the boot minimum troubleshooting step, follow step 7 in the link provided to return the computer to a Normal startup mode.

    Method 3: Also try to install the updates manually from the link below.

    http://www.Microsoft.com/download/en/details.aspx?displaylang=en&ID=184

    You can also consult the following link for more information:

    Troubleshoot problems with installing updates.

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-with-installing-updates

    Hope this information is useful.

  • compatibility issue with the software for Windows XP

    When I try to install a program, it says that I need to be runniing in windows XP. I try to install the program in compatibility mode and get the same message, and the program does not load. When I called the technical support for the program they tell me I need to download a donwload of compatibility for microsoft. I find no download for this issue. Thank you for your help.

    You could ask Zoll Medical to be more specific about any download (get a link) that they could help you.

    You are in contact with other users of this equipment you can ask them if they have similar problems and have any alliterative solution.

    Have you tried right clicking on the shortcut to the Setup.exe and choose the option "Run As Administrator"?

  • Base date regarding the issue of SQL

    create table emp (empname varchar2 (35), join_date date);

    Insert into emp VALUES ('JOHN', TO_DATE (March 23, 2005 09:00 ',' DD-MON-YYYY HH24 '));

    insert into emp VALUES ('HANS', TO_DATE (February 14, 2012 14:00 ',' DD-MON-YYYY HH24 '));

    commit;

    SQL > alter session set nls_Date_format = 'DD-MON-YYYY HH24. "

    Modified session.

    SQL > select * from emp;

    EMPNAME JOIN_DATE

    ----------------------------------- -----------------

    JOHN ON MARCH 23, 2005 09:00

    HANS FEBRUARY 14, 2012 14:00

    To find all employees who have joined the date of March 23, 2005, I need to do the following.

    Y at - it a shorter version for this request?

    SQL > select * from emp where JOIN_DATE > TO_DATE (March 23, 2005 00:00 ') AND JOIN_DATE < TO_DATE (March 24, 2005 00:00 ');

    EMPNAME JOIN_DATE

    ----------------------------------- -----------------

    JOHN ON MARCH 23, 2005 09:00

    Hello

    N.Page wrote:

    create table emp (empname varchar2 (35), join_date date);

    Insert into emp VALUES ('JOHN', TO_DATE (March 23, 2005 09:00 ',' DD-MON-YYYY HH24 '));

    insert into emp VALUES ('HANS', TO_DATE (February 14, 2012 14:00 ',' DD-MON-YYYY HH24 '));

    commit;

    SQL > alter session set nls_Date_format = 'DD-MON-YYYY HH24. "

    Modified session.

    SQL > select * from emp;

    EMPNAME JOIN_DATE

    ----------------------------------- -----------------

    JOHN ON MARCH 23, 2005 09:00

    HANS FEBRUARY 14, 2012 14:00

    To find all employees who have joined the date of March 23, 2005, I need to do the following.

    Y at - it a shorter version for this request?

    SQL > select * from emp where JOIN_DATE > TO_DATE (March 23, 2005 00:00 ') AND JOIN_DATE< to_date="" ('24-mar-2005="">

    EMPNAME JOIN_DATE

    ----------------------------------- -----------------

    JOHN ON MARCH 23, 2005 09:00

    You mean > = instead of >, to register the join_dates that are exactly 12:00:00 AM on March 23.  Keep< at="" the="" end;="" you="" don't="" want="" anything="" from="" march="" 24,="" and="" you="" don't="" want="" between="" for="" the="" same="">

    What you posted is the fastest way.  Use DATE instead of TO_DATE literals, it is a bit shorter and just as fast.

    SELECT *.

    WCP

    WHERE join_date > = DATE '' 2005-03-23

    AND join_date<  date="">

    ;

    May be the shortest path (which will be slower):

    SELECT *.

    WCP

    WHERE TRUNC (join_date) = DATE '' 2005-03-23

    ;

    It's slower because we need to call a function for each row in the table, and (potentially much larger) this means that you cannot use an index on join_date.

  • "XYZ" is not in the scope. You may need to use an alias for "MNO".

    Hello

    I use 3 entities

    Global

    ABC

    XYZ

    All relationships are in one on one, Global contains ABC and ABC contains XYZ.

    XYZ contains a text MNO attribute and I executed the bottom rule in the doc of the rule of the OPM 10.3.1 and 10.4. In 10.4 it works fine where as in 10.3, I get an error "" XYZ" is not in the scope. "You may need to use an alias for"MNO""

    MNO is correct if

    MNO = "MARK".

    I would like to know why I get this error and the solution for it.
    Thanks in advance

    I highly recommend to undertake formal training. Then the OPA is easy to get up and run with, it's like any other powerful tool that once you start digging into the most powerful bits you need to have a better understanding of the underlying concepts to really get the best value.

    You must also make sure that read you the excellent guide of best practices of Jasmine

    http://www.Oracle.com/technetwork/apps-tech/policy-automation/learnmore/policymodelingbestpracticeguide-1371173.PDF

    So assuming that we still use the above very limited model (it's rare to see 1:1 too many relationships in practice) and you need to get this working on 10.3... essentially, what you're going to need to do is navigate the relationships to pass information to the entity levels - I'll use your feature names as on the model, but they write the rules more difficult to understand.

    I suppose that the text of standard relationship containment generated automatically.

    the global attribute value

    1 For(all instances of ABC, ABC has an MNO of "Mark")

    2 otherwise

    ABC has a MNO 'brand '.

    For (all instances of XYZ to ABC, MNO XYZ = "Mark")

    Although personally I would also enter the condition in the second rule to a conclusion so separate.

  • Need to query SQL - oracle 8i

    Hello

    We use Oracle 8i (Oracle8i Enterprise Edition Release * 8.1.7.4.0 - 64 bit Production *).

    My requirement is-

    I need output like

    User_name company

    Suri 01,86,65
    Srinu 01,86,65


    Here are examples of data.
    WITH t AS ( SELECT 'SURI' user_name ,'01' Company FROM dual UNION ALL
                SELECT 'SURI' user_name, '86' Company FROM dual UNION ALL
                SELECT 'SURI' user_name ,'65' Company FROM dual UNION ALL
                SELECT 'SRINU' user_name, '01' Company FROM dual UNION ALL
                SELECT 'SRINU' user_name ,'86' Company FROM dual UNION ALL
                SELECT 'SRINU' user_name ,'65' Company FROM dual )
    SELECT * FROM t ;
    
    
    USER_NAME     COMPANY
    SURI              01
    SURI              86
    SURI              65
    SRINU              01
    SRINU              86
    SRINU              65
    Thank you very much in advance for the help.

    Thank you
    Suri

    Hello

    Suri wrote:
    ... Only one doubt ROW_NUMBER will work in Oracle 8i?

    What happens when try you it?

    It's in the manual of the SQL language for your version?
    http://docs.Oracle.com/CD/A87860_01/doc/server.817/a85397/index.htm

  • Installation of SQL Server for the virtual Center Server

    Hi all

    We bought 16 x 2 for ESX server CPU licenses.  So, I will prepare a database of virtual server of the Management Center 16 guests. As SQL Server 2005 Express is installed during installation of Virtual Center Server but VMware is recommended for use only for 5 guests.

    So I would like to prepare a database of SQL for VC server, please help me how to make the database to the virtual Center Server. Are there special tables, configuration, permissions. I have no experience with databases then how should I go with it. Is there a guide for it. The ESX Server installation guide explains only create ODBC connections.

    Please help me with this I would be very obliged.

    I know that the procedure is restrited 2 steps (1 and 2) on page 68, but you need to install and configure SQL Server for your business standard (I guess asking the C: or D: and data/newspapers on E :). I'm not going to explain better how to install SQL Server on a server. For the SQL Server database:

    • Step 1: you create a database storing the files on the right disk (with at least 30 GB) with a default database size to the size defined by the "Calculator" (value of + 15% on the line of your choice statistical level).

    • Step 2: On your Microsoft SQL Server, create a user of SQL Server database with the database rights of operator (DBO). The default database for the DBO User is that you defined in step 1. Make sure the database user has a role of sysadmin server or the role of database db_ownerfixed on the VirtualCenter database and the MSDB database. The role db_owner on the MSDB database is required for the installation and upgradeonly. This role can be removed after installation or upgrade process iscompleted.

    The user must be created for your standard business as service account (password never expires) with a long and complex password.

    Other steps in the document are for the ODBC connection.

    Creating the tables is made during the installation of VC. Nothing to do. A characteristic is not to stop the SQL Server agent because some tasks are scheduled in the database to 'compact' statistics.

    For the record, the database is upgraded when installing patches VC creating of new tables, updating of data type or...

Maybe you are looking for