Find A Point In number
here is Query
Select 23.25 from dual
How can i Select only 23 from this number or 25 from this number .I mean to find the value after a point or before a point i number
Hi,
There are different possible ways, one would be :SQL> with t as (
2 select 12.34 n from dual
3 union all select 0.1234 from dual
4 union all select 1234 from dual
5 )
6 select n
7 ,regexp_substr(to_char(n,'fm9999999999999D999999999999'),'^\d*') before
8 ,regexp_substr(to_char(n,'fm9999999999999D999999999999'),'\d*$') after
9 from t ;
N BEFORE AFTER
12.34 12 34
.1234 1234
1234 1234
3 rows selected.This returns before and after as strings.
Or you could :SQL> with t as (
2 select 12.34 n from dual
3 union all select 0.1234 from dual
4 union all select 1234 from dual
5 )
6 select n
7 ,trunc(n) before
8 ,n-trunc(n) after
9 from t ;
N BEFORE AFTER
12.34 12 .34
.1234 0 .1234
1234 1234 0
3 rows selected.this returns numbers
Similar Messages
-
How to find out the serial number of a connected AP
Hi.
We are using Cisco Prime Infrastructure Manager 2.0
My question is: Is there a possibility to find out the serial number of a connected AP?
Regards
MarkusHi Markus,
I don't think ,there is any report which can help to get the serial no of AP.
Inventory( Report >Report Launch Pad> Inventory) is the ONLY report which gave the below information but NOT the serial no .
Inventory
This report allows you to generate inventory-related information for controllers, access points, and MSEs managed by Prime Infrastructure. This information includes hardware type and distribution, software distribution, CDP information, and other statistics.
*** If anyone knows more deatils on this ,please share with us ***
Thanks-
Afroz
[Do rate the useful post] -
Hi, my ipad got stolen and i was wondering if there is anyway of finding out the serial number remotely from another apple device?
If it iwas registered to your account then you should be able to get it from your support profile : https://supportprofile.apple.com/
If not then do you have a backup of the iPad on your computer's iTunes ? If you do then in iTunes go into Edit > Preferences (iTunes > Preferences if using a Mac) and on the Devices tab on that hover your mouse pointer over the iPad's backup : http://support.apple.com/kb/HT4061 -
How can you find your IPAD serial number in your itunes account if you have lost your IPAD
How can you find your IPAD serial number through your itunes account if you have lost your IPAD
If you registered it to your account then it should be on your support profile : https://supportprofile.apple.com/
Or if you have a backup of it on your computer's iTunes then go into Edit > Preferences (iTunes > Preferences on a Mac), and on the Devices tab hover your mouse pointer over the iPad's backup : -
How do I find lost IPads IMEI number? I have serial
how do I find lost IPads IMEI number? I have serial
<Edited by Host>Do you have a backup of it on your computer's iTunes ? If you do then try going into Edit > Preferences on your computer's iTunes and on the Devices tab hover your mouse pointer over the backup name, that should give you the MEID number : http://support.apple.com/kb/HT4061
-
how to find out my four number password for iphone4, how to find out my four number password for iphone4
There is no way to find out your four number password for your iPhone. If there were there would be no point in having a passcode. You can reset the phone as described here: http://support.apple.com/kb/HT1212.
There is no way to find out your four number password for your iPhone. If there were there would be no point in having a passcode. You can reset the phone as described here: http://support.apple.com/kb/HT1212. -
How to find a point lies inside circle
Hi,
How do I find a point (x,y) is lies inside a circle? I trying to do a small shooting game.
If the user clicks inside the circle they get a point. I am using the Pythagoras theorem to achieve this. But I can't.
Please advice me.
Here is my code
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Shoot extends JFrame implements MouseListener, MouseMotionListener
private int winWidth = 300;
private int winHeight = 300;
private MyCanvas canvas = null;
private int ballX = 50;
private int ballY = 50;
private int ballW = 50;
private int ballH = 50;
private int ballR = ballW / 2;
private int curX = 0;
private int curY = 0;
private int left = 0;
private int top = 0;
public Shoot()
Cursor c = new Cursor(Cursor.CROSSHAIR_CURSOR);
this.setCursor(c);
canvas = new MyCanvas();
packIt();
left = getInsets().left;
top = getInsets().top;
private void packIt()
setTitle("My first game!");
setPreferredSize(new Dimension(winWidth, winHeight));
setSize(new Dimension(winWidth, winHeight));
setContentPane(canvas);
addMouseListener(this);
addMouseMotionListener(this);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//setUndecorated(true);
setLocation(300, 0);
setVisible(true);
public void mouseClicked(MouseEvent e)
int x = e.getX() - left - ballX;
int y = e.getY() - top - ballY;
int r = ballR;
System.out.println("x :" + x + "\ty :" + y);
//Trying to implememt Pythagoras theorem. But I am missing something.
System.out.println(((x * x) + (y * y)) + "\t=\t" + (r * r));
System.out.println();
public void mousePressed(MouseEvent e)
public void mouseReleased(MouseEvent e)
public void mouseEntered(MouseEvent e)
public void mouseExited(MouseEvent e)
public void mouseDragged(MouseEvent e)
public void mouseMoved(MouseEvent e)
curX = e.getX() - left;
curY = e.getY() - top;
canvas.repaint();
private class MyCanvas extends JPanel
public MyCanvas()
setBackground(Color.BLACK);
setBorder(BorderFactory.createLineBorder(Color.yellow));
public void paintComponent(Graphics g)
super.paintComponent(g);
g.setColor(Color.WHITE);
g.drawString("x :" + curX, 10, 20);
g.drawString("y :" + curY, 10, 30);
g.setColor(Color.RED);
g.fillOval(ballX, ballY, ballW, ballH);
public static void main(String[] asd)
new Shoot();
}public boolean isPointInCircle(){
double x= circle.getWidth/2.0+circle.getX();
double y= circle.getHeight/2.0+circle.getY();
double distance=getDistance(x,y,pointX,PointY);
return (distance<= circle.getWidth/2.0); //if the distance from the point to the center of the circle is less than the radius of the circle return true
double getDistance(double x1, double y1, double x2, double y2){
return math.sqrt((x1-x2)(x1-x2) + (y1-y2)(y1-y2));
}Edited by: ghostbust555 on Jan 23, 2011 3:20 PM -
How do I find out the phone number in a new house?
I have recently moved into a new student house and I am struggling to set up the Internet because I cannot retrieve the landline number from the previous tenants plus we don't have a phone at the house either. Is there a way I can find out the landline number online? Help!
OldGold wrote:
Then 17070 won`t work ether.
17070 is normally allowed on stopped lines, as it enables field engineers to do pair identification. Sometimes 1470 needs to be added as a prefix, if the number was withheld.
Where possible, old phone lines are left with "soft" dial-tone, as it saves extra work when a new line is provided, and encourages new customers.
Some service providers insert a recorded announcement if someone tries to dial out. "Welcome to XXXX service provider, please dial XXX to activate this line" or something similar.
There are some useful help pages here, for BT Broadband customers only, on my personal website.
BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones. -
How can I find out the apn number of the battery without having it?
I dont have the battery of my iphone 5 anymore but how can i find out the apn number of the battery? I would like to change it but i need to know the apn number to choose the right battery.
Apple does not provide any user-serviceable parts (other than accessories or sometimes a SIM card tray).
Therefore, there are no legitimate iPhone batteries available for sale anywhere.
Anything you find will either be salvaged, counterfeit, or stolen. -
How to find out spool requist number respective Sales Order
hi,
I need spool number respective to Sales Order, after print out script.While taking print out of sales order by selecting respective output type i am able to get spool request number in table TSP01 .Upto eveything fine .But how to find this spool request number is belongs to that Sales order.
Regards,
EswarSELECT * FROM tsp01 WHERE
rq0name = sy-repid AND
rq1name = d_suffix1 AND
rq2name = d_suffix2 AND
rqowner = sy-uname.
WRITE:/ 'Spool request issued',
/ 'Spool Number:', tsp01-rqident,
/ 'Spool Name :', tsp01-rq0name,
/ 'Suffix 1 :' , tsp01-rq1name,
/ 'Suffix 2 :', tsp01-rq2name,
/ 'Owner :', tsp01-rqowner,
/ 'Device :',tsp01-rqdest,
/ 'Copies :', tsp01-rqcopies,
/ 'Processed :', tsp01-rqpjreq.
SKIP.
ENDSELE -
I have two copies of CS6 and I need to find out which serial number is installed on which computer. How do I find the serial number once it's installed on a computer?
if they're pcs, Belarc Advisor - Free Personal PC Audit, for software, hardware and security configuration information on your computer.…
-
My problem is that I can't find the latest version number in here http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/win32 as a document, so I can check against "HKLM\SOFTWARE\Mozilla\Mozilla Firefox\CurrentVersion" and update or not, all this is done by a script. It will be great not have to change the versión number in the script every time there is a new release.
ThanksI think I solved, all I have to do is this:
//here I download the entire page
wget.exe http://www.mozilla.org/en-US/firefox/all.html -O index
//here I search for the word curVersion and set a variable with the result, which is "10.0.2"
for /f "tokens=3 delims=</> " %%A IN ('type index ^| FIND /I "curVersion" ' ) do set latestversion=%%A
//here I just make sure I get a number
echo "%latestversion%"
pause
Later I check it against the registry and voila! I hope this can help other admins who have the same problem.
Regards. -
I recently ran an updatedafter being prompted multiple times. Now I find there are a number of songs that I cannot sync to my iPhone. Some are songs purchased from iTunes. Is there anyway to remedy this? I'd really prefer not to have to repurchase music.
Why would you repurchase songs simply because they will not sync? Sorry, that's beyond illogical, it's simply not smart.
What happens when trying to sync these songs?
Any errors? -
I have WebLogic 32 bit installed on a Windows XP 32 bit platform. And CCB V2.2.0.
Upon startup in WebLogic, I get the following error message in the Domain Diagnostic Log file of Web Logic;
101162 User defined listener com.splwg.base.web.startup.SPLWebStartup failed: com.splwg.shared.common.LoggedException: The following stacked messages were reported as the LoggedException was rethrown: com.splwg.base.web.startup.PreloadLoginInfo.preloadFieldMetaData(PreloadLoginInfo.java:150): Unable to preload navigation keys and web pages com.splwg.base.support.context.SessionExecutable.doAsReadOnlyInCurrentSessionIfAvailable(SessionExecutable.java:54): Error caching field metainfo com.splwg.base.web.common.FieldMetaDataRepository$FieldRetriever.execute(FieldMetaDataRepository.java:99): Caught exception from SessionExecutable.execute() The root LoggedException was: Did not find base field 'EXT_REFERENCE_ID' pointed to by field 'C1_EXT_REFERENCE_ID'.
A user, ChesPlay, suggested that I install FrameWork Service Pack 10 from the Oracle MetaLink site. *(ChesPlay...thanks for your help!)*
I completed the install yesterday, but still get the same error.
First, I verified that I had already installed the Prerequisite Single Fixes 7195518. 7012092, 7284592 per SP10 install instructions.
Second, I installed the Prerequisite Single Fix 10124173 before installing Service Pack 10.
The following are the last few bug installations from Service Pack 10 and these are from my <SPLBASE>\etc\installed_fixes.txt file (I included these to show that SP10 installed OK);
10215923
10424723
10262588
10333081
11069455
10374823
10428564
11682732
9943861
9843154
10235499
I queried the ci_ut_instl database table to show the last few database updates that were installed from Service Pack 10;
10270627
9442145
8632929
10183805
8486799
9947280
10116686
ChesPlay, you asked if I had installed DB SP1, and I am thinking that this would be included inside the DB SP10 that I just installed. There was a database upgrade in FW SP10. I queried some defects that would have been corrected around the time we did the initial install and installed FW SP1, and those DB corrections are;
SR_NO
6089943
6320038
6508751
6690631
6732352
6741522
6746717
6752806
6753590
6762978
6769161
6769237
6779293
6779801
6781657
6818630
6823390
6849474
6852874
6870669
6906144
6939345
6941618
6979608
6995839
7003470
7014765
7026277
7381045
7381047
7381055
7381058
7382787
7384954
7388487
7391086
7391288
7407889
7413910
7418119
7428875
7438467
7441512
7448408
7456024
7462902
7484097
7493378
7494737
7500660
7503581
7509645
7527185
7534015
7568961
7569426
7582167
7588967
7592708
7594026
7599841
7599984
7613246
7616144
7624052
7633553
7635383
7649695
7677265
7679057
7026919
7037953
7111539
7233235
7256221
7293343
7310420
7322924
7332542
7357736
7503171
7503377
7510815
7520424
7568016
7593173
7594038
7671757
7827664
8251286
8260929
8268874
8273106
8291086
8392040
6937115
6979711
6999033
7041838
7109393
7175088
7176465
7189056
7189062
7189066
7228406
7240901
7247174
7247901
7253983
7254315
7259747
7263367
7275778
7277602
7279706
7281406
7281654
7286107
7288370
7298418
7316562
7316681
7323846
7332558
7332907
7344408
7346424
7353257
7356312
7357247
7359107
7375159
7381041
9300696
9309747
9340118
9395985
9400236
9492363
9526408
9647138
9654108
9664482
9698293
9709303
9712403
9825630
7679562
7687196
7687438
7687453
7710475
7774775
7811967
7831369
7911307
7924667
8206476
8226523
8235853
8256491
8273340
8280748
8284128
8289639
8292263
8301127
8307872
8321198
8339901
8344477
8350640
8350682
8403219
8426144
8426309
8443509
8445514
8445531
8484901
8490758
8496724
8503323
8532198
8546929
8568639
8569825
8572542
8574743
8593280
8595554
8596468
8603598
8603640
8619605
8628607
8631398
8654780
8676657
8710499
8734027
8743059
8743999
8811818
8958357
9017242
8738911
8754679
9006753
9032536
9104466
9110525
9124362
9131056
9211751
9213966
9267200
9280101
9290639
I am headed to MetaLink now for further research on the "Did not find EXT_REFERENCE_ID pointed to by field C1_EXT_REFERENCE_ID" message to see what else I might need to install. I'll update this thread if/when I figure out the problem.
Chesplay if you have another idea, or believe that there is a seperate DB SP1 on MetaLink, please advise. I was not able to find a seperate DB SP1 on MetaLink today. Thanks!For me even the issue was solved when i apply the db portion of patch 7009370. But when i log in to the application i could see ablank pages, the menus were not loading up and i was getting error:
SYSUSER - 313876-67-1 2011-03-05 23:12:11,721 [[ACTIVE] ExecuteThread: '2' for q
ueue: 'weblogic.kernel.Default (self-tuning)'] ERROR (web.dynamicui.NavMetaDataH
older) Error getting navigation info for navigation key userPortalPage
SYSUSER - 313876-67-1 2011-03-05 23:12:11,737 [[ACTIVE] ExecuteThread: '2' for q
ueue: 'weblogic.kernel.Default (self-tuning)'] ERROR (web.dynamicui.XSLTExtensio
nHelper) XSLT Extension error getting program component meta data for userPortal
Page
file:/C:/spl/CCBDEMO/splapp/servers/myserver/tmp/_WL_user/SPLWeb/yge362/war/WEB-
INF/uiXSL/tabMenu.xsl; Line #279; Column #116; com.splwg.shared.common.LoggedException:
The following stacked messages were reported as the LoggedException was rethrown
com.splwg.base.web.dynamicui.XSLTExtensionHelper.privateProgramComponentExtensio
n(XSLTExtensionHelper.java:66): XSLT Extension error getting program component m
eta data for userPortalPage
The root LoggedException was: Error getting navigation info for navigation key u
serPortalPage
file:/C:/spl/CCBDEMO/splapp/servers/myserver/tmp/_WL_user/SPLWeb/yge362/war/WEB-
INF/uiXSL/tabMenu.xsl; Line #279; Column #116; java.lang.NullPointerException
To overcome the above issue i applied the db portion of the patch 8608149 by following below steps:
1.
DELETE FROM CI_UT_INSTL WHERE SR_NO LIKE '8608149%';
DELETE FROM CI_UT_INSTL_DTL WHERE SCRIPT_FILE_NAME LIKE '8608149_RS1%';
COMMIT;
2.Apply the patch 8608149. -
How can I find out the total number of gigabytes of all my photos in Iphoto?
How can I find out the total number of gigabytes of all my photos in Iphoto?
In the Event mode open the Info window at the bottom left (Command+i or click on the blue i button). Then select all of the Events. The number of photos and size will be shown in the Info window at the right.
OT
Maybe you are looking for
-
My new Macbook Air hard drive gone bad
My new macbook air hard drive just died on me last saturday while I was working on my paper. With that I've lost all my files. I took it to Apple store, but I was told that all they can do is to replace the hard drive for me. I'm not really happy wit
-
Sync 2 phones - 2 different contact files?
I have two contact files in my Outlook (mine and that of my wife). We both would like to sync our phones on our own address book. We have each time to go to properties and specify our address book. Is there a way one can save a "profile", or one can
-
Files, icons, docs won't open with double click
Suddenly when I double click, nothing happens. I have to use keyboard commands to open files, icons, docs, folders, etc. Did I inadvertantly set something? I have a Mighty Mouse and this was never a problem before. Thanks Mac G5 Mac OS X (10.4.9)
-
just got new laptop with windows 7.. my desktop which has printer attached is windows xp can't seem to get laptop to locate the printer. downloaded new drivers? but still doesn't work?? I am not a wiz at computers & need help
-
How to Copy data from field symbol to Dynamic Internal Table
Hi, I want to copy the data between two dynamic Internal tables . Following is the code were I have data in the field symbol wanted to transfer it to the other Internal table : REPORT ztest. DATA: gd_dref TYPE REF TO data, gd_