declareing cursor for loop inside another cursor for loop

Hi friends,

Is it possible declareing cursor loop within another cursor for loop for.

Please guide for example?

You can even declare cursor within the cursor loop

declare
cursor c1 is select deptno from the Department;
BEGIN
for cr1 in c1
loop
declare
cursor c2 is select ename from emp where deptno = cr1.deptno;
Start
for cr2 in c2
loop
dbms_output.put_line (CR1. DEPTNO | ' ' || CR2.ename);
end loop;
end;
end loop;
end;

Tags: Database

Similar Questions

  • AbsoluteFieldManager inside another Manager

    Hello. I'm trying to place my AbsoluteFieldManager inside another Manager. Basically, I want my absManager at the bottom of the screen (like setStatus). I couldn't find a way to achieve this properly so I created a HorizontalFieldManager, setStatus (hManager) and now I wanted to add the absManager to hManager but it gives me an error saying that it is already apparent.

    What I'm trying to do, is have a bar of tabs at the bottom of the screen, what I did with success in using hManager. The thing is that I want to place my tabs where I want.

    Any help would be greatly appreciated.

    Thank you.

    I just setPadding instead of setMargin and it works. Background image of the horizontalFieldManager seems to stop at the margin, so the margin of a HorizontalFieldManager with a background image the assignment will result in white space.

    Thanks for the help.

  • A number of pixels inside another object by defining an object?

    Hello everyone, starting here.  I feel like this is a question with a simple answer, but I can't seem to find what I'm looking for, so I'll try to explain here.

    I want to know how to set an object a number of pixels (horizontally and vertically) inside another object.  I have rasterized showing preview, but it shows the artboard, I believe, not in relation to the specific object.  Any help would be greatly appreciated! Thank you!

    You can align the edges of the objects and then select the object to be moved and type + 5 at the end of the coordinated field X or Y in the range of transformation to shift the position of 5 pixels (assuming that your units are in pixels; otherwise, type + 5px)

  • Call a select stmt with multiple columns inside another column

    Hi all

    I have a question about the appeal of a select statement, which is to have multiple columns inside another select statement.

    I know that we can use inline views to retrieve data from another table within a query as shown below.

    SELECT (SELECT dname FROM dept WHERE deptno = e.deptno), deptno, sal FROM emp e;

    Now, I'm going to pull the loc also column within the same view of inline. But oracle is not allowing me to do the same thing.

    Is there a way we can achieve the same thing because I don't want to hit the area two times table each time for each emp record.

    Appreciate your valuable suggestions.

    Thank you
    Madhu K.

    Maybe just a simple outer join?

    select ut.subscriberid
          ,ut.unitid
          ,ut.install_date
          ,nvl(tuh.hardwaretype, 'NO_HW')
    from   tt_unit ut
    left   join tt_unit_hwtype tuh
    on     tuh.unitid = ut.unitid
    where  trunc(ut.install_date) >= V_CONST_PROG_START_DT;
    
  • target a movieclip from inside another movieclip

    target a movieclip from inside another movieclip

    I want gotoandplay symbol timeline from the main timeline

    Clicking on 1, I want to goto inside 5. 5 timeline not. This is the main scenario. but I want to go symbol 5 chronology

    Thus, the code I use is:

    Stop();

    movieClip_1.addEventListener (MouseEvent.CLICK, fl_ClickToGoToScene);

    function fl_ClickToGoToScene(event:MouseEvent):void

    {

    MovieClip (circle) .gotoAndPlay (1);

    }

    instace.jpg

    Here I wan to go

    ok.jpg


    If inside5 is the object on the same timeline as movieClip_1 and you want the circle target is a child of inside5, use:

    inside5. Circle.gotoAndPlay (1);

  • Why can not see the waveform audio timeline on sequences inside another sequence in Premiere Pro CS6? Can I fix?

    Anyone know why I can't see the waveform audio timeline on sequences inside another sequence in Premiere Pro CS6? Can I fix?

    Hit the Audio rendering.

  • Get the ID of a dynamically created symbol library, inside another symbol.

    Hello world

    I'm trying to get the id of a dynamic created symbol library.

    When you dynamically create the symbol directly on the stage (or the level of the composition), there is no problem.

    But I can not function when you create the symbol inside another symbol.

    A few examples using 'getChildSymbols()' and 'aSymbolInstances '.

    // USING "getChildSymbols()" /////////////////////////////////////////////////////////////////////////

    ON THE STAGE

    var m_item = sym.createChildSymbol ("m_item", "Stage");

    var symbolChildren = sym.getChildSymbols ();

    console.log (symbolChildren [0] .getSymbolElement () .attr ('id')); / / ok eid_1391853893203

    / / Inside a SYMBOL OTHER

    var m_item = sym.createChildSymbol ("m_item", sym.getSymbol("holder").getSymbolElement ());

    var symbolChildren = sym.getSymbol("holder").getChildSymbols (); / / I use this maybe wrong?

    console.log (symbolChildren.Length) / / returns 0 if can't ID is

    ' USE 'aSymbolInstances "".

    ON THE STAGE

    var m_item = sym.createChildSymbol ("m_item", "Stage");

    console.log(sym.aSymbolInstances[0]); / / ok (I guess) x.fn.x.init [1] 0: #eid_1391854141436 div

    / / Inside a SYMBOL OTHER

    var m_item = sym.createChildSymbol ("m_item", sym.getSymbol("holder").getSymbolElement ());

    console.log (sym.getSymbol("holder").aSymbolInstances [0]); / / Error Javascript in the event handler. Type of event = element

    In this post http://forums.Adobe.com/message/5691824 is written: "mySym.aSymbolInstances will give you a table containing all the 'names' when you create symbols"

    Would be - this only works on the scene / composition level only and not inside a symbol?

    The following methods to obtain the same are indeed possible, but I do not simply want to use them in this case:

    (1) storing a reference to the symbol created in a table and call it later by index.

    (2) giving the elements an ID manually on the creation and use of document.getElementById () thereafter.

    I can't believe that this is not possible. I am probably missing something here.

    Forgive me that I am a newbie using Adobe Edge!
    I really hope that someone can help me here.

    Anyway, thnx in advance people!

    Kind regards

    Lester.

    OK, I solved my problem by using the (simple) code below.
    I guess that 'getChildSymbols()' and 'aSymbolInstances' only works on stage / level of the composition.

    Just thought I'd share this to everyone. Peace!

    var m_item = sym.createChildSymbol ("m_item", sym.getSymbol("holder").getSymbolElement ());

    $.each (sym.$("holder").children (), function (index, obj) {}

    Console.log ($(sym.$("holder").) ([Index] Children()) .attr ('id'));

    });

  • How to loop inside another collection collection.

    Hello


    Declare
    qry varchar2 (100);
    type t1 is the table of the varchar2 (1000);
    t t1;
    type h1 is table of the emp % rowtype;
    h h1;
    I have pls_integer;
    Begin

    qry: = 'EMP ';

    SELECT COLUMN_NAME BULK COLLECT INTO t OF USER_TAB_COLUMNS WHERE TABLE_NAME LIKE 'EMP ';

    / * Print the column names * /.
    because me t.first... loop of t.Last
    dbms_output.put_line (t (i)); --> The names column print
    end loop;

    SELECT * COLLECT LOOSE hours of EMP;

    / * Print the content * /.
    j in h.first... loop of h.Last
    dbms_output.put_line (h (j) (i) .t); -> Here I try different values to print all the column values, if we use
    end loop; dbms_output.put_line (h (j) .empno); It prints instead of who uses different
    end;


    In the above block if I use t (i) it shows that T must be declared please suggest me how to use the t (i) inside the loop to print the column names


    Thank you
    Sudhir

    Why the postal code again?

    By the way - DBMS_OUTPUT does not print anything. He is unable to do so. This is an internal buffer in PL/SQL and very expensive PGA memory consumption.

    Your approach and your code are flawed. If you want to dynamically reference a cursor column names, use DBMS_SQL.

    But, making reference to a dynamic column makes no sense you have STATIC code and by that it means that the projection of SQL is known. The columns inside this projection is known. The data types of the columns inside the projection is known.

    This is why I said - define the problem.

    What you did is displayed code broken for a wrong approach. And as you have discovered yourself, the code does not work. Then take a step back and describe the problem that the code is supposed to address.

    If we have a clear definition of the problem, we can discuss solutions for it.

    At the moment - you posted a solution imperfect and broken. And there is not much to discuss, but to say that she is wrong and will not work.

  • Declare variables for the host, pool, vmFolder

    Hello

    I'm working on a workflow to automate the deployment of virtual machines.  The idea is that end-user the applicant may apply to the new virtual machine for memory, drives & size X and OS X.  The thing I want to control is the virtual machine (model to be cloned), HOST, POOL, store DATA and vmFOLDER.  I want to know how to pass the ID or the NAME to variables of the:

    System.getModule("com.vmware.library.vc.basic").cloneVM (vm, vmFolder, name, powerOn, template, data store, host, pool)

    Configure debugging which gave me (names and IDS) values of them (when I run manually) but how hard coding or spend is the real question?

    Thank you

    B

    Heya B, rather than to write an article here on how to do what you need, I took your code and that I take to be what you're trying to do and created a file of Package vCO (see table) of how I would approach...

    Import the package.

    Note that there is a Configuration element with several attributes with empty values. You must complete your values here in the configuration item. Attributes of workflow will be get their values from here.

    Now look at the workflow: notice the attributes and how they point to the configuration item! Now, look in the script task. The code, it is much easier to read and it will be easier in the future to make a change to the resources of the coast and West Coast.

    By setting these specific resources of the infrastructure as elements, you can reference them in many different workflows. And when you make a change to one of the resources that use your workflow (s), it should ONLY need to be done in the configuration item, not the ten to twelve that all workflows need to know what the West Coast Development Resource Pool

  • Customers Web App does not not inside another Web application?

    I have a web application, in this web app detail page, I have a form. I want to take the URL of another article of web app (completely different web application), we introduced the user connected, and insert it into the form.

    I tried to use the following code:

    {module_webappscustomer id = "34977" filter = 'all' resultsPerPage = "1" hideEmptyMessage = "true" sortType = "date" collection = "Summary" template =""}

    {% for r % resume.items}

    View my RESUME online at: example.com {{r.url}}

    {% endfor}

    When the page loads, it inserts the URL of the current detail page, I'm.

    For example:

    It must be returned: example.com/job-seeker/my-resume

    but he makes: example.com/job-posting/job-post-title

    Is this a bug or is at - there a way around this problem?

    I found a work around taking my code {module_webappscustomer... and put it inside an inclusion.} Insert the include instead of the code and it works fine.

  • Dialog box comes as Haggard when inside another dialog box

    Hello world

    I have a dialog (Dialog1) and it has a button. When clicking this button appears an another dialog (Dialog2). Now, when I close Dialog2, Dialog1 comes as unfocuessed. Click anywhere inside Dialog1 makes it as active. For the two modal dialog boxes is set to False. Is it possible I can do the development on Dialog1 Dialog2 post-closure.

    Solved the problem by putting modal = true for second dialogue.

  • window/palette inside another palette not showing / made - bug? (dockable UI script)

    Hello

    I am writing a script where I could choose some psd in project files and script would be basically replace these DSP-s with the same files, but load them as * layers comps *, duplicate 2 times, and solo from the specific layers in each model in layers.
    The script works perfectly, but the problem starts when I try to add * Options * button that needs to load the new palette, with lots of boxes. He simply didn't want to with show/make the new palette within After Effects, but it works perfectly inside ExtendScript? Here are the screenshots:
    otpBTNproblem1.jpgotpBTNproblem2.jpg

    Is there something like a maximum video memory for a custom user interface, or it's just a bug in the software? I use AE cs6, and I tested it in cs5 and cs5.5 - same problem...
    whatever that is would be helpful.
    Thank you

    (Sorry for the bad eng)

    OK, there seems to be something wrong with the CS6 outright. After trying a number of ways, I then realized that NONE of the other scripts in my interface which had windows pop up would work. All these scripts worked perfectly fine before you test this script, something will not twisted here.

    I think that by not having is not the "winVinjOpt" and "winPsdOpt" window inside the function onclick code is the source of the problems. Once I placed the code inside the onClick functions, it is more has killed all pop-up windows. Having a window in limbo was to play with the system. Another thing that I would change too would be to do as well "winVinjOpt" and "winPsdOpt" a dialogue instead of the palette. This keep the window above everything and cannot be hidden behind your main or any other floating panels.

  • Shape inside another form - is this masking?

    Hello

    For so long now, if I was in a scenario where I would like to have an overlap of one form another form, but be kept indoors, I chose the two forms and hidden them - then had to copy the basic form and stick it in place again to keep the original appearance. This seems to me very badly. I hope that I have explained this clearly. Is there another way to do this? Thanks for your time.

    I'm on Illustrator CS3 by the way.

    In Cs 5 nd later, there is a feature to draw inside

    1. cut the object you want to paste inside the other object.

    2. you then select the object that you want to paste the first object in

    3. you go at the end of the toolbar and select draw inside to make the object to be pasted in.

    4. you then paste the object while the draw within the object is still selected.

    5. you can reposition the dough Explorer in if you want a different relative position.

    The two objects on the right Iam going to stick one on the left

    Bleow is the object I did a draw draw inside the target object

    Here is the result after the Paste command I can still reposition or refine the position of the pasted object

  • Problems with video clip inside another MC button

    Hi all
    So I solved a problem earlier thanks to this site, but she has created a different problem. I could find a way to get an external text to load into a text inside a music box. However, the problem is I want to have a series of buttons also inside the MC which will change, delivery, the text in the (loading area in the text to another file). I'm running problems, however, because I can't figure out how to get the movie clip buttons to work.

    A short brief on the installer. I have a master.swf that loads in splash.swf (menu animation and splash) and about.swf (a paragraph loaded when you click on 'about' in the navi bar). When about.swf opens, I got a piece of film clip and text and the submenu appear after 20 images.

    This is the code that I placed on frame 1 of the about.swf:

    [PHP] boxmovie.btn_about2.onPress = function () {}
    trace ("button has been pressed");
    _level0.loadText (loadedInfo, ' vars/about2.txt');
    } [PHP]

    You can download the files
    goldinroute.com/MacGregor/Help.zip

    Any help would be appreciated!

    I guess what to expect, I hang on the file... OK, did you give the button the instance name 'more'? ("btn_about2") is not there in the file I have. Then, copy the following code must be IN the MC boxmovie, guess where... of 23 frame, because you cannot assign code to an object that doesn't exist or has not been instantiated, the chronology. so it should read:

    btn_about2.onPress - function() {}
    _level0.loadText (loadedInfo, ' vars/about2.txt');
    }

    (btw - if you reverse the way in which you name the inclinometer, Flash will give you a list of the methods of the class, when you type a '.' later, as in "about2_btn" to instead, just a thought for you, even with as "boxmoive_mc" for example ;))

  • How can I load an external SWF into a clip that is inside another video clip?

    Hello.

    I create my first flash (actionscript 3.0) Web site, but I'm stuck with a visual effect, I want to create.
    I have a window on my website called contentWindow. Whenever you click on a button, this window is supposed to leave the scene, loading the requested content and back on the scene.
    The sliding window is a clip with 83 frames, 21 to enter the stadium, 21 to leave the scene once again, 20 for anything (it's just to simulate the load time) and 21 to the back on the scene.

    Now, my goal is, when the user clicks a navigation button, the window leaves the scene, loading an external SWF with the content and then returned to the scene.

    I have the clip of 'window' with an instance name of "contentWindow". Inside there is an another film clip with an instance name of "contentLoader. The content that the user has requested must appear inside the 'contentLoader.

    Now, when the contentWindow leaves the scene, I get this error message:

    Quote:
    TypeError: Error #1009: cannot access a property or method of a null object reference.
    at rwd_fla::MainTimeline/trigger()

Maybe you are looking for

  • How can I change the system on my imac OSX 10.11.4 Administrator?

    It's on a new iMac (2016). I SHOULD be the system administrator. Firefox won't let me update because it says I don't have permission and need to contact my system administrator. Ugh.

  • Tecra 8200 built in WiFi Lucent

    I have a Tecra 8200 running Windows 2000. I ran all the latest news from the BONE. I put the built in Wifi Lucent card and can communicate Ad Hoc with an another toshiba laptop with a wireless Belkin 54 g card. After a few minutes of inactivity, the

  • HP 8200: upgrade hp 8200

    can I take hp8200 core i5-2500 with core i7 - 2600 k or 2700 kor better?

  • I deleted the windows defender and you want to restore

    There is this software on my computer which safely remove files... I thought that it wont remove windows files. but when I tried on windows defender in program files, it has actually deleted it. I didn't modify other files dll. is possible that I can

  • Increase (or decrease) the authentication level using OAM user Plugins

    HelloI have a scenario with 100s of applications protected by OAM. One of these applications, a portal, must grant access not only to all employees, but also a special set of users. These users live in a special subtree of my ldap repository. While t