What is the point in having multiple columns in ORDER BY clause?

DB version:10gR2
When using ORDER BY clause, the rows are always sorted according to the first column in the ORDER BY clause. So, what is point in having multiple columns in the ORDER BY clause(i always see this in production codes)?
For the below SQLs' from SCOTT schema, the result sets are always ordered according the first column ename. When i added job asc and job desc, the result set doesn't change.
SQL> select * from emp order by ename;
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
      7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
      7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
      7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
      7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
      7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
      7900 JAMES      CLERK           7698 03-DEC-81        950                    30
      7566 JONES      MANAGER         7839 02-APR-81       2975                    20
      7839 KING       PRESIDENT            17-NOV-81       5000                    20
      7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
      7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
      7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
      7369 SMITH      CLERK           7902 17-DEC-80        800                    20
      7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
      7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
14 rows selected.
SQL> select * from emp order by ename, job;
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
      7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
      7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
      7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
      7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
      7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
      7900 JAMES      CLERK           7698 03-DEC-81        950                    30
      7566 JONES      MANAGER         7839 02-APR-81       2975                    20
      7839 KING       PRESIDENT            17-NOV-81       5000                    20
      7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
      7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
      7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
      7369 SMITH      CLERK           7902 17-DEC-80        800                    20
      7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
      7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
14 rows selected.
SQL>  select * from emp order by ename, job desc;
     EMPNO ENAME      JOB              MGR HIREDATE         SAL       COMM     DEPTNO
      7876 ADAMS      CLERK           7788 23-MAY-87       1100                    20
      7499 ALLEN      SALESMAN        7698 20-FEB-81       1600        300         30
      7698 BLAKE      MANAGER         7839 01-MAY-81       2850                    30
      7782 CLARK      MANAGER         7839 09-JUN-81       2450                    20
      7902 FORD       ANALYST         7566 03-DEC-81       3000                    20
      7900 JAMES      CLERK           7698 03-DEC-81        950                    30
      7566 JONES      MANAGER         7839 02-APR-81       2975                    20
      7839 KING       PRESIDENT            17-NOV-81       5000                    20
      7654 MARTIN     SALESMAN        7698 28-SEP-81       1250       1400         30
      7934 MILLER     CLERK           7782 23-JAN-82       1300                    20
      7788 SCOTT      ANALYST         7566 19-APR-87       3000                    20
      7369 SMITH      CLERK           7902 17-DEC-80        800                    20
      7844 TURNER     SALESMAN        7698 08-SEP-81       1500          0         30
      7521 WARD       SALESMAN        7698 22-FEB-81       1250        500         30
14 rows selected.

Because there is only one employee with the name SCOTT,FORD ...etc in the emp table and your first column in the order by list is ename
you spot the difference now
SQL> select * from emp order by job;
     EMPNO ENAME      JOB              MGR HIREDATE                  SAL       COMM     DEPTNO
      7788 SCOTT      ANALYST         7566 19-APR-87 00:00:00       3000                    20
      7902 FORD       ANALYST         7566 03-DEC-81 00:00:00       3000                    20
      7934 MILLER     CLERK           7782 23-JAN-82 00:00:00       1300                    10
      7900 JAMES      CLERK           7698 03-DEC-81 00:00:00        950                    30
      7369 SMITH      CLERK           7902 17-DEC-80 00:00:00        800                    20
      7876 ADAMS      CLERK           7788 23-MAY-87 00:00:00       1100                    20
      7698 BLAKE      MANAGER         7839 01-MAY-81 00:00:00       2850                    30
      7566 JONES      MANAGER         7839 02-APR-81 00:00:00       2975                    20
      7782 CLARK      MANAGER         7839 09-JUN-81 00:00:00       2450                    10
      7839 KING       PRESIDENT            17-NOV-81 00:00:00       5000                    10
      7844 TURNER     SALESMAN        7698 08-SEP-81 00:00:00       1500          0         30
      7654 MARTIN     SALESMAN        7698 28-SEP-81 00:00:00       1250       1400         30
      7521 WARD       SALESMAN        7698 22-FEB-81 00:00:00       1250        500         30
      7499 ALLEN      SALESMAN        7698 20-FEB-81 00:00:00       1600        300         30
14 rows selected.
Elapsed: 00:00:00.00
SQL> select * from emp order by job, deptno asc;
     EMPNO ENAME      JOB              MGR HIREDATE                  SAL       COMM     DEPTNO
      7902 FORD       ANALYST         7566 03-DEC-81 00:00:00       3000                    20
      7788 SCOTT      ANALYST         7566 19-APR-87 00:00:00       3000                    20
      7934 MILLER     CLERK           7782 23-JAN-82 00:00:00       1300                    10
      7369 SMITH      CLERK           7902 17-DEC-80 00:00:00        800                    20
      7876 ADAMS      CLERK           7788 23-MAY-87 00:00:00       1100                    20
      7900 JAMES      CLERK           7698 03-DEC-81 00:00:00        950                    30
      7782 CLARK      MANAGER         7839 09-JUN-81 00:00:00       2450                    10
      7566 JONES      MANAGER         7839 02-APR-81 00:00:00       2975                    20
      7698 BLAKE      MANAGER         7839 01-MAY-81 00:00:00       2850                    30
      7839 KING       PRESIDENT            17-NOV-81 00:00:00       5000                    10
      7654 MARTIN     SALESMAN        7698 28-SEP-81 00:00:00       1250       1400         30
      7844 TURNER     SALESMAN        7698 08-SEP-81 00:00:00       1500          0         30
      7521 WARD       SALESMAN        7698 22-FEB-81 00:00:00       1250        500         30
      7499 ALLEN      SALESMAN        7698 20-FEB-81 00:00:00       1600        300         30
14 rows selected.
Elapsed: 00:00:00.01
SQL> select * from emp order by job,deptno desc;
     EMPNO ENAME      JOB              MGR HIREDATE                  SAL       COMM     DEPTNO
      7902 FORD       ANALYST         7566 03-DEC-81 00:00:00       3000                    20
      7788 SCOTT      ANALYST         7566 19-APR-87 00:00:00       3000                    20
      7900 JAMES      CLERK           7698 03-DEC-81 00:00:00        950                    30
      7369 SMITH      CLERK           7902 17-DEC-80 00:00:00        800                    20
      7876 ADAMS      CLERK           7788 23-MAY-87 00:00:00       1100                    20
      7934 MILLER     CLERK           7782 23-JAN-82 00:00:00       1300                    10
      7698 BLAKE      MANAGER         7839 01-MAY-81 00:00:00       2850                    30
      7566 JONES      MANAGER         7839 02-APR-81 00:00:00       2975                    20
      7782 CLARK      MANAGER         7839 09-JUN-81 00:00:00       2450                    10
      7839 KING       PRESIDENT            17-NOV-81 00:00:00       5000                    10
      7844 TURNER     SALESMAN        7698 08-SEP-81 00:00:00       1500          0         30
      7654 MARTIN     SALESMAN        7698 28-SEP-81 00:00:00       1250       1400         30
      7521 WARD       SALESMAN        7698 22-FEB-81 00:00:00       1250        500         30
      7499 ALLEN      SALESMAN        7698 20-FEB-81 00:00:00       1600        300         30
14 rows selected.
Elapsed: 00:00:00.01
SQL>

Similar Messages

  • I am extremely upset. I purchased my iPad in SA and I am traveling in Greece. When I want to make use of the free apps, I get a message that the app is not available in the SA store. What is the point of having an iPad if you cannot use it worldwide?

    I am extremely upset. I purchased my iPad in SA and now I am in Greece. I cannot download free apps as I get a message that the apps are not available in the SA store and only in US stores. When I change to the US store the same thing happens. What is the point of having an iPad if I cannot use it worldwide??? I feel that I wasted my money purchasing it as I specifically purchased it to use when I travel. How can I get access to all the available apps and why are they restricted.

    You can use your iPad worldwide. However, each AppleID is tied to
    a specific country's store. To use the AppStore in any country, you
    must be in that country and have a credit/debit card issued by a financial
    institution in that country with a verified billing address in that country.
    It is the developer's choice which AppStores he makes his app available
    from, and some countries prohibit certain apps.
    To make a purchase from the US store (including downloading a free app
    available in the US store), you must be in the US and have card issued
    in the US with verified billing address in the US.
    You can use your purchases from the SA store worldwide, but you
    cannot make purchases in other than the SA store unless you meet
    the aforesaid conditions.

  • What is the point of having indented levels in course outlines?

    What is the point of having indented levels in course outlines? It's not possible to add any materials or posts to this. I want to avoid having simply a long list of topics that are difficult to manage. When I create a topic in the outline, I can indent it, but then I can't add any posts to it as it doesn't even show up as a heading in course manager.
    I've been trying to have some kind of logical organisation of materials, but the only thing you seem to be able to do is have a long list of topics.
    Which makes me wonder why the possibility of indenting levels is there at all - it seems to be a completely worthless item.

    I guess the point of the indented lists is to provide the user with some description of the topic’s contents. It's a standard convention in the table of contents of books. It might pay to break your course down into a number of courses if the list of topics is getting too unwieldy.

  • What is the point in having one of these

    what is the point in haveing a Zen if you can't put videos on it's? I cannot find a website where i can get videos.... I do not understand the lingo on these forums (seeing as i'm new to all of this)
    there is no number to call where you can talk to real li've person and they do not respond to your emails the way you would like... I'm so frustrated
    I bought this for music videos and pictures and i can't put video on it!!? it is not ituneplus compatible like it says?
    please help me find a website where i can get videos for this thing!!? or a number for customer service to i can ask them!!! ? I'm desperate

    It's a fairly safe bet the post you're looking for with a converter suggestion was in regards to BADAK. If not you'll probably find the one you seek in some thread that includes a reference to BADAK. Try a forum search with that keyword. Things sometimes move around but don't often vanish completely unless the underlying forum software changes.

  • What is the point of having 17 apps if no one is skilled in that many disciplines anyway?

    I have been told how having access to 17 apps is a really great deal. The problem is no one is skilled in that many different disciplines. Even if someone took the time to learn all that software they would still not be competent in all those fields. I don’t know any creative types that are really good at graphic design AND video AND illustration AND music AND the web coding etc. What good is access to all those tools if you don’t have all the skill to do all those different line of work?
    I keep hearing people say “Isn’t it great to know that you could use all that software if you wanted to?” No! It isn’t! Having access to tools without the necessary skills to competently use them is pointless! I have worked in graphic design for about a decade and have been improving over all that time so the idea that I could just start a new field adequetly is redic! You need to have an entire team of people who work in many fields to do all those things really well. So my question is what is the point of having the software running off one machine with a license for only one user?

    @W_J_T (and MikeChambers)
    “yeah you gotta be good at something rather than no good at anything, that is true. ;-)
    I guess that is why I don’t understand this big push by Adobe to make their users become mediocre in many areas. Can you please elaborate on this point Mike Chambers? Why should I be bad at a lot of things rather then good at a few things? I don’t get it.
    “As far as apps vs fields, the first thing many people wanna know is if you know the required software for the given task(s).”
    On one hand I understand the need to have software skills on the other hand software skills without artistic talent does little good.
    “Why that is I don't know, its rather odd and does not allow people the same ability to only focus on their more specialized sectors like in the past with the Creative "Suites".”
    I understand the problem Adobe had with suites; all the products had to be released on the same time schedule which meant some were released way before they should have been. CC gets around that problem but Adobe hasn’t done a good job at telling why anyone needs all the apps.
    “Did you just wish to have some dialog, or do you have a specific question or suggestion about things? I am kind of confused at this point sorry. ;-)”
    It just seemed odd to me when I kept hearing these Adobe evangelists getting excited about the ability to use so many apps. I came here since I was hoping Adobe could explain why having apps in so many fields that you are not talented in is a good deal. So far I am still waiting for Adobe to answer that question.
    “your passion seems to be solely the design aspect of things.”
    Yes, it is but perhaps most importantly is the issue of time dedicated to learning a new craft. I have a good amount of design work so looking into a career change at this point doesn’t make sense for me. If I changed my career I would have to turn down design work that I currently have  coming in and that would be a little silly.

  • What is the point of having a smartphone if nothing ever works?

    Before my GS3 updated to kitkat my apps would crash all the time. My phone updated last week and now the apps work but in what used to be areas with strong steady 4g coverage I have no data. So annoyed. I can turn my data on and without touching it I'll have 4g for a minute and then none before coming back for 5 seconds only to go out again. What am I paying for?  My office doesn't have wifi and I have a large data allowance but what is the point if I can never use it?  I do a lot of travelling and use my phone as a GPS but as I have no no longer have reliable service anywhere even in Philadelphia where it was a constant 4g.  Not to mention the GPS is unreliable as well. Waze is an amazing GPS but to have a phone that doesn't work half the time is frustrating. I should just go back to my old flip phone that lasted me 2 days on a single charge. My phone is due for an upgrade in a few months. Maybe I'll save some money and get something that isn't a smartphone and I won't have to worry about paying for the data and everything else that comes with having a smartphone.

    I can understand that Verizon did not make the phone.  My satellite provider did not make the dish nor the receiver I use either, but if they malfunction and make it to where I cannot receive their service (the satellite signal) then the satellite provider assists in getting equipment that works.  If it is a software issue, they have more sway with the provider of said software, as the representative and mass user of the software, than individual customers do.  So if Verizon is receiving multiple complaints from their customers, complaints that their customers are unable to use the service that they are being paid to provide, then they can go to manufacturer to request the fix.  Who do you think Google or Samsung is going to listen to more, an individual who received a phone from a 3rd party (Verizon) or the entire company who purchases those items (phones and software) en-masse and thus can more affect their bottom line?  As another example... when you purchase a car and the seatbelt malfunctions, do you go to the seatbelt manufacturer or back to the car maker?  Should each person who has a seatbelt malfunction go to the seatbelt maker or should the car maker issue a recall on all affected vehicles and offer a fix, provided from the seatbelt maker?  When I go back to Samsung or Google, and IF they listen to me and initiate a fix, what priority is Verizon going to make it to get it out to their customers?  Or is Verizon relying upon each disgruntled user to go find their own fix without it affecting them (Verizon) at all?  Other service providers have already started issuing fixes according to my research... and if Verizon delayed pushing this update out for so long (as I've seen complaints that it was), why did they push it with these known issues and not insist before they pushed it out that Google or Samsung fix it first so as not to get these complaints?  Sorry, but Verizon is at least partially responsible for my inability to use their service, as the provider of the equipment and software that I need to be able to utilize their services.  I didn't go out on the black market and purchase this phone, I bought it at a Verizon store.  I have not rooted the phone or in any way done anything other than add about 6 apps to the phone from the way it was provided to me by the store, and their required update - pushed across their cellular and data service - is what has resulted in my phone no longer being functioning.  So yes, while Verizon may not manufacture the phone or the software, they are in fact the provider of said items to me and thus are responsible, and should be pushing back to Google or Samsung to get a fix for their customers.  I was hoping to hear that Verizon was doing just that, but it does not appear to be the case.... Yes, other providers may be having the same issue, but I've seen them working with their customers to get a solution, providing CUSTOMER SERVICE to their customers, and that is all that I and others like me, have been looking for from Verizon in this kitkat fiasco and which they have been failing at.

  • What's the problem with having multiple users with the same UID?

    I've got three edit systems connected to the SAN using open directory off our server.
    I want all edit systems to have read/write access to everything created. I don't need to protect anything from any of the systems. With all three systems logged on using the same user, I never have to change permissions.
    The other cool thing about this is that Final Cut Pro will let me know if someone else is modifying a project that I have open with the warning:
    “The project "projectName" has been modified externally. If another user is working on it, saving will overwrite their changes. Do you still want to save?”
    This sounds great, right?
    RED FLAG!!!! Apple gives the warning in this article:
    http://docs.info.apple.com/article.html?artnum=302450
    "You should not allow two users with the same UID to access an Xsan volume at the same time."
    So why is it bad to have two (or more) users with the same UID?
    I can see that in some situations it means that you can't prevent people from read/write privileges. But I don't want to restrict privileges.
    What am I missing? With all of these warnings, it seems like if I do this my edit systems could all explode or something. Please help me understand the potential ramifications of having three users have the same UID.

    Hi Russell,
    1) If you have OD set up and "editor" has UID 1111, then when they log in to any machine that's bound to OD as editor, they will get UID 1111. Therefore, there won't be any of these permission errors. This is typically the recommended approach.
    2) I assume you mean "You'd prefer to not using open directory?" Whatever the case, OD isn't mandatory with Xsan -- it's just that with multiple user accounts, managing them centrally tends to be easier. For 3 or 4 accounts and 3 or 4 machines maybe it's no big deal. If you go larger, it could get a lot more complicated. That said, if you set it up such that each machine has the exact same set of users (as you said, Mary = UID 502, Fred = UID 503, William = UID 504), then you can do what you want. Mary can log in from multiple machines at the same time, and in general you won't have permissions problems. Of course, if you try and read and write the same file from multiple workstations at the same time, you will get file locking issues, which will prohibit somebody from successfully writing the file.
    File locking issues are different from general permissions errors. The former basically says "hey, someone else is editing this file. Therefore I won't let you edit it right now... you can read it if you want though." Permissions means somebody saves it, and Xsan thinks you saved it and own the file, when you really don't.
    Quad-Core PMG5, 4 GB RAM, 7800 GT, 1 TB disk.   Mac OS X (10.4.4)  

  • What's The Point Of Having DVRS If The Guide Is Incorrect?

    As the holiday season is upon us with a new year right around the corner verizon's guide issues still continue to get worse and worse with each day that passes with no end in sight as to verizon actually making an effort to correct the guide issues that currently exist. The schedules that verizon has running on their channels are so far off that it must be some sort of a sick inside joke to see how much the customers will take before they decide to go elsewhere for their services because of the reluctance to want to assist customers with all of the data that is wrong on the guide. If you want something corrected you are on your own since tickets that get created do not get worked on or looked at by the people who can make the necessary corrections. Now while i have been in touch with your guide provider and many of the channels on the guide to get things corrected (which i should not have to do) things have been getting fixed little by little but the frustrating thing is that even after i get them corrected for everyone who has fios for their tv service two weeks later it reverts back to being the same issues all over again. Very few people know that i have been doing this but if there is anyone at verizon who can actually assist with this issue then please do so because there are a lot of people who are having the same issues nationwide who are at the point where they are going to drop you if you do not fix the guide issues. I would be embarrassed to know if it were my company that was incapable of providing something that people are paying for and that the customers have to do my job for me rather than those who are being paid to do it so if you can assist those of us who have these guide issues please do so or at least give people a reason as to why you are not doing so rather than saying that it is a known issue. It being a known issue and a company doing nothing about it is truly disturbing because then the perception will be that apathy is the reason for not wanting to correct the guide problems.  

    Have you voted here. Get rid of FYI and what ever additional provider adds data. What good is all the additional info, if it is all wrong. Nice guide bad data.
    http://forums.verizon.com/t5/Share-Your-Ideas-with​-Verizon/Switch-to-Tribune-Media-Service/idi-p/378​...
    OK mm1, I see you had voted.

  • What is the point of having a customer complaint d...

    right just to summorise  we had a phone line damaged before xmas  so no phone or broad band, it took 30 days for the fault to be repaired but must unnaccetably was the fact the engineers missed 7 appointments,,, yes 7 without a phone call or explanation, so i made a complaint both on line and by phone (21 jan)  i eventually got the "direct" number of a man who i was told was a "manager"  Barry in india   i phoned him 3 times in 1 day, his assistant told me he was unavailble each time so each time i requested a call back.........never received 1, phoned the following day (this was not a "free phone number") again unavailable again call back requested again not returned, 2 days later i tried again bingo i spoke to barry, other than been sorry he gave no reasonable explanation as to why he never phoned back (although he did confirm i had requested it) i explained the deley in the repairs and the loss of 30 hours work i took from work waiting for bt, the expensive broad band and phone top ups we had to purchase in order to comminicate and the inconveinience of it all, other than been "very sorry"  (i think this must be the only words taught to bt phone employees) we basically got nothing sorted other than he would send a "complaint form out" .......................guess what      still not received it.  

    below is a pasted copy from stephanie  considering i took it upon my selff to arrange the plant equipment machinery and driver to assist bt with there repairs and that i have not even received a "valid dated terms and conditions" (dated to cover this period) i feel the response is far from appropiate (never at any time was the weather a issue by the enginners or phone staff or the weather was not a cause for the damage or hampered its repairs)  this whole issue has been going since december 2010 and i feel it appropiate ofcom now get involved as bt are in the otelo scheme i think a "alternative dispute resolution" would be the best route now as i feel i have been ignored, and fobbed off for far too long
    Thanks for your email.
    The terms and conditions are regularly updated and we have the right do so, however the condition with regards to matters beyond our reasonable control have always been valid. We will notify customers of any changes in terms and conditions within a reasonable timeframe if they present a significant detriment or disadvantage to customers. I can confirm no such change has happened.
    When a fault is ongoing we will endeavour to get the issue resolved as soon as possible. If an engineer visit is required, we will make the necessary arrangements to get someone out as soon as possible. Sometimes however due to matters beyond our reasonable control such as adverse weather we cannot keep this promise. The "matters beyond our reasonable control" status is reassessed regularly which is why we attempted to make several appointments during this period, in attempt to get the fault fixed for you as quickly as possible.
    My previous statement still stands unfortunately, however as advised the Actual Financial Loss team can send a pack out for the period between the 10 - 21 January 2011 and sent a pack accordingly for that time. They will not send a pack for any period before that due to the period deemed under matters beyond our reasonable control we could not keep the appointments made.
    I am very sorry as I understand this is disappointing, however as advised I can still arrange to have this pack sent for that period.

  • What is the point of having all RMI server classes be Serializable?

    I've confirmed that the serialVersionUID of the class is not the serialVersionUID of the generated stub. The class itself is never serialized and its fields don't need to be Serializable or transient. It is annoying me that Netbeans is giving me warnings about not defining serialVersionUID when there is clearly no point in doing so. So why does java.rmi.server.RemoteObject implement Serializable?

    I've confirmed that the serialVersionUID of the class is not the serialVersionUID of the generated stub.No reason why it should be.
    The class itself is never serializedSee below.
    So why does java.rmi.server.RemoteObject implement Serializable?RemoteObject is the base class for RemoteStub which certainly is serialized: that's the entire basis for RMI's operation.
    A remote object is also passed by serialization rather than by remote reference when it isn't exported.
    As for NetBeans ...

  • What's the point of having more than one computer "Authorized"?

    Why must it delete all my data just because i want to sync one song from either of my computers. this is stupid and i cannot stand Apple. why can't i sync between both of my computers? <Edited by Moderator>

    Sorry, but I have no clear idea what your problem is or what it is you are trying to accomplish. I know you're frustrated and update; if you calm down and post your situation and goals clearly and calmly, I'm sure someone here can help you sort things out.
    If you're referring to synching to an iPod (my crystal ball is in the shop so I'm guessing) and are trying to put content onto the iPod from more than one computer, you have to set it to manual management.
    Managing content manually on iPod

  • What's the point of having an iPhone 5 if u can't download applications from the App Store that are more then 50 mb?

    Help

    There is no limit using WiFi, or download with iTunes on your computer and sync the phone via USB.

  • What is the point of Precision and Scale in Number Type?

    Version :11.2
    What is the point in having PRECISION and SCALE in number type? If you create the column with just NUMBER ie.without
    specifying precision or scale , you can enter numbers with any precision and scale.
    SQL> select * From v$version where rownum < 2;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    SQL> create table t1 (col1 number);
    Table created.
    SQL> insert into t1 values (223.9939394);
    1 row created.
    SQL> insert into t1 values (88.228384);
    1 row created.
    SQL> insert into t1 values (9.34);
    1 row created.
    SQL> insert into t1 values (000.00);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t1;
          COL1
    223.993939
    88.228384
          9.34
             0Did you ever have a business scenario where a Numerical column should store values only with a fixed precision and scale ?

    Omega3 wrote:
    Version :11.2
    What is the point in having PRECISION and SCALE in number type? If you create the column with just NUMBER ie.without
    specifying precision or scale , you can enter numbers with any precision and scale.
    SQL> select * From v$version where rownum < 2;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    SQL> create table t1 (col1 number);
    Table created.
    SQL> insert into t1 values (223.9939394);
    1 row created.
    SQL> insert into t1 values (88.228384);
    1 row created.
    SQL> insert into t1 values (9.34);
    1 row created.
    SQL> insert into t1 values (000.00);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from t1;
    COL1
    223.993939
    88.228384
    9.34
    0Did you ever have a business scenario where a Numerical column should store values only with a fixed precision and scale ?Lots of business requirements for specific precisions and scales.
    A persons Age may required to be stored as whole numbers of no more than 3 digits.
    A sum of money may required to be stored with no more than 2 decimal places of accuracy e.g. GB Pounds and Pence or US Dollars and Cents
    A unit of length may required to be stored in metres with 2 decimal places for centimetres
    A shoe size may be required to be stored with one decimal place for half sizes
    etc.
    etc.
    Yes, you may just create all of them as generic NUMBER datatype, but creating them with precision and scale can provide additional information about the limitations expected for the values stored, especially for things like reporting tools that may use the specified precision and scale to determine how to display the values automatically (by default).
    If you start questioning "what's the point?" then you may as well say what's the point in having a NUMBER datatype when we can store numbers in a VARCHAR2 datatype? or what's the point in having a DATE datatype when we can stored dates as VARCHAR2 datatype? etc.
    No point in asking such a question because there's almost always a point to these things (and if there isn't they get deprecated in later versions).

  • What's the Point of Photo Stream?

    What is the point of having the option to turn on or off the photo stream if it no longer exists?  If it has been replaced by the recent activity feature then why not have the option to turn on or off the recent activity feature?

    Photo Stream only handles images and your videos are not uploaded or shared with other devices.
    Use iPhoto to import from your device. It can bring in the videos and image files.

  • What's the point of the "Contact Support" button?

    What's the point of having a "contact support" button when all you get is an automatic email response like this?  "Thank you for contacting BlackBerry(r) App World(tm) support. This is an automated response to your inquiry. Direct support is unavailable through the "Contact Support" button"?  Direct support is not available through "contact support"?!?!??!  WT?  This kind of "customer support"  will have me looking at Androids and iPhones when my contract is up in June..

    And when you get an Android or iPhone, don't you contact your carrier for front-line support, just like with a BlackBerry?  And does Android and iPhone offer support forums such as this one?  (Perhaps they do, I'm just asking.) 
    Fact is, when you download an app from AppWorld, the "contact support" button does work for apps developed by third-party developers.  Because AppWorld itself is a BlackBerry product, that would go through your carrier or here. 
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

Maybe you are looking for

  • HP OfficeJet Pro 8620 Scan to Email Function

    HP OfficeJet Pro 8620 is a great value for all the features it provides. "Scan to Email" was one of the reasons i bought this printer. Even though i can make this fucntion work with my gmail and iCloud emails, i feel very uncomfortable in providing t

  • Will reinstalling my operating system affect my iPod Touch?

    Will reinstalling windows, which will involve uninstalling iTunes and reinstalling iTunes once windows is installed, affect my data on iPod including apps, songs etc?

  • Sony's new Webbie HD camera MP4

    Hey folks, Thanks for the camera help. It seems Sony has launched a compelling new HD 1080p camera and I am wondering what the experts think about it as far as whether it will easily work with FCP. The often-repeated press release says you can dump t

  • Screen Exit: Add CAUFVD-KOSTL field to CN21 transaction

    HI, i have this requirement, i need the CAUFVD-KOSTL field in the program SAPLCOKO dynpro 2111. In found some exits related to CN21, but i don´t know if  some exit can be use for my task. Did someone have a similar requirement? Or  maybe i need to do

  • I have CS2 but my help menu shows up as Photoshop Elements

    I have CS2 but my help menu shows up as Photoshop Elements. Does any one know what the issue is?