How to get TOP 5 results in version 7.3.4?
Hello,
I have try to use subquery in a query to get the top 5 result in Oracle version 7.3.4, it seems like not working. Can you please tell me how to get the TOP 5 results with Oracle 7.3.4??
For example,
REJECT CATEGORY QUANTITY
AA 100
BB 5
CC 20
DD 73
EE 88
FF 76
GG 43
HH 99
So i want to get the result as AA, HH, EE, FF, DD.
Thanks.
I don't have that version available to me and I forgot if rownum was already available. See if this works:
select * from (
select category, quantity, rownum rn
from reject
order by quantity desc)
where rn <= 5;
Note that this is not the same as the TOP posibilities in 9i, but you example seems to suggest this should be enough.
Also note that on big tables, this query is performing porely because Oracle first needs to sort all records.
L.
Similar Messages
-
How to get the fixed result in a DES/CBC mode with fixed input data and fix
How to get the fixed result in a DES/CBC mode with fixed input data and fixed key. Below is my program , I tried to get the checksum of the DESInputData with the DESKeyData, but each time the result is different.
below is my code:
byte[] DESKeyData = {(byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01, (byte)0x01 ,(byte)0x01 ,(byte)0x01 ,(byte)0x01 };
byte[] DESInputData = {(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31,(byte)0x31 ,(byte)0x31 ,(byte)0x31 ,(byte)0x31 };
SecretKeySpec skey = new SecretKeySpec( DESKeyData, "DES" );
Cipher cipher = Cipher.getInstance("DES/CBC/NoPadding");
cipher.init( Cipher.ENCRYPT_MODE, skey );
byte[] result = cipher.doFinal( DESInputData );Use class javax.crypto.spec.IvParameterSpec to specify IV for CBC mode cipher:
// Create CBC-mode triple-DES cipher.
Cipher c = Cipher.getInstance("DESede/CBC/PKCS5Padding");
// Specify IV.
IvParameterSpec iv = new IvParameterSpec(new byte[] { (byte)0x01, (byte)0x23, (byte)0x45, (byte)0x67, (byte)0x89, (byte)0xAB, (byte)0xCD, (byte)0xEF });
// Initialize cipher with proper IV.
c.init(Cipher.ENCRYPT_MODE, yourKey, iv);
// Encrypt and decrypt should work ok now.
For more info about cryptography, search the Internet for IntroToCrypto.pdf from mr. Phil Zimmerman. This document is also part of PGP (http://www.pgp.com).
An excellent book is 'Applied Cryptography' from Bruce Schneier (http://www.counterpane.com/applied.html).
Regards,
Ronald Maas -
How to get the query result of improvement (Before and After ) using sql de
how to get the query result of improvement (Before and After ) using sql developer.
Check
http://www.oracle.com/technetwork/articles/sql/exploring-sql-developer-1637307.html -
How to get the full result of a google search?
How to get the full results of a google search?
Nov 23, 2006 2:28 AM
Hi, Friends,
I want to build a URL collector as a seamless and integrated part of my desktop application in java language which can access the full search results of google, but i am not sure the right way? what is the best way to do that in java?
Where to find the relevant materials for the problem?
thanks a lotCross post - http://forum.java.sun.com/thread.jspa?threadID=788627&messageID=4481369#4481369
-
How to get eLive in my Dutch Version Adobe Premiere 13?
How to get eLive in my Dutch Version Adobe Premiere 13?
ruutd42694156 wrote:
How to get eLive in my Dutch Version Adobe Premiere 13?
For whatever it is worth, eLive has little useful in it. So far, most of the content has been links to either a YouTube video or Adobe TV. Searching either on your own is more productive.
This is the latest one: Premiere Elements Mattes and Keys - YouTube
A few more......
Motion tracking | Learn Premiere Elements 12 | Adobe TV
BLAKE Filmconvert on Vimeo
Adobe Premiere Elements 11 Tutorial | Adding Audio Effects - YouTube
How to Add Special Effects to Your Premiere Elements Video - YouTube
Music scores | Learn Premiere Elements 12 | Adobe TV
I can give a few more if it will help. But, if I go back much further it gets into things like making Christmas videos.
Bill -
My newspaper downloaded. the download of jigzone puzzle created multiple copies of the puzzle in the same window. I went to safari to see if it was the jigzone website but it downloaded correctly. How do I get rid of the beta version I downloaded this morning or correct this problem. I closed firefox and restarted the computer (IMAX) and problem persisted.
Did you scroll down on the archive page that was linked in the FAQ?
I see the following releases listed:
(Released 3/05/2012) Flash Player 11.1.102.63 (174 MB)
(Released 3/05/2012) Flash Player 10.3.183.16 (67.3 MB)
(Released 2/15/2012) Flash Player 11.1.102.62 (174 MB)
(Released 2/15/2012) Flash Player 10.3.183.15 (67.3 MB)
(Released 11/10/2011) Flash Player 11.1.102.55 (174 MB)
(Released 11/10/2011) Flash Player 10.3.183.11 (76.9 MB)
(Released 9/21/2011) Flash Player 10.3.183.10 (80.5 MB)
(Released 8/24/2011) Flash Player 10.3.183.7 (74.1 MB)
(Released 8/9/2011) Flash Player 10.3.183.5 (70.6 MB)
(Released 6/28/2011) Flash Player 10.3.181.34 (75.7 MB)
(Released 6/14/2011) Flash Player 10.3.181.26 (75.6 MB)
(Released 6/5/2011) Flash Player 10.3.181.22 (75.7 MB)
(Released 5/31/2011) Flash Player 10.3.181.16 (6.3 MB)
(Released 5/12/2011) Flash Player 10.3.181.14 (70.5 MB)
(Released 4/15/2011) Flash Player 10.2.159.1 (66.3 MB)
(Released 3/21/2011) Flash Player 10.2.153.1 (66.3 MB)
(Released 2/28/2011) Flash Player 10.2.152.32 (38.4 MB)
(Released 2/08/2011) Flash Player 10.2.152.26 (66.3 MB)
(Released 11/04/2010) Flash Player 10.1.102.64 and 9.0.289.0 (126 MB)
(Released 9/20/2010) Flash Player 10.1.85.3 and 9.0.283.0 (126 MB) -
How to get top 10 records for each option in table prompt?
Hi,
I have created one report in which my requirement is to get top 10 highest salaries for each departments. I have created one table prompt which contains the names of all departments. On the salary column I have applied one filter i.e. TOP 10. Currently I am having 3 departments. I want to show the top 10 salaries for each department, but I am getting top 3 from first, 4 from second and 3 from third.They are calculating top 10 salaries based on all departments, not on individual department. How can I get top 10 salaries for each department?Hi,
Use TopN function in your column formula.
Ex: TOPN("Sales ,5 BY department)
Thanks,
Satya -
How to get top 10 employees in BEx Report
Hi all,
I am trying to get top 10 employees who have worked over 50 hrs of overtime in any pay period i choose in query.
How do i get it ??
right now my report gives me total of over 50hrs overtime in all chosen pay period employees list.
Any suggestions ??
Thank You,
KSmithCAN SOMEONE PLEASE HELP ME SOLVE THIS PROBLEM ??
Hi all,
The problem I have is even though i tried condition for top 10 employees who worked more than 50 hrs.
My report right now shows all employees overtime under "OT" key figure for each pay period. --> I just want to show employees and overtime which is > 50 for each different pay period
The condition works only if i display just one pay period...and user dont want it that way. they want to get more than one pay period displayed on the report and should have list of employees who work more than 50 hrs over time. HOW DO I GET THAT ??
Also there is another key figure count meaning if out of those chosen pay periods there are 3 periods when an employee worked more than 50 hrs of over time then it should show "3". if there 2 pay periods when employee work more than 50 hrs count should display 2 ---> right now i am not able to get that also.
Please can some one suggest something ??
Thank You,
KSmith
Edited by: Keral Smith on Jul 25, 2008 2:49 PM
Edited by: Keral Smith on Jul 25, 2008 3:08 PM -
How to get sequence overall result in LabView ?
Hello,
Would anyone can help with this tiny problem ?
We have a batch (.bat) that launches a given list of TestStand sequences, which works as expected.
However, we would like to monitor the result of each sequence and display it to the operator.
Our idea is to get the sequence result in a VI, run at sequence end, and add it to a queue, that will be retrieved and displayed on a VI monitor, run separetly.
The only problem we have left is to be able to retrieve the sequence global result. Any idea or suggestion ?
Thanks
Raphael
Solved!
Go to Solution.Thanks. The problem is not the monitor and how to pass the information to it.
We already have a test monitor (using queues) that is working as expected.
The test sequence is queuing information, mainly at steps end with step result, and the monitor is displaying information from that queue. The queue is resseted at each sequence start.
We would like to derivate that monitor to display only sequences (launched by a batch file) overall-global-final result of all the sequences ran. Using UImessage is maybe a better way, but we do not want to spend time re-writing another monitor.
The problem is how do we retrieve this overall-global-final sequence result in LabVIEW ? -
today i made the mistake of downloading the update for itunes, 12 26 12, not realizing i would lose the choice to also burn my purchased music to a cd as well as the nano. can anyone tell me how to get back my previous version so I may continue to make my cds that I play in my vehicle. are there steps I can take to be able to transfer the purchased music to another exterior drive where I can then burn it to a cd, besides the nano? as my name indicates I am just getting too old to keep up with all these changes..
https://discussions.apple.com/thread/4572096?start=0&tstart=0
As for moving you itunes library, just copy the entier iTunes storage folder to the exterior drive. user/MyDocuments/Music/iTunes -
How to get the best results using the refine edge tool?
how to use the sliders in the refine edge tool? how do you get the best results using the fine edge tool?
You should ask in the forum for the (un-named) program you are using
The Cloud forum is not about using individual programs
The Cloud forum is about the Cloud as a delivery & install process
If you will start at the Forums Index https://forums.adobe.com/welcome
You will be able to select a forum for the specific Adobe product(s) you use
Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll -
How to get custom trigger result when insert
I set a trigger before insert, if the result was $aa = 50;
how to get $aa?
it doesn't work
$ins_testtable->addColumn("t_num", "NUMERIC_TYPE", "VALUE", $aa);I tried this one, actually, {GLOBALS.variable_name} is one of mark-up language,I add echo $a this time, after submit, $a appear on the page, so I think "definea trigger" has been executed successfully, but still got error message
<br />
<br />http://uploads.screenshot-program.com/my.php?image=upl2682569831.jpg
<br />
<br />code
<br />--------------------------------------------------
<br /><?php require_once('Connections/conndb.php'); ?>
<br /><?php<br />// Load the common classes<br />require_once('includes/common/KT_common.php');<br /><br />// Load the tNG classes<br />require_once('includes/tng/tNG.inc.php');<br /><br />// Make a transaction dispatcher instance<br />$tNGs = new tNG_dispatcher("");<br /><br />// Make unified connection variable<br />$conn_conndb = new KT_connection($conndb, $database_conndb);<br /><br />//start definea trigger<br />function definea(&$tNG) {<br />global $a;<br />$a = 100;<br />}<br />//end definea trigger<br /><br />// Make an insert transaction instance<br />$ins_testtable = new tNG_insert($conn_conndb);<br />$tNGs->addTransaction($ins_testtable);<br />// Register triggers<br />$ins_testtable->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "ins");<br />$ins_testtable->registerTrigger("BEFORE", "definea", 50);<br />// Add columns<br />$ins_testtable->setTable("testtable");<br />$ins_testtable->addColumn("t_name", "STRING_TYPE", "POST", "t_name");<br />$ins_testtable->addColumn("t_num", "NUMERIC_TYPE", "VALUE", "{GLOBALS.a}");<br />$ins_testtable->setPrimaryKey("t_id", "NUMERIC_TYPE");<br /><br />// Execute all the registered transactions<br />$tNGs->executeTransactions();<br /><br />// Get the transaction recordset<br />$rstesttable = $tNGs->getRecordset("testtable");<br />$row_rstesttable = mysql_fetch_assoc($rstesttable);<br />$totalRows_rstesttable = mysql_num_rows($rstesttable);<br />?>
<br />
<br />
<br />
<br />
<br />
<br />
<script src="includes/common/js/base.js" type="text/javascript"></script>
<br />
<script src="includes/common/js/utility.js" type="text/javascript"></script>
<br />
<script src="includes/skins/style.js" type="text/javascript"></script>
<br />
<br />
<br />
<br /><?php echo $a; ?>
<br />
<form id="form1" name="form1" method="post" action="">
<br />
<label for="t_name">tname</label>
<br />
<input type="text" name="t_name" id="t_name" />
<br /> <?php<br /> echo $tNGs->getErrorMsg();<br />?>
<br />
<input type="submit" name="ins" id="ins" value="submit" />
<br /></form>
<br />
<br /> -
How to get the required result in BI publisher?
Hi All,
QuoteROW
QuoteItemROW
SA -- abc
PROD --xyzitem
NR -- 100
MR -- 150
QuoteItemROW
SA -- abc
PROD --xyz
NR -- 100
MR -- 150
QuoteItemROW
SA -- abc
PROD --xyz
NR -- 100
MR -- 150
QuoteItemROW
SA -- abc
PROD --xyzitem
NR -- 100
MR -- 150
QuoteItemROW
SA -- abc
PROD --xyz
NR -- 100
MR -- 150
QuoteItemROW
SA -- abc
PROD --xyz
NR -- 100
MR -- 150
QuoteItemROW
SA -- abc
PROD --klmitem
NR -- 100
MR -- 150
QuoteItemROW
SA -- abc
PROD --xyz
NR -- 100
MR -- 150
QuoteItemROW
SA -- abc
PROD --klm
NR -- 100
MR -- 150
I have to grp on SA, PROD, NR, MR
My Result should be a table
SA ---abc
PROD NR MR count
xyzitem 100 150 2
xyz 100 150 4
klmitem 100 150 1
xyz 100 150 1
klm 100 150 1
Please let me know how to get cnt on child record.
Regards,
SamHi Alex, thank you for your reply.
Yes that is the hierarchy,
QuoteItemROW -------------------------------------> this is the main POFS (master)
SA -- abc
PROD --xyzitem
NR -- 100
MR -- 150
QTY -- 1
QuoteItemROW ----------------------------this is POES under POFS (child)
SA -- abc
PROD --xyz
NR -- 100
MR -- 150
QTY ---- 1
and required a group on SA, then PROD, NR and MR. Basically wanted to display QTY count/sum.
xyz is repeating (in red color) because first xyz is under group of xyzitem and another xyz is under another group of klmitem.
SA ---abc
PROD NR MR QTY
xyzitem 100 150 2
xyz 100 150 4
klmitem 100 150 1
xyz 100 150 1
klm 100 150 1
Regards,
Sam -
How to get top 10 actively used TFS projects?
We have 100+ projects inside a TFS collection, how to find the (say to 10 or 15) most actively used projects? Idealy the activities will include any actions like CI/CO, build, member addition, etc.
ThanksHi Peter,
Thanks for your post.
As far as I know there’s no a default way to get such top 10 actively team projects report. You should create your custom report using TFS API to achieve that, pleas refer to the discussions in this similar post:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/984d1796-e195-4765-9f55-e2a45bc37c80/how-to-get-a-list-of-active-projects-from-tfs-?forum=tfsgeneral.
For this scenario, please submit it to User Voice site at: http://visualstudio.uservoice.com/forums/121579-visual-studio. Microsoft engineers will evaluate them
seriously.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to get 'Top Sites' back?
I downloaded an Installer, but then deleted it, however what i didn't notice was that it had made itself my Safari Homepage, rather than 'Top Sites', how do i get 'Top Sites' back?
Open Safari and click Preferences on the menu named Safari. On the General tab set "New Windows Open with" and "New Tabs Open with" to Top Sites. It doesn't matter what the Homepage is set to if the above are set to Top Sites.
If New Windows Open With isn't a choice, go to Apple Menu > System Preferences > General and put a checkmark in front of "Close Windows when Quitting an app."
Maybe you are looking for
-
Sync Apps to iPhone and iPad?
In the case of apps that will run on both iPhone and iPad (even if they don't use the full iPad screen), will iTunes (and the app developers) allow me to run the same app on both machines, or do I have to buy each such app a second time (i.e., one li
-
My MacBook Pro w/10.6.8 requires me to sign in twice at initial log-in screen before loading.. In addition, after Safari 5.1.7 has been open for a few hours the browser stops loading pages and then the entire computer freezes and I have to do a forc
-
I would like help on getting my ITUNES back operating. I can't get on my account because every time I click on ITUNES I get these messages. "MSVCR80.dll" and then "error 7 (Windows 126)". Please help! I really need to get into my account.
-
Is it possible to compose XML in BPM from responses of multiple BAPI calls?
Hi guys! I want to send into BPM an XML document, which will be parsed and it will call some BAPIs more times. And I need to get response. Is it possible, to compose an XML document from these BAPI return codes to be sent back as response? Concretely
-
Nothing else to add.