Definition of different number of REB for each key

Hello

Assuming I have the following tables and sample data:

create table test_tbl_aa
(aa number(2));

insert all into test_tbl_aa(aa) values(aa)
select level aa
   from dual
   connect by level<=4;
   
create table test_tbl_aa_n
(aa number(2), n number(1));

insert all into test_tbl_aa_n(aa, n)
  select aa, lv
    from test_tbl_aa
    cross join (select level lv
                from dual
                connect by level<= trunc(dbms_random.value(1,3))
                ) v;

For example, running the stmt insert in the table test_tbl_n the inserted rows are:

AA    N
--------
1     1
1     2
2     1
2     2
3     1
3     2
4     1
4     2

In the example above defined result a stable set of records for each aa (for each series).

Is it possible to generate different number or records in the table for each data value test_tbl_n

column aa?

For example for:

AA    N
--------
1     1
1     2
2     1
3     1
4     1
4     2

Note: Oracle db 11g. v2

Thank you very much

SIM

Do you mean like this?

SQL > insert while test_tbl_aa_n (aa, n)
2 Select aa, level
test_tbl_aa 3
4. connect by level<=>
5 and aa = aa prior
sys_guid() 6 and prior is not null
7.

6 rows created.

SQL > select * from test_tbl_aa_n;
AA N
---------- ----------
1          1
1          2
2          1
2          2
3          1
4          1

6 selected lines.

Tags: Database

Similar Questions

  • Order a different number of prints for each image

    If there is a way to order prints of different images different number?

    Say I want to order a print of all my images in a collection of 4 x 6, simple enough.

    Then, I want to order some of them also in format 8 x 10, also quite simple.

    But what I can't find out how to order say;  3 copies of the #4 8 x 10 image, 2 copies of the #5 8 x 10 image and 10 copies of the image #14 in 8 x 10.

    Something I m missing?

    Any help is appreciated.

    Thanks in advance.

    • The options button lets you change the number of prints for each selected photo.
    • The 'add pictures and change print sizes' button allows you to add additional formats and you can even select different amounts for each size.

    See this help page: https://help.apple.com/photos/mac/1.0/?lang=en#/pht6e15ea68

  • the analysis of a word table of ms with different numbers of columns for each row

    I'm reading in a MS Word table that contains 20 lines, each with a different number of columns.  I have to iterate over each line then I iterate on each column of the row and read his text.  I don't know a way to find out how to stop an iteration on the columns.  Is a property or a method which tells you the number of columns in a specific line for a table in MS Word?

    ID says:

    I'm reading in a MS Word table that contains 20 lines, each with a different number of columns.  I have to iterate over each line then I iterate on each column of the row and read his text.  I don't know a way to find out how to stop an iteration on the columns.  Is a property or a method which tells you the number of columns in a specific line for a table in MS Word?

    For each row, use the count property of cells. Since there a number of subject lines is the number of columns.

    Ben64

  • Different 'outside_cryptomap access-list"for each VPN?

    Hello

    Just for my understanding.

    I have a VPN connected to my Cisco ASA 5520 when I tried to add an another VPN, the I must create a 2nd cryptomap, can I not create a group so there is only one card encryption?

    Currently I have:

    access-list 1 permit line outside_cryptomap_1 extended ip 0.0.0.0 0.0.0.0 172.19.15.0 255.255.255.0

    I just added outside_cryptomap_2 line access-list 1 permit extended ip 0.0.0.0 0.0.0.0 172.19.2.0 255.255.255.0

    But I was wondering if I could use something like:

    access-list 1 permit line outside_mycryptomap extended ip 0.0.0.0 0.0.0.0 VPN_Remote_Networks object-group

    When I do this, but I guess that this will cause a problem with the address in hand?

    You must use different access-list in cryptomap for each VPN.

  • APPL_SERVER_ID is different in the CBD for each server file.

    I have 6 knots as forms + apache level, 2 nodes as level of CM and on a single DB node runs.

    I asked him just the value of view SERVER_ID FND_NODES. It shows 8 different SERVER_ID values for each server!
    Fortunately, it is the value of APPL_SERVER_ID in each of the dbc file present on the servers.

    My question is, is it normal to have different values of SERVER_ID for different servers...?
    NODE_NAME SERVER_ID
    --------------- ----------------------------------------------------------------
    SECURE AUTHENTICATION
    C201U337 9C2BBAF52F4008D0E044001A4B09E42E39060489262310725199227515699710
    C201U330 9C2BC5172DC00AA6E044001A4B09E42E32065429041790627836165020768437
    C201U331 9C2BD0D529000B7BE044001A4B09E42E24399550293612105522291335723235
    C201U332 9C2BDCD02D400CBBE044001A4B09E42E20708529451149697927290717515622
    C201U333 9C2BE804D4400EAEE044001A4B09E42E41410145443153698699760618303252
    C201U334 9C2BF2A0E4C00F71E044001A4B09E42E31646098872979120473974598540592
    C201U335 9C2BFC48D1401058E044001A4B09E42E22585142603175288108114713024518
    c201u338
    C201U336 9C2BA4028D00074FE044001A4B09E42E54326788279280415817440150025596


    This is because one of the developers complained that errors for JDeveloper - OAF saying PoolException: unable to create new database connection: FNDSECURITY_APPL_SERVER_ID...

    I donno what file dbc they will use. Please help me with this problem.

    Demand is 12.1.3 and database 11.2.0.2.0.

    Published by: Vicky on February 17, 2011 01:53

    I asked him just the value of view SERVER_ID FND_NODES. It shows 8 different SERVER_ID values for each server!
    Fortunately, it is the value of APPL_SERVER_ID in each of the dbc file present on the servers.

    This is an expected behavior.

    My question is, is it normal to have different values of SERVER_ID for different servers...?

    Yes.

    This is because one of the developers complained that errors for JDeveloper - OAF saying PoolException: unable to create new database connection: FNDSECURITY_APPL_SERVER_ID...

    I donno what file dbc they will use. Please help me with this problem.

    Web/Apache Server - Configuring JDeveloper for use with Oracle Applications 11i and R12 [330236.1 ID]

    Thank you
    Hussein

  • Number of pages for-each@section jump

    I want to make my conditional section, so if the condition is false it should not display the page.
    but when I use for-each@section it gives a page break, even if the condition is false.

    It's my logic model

    <? for-each@section:p0? > <? If: d1! = 'test2 '? >
    <?-foreach: p1? >
    <? D2? >
    <? D1? >
    <? end foreach? > <? end if? >
    <? end foreach? >

    And my data file is

    <? XML version = "1.0" encoding = "UTF-8"? >
    < p2 >
    < p0 > < p1 > < test1 d1 > < / d1 > < d2 > 24 October 08 < / d2 > < / p1 > < / p0 >
    < p0 > < p1 > < d1 > test2 < / d1 > < d2 > 24 November 08 < / d2 > < / p1 > < / p0 >
    < p0 > < p1 > < d1 > TEST3 < / d1 > < d2 > 30 - Jan - 08 < / d2 > < / p1 > < / p0 >
    < / p2 >

    so, now I get just 3 pages while I want to only 2 pages.
    I want to use @section only because I want to reset page number for every p0. I am looking for options in this context.
    any help on this is much appreciated.

    Thank you
    Mouly

    and. / p1/d1! =. / p1/d2

  • 6602 synchronized with a different number of pulses per channel pulse generation

    Hello

    I try to use counters NI 6602 to generate 4 pulse trains that begin together but then proceed with each counter producing its own number of pulses (over mode) with its own frequency.

    It seems that each of the 4 channels of wiring at the same special teams each channel to produce the same number of pulses based, apparently, on which channel was recently with the specified NumPulses value so that it is the (implicit) VI DAQMx Timing.

    I tried to use separate tasks for each channel, but it seems that the there is much more uncertainty in the initial start of the train of impulses on each channel: unique task ~ 13us (coherent) delay between channels, a task for each channel (variable)... Although I'm not entirely confident in these temporal measures (estimates of the oscilloscope) +-15us. So it seems I'm sacrificing some synchronization to produce a different number of impulses for each channel?

    Is it true, or is there another way to match the beginning of the independent pulse trains.

    Vadim

    You should be able to synchronize the start of 4 separate meter output tasks by having all the

    looking for a common startup trigger signal.  You can easily do yourself the trigger signal on

    (for example) PFI_0 using a digital task rocking DIO_0.

    -Kevin P

  • I want different titles for each photo in a web gallery. The help file says:

    To display a different caption or title for each photo, click on the menu of settings customized to the right of title or a legend and choose Edit. In the model text editor that appears, insert the piece of metadata, IPTC title or caption, and click done.


    But what I do, the latest edition is for every picture the same.


    I have to select the image in a different way, I've already tried?

    Has chosen not to change, choose TITLE and LEGEND in the drop-down list.

    Then change the TITLE and CAPTION for each photo in the library/metadata Panel

    Then, each photo will be another caption/title

  • Is widgets of composition - possible to have different sizes/heights for each container?

    Hi - I am currently a mobile version of our site of Muse and I wonder if it is possible to have different containers of sizes for each area of the trigger. I use the widget of the COMPOSITION of the TOOLTIP.

    Each container of the tooltip basically has an area of text in there with some information. The container of the tooltip is always the same size as the largest container in the composition of ToolTip widget.

    So, for example, I have a container of the ToolTip that has only a a text box with a few lines of text. A different ToolTip container has a text box with a few paragraphs.

    What I see is the length of the default container the size of a container with 2 paragraphs. Empty the container with the text box with a few lines of text has a vast space underneath, and I can't resize it to look any good.

    The only option is to fill the space with something like an image or another, which is less than satisfactory solution.


    See you soon,.

    Marty

    Yes you can, just go to the setting of the composition and change the position of straggling.

  • Different results for PDF and RTF NumPages when using for-each@section

    Hello world!

    I need to print the current page number and the number of pages for each (say) order.
    I use the Page and NumPages fields as well as the for-each@section:order group.

    As a PDF, I get what I expect
    Page 1/2
    page 2/2
    Page 1/3
    page 2/3
    page 3/3

    But in the RTF header I
    Page 1/5
    page 2/5
    Page 1/5
    ...

    and in the body
    Page 1/1
    page 2/1
    Page 1/1
    ...

    I would like to have the page numbering in RTF as I in PDF format.
    I use Word 2010 and BEEP for Word version 10.1.3.4.2 model generator.
    This is the model and the XML: http://dl.dropbox.com/u/709106/page_test.zip.

    Thank you in advance.

    Sebastian

    Published by: user5692810 on 5 March 2012 06:05

    Hi Sebastian,.

    There is a simple ;) solution:

    1. in a form field 'end for-each@section' create a dummy fo block with function "generate - id ().

    like this (but in a form field):

     
    

    2. on the page header and page footer uses the id of the current node generated by XSLT

    for example like this:

    Page:  NumPages: 
    

    3. on the body of the page

    Page:  NumPages: 
    

    the model and the XML after above changes is here:
    https://docs.Google.com/open?ID=0B_cJOGrr614bc1VES0I0dlNSNGFVWFFseHVQM3hYdw

    Andrzej

  • Web Gallery - different caption for each photo - broken?

    It's something I've done successfully with versions before LR2.5 but for some reason that I cannot now create different captions for each photo.  The help page in line said: "to display a different caption or title for each photo, click on the menu of settings customized to the right of title or a legend and choose Edit. In the patterns of text editor that appears, insert the IPTC title or caption metadata element, and then click Done. »

    This does not happen.  If I create a title for the first photo, it appears for all others.  If I change the caption for the second picture, everything changes, including the first caption of the photo.  Is this a new bug, or am I just missing something?

    I can always change the HTML gallery, but it is not an elegant solution, to say the least.

    Help appreciated.

    DN

    Enter the title or caption in the library, in the metadata Panel. And select the items in the grid. The titles that you change apply to the web gallery, not the individual photos.

  • Time of expiration different CacheLoader or time-to-live for other keys

    I am now using a class that implements the CacheLoader interface. II have two questions-

    1 How can. different timeout expiration or time-to-live for different keys - I do this? I can specify only a single expiration delay in the configuration file. And I wouldn't call cache.put () I could indicate ttl. We try to use the same class several keys. But the problem is that we have requirements different expiry / time limit for these keys. Don't we have to use different cache for those keys? hoping to avoid that, as we will have many of them.
    2. Refresh-ahead-factor does not work.

    We use coherence 3.4.2 GE

    Here is the server configuration file

    <>cache-config
    < cache-system-mapping >
    <>cache-mapping
    < name of cache - > reference-data-cache < / cache-name >
    < scheme name > - reference-data-cache-dist-plan < / system-name >
    < / cache-mapping >

    < / cache-system-mapping >
    <>- cached patterns
    < distributed plan >
    < scheme name > - reference-data-cache-dist-plan < / system-name >
    < service name > ReferenceDataBackingService < / service-name >
    < support-map-plan >
    < reading-writing-support-map-plan >
    < refreshment-ahead-factor > 0.2 < / refresh-ahead-factor >
    < internal-cache-system >
    < local plan >
    < scheme name > - reference-local-plan < / system-name >
    LRU <-eviction strategy > < / eviction strategy >
    < timeout > 20 m < / timeout >
    < flush-delay > 2 m < / flush-delay >
    < / local plan >
    < / internal-cache-system >
    < dumps-plan >
    schema < class >
    > class name < ReferenceDataLoader < / class name >
    < init-params >
    < init-param >
    java.lang.String < param-type > < / param-type >
    {cache name} < param-value > < / param-value >
    < / init-param >
    < / init-params >
    < / class-system >
    < / dumps-plan >
    < / reading-writing-support-map-plan >

    < / support-map-plan >
    < autostart > true < / autostart >
    < / distributed plan >
    < / cache-plans >

    Hello

    To come refresh is enabled only when you do a get. Could be the problem? Here is an excerpt from a good forum on this topic thread

    Impossible to get the work of feature update in advance

    "
    Yes, it works as expected. to come refresh works about like this:

    public Object get (Object oKey) {}
    Entry entry = getEntry();
    If (input! = null and the entrance is about to expire) {}
    Annex refresh();
    }
    "

    Also, generic consistency issues should be posted in this forum:

    http://forums.Oracle.com/Forums/Forum.jspa;JSESSIONID=8d92079330d63b6fca03d69245ae9170d4607c2284ca.e38QbNuQbx8Kbi0LbhaMaxuKahr0?forumid=480&start=0

    Thank you
    Paul

    Paul

  • Each key frame animation

    Hello everyone.

    I have an Audio Clip, I can easily use the Razor tool, cut it into several pieces and put each piece in different layers, and apply different effects in each layer. But if I want to have only a single clip and apply each effect for each Key-frames, can I do?

    Thank you

    To a certain extent, you can do this by using the feature of tracks of automation at the hearing.  This draws an additional 'track"less than audio and allows you to use keyframes to change the parameters of the effects.

    However, in most cases if you use totally different effects on different sections, it is probably easier to work with than you already and use the Razor tool to split your way upward into several clips.  Note that you do not need to drag each section to another track (layer).  Instead, you can change the selection box at the top of the Rack of effects of 'Follow the effects' to 'Effects Clip' that allows you to have the settings of different effects to each clip on the same track.

  • Definition of various mitigating factors for each channel on the virtual bench MSO

    I'm trying to measure two very different signals, using both channels of the 8012 virtual bench programmed in LabView. The signals are very different amplitudes, which means that the definition of the vertical range for the largest signal is not truncated causes the smallest signal to become very agitated that the resolution today is very low. The only way I know to use two channels simultaneously is to index the waveforms with channel number when the measurement is complete. This means that both channels of parameters are defined at the same time by the same command sequence. Is it possible to set separate settings for each channel during intialize?

    I enclose my referral program that there is much more than just this part. If someone need clarifications just ask!

    Thanks in advance!

    Kai

    I thought about it. If anyone runs into this problem let me know and I can show you how I did it

  • Directory of different report for each subsequence

    Hello

    My test sequence contains a number of subsequences, representing different tests, which can be run separately.

    When all the subsequences (tests) is selected to be executed by the operator (as "Run selected Tests" and not as a part of "USE Test") I have to save the test report to its specific subdirectory in the reports directory. To do this, I created a variable in StationGlobals, which contains the name of the sub directory and is changed in the configuration section for each subsequence (test), according to the name of the test.

    I am trying to use the following expression as a path to the report file in Report Options:

    "StationGlobals.ReportsDirectory+"\\SN_\\"+StationGlobals.TestSubDirectory+"\\SN_[] []."

    The problem is that the path of the report expression is read before execution of the selected step starts (and the StationGlobals.TestSubDirectory is changed), this is why the report is always saved in the subdirectory of the previously executed test. Any change in the StationGlobals.TestSubDirectory made by the subsequence running will be 'seen' in the next run of one of the subsequences.

    I tried also to change the reports using the ReportOptions Callabck directory, but the same problem stop there as well (is executed before the subsequence selected, changing the StationGlobals, TestSubDirectory to the value of specific test).

    How can I get the name of the subsequence selected for execution in order to build a custom report for this subsequence directory/path?

    Other means will be appreciated as well.

    Roman

    I solved the problem using my custom LabVIEW interface:

    When the report is displayed in the status display window, I send it to a printer. At this point, I read the value of the global variable Station (from TS), which contains the name of the directory in which the report should be saved (this variable has been already changed by the executed subsequence). Then I change the path to the PDF printer, depending on the value of the global of the Station, so that the report PDF file is placed in the correct directory.

Maybe you are looking for