How to use group them by in PL/SQL

Can someone give me an idea how to group the lines using PL/SQL? I want to do a push button that includes a certain number of lines. When I run the form and press the button, I get the error Oracle 01422. I use a data block, and after pressing run on the Oracle form in the browser web, I want to sort the rows by using the group by clause as trigger pl sql in a push button (with the ONCE PRESSED the shutter BUTTON). I am new to Oracle Forms.

To do this, you create a view that contains the keyword GROUP BY, or use the property of block of data in query Data Source Name or use the Set_Block_Property (..., QUERY_DATA_SOURCE_NAME,...) built.

See this article, in particular the 2.3.4 section

François

Tags: Oracle Development

Similar Questions

  • How to use the T distribution table in sql statements?

    Hi all

    I'm in the need to use the T distribution table in sql... I don't know how to use...

    Is there a function to use the values of table in sql statements?

    Can someone please help me in this?

    How about this http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions157.htm#i1279931?

    Concerning

    Etbin

  • How to use Group by in the analytic function

    I need to write the Department that has the minimum wage in a row. She must be with analytical function, but I have problem in group by. I can't use min() without group by.

    Select * from (min (sal) select min_salary, deptno, RANK() ON RN (ORDER BY sal CSA, CSA rownum) of the Group of emp by deptno) < 20 WHERE RN order by deptno;

    Published by: senza on 6.11.2009 16:09

    Hello

    senza wrote:
    I need to write the Department that has the minimum wage in a row. She must be with analytic function

    Therefore with an analytic function? Looks like it is a duty.

    The best way to get these results is with an aggregate, not analysis, function:

    SELECT      MIN (deptno) KEEP (DENSE_RANK FIRST ORDER BY sal)     AS dept_with_lowest_sal
    FROM      scott.emp
    ;
    

    Note that you do not need a subquery.
    This can be modififed if, for example, you want the lowest Department with the sal for each job.

    But if your mission is to use an analytical function, that's what you have to do.

    but I have problem in group by. I can't use min() without group by.

    Of course, you can use MIN without GROUP BY. Almost all of the aggregate (including MIN) functions have analytical equivalents.
    However, in this issue, you don't need to. The best analytical approach RANK only, not use MIN. If you ORDER BY sal, the lines with rank = 1 will have the minimum wage.

    Select * from (min (sal) select min_salary, deptno, RANK() ON RN (ORDER BY sal CSA, CSA rownum) of the Group of emp by deptno) WHERE the RN< 20="" order="" by="">

    Try to select plain old sal instead of MIN (sal) and get reid of the GROUP BY clause.

    Add ROWNUM in the ORDER BY clause is to make RANK return the same result as ROW_NUMBER, every time that it is a tie for the sal, the output will still be distinct numbers. which line gets the lower number will be quite arbitrary, and not necessarily the same every time you run the query. For example, MARTIN and WARD have exactly the same salary, 1250. The query you posted would assign rn = 4 to one of them and rn = 5 to another. Who gets 4? It's a toss-up. It could be MARTIN the first time you try, and WARD the next. (In fact, in a very small table like scott.emp, it probably will be consistent, but always arbitrary.) If this is what you want, it would be clearer and simpler just to use ROW_NUMEBR instead of RANK.

  • Does anyone know how to use costum themes?

    Hello world

    I don't know if I set it correctly in the title, but I'm doing a movie of a bike and I want to add the Tour de France and the position stop/model name (if call you it..). I'm talking about the name and team number etc. in the lower part of the following image: http://keyassets.timeincuk.net/inspirewp/live/wp-content/uploads/sites/2/2015/07/tinkoff-mechanic-bottle-throw - 630 x 420 game....

    If someone could explain to me how I could add to my video, that would be great

    Thanks in advance,

    Mark

    First of all, you can use the presets of the iMovie and set the 'name' and 'description' of the same size placeholders and the police, and then type both names. Or, you could use keynote to compose an image that would be according to your needs, and then delete the background using the preview. You can then insert the picture into iMovie and place it in the image in the image and use fade image to fade in and out as you wish. These are the simplest ways. Please tell me not, this are not professionals, some tips that I have used myself. Note that you must set the size of the keynote about 2 k resolution to achieve greater clarity in the export.

  • How to use Group Policy to disable USB Internet dongles

    Dear MS,

    This is to request a solution about the use of group policy to disable USB Internet dongles and allow other USB devices like mice and keyboards in server 2008 R2. I tried several options but still, I'm having the problem. Kindly give me a solution as soon as possible.

    Hello

    Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.

    http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer

    See you soon.

  • How to use restore them? I can not find...

    accidentally deleted office open, which was a product of sun microsystem.  now my overdrive media does not, is not recognized, but the space it is still used on my computer.  I want to reset the computer where it was BEFORE I deleted openoffice in the hope I can find the audio books 23 I downloaded who are here somewhere.  cannot figure out how do restore function o use.  can someone please?

    Hi ireneennis,

    See the Microsoft article below learn more about system restore in Windows XP.

    How to restore Windows XP to a previous state

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

  • How to use a default session variable in SQL

    I want to use a session variable (: PAGE #_VARNAME) by default for a column in a layout table whenever a new record is inserted into the table.

    What is the best way to do it? I tried to set the default value for this column: _VARNAME # PAGE under element in a table, but nothing works.

    Thanks for your comments.
    -Reid

    Try the PAGE #_VARNAME whose Type point (application or page name of the option) assuming that the PAGE #_VARNAME is an application or a name of the default page.

    Scott

  • How to use the slider to avoid movements of keys?

    Hello

    first of all, I must say, I'm not a native English speaker, so please forgive me in advance. In any case, I want to solve this particular problem: I created a project in After effects, where you can add your own text, logo or anything else in the composition... What is the after effects project does, that it transforms your text or logo in metal 3D result. Also cooked up camera which moves from one position to the other. Take a look:

    The text of the inscription is "add content" (I have 4 cameras together, but I shows an example only on the first, so that you will not see the full text. The rest of the cameras are also in other publications)

    firstone.jpg

    Here you can see the exact movement of the camera. However, if someone inserts a logo or a text, which for example has 7 letters (in the next picture, it is just "content") it will look like this:

    secondone.jpg

    Here you can see how much space we have. Also, it is not appropriate to change the original size of the text in the composition to achieve the smallest gap, as we can see here. The height will be huge.

    If I could change it by myself, I could do this:

    -I'd clicked on the "2 views" button and choose display in the "front".

    -I want to select all the keyframes and after that i would go into the left window 'front' and the mouse I would move all the camera to the position I want to:

    thirdone.jpg

    The great thing about this, is that as I've selected all the keyframes and then define the line red on one of them, the cameras works even at the beginning! So that's how it will look after the fix.

    fourthone.jpg

    What the problem is, that, after the small edit I want to send this project to a small number of friends. Then, they can easily set their text or logo in. The text must at different heights, width... it will be shorter or longer. I was just wondering if you could help with some phrases, joints and so on, for in the end result, one of my friends might move with the whole camera (not only with a keyframe) using the CONTROL SLIDER. At least for x and is the axis, if the z axis is also possible, it would be awesome. Also, it does not matter the sliders how there will be .

    So basically with the help of sliders, they should achieve:

    fifthone.jpg

    So I need some useful measures. Please help me. It is very important to me. I will be so grateful! Really! (Thanks for the potential aid )

    You're average over the thought of your problem and potentially headed on a path that will cause more problems that it solves.

    If you have a camera that is already busy road and you want to change the position of the camera as a path together the best way to do this would be to create a null value and parent then the camera for the null value. Pass null and all camera movements, you have put in place will follow. None of the expressions are required. It is the best way to change all aspects of a trajectory, turning the entire path, the path to the scale or move the path on any axis.

    If you really want to use 3 sliders position to move existing keyframes to a new value value + the values of the expressions will allow you to do. Just add a sliders control of three expression for the camera layer (or any layer as the null that you use as a parent) select the name of the cursor in the ECW and press on enter and rename it. Something like this will be the result.

    Note that I also rotation and controls are resized to this configuration. Now that you have 3 sliders, you can separate the position property to null in individual values allow expressions in each property, and the value type +, then use the pickwhip to drag your cursor named which (in my example) value of X and repeat for each operation. The value + will add the value of the slider to the current value of the position of the keyframes. The expression would look like this for X:

    value + effect("x position")("Slider")
    

    If you want to use the sliders that I would use a null value, add expression controls to null to keep position, scale and rotation, the unified camera position property and then use your sliders control of expression of the null value to change your existing path. I suggest not to do it directly on the position of the camera with separate X, Y and Z values because it will change the shape of your camera path and would be more difficult to control. You'll probably also want to create a POInull camera and use this preset to bind the point the camera of interest for the null value.

    Here's a preset , you can apply to a null value which will give complete control to the trajectory of any layer animation make you the child of this null. Search Animation preset in the field of search After Effects help, if you don't know how to use, create them, then save them.

    As a final gimme, here's a project CS6 using this animation preset to control the position of null is used to change a path animation camera.

  • How to use the Group feature in insert or update

    Hai All

    How to use the Group feature in insert or update statement

    I'm generating attendance so I have a different set of timing example

    0800,1200,1230, 1700 and I need to insert data into the table that contains the intimate value min and max value for

    outtime and othere to inertval time in or out

    Pls tell me with some examples


    For example

    For INSERT

    Insert into T2 (barcode, empcode, respondent, attend_date)
    values (R2.cardn, R2.enpno, min(R2.) PtIMe), R2.pdate);


    Update

    Update dail_att set outtime = MAX (r2.ptime) where empcode = r2.enpno and barcode = r2.cardn and
    attend_date = r2.pdate;


    Here, in the place where I used to have so pls tell how to use

    Thanks and greetings

    Srikkanth.M

    Hi Srikkanth.M

    to insert:

    insert into test (dummy) values ((select max (dummy) to double));

    Update:

    Update test dummy value = (select max (dummy) to double where to test them. XXXXField = double. XXXXField);

  • How can I get rid of Australis without using Classic theme restaurateur or how can I save vertical space?

    Hello!

    I have big screen of laptop if limited space on the vertical axis. Then

    (1) I want to get rid of the tab bar when I don't have a single open window.
    (2) I want to get rid of the title bar, which does not include any necessary information.
    (3) I want to move the address bar in the menu bar.

    Before Australis, it was easy to do. After that I did the update that I searched a long time solutions. I found only Classic theme restaurateur. It's good, but it often causes my computer to high power consumption which makes the laptop very hot.

    If ho can I get vertical space (see 1-3)?

    Best wishes, Dimi

    The problem is finally solved. To overcome the limitations of its latest versions of Firefox, I disabled all addons and enabled them one by one by checking if they are causing problems.

    For example, I used Classic theme restaurateur for vertical space. But it causes problems if used with SettingSanity I used to get the button javascript back (bug Firefox not fixed since version 23!). So I went to another tool (toolbar buttons). And so on.

    Best wishes, Dimi

    PS: If I knew how many hours it takes to get the functionality of the previous versions of Firefox back I had never made this udate. But I learned my lesson (no change of Firefox more)

  • How to get more themes online, to use as a wallpaper?

    Original title: wallpaper

    How to get more themes online, to use as a wallpaper?

    I would like to know how.

    Thank you, with best regards,
    Ana Luisa 22

    Microsoft has a huge Gallery of themes and wallpapers which you can see here:

    Background screen Windows Gallery

    And you can also use your favorite search engine to find images to use also.  Just looking for pictures and when you see one that you like, right click to save it.  Later, you can go where you've saved (probably your photos or download folder) and right click any image for "(définir comme fond d'écran)."

  • I discovered that someone from another computer was hacking or using my information, how do I report them?

    I COULDN'T HAVE MY IMPORTANT EMAILS. THIS PERSON HAS CHANGED SOME OF MY PASSWORDS ON SOME PROGRAMS. I HAD TO GET NEW PASSWORDS FOR MY BANK, FACEBOOK AND SOME OTHER ACCOUNTS.

    Original title: I discovered that someone from another computer hacking or using the information available to me. THEIR IP ADDRESS IS 200.1.27.75. HOW CAN I REPORT THEM?

    Hi Johnny,

    . What operating system is installed on your computer?

    What version of the operating system Windows am I running? :

    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    Many computers users be prey to pirates and the crimes they commit on companies and unsuspecting individuals. In the case of crime in your home or business, it is not difficult to report the hacker.

    a. determine which agency has jurisdiction over the crime. It depends on if the crime was committed at home or at your company and the address of that particular place. If you live within the city limits, the appropriate agency will usually be your city police service. If you live outside the city, in the County limits, contact your local sheriff's office.

    b. call the non-emergency number for your local police department or the Sheriff's Office to report the crime. Ask to speak to someone in the division of the detective into a crime of Internet.

    c. a hacker report online through the Internet Crime Complaint Center (IC3). Strive to work directly with your local agency before declaring online.

    d. to request the opinion of the Agency where you reported the crime. Ask what are the procedures they recommend to protect your computer from future attempts of hacking. Ask the Agency studying your crime to provide documentation in support of your case.

    I hope this helps.

  • I open a file with photoshop and all my files are now trying to use photo shop to open them including some programs. How can I change them back?

    I open a file with photoshop and all my files are now trying to use photo shop to open them including some programs.  How can I change them back?  I use Vista and have little knowledge of computers but I can follow directions.  Thank you

    I open a file with photoshop and all my files are now trying to use photo shop to open them including some programs.  How can I change them back?  I use Vista and have little knowledge of computers but I can follow directions.  Thank you

    Try this simple tutorial. No guarantees.

    Restore the file type associations:
    http://www.Vistax64.com/tutorials/233243-default-file-type-associations-restore.html

    Scroll down to exe - executable application files.
    Click on the exe

    Follow the instructions in #1 à #7 at the top.

    Scroll to lnk - shortcut link (LNK) files.
    Click on lnk

    Follow the instructions in #1 à #7 at the top.

  • I used Vista. All of a sudden the icons at the bottom left of my screen disappeared. How can I put them there?

    I used Vista.  All of a sudden the icons at the bottom left of my screen disappeared.  How can I put them there? I used to have the show desktop icon, show all windows and a set of how quickly programs, such as MicroSoft Outlook, launch Chrome, Firefox Messenger.

    Try this:

    Right-click on an empty area of the taskbar, point to toolbars, and then click quick launch.

    A check mark appears, indicating that the Quick Launch toolbar is visible on the taskbar.

  • How to use Windows 7 Theme - Bing Dynamic (RSS Theme)

    Original title: Windows 7 theme issue - Bing Dynamic (RSS Theme)

    I used a lot of new themes Windows 7 without problem, but I can't get the RSS theme called Bing Dynamic to work. When I've download it and open it, everything that is in the theme is the theme of the vacuum (without images), so he leaves my black desktop. I thought he might start work after waiting a minute so he could upload an image, but it has been more than 30 minutes and still no picture. It doesn't have the RSS symbol on the theme in my list as it does on the computer of my friend (which he doesn't), but for the photo album, it has the right location: a web address for a theme server. How to operate?

    Hi geobrad7,

    Where you downloaded the theme of?

    Please follow these instructions to get the theme to work.

    a. to use this theme, download and double click the download here link: fresh paint, updated automatically

    b. click on save file.

    c. a window will appear asking to subscribe to the news FEED. Simply click download attachments and wait themes to download for your system.

    d. visit Server theme page to view and download these backgrounds.  http://themeserver.Microsoft.com/default.aspx?p=Bing&c=desktop&m=en-us

    Unlike other packages thematic you cannot decompress it to extract the images, because it's a theme that downloads images on your PC of RSS. In addition, since it is a background process, it will take a long time to upload photos high resolution within the feed.

    e. wait a while until the theme downloads images one after the other on your computer. So far, you will see a black background on your desktop.

    f. once the pictures are downloaded, theme does not automatically update the queue of new photos in the slideshow. Therefore, log out of the computer and the connection back to check.

    More themes, see:

    Windows 7 themes

    http://Windows.Microsoft.com/en-us/Windows/downloads/personalize/themes

    I hope this helps.

    Kind regards

    Shinmila H - Microsoft Support

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

Maybe you are looking for

  • Difference WRT160N-EU and WRT160-EW

    Please explain what the difference is between these two wireless routers WRT160N-EU and WRT160N-EW Thank you, Andre

  • I can't disable sticky keys

    I have a Compaq with windows 7 and stay lit and even if the keys i unchecked and re-check all options over and over again I may not go down and her do all really hard. If someone could help me as soon as it would be great. Thank you

  • Bad typo "udpatedAttribute" on the services Web of IOM connector

    When Oracle will release a fixed version of IOM without this nasty typo?It's not funny for developers who have OCD like me.TIALeo

  • Desktop will not load

    I still don't know if it's one thing to windows 7 or material, but thought I'd post here to see if anyone can help I'm running a pavilion slimline s5120f windows 7 (doing here s5120f prodect plug even if HP replaced my motherboard so I'm stupid if it

  • Captivate Simulation phone

    Hi allI'm currently building a set of type "Choose your adventure" in 8 Captivate.  In one of the sections, I want to have a cell phone appear on which the user dialing a specific number and can 'call a customer '.  I know how to write a tip action t