Find different
Hello,
i am learning java. I want to find out how to find different between two intergers. In C i use mod function but Java I am not sure.
ap
Maybe I should now mention in my 1st question about MOD.
example
int x = -5
int y = 2
i want to find the different in possitve interger. so answer should be
3
I guess I can write small method to do this but I thought java math class has some methods built in to find this.
ap
Similar Messages
-
Report to Find different between PCR & Schemas
hi guru's,
Can Any tell me the Report to Find different between PCR & Schemas in Two Clients,(For examle from 4.7 to 6.0)
Regards,
BalaHi Bala,
The following link will help you.
PCR and SCHEMAS
Thanks & Regards,
Sandip Biswas -
Good afternoon! We purchased the product Adobe master collection 5.5 AOO Litsense RU. Distribyutiv program has been lost, and now we can not find it on the site. There we find different versions of the program other than Russian. Please tell me where to download it?
Voronello volume license installation files are available under the end user or deploy to account at https://licensing.adobe.com/.
-
How to compare two tables data...need sql report or utility to find differe
Hi,
We have a requirement where we are asked to find data differences between two tables and one of the tables reside on remote database. The database version is same ( 10g ) and datatypes for the tables are similar.
The client is looking for a sql report or kind of utility to display the data differences for each column ( if possible count differences ) with some meaningful error messages.
Could anyone let me know the best possible way of doing it..?
Thanks
HitarthHi,
I found something for tables comparison but getting one error...can you check this please and let me know what is wrong
Here is the function:
CREATE OR REPLACE FUNCTION compare_query_results (
p_query1 IN VARCHAR2
, p_query2 IN VARCHAR2
, p_raise_error_if_not_equal IN BOOLEAN DEFAULT FALSE
, p_raise_error_if_no_rows IN BOOLEAN DEFAULT FALSE
RETURN NUMBER
IS
-- Constants
c_query_results_equal CONSTANT PLS_INTEGER := 0;
c_query_results_not_equal CONSTANT PLS_INTEGER := 1;
oracr CONSTANT VARCHAR2 (1) := CHR (10);
-- Variable Declaration
v_sql_stmt VARCHAR2 (32767);
v_record_count PLS_INTEGER;
v_return_code PLS_INTEGER;
v_record DUAL.dummy%TYPE;
v_result_set_has_rows BOOLEAN;
-- Ref Cursors
v_cursor sys_refcursor;
-- Custom Defined-Exceptions
result_sets_do_not_match EXCEPTION;
query_returns_no_rows EXCEPTION;
BEGIN
-- Get the count of differing records between p_query1 and p_query2
dbms_output.put_line('Start-1');
v_sql_stmt :=
' (SELECT /*+ materialize */'
|| SUBSTR (p_query1, INSTR (UPPER (p_query1)
, 'SELECT'
, 1
, 1
) + 6)
|| ')
, (SELECT /*+ materialize */'
|| SUBSTR (p_query2, INSTR (UPPER (p_query2)
, 'SELECT'
, 1
, 1
) + 6)
|| ')
SELECT ''X''
FROM (
(SELECT * FROM test1 MINUS SELECT * FROM test2)
UNION ALL
(SELECT * FROM test2 MINUS SELECT * FROM test1)
dbms_output.put_line('Start-2');
OPEN v_cursor
FOR v_sql_stmt;
dbms_output.put_line('Start-3');
FETCH v_cursor
INTO v_record;
dbms_output.put_line('Start-4');
v_result_set_has_rows := v_cursor%FOUND;
dbms_output.put_line('Start-5');
CLOSE v_cursor;
dbms_output.put_line('Start-6');
-- If there are rows - the result sets do NOT match...
IF v_result_set_has_rows
THEN
v_return_code := c_query_results_not_equal;
IF p_raise_error_if_not_equal
THEN
RAISE result_sets_do_not_match;
END IF;
-- If there are no rows - the result sets do match...
ELSIF NOT v_result_set_has_rows
THEN
IF p_raise_error_if_no_rows
THEN
-- Check to make sure that the queries contain rows if desired...
v_sql_stmt := 'SELECT ''X''
FROM (' || oracr || p_query1 || oracr || ')';
OPEN v_cursor
FOR v_sql_stmt;
FETCH v_cursor
INTO v_record;
IF v_cursor%NOTFOUND
THEN
CLOSE v_cursor;
RAISE query_returns_no_rows;
END IF;
CLOSE v_cursor;
END IF;
v_return_code := c_query_results_equal;
END IF;
RETURN v_return_code;
EXCEPTION
WHEN result_sets_do_not_match
THEN
raise_application_error (-20101, 'The Queries'' result sets do NOT match. Error returned
as requested.');
WHEN query_returns_no_rows
THEN
raise_application_error (-20102, 'The Queries'' result sets match, however they contain no
rows. Error returned as requested.');
WHEN OTHERS
THEN
-- Raise the error
raise_application_error (-20103
, 'There is a syntax or semantical error in one or both queries
preventing comparison.'
|| oracr
|| 'Error Stack :'
|| oracr
|| DBMS_UTILITY.format_error_stack ()
|| oracr
|| 'Error_Backtrace:'
|| oracr
|| DBMS_UTILITY.format_error_backtrace ());
END compare_query_results;
I have created two tables ( test1 and test2 ) with few columns and with the same datatypes and executed the above function...I am getting error as folliowing:
DECLARE
ERROR at line 1:
ORA-20103: There is a syntax or semantical error in one or both queries
preventing comparison.
Error Stack :
ORA-00900: invalid SQL statement
Error_Backtrace:
ORA-06512: at "ORAOWNER.COMPARE_QUERY_RESULTS", line 53
ORA-06512: at "ORAOWNER.COMPARE_QUERY_RESULTS", line 121
ORA-06512: at line 12
Could someone please help me fixing this error..It would be really appreciated
Thanks
Hitarth -
Why is my picture library in finder different than in IPhoto
i want to drag my picture library in finder to an external drive. But when i compare the pictures in finder it does not have all of the folders i have set up in iphoto
Hello ccfr1234,
Thanks for using Apple Support Communities.
If you are seeing different photos in another iPhoto Library on your computer than what you're used to, then you likely have opened another library which is on your computer. To see the iPhoto Libraries stored on your computer, please follow the directions below.
To switch between photo libraries:
Quit iPhoto.
Hold down the Option key as you open iPhoto.
Select the library you want to switch to.
Click Choose.
iPhoto '11: Create a new iPhoto library or switch between libraries
Take care,
Alex H. -
How to find different rows in two tables which have same schema.
There are two tables t1 and t2, they have same schema. Table t1 includes the informtion of students last month,table t2 incude the information of the students this month. I want to find the difference of the same student between two months. What should I do and How to do?
Look a the following example:
Table TEST_1 TEST_2
ID ID_TX ID ID_TX
1 a 1 a
2 b 2 b
4 d 4 d
6 f 6 f
7 g 7 g
10 j 10 j
10 Z 10 x --- DIFFERENT
12 x --- DIFFERENT
20 x ---- DIFFERENT
Query:
Select * FROM
( (SELECT '1', ID, ID_TXT FROM TEST_1 MINUS SELECT '1', ID, ID_TXT FROM TEST_2)
UNION
(SELECT '2', ID, ID_TXT FROM TEST_2 MINUS SELECT '2', ID, ID_TXT FROM TEST_1) )
Order By ID
RESULTS:
' ID ID_TXT
1 10 Z
2 10 x
1 12 x
2 20 x -
Recently i faced a problem from appstore in my iphone i purchased app called iBlacklist- Block Unwanted Calls its paid Rs.270. after reading all details and watching all detail picture which is shown in appstore i download it , but after installing the apps i found its totally different app called SeceretContact, i tried to contact support on tollfree number but he say that this apps is developed by developer so he cant help , i just wana know that appstore is allowing the developer to put their apps on apple store and the apps which is shown is totally different after insatling it then who is responsible for this as this apps had charged Rs 270 from one person , is this a cheating which company is trying to do with us .
please help me if possible i just wana know what action did company takes in this matterMost of the people on these forums, including myself, are fellow users - you're not talking to iTunes Support here. If you contact iTunes Support about it then they might investigate and potentially remove it.
You can try contacting iTunes Support via the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via the Store > View Account menu option and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that app and use the 'Report a Problem' link and fill in details about the problem (iTunes support should reply within, I think, about 24 hours).
If the 'report a problem' link doesn't work (it's been taking some people to this site on a browser instead of showing a form in iTunes) then you can try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page. -
How could we find different sales invoice documents
HI Experts,
i have a bit doubt that How could we find the different sales invoice documents which(standard reports) have been given by SAP. and how could we see them that those documents would be this format.
reply would be very accoladed and that would be helpful to me.
thanks,Hello,
I am not sure if I understand your quesition properly.
Maybe my answer and link in a other question could be helpful for you.
all the best
Erwin
http://scn.sap.com/thread/3455651 -
How to find different styles from Indesign CS4 Grap style?*
Hi,
I would like to know how to find two different character style from a single grap command in Indesign CS4.
For instance, A word having bold/italic character style following with punctuation having normal/none character style.
Thanks for your help!
Regards,
BharatWith GREP styles you can search text only, not formatting.
Peter -
Iphone 4 Models MD128LL MD128C Where can I find different model specifications?
Hello,
I just replace 1 of 2 Iphone's and the new one is a model MD128LL compared to the other one which is an MD128C Where can I find documentation of the different models?
I have searched the web already and the Apple support options has nothing.
Thank YouYou just type the Model # into Web Search and read, read, read.
MD128C appears to be iPhone 4, 8GB from any Canada Carrier.
MD128LL appears to be iPhone 4, 8GB this could be factory unlocked iPhone. -
Can iTunes Match find different music on iPod and MacBook without overwriting one?
I have an iPod nano that has playlists not on any other device. It was synched with a laptop that died and iTune playlists were not transferred. I now have a MacBook Air with iTunes with a new and different playlist. I want to get my iPod playlists on another device without losing anything. And keep the tunes on my MacBook. These tunes are not from the iTunes store. I'm wondering if iTunes Match can help and how I'd use it to keep both playlists. Thanks.
Hi,
Itunes match works by scanning your iTunes library on your computer. Any music on your ipod that is not on your computer will need to be transferred.
However, when you sync your ipod with your computer, you wll only get the music and playlists from your computer..
JIm -
Hi,
I'm trying to find plan changes in same sql statements (same hash_value).
Thinking about query on stats$sql_plan_usage table , but have no idea how to use analytics on that.
Tried some lag approach but no success.
Can You please point me in right direction ?
Basicaly I need report like:
snap_id, snap_time,plan_hash_value, hash_value
1|2009-01-01|12345678|34434343
8|2009-01-09|22222222|34434343
and so on.
Regards.
GrzegorzGot something like this:
select min(rn), min(snap_id), plan_hash_value, hash_value from (
select spu.snap_id,spu.plan_hash_value,spu.hash_value, text_subset,
row_number() over (partition by spu.plan_hash_value,spu.hash_value,spu.dbid, spu.instance_number order by spu.snap_id) rn
from perfstat.stats$sql_plan_usage spu
) group by plan_hash_value, hash_value ;
but I want rows with min 2 plan_hash_value changes , dont want with static plan_hash_value (only 1 record per hash_value).
So 2 or more changes should be reported.
Regards.
Grzegorz -
I want to find different time interval btw two times
hi every body,
my question : i ll give start time and end time as input.
i want output ,time interval btw start time and end time
for exp: i ll give 7 to 11 as input.
tables have data like 7 to 7.29.59 ---> 1 prog
8.00.00 to 9.29.59-----> 2 prog
10.00.00 to 10.29.59--->3 prog
i want to find time gap btw the progs and want display output as like 7.30.00 - 7.59.59 --->1 interval
9.30.00-9.59.59 ---> 2 interval
10.29.59-11.00.00---->3 intervalHi,
declare some tmp WA as wa_tmp
loop the data.
adding from date.
wa_tmp = data-from + 1 .
read the next line
read table data index sy-tabix + 1
wa_tmp = to date of next line - 1.
then append wa_tmp to final it.
endloop.
Hope it helps. -
IMovie - cannot find different themes as shown in ap store
My daughter has been wanting this ap forever. Finally she downloads it but she cannot find all the themes that it shows in the ap store description. We have gone under settings after creating a project, but can only find themese like CNN, travel, etc. Does anyone know how we can find these themesÉ
Yes it is compatible, but there is that rider at the bottom of the full description for the app, as I quoted above. It is very confusing!
The app I have on my iPhone doesn't have the full capability as the app for an iPad (Pad as distinct from Pod). For example, the iPad version has waveforms for the audio track. This enables editing of soundtracks, such as fades and volume adjustments within the track.
So, there are several "varieties" or "flavours" of iMovie for iOS, depending on which device you are using.
John
PS I'm off to bed now - after 1:30 in the morning here! Catch up again tomorrow if needed.
Message was edited by: John Cogdell - added PS -
So when i first bought my mac i messed around with garageband and i pulled up all of these painos and synthisizers and the piano would cover about half of the screen. Well now i'm in college and i need to know pitches for my music courses and thought this would help me but i cant find the "big" pianos anymore just the small one for recording. please help me
The "big" piano is called "Musical Typing": You launch from the "Windows" menu:
Windows > Musical Typing ⇧⌘ K
Regards
Léonie
Maybe you are looking for
-
I have a 2nd generation iPod. Currently I am running iTunes 3 and syncing with an Intel iBook running OS 10.6 Snow Leopard. Everything works great. It appears I need iTunes 5 to allow my iBook to communicate with a brand new iPad 2 I just got. If
-
IPad 2 Smart Cover and Airport Xray
Is there any ill effects when you send your ipad 2 with a smart cover (which contains magnets) through the airports Xray scanners? Just curious since xray scanners use magnets to scan correct?
-
ANNOUNCE: JRockit 5.0 (R25.1) aka "5.0 SP1" available
JRockit 5.0 (R25.1) is now available from our download site, see links below. Some highlights: - J2SE 5.0 Update 2 - Increased runtime performance - Improved startup times - Support for large pages on Linux with 2.6 kernels - Added -Xrs option, in pa
-
Safari 4.1.3 (4533.19.4) Problematic
Hi Gang I recently did a NEW system install, got up to 10.4.11 and updated to Safari Safari 4.1.3 (4533.19.4) I had started out with 3.0.4, (I should have stayed right there). I never had a problem with 3.0.4. Now that I've upgraded, it's an endless
-
The serial number is invalid what next?
how do i get Adobe to recognized the serial number? This is my second disc ordered from Amazon. Who is at fault?