Problem with the Rownum selection

Hello
  1* select articles_id,subject from Articles where active=1 and cat_id=2 order by articles_id desc
SQL> /

ARTICLES_ID SUBJECT
----------- ----------------------------------------------------------------------------------------
          7 Article-7
          6 Article-6
          5 Article-5
          4 Article-4
          3 Article-3
          2 Article-2
          1 Article-1

7 rows selected.


  1* select articles_id,subject from Articles where active=1 and cat_id=2 and rownum<2 order by arti
SQL> /

ARTICLES_ID SUBJECT
----------- ----------------------------------------------------------------------------------------
          2 Article-2
Why rownum < 2 does not work?

Best regards

Do not use the command by after rownum, otherwise rownum will be unordered.
Try this:

select * from (select articles_id,subject from Articles where active=1 and cat_id=2 order by arti) where rownum<2 

rownum should be the last.

Saad,

Tags: Database

Similar Questions

  • Hello I am a student and I have a problem with the tool Selection (V). When I opened the file AI CC with CS6 selection tool doesn't allow me to change the selection. What can I do? (I have reinstall AI CC and the problem persists)

    Hello I am a student and I have a problem with the tool Selection (V). When I opened the file AI CC with CS6 selection tool doesn't allow me to change the selection. What can I do? (I have reinstall AI CC and the problem persists)

    Ivan,

    If it's on the rectangular objects, you may have encountered the bug Rectangle Live which is limited to the MAC versions from 10.7 and 10.8, but not of 10.9 (Mavericks) or 10.10 (Yosemite). If all goes well, the bug will be fixed soon.

    Thus, a switch for the Mavericks or Yosemite with a reinstall might be the way to solve it here and now.

    To get around it, in each case, it is possible to develop direct Rectangles to get the normal old shaped rectangles or Pathfinder > unit, or use the scale tool or the free transform tool.

    A more permanent way round that is to create normal old shaped rectangles, after running the free script created by Pawel, see this thread with download link:

    https://forums.Adobe.com/thread/1587587

  • Problem with the direct Selection in Illustrator CS5.1 tool

    Lost my ability to transform a selection with the direct Selection tool. When I select an element, I get not all my little manages to make a transformation directly on the object... have lost patience, trying to find the problem.

    View--> edges of the show.

    Mylenium

  • Problem with the scene selection menu

    I have two pages of scene selection menu.  The first page works fine but I have problems with the second page.  The highlite flashes market either on stage or on the main menu or on the arrow to return to the previous page.  So that he can move or do anything, the only way is to click on it when it flashes on.

    Is it possible to add buttons so I can have all my selections on 1 page?

    Yes. As Ann says you can do in Photoshop. As she points out, carefully study the structure of the layer of one of the Menus library. The small symbols at the beginning of the names of the layers are very important. Also, explore the different layers in the button layer sets. They have too specialized for naming conventions that must be followed and don't forget to turn off the visibility for any layer to highlight (highlight the secondary image button). It will be lit, when your user has access to this button.

    Also, is there a limit to how many buttons can have on a Menu by the DVD specifications. IIRC, it's 32 for 4:3 Menus and 16 for 16:9 Menus. Not sure if these exact limits apply to Menus of comics, but we are talking about DVD-video here and not comics.

    In addition, when you look at the Menu. PSD in Photoshop, special attention to the order button layer sets. Button #1 will be at the bottom of the Palette layers with button #2 above and so on. He also established the button routing, which is what happens when you press the arrow keys on a remote DVD player.

    In, you can edit routing button to do what you want. I think the button routing is only automatic in PrPro. You can check this. Unfortunately, I used PrPro to authoring only rarely and still dependent on the Auto-Play everything but simple DVD-Videos.

    Good luck

    Hunt

  • Problem with the tool Selection stuck in Mode 'deselect '.

    Hello

    I'm having some trouble with my Adobe Photoshop elements 11.  I was using the program to work on multiple images earlier (png or JPEG) and for some reason, the selection tool found in 'Deselect' mode. The selection circle is filled permanently with the symbol 'Less' and will do anything with the first click - Select only then it deselects everything. I tried pressing and pressing the ALT key, I tried to close the program, I even tried to restart my computer none of this is the resolution of the problem. I'll have to reinstall the whole program, or are there other ideas out there?

    With the selected tool go to the options bar (bottom right) and click the menu drop-down menu icon - see image below - choose Reset tool.

  • problem with the statement select

    I want to view records that start with the letter D for a particular ID of a table called THE. To do this, I wrote the select statement with as operator.but when duplicates were found in the table it would not display. for eaxample
    create table tea(id number(40),f_name varchar2(150));
    
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    832, 'Magnolia St. #12'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    832, 'Magnolia St. #10'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    1909, ' Delaware Ave.'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    1909, 'Delaware St.'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    832, 'Mangolia'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    832, 'Monolia'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    1909, 'Delaware'); 
    INSERT INTO tea ( ID, F_NAME ) VALUES ( 
    1909, 'Mandea'); 
    commit;
    
    select * from tea order by id;
    
        ID F_NAME
    ------ ------------------------------
       832 Magnolia St. #12
       832 Magnolia St. #10
       832 Mangolia
       832 Monolia
      1909  Delaware Ave.
      1909 Delaware St.
      1909 Delaware
      1909 Mandea
    
     now when i try with letter 'M' for 832 it is displaying the all the records starting with M
    select f_name from tea where upper(f_name) like upper('m%') and id=832;
    
    F_NAME
    ----------------------------
    Magnolia St. #12
    Magnolia St. #10
    Mangolia
    Monolia
    
    but when i tried with D it is not displaying  Delaware Ave.
    
    select f_name from tea where upper(f_name) like upper('d%') and id=1909;
    
    F_NAME
    -------------
    Delaware St.
    Delaware
    I'm unable to display folder Delaware Ave. , for the id of 1909. I need display this folder also.
    What could be the reason it is display for "M" and showing not "d".
    any suggestions please?
    I use 9i

    Because there is a space character before Delaware Ave
    Watch your insert statement

    INSERT INTO tea ( ID, F_NAME ) VALUES (
    1909, ' Delaware Ave.'); 
    

    To take

    INSERT INTO tea ( ID, F_NAME ) VALUES (
    1909, 'Delaware Ave.'); 
    

    And it should work

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com

  • Problem with the saved selections

    When you save a selection as a new channel, why he suddenly create a document without unreleased track rather than economy within the same doc also normally? (Under the drop-down list of Document, name of the current document is even more displays!)

    It might be a photoshop document unique that your student had reached the limit of registered channels which may have, and that is why the Save selection dialog box only allowed the student to save to a new document.

    I think the limit is something like 53 chains.

  • Problem with the property .selected

    I do a test and there are several boxes option that each have an instance name of option1_mc, option2_mc, etc. I want to do dessu so when the user clicks the next button, it saves if the right box has been enabled (true) or not (false). Then I would like to make the property selected for the false button, so it is not selected for the issue of the nest. Thank you.

    The
    option1_mc. Selected = false;
    option2_mc. Selected = false;
    option3_mc. Selected = false;
    option4_mc. Selected = false;
    option5_mc. Selected = false;
    option6_mc. Selected = false;

    the code is fine, but

    If ((«option"+ allAnswers [current_question + 1] +"_mc") .selected == true)

    is not valid.

    Try changing:

    If (RadioButton (getChildByName ("option" + allAnswers [current_question + 1] + "_mc")) .selected == true)

    also, why are you using suffix _mc on radiobuttons? This isn't a mistake, but it is intended for the movieclips. Can I just name them option1, option2 etc.

  • Problem with the simple Select statements

    Hi experts,

    I have with SQL Server and I'm going to hurt when I use the similar syntax in sqlplus to query an Oracle table.

    For example... my table contains column SCHID SET in the numeric form. Table has thousands of lines and the SCHID column is filled.

    Select TOP 100 AFTSCHAUXDATA SCHID;

    Get the "Word FROM key not found where expected" error

    Select DISTINCT from AFTSCHAUXDATA SCHID;

    Download "no selected lines.

    Can someone help me please?

    Thank you, John

    Can someone tell me how to find the names of the 20 largest tables (bigger which means that most of the files)?

    Once you have updated statistics on the table, you can query the DataDictionary: USER_TABLES/ALL_TABLES/DBA_TABLES.
    I'm assuming that user_tables will do:

    select *
    from ( select table_name
           ,      num_rows
           from   user_tables
           order by num_rows desc nulls last
         )
    where rownum <= 20; 
    

    You can find more explanations about the DataDictionary in the Oracle Online Documentation.
    Just do a quick and easy search
    http://www.Oracle.com/pls/db112/homepage
    or
    http://www.Oracle.com/pls/db102/homepage
    Depending on your version of the database.

  • Problem with the selection lasso, quick selection and error messages (saying selection is empty)

    Hello

    I'm trying the sect a person on a picture and paste it into this collage photo, I'm working on that. First I tried to use the quick selection tool, but I guess my man I'm cutting too many colors: when I use the quick selection, it immediately goes into a rectangle around the entire image. I even tried to paint the rest of the picture in black with the exception of humans, but always the same results with the quick selection. Then I tried the lasso, but nine times out of ten, he would stop and do an odd choice. When I finally got a good lasso selection (done after much cursing) then CS6 told me that 'the selection is empty' . What? I made a new layer before I made the selection.

    Can you help me solve these problems?

    I just downloaded CS6 just a day ago and have a lot to learn, but I worked with Paint.net and Paint Shop Pro for the past two years, so I'm familiar with paint and photo editing software.

    Thank you

    Kelly

    [amended to be readable by an admin text]

    Please do not submit your application in green. It's a useless distraction.

    You are trying to make a selection in an empty layer.

    Back to the image of the layer, not the empty one that you created, and you will be able to make a selection.

    Once selected, press Cmd + J to your object selected on a new layer. I think that's what you had in mind.

  • Anyone having problems with the new iPhone LTE connection 7 on Verizon?

    I am now on my iPhone second 7 with Verizon. I had four phones for me and my family. I have now had issues where I have no signal in the same areas where my signal allows to be strong. I can't solve the problem with the activation/deactivation of the airplane and then mode again in normal mode. My phone will rest with no signal for 5 minutes, then going to LTE with three bars. I also had the problem where I had only 1 x signal, while my son standing right next to me has LTE. And he had the same questions, where I'm on LTE and it gets no signal. I use to have LTE where I live and work all the time, now it's spotty at best. Apple has replaced me and my sons iPhones but not luck. Still do. Any ideas or an any other suffering?

    (1) go to settings/cell phone/cellular data Options/enable LTE and select ONLY the DATA. This seems to solve the problem (as a temporary solution) for most of the people affected by this problem. The bad part is your request might not be as clear (since they cannot use the highest LTE signals) and you can make calls and data at the same time. But it does not solve the issue.

    (2) there are rumors (but you didn't hear that from me that we only are not supposed to discuss beta software program Apple in this forum) that the new version of Apple Beta for iOS (which also includes an update of the software carrier Verizon to 26.0) seems to solve this problem. So, there's a light at the end of the tunnel.

  • NO - problem with the service

    I am from INDIA.

    I bought an iPhone 6 s new mobile Hong Kong a licensed salesperson (mobile fortress).

    When I bring to the India and put on my country sim (vodafone) to my laptop, everything works, but the network does not connect.

    "In settings > about I see vodafone, but when I see the carrier" is not connected, I tried many solutions online.

    I tried:

    1. all parameters (network... so on) and the software is up to date.

    2 tried selecting the network, but to the carrier, it does not show the available network.

    3. I tried the complete reset of the phone 2-3 times.

    4. I tried to change the apple ID.

    I tried many things, my phone works, but could not solve the network. Cannot make calls or find networks in my I phone.

    Someone can help me. When I went to ask local sales assistance, that's the problem with the change in the country, and they said that it will be free of charge on 18000INR.

    Please someone help me.

    Thanks in advance.

    Hi a.a,.

    Welcome to the communities of Apple Support! I'm sorry to hear that you experience these symptoms with your new iPhone 6 s. I'm a bit ambiguous on your specific configuration or what you see, but you can check that the phone is not locked on the original support (if the phone was sold to any kind of discounts or subsidized rate, it is most likely locked carrier). You can find the information described in the following article useful:

    How to unlock your iPhone for use with another carrier - Apple Support

    You may also be aware that different iPhone models are sold in different regions and countries and can support only specific carriers in these regions, as shown here:

    iPhone - country view with LTE - Apple networks support

    Concerning

  • problems with the firefox search engine

    When using my hotmail email today when I I closed it got stuck with the msn home page, I have managed to recover the firefox home page, but the search is made by BING, I don't want that I want as before google. It seems if be produced since firefox 18 was delivered

    Can any body help to get this back as before

    Try to reset default preferences with the SearchReset extension:

    Note that the SearchReset extension runs only once and then uninstalls automatically, so it will not appear on the page "> Firefox Add-ons" (topic: addons).

    You can check the pref browser.search.defaultenginename (s) on the topic: config page to see if it has the value of Google by default.

    If there is a problem with the search through the default value: home page and then try to reset the search engine used on the subject: homepage.

    Reset the pref browser.startup.homepage_override.mstone through the context menu by default on the topic: config page and close and restart Firefox to restore the on: default home page.

    1. Open the topic: config page through the address bar
    2. Type in the filter bar: mstone
    3. Right-click on the browser.startup.homepage_override.mstone line, and then select: Reset
    4. Close and restart Firefox

    If this did not help, then remove the button Delete the chromeappsstore.sqlite file in the Firefox profile folder and repeat the foregoing.

  • Firefox and serious problems with the police on the websites bloglike.

    Firefox on my computer has some serious problems with the police on some sites, such as: twitter, tumblr and a few other bloglike.

    Images:
    Twetter / thumblr / other

    Yes, it is more likely a hardware acceleration problem or a problem with the specific fonts (rendering).

    You can do a test of fonts to see if you can identify the corrupted fonts.

    You can use this extension to see what fonts are used for the selected text.

  • I have problems with the mail (El Capitan)

    I have problems with the mail

    See writing an effective communities of Apple support question.

    Without knowing what are these problems there is no way we can really help you.

    Try this:

    Start the computer in Safe Mode, and then restart normally. It will be slower than a normal startup.

    MacIntel: Reset of the controller (SMC) system management

    Reset the PRAM and NVRAM on your Mac.

    Repair the hard drive and permissions - El Capitan

    HD recovery start:

    Restart the computer and after the buzzer, press on and hold down the COMMAND and R until the menu screen appears.

    Repair

    When the recovery menu appears, select disk utility and press the continue button. Disk utility charges and select Macintosh HD entry indented from the list on the left.  Click the first aid tab in the toolbar... If disk utility reports any errors that have been corrected, then re-run first aid until no errors are reported. Wait until the operation is complete, then quit disk utility and return to the main menu. Select restart from the Apple menu.

    Now, download and reinstall OS X El Capitan 10.11.3 Combo Update.

Maybe you are looking for

  • Is there any description of updates and tools?

    Hello I m an Austrian user and I need to set up my new pc. Why there is no documentation for the updates? There are these many quickfixes. Do I need? Most of them is the security patches. I get them during the update of Microsoft, or what I bring thr

  • Can I replace the video card Intel (r) 915GM/GMS in Satellite M70?

    Hello! I have a TOSHIBA Satellite M70, with video card Intel (r) 915GM/GMS (256 MB) that is not working properly (it might be made of the mechanical shock or high temperature, do not know, but I'm sure it's something on the hardware). I reinstalled m

  • Satellite A105-S4064: memory upgrade Questions

    Hello I plan on upgrading the ram in my Toshiba A105-S4064 (preinstalled with 512 MB). I wanted to discover a few questions, if I could. First of all, what RAM would be compatible to install in housing, no? Second, the size of the new RAM should be t

  • How continually increment while the mouse click now

    The attached VI increments a number to each mouse click.  Is it possible to increment permanently with the structure of the event and now the click of the mouse?  For example, if I want to increment the counter from 1 to 100, I don't want to have to

  • Windows Vista Home Basic Upgrade to Windows Home Premium.

    I've upgraded to Windows Vista Home Basic to Windows Home Premium about a year on this computer. This computer had to enter the shop to be fixed. When I came back, I noticed that he had Home Basic top. I tried to use the disk upgrade on this computer