Big Problem.. Need a query

Hi,
I have an issue with Sql Query, i have written the same some extent.
Aim : I am trying to fetch the Numeric data from a Character column and filter with some numeric condition.
I have written the same up to filter the numeric data, the problem is how to filter data again the resultant query with numeric operations.
Problem Facing :
Invalid Number... Error....
I have prepared a Small Test Case for this scenario :
CREATE TABLE KSK_TEST_Q
(INVENTORY_ITEM_ID NUMBER,
ELEMENT_NAME VARCHAR2(2000),
ELEMENT_VALUE VARCHAR2(2000),
ITEM_CATALOG_GROUP_ID NUMBER
BEGIN
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (2794,'Memory Supplied','SATIH123',93);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (167,'Diameter','123SEFG',33);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (167,'Thread','123ASDF1234213',33);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (482,'Thread','32',33);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (484,'Diameter','6',33);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (484,'Thread','28',33);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (247,'Size','1232130.90',115);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (247,'Size','123213.WER234',113);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (247,'Size','17',31);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (225,'Size','TASDRTS',115);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (225,'Size','23423',113);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (225,'Size','5665.09',31);
Insert into KSK_TEST_Q (INVENTORY_ITEM_ID,ELEMENT_NAME,ELEMENT_VALUE,ITEM_CATALOG_GROUP_ID) values (199,'Size','89.00',115);
END;
Case 1 :
-- fine because its checking as a Character value --------------
select * from ( select * from (select cc.* ,ltrim(translate(cc.element_value,'0123456789.0123456789',' '))
res from KSK_TEST_Q cc where element_value <>'.' ) where res is null or res = '0' )
where element_value = '32'
Case 2:
-- error Invalid Error -- because it was checking for the all the data not for resultant query ……. Why its happening like this..?
select * from ( select * from (select cc.* ,ltrim(translate(cc.element_value,'0123456789.0123456789',' '))
res from KSK_TEST_Q cc where element_value <>'.' ) where res is null or res = '0' )
where element_value = 32 ;
Case 3:
-- error Invalid Error -- for the same case2 with applied to_number to value --
select * from ( select * from (select cc.* ,ltrim(translate(cc.element_value,'0123456789.0123456789',' '))
res from KSK_TEST_Q cc where element_value <>'.' ) where res is null or res = '0' )
where to_number (element_value) = 32 ;
Note: It was searching the value entire table KSK_TEST_Q, not in the resultant set... How can we handle the same on the resultant set only...
I need to develop the same with single query only ( not allowed to use procedures/blocks ), and finally I want to get the data for the filter condition (element_value) = 32 condition .
Please help on this
Thanks,
Kumar

Please post what do you expect to get for each element_value. Is it:
SQL> select  t.*,
  2          regexp_replace(
  3                         element_value,
  4                         '[^\+\-\.0123456789]'
  5                        ) num
  6    from  KSK_TEST_Q t
  7  /
INVENTORY_ITEM_ID ELEMENT_NAME                   ELEMENT_VALUE        ITEM_CATALOG_GROUP_ID NUM
             2794 Memory Supplied                SATIH123                                93 123
              167 Diameter                       123SEFG                                 33 123
              167 Thread                         123ASDF1234213                          33 1231234213
              482 Thread                         32                                      33 32
              484 Diameter                       6                                       33 6
              484 Thread                         28                                      33 28
              247 Size                           1232130.90                             115 1232130.90
              247 Size                           123213.WER234                          113 123213.234
              247 Size                           17                                      31 17
              225 Size                           TASDRTS                                115
              225 Size                           23423                                  113 23423
INVENTORY_ITEM_ID ELEMENT_NAME                   ELEMENT_VALUE        ITEM_CATALOG_GROUP_ID NUM
              225 Size                           5665.09                                 31 5665.09
              199 Size                           89.00                                  115 89.00
13 rows selected.
SQL> SY.

Similar Messages

  • Big problems need help fast

    i have a k8n neo platinum edition, nvidia nforce3 250gb chipset mobo. recently i was playing on my computer then out of no where it just shuts off. went to try to turn it back on and the computer fans spun for less then a second then went off and nothing else happened. i assumed immediately that it was probally a bad psu so i bought a new one, and i still have the same problem. ive taken everything but the graphics card,processor, and psu out and it still wont work. i get no post or anything and the fans on the out side are the ownly things that react to me hitting the power button. i have no clue what else to try or do. i really need to get on it for work very soon. also i built this computer 2 or 3 years ago and havent had a problem till now.
    specs: radeon 9800pro 128mb
    80gb hd
    amd athlon 64 3000+
    k8n neo platinum edition mobo

    Quote from: njo on 09-October-06, 02:00:55
    i did list specs tho in the first post at the bottom. the only thing i forgot was the ram which is in one of my other posts.
    Put it in your forum signature so people don't have to hunt for the info. You might also try a minimal out of case setup as well.

  • Delivery problems BIG problems Need help

    I am a very good customer and for the first time I went online to purchase items  I put the following shipping address Exp: SE 28 St  MA 44401 It was a mistake it was suppose to be SE 28 Av Now the address show SE 28 st 44416, yes I put 28St instead of 28av, but I never put 44416 Now while the package still in transit, I called UPS to ask them to reroute the package  the answer: Best Buy needs to do that, I asked Why? Reason an extra $10.00 will be charge to the shipper and we need there permission. After over 5 hours of emails and aggravations no ones want to help at Best Buy online. I offer to pay for the mistake and it's not even an option. To top it off , if I never receive the packages I loose everything!!! This is unbelievable, frustrating and makes a very good client mad..... very mad.  It takes only one call from Best Buy to reroute these items. Instead they choose not to call even if I pay the extra charges.  How's that possible !?!?!?!?!? Please is there someone there to help  If there is anyone at Best Buy reading  this message please do something about it, Yes it is a mistake a small one and 5 minutes of your time would correct everything. We are running out of time delivery dates in 2 days. And if someone else can help me to post this at the proper place Please let me know.

    More than likely, the package will go back to BB. Hopefully, they will contact you for the correct adddress. If you don't get your package, you may need to cancel the charges on your credit card.
    Gee, I feel old. I bought a computer when 20 meg drive was a big deal.

  • I am having a big problem need help

    I can't set up my email in my mac mail... I posted my question here.. https://discussions.apple.com/message/21560797#21560797
    And by mistake clicked on my own reply that it solved my problem and it did not, how do I undo it.. please help!

    You cannot change points awarded in error.   But don't be too concerned, if you explain as you have most people will know the intention was there.   In any event most of us are just happy to help.

  • URGENT BIG PROBLEM NEEDING EXPERT!

    Hey,
    I recently bought a ipod mini 4gen 4gb, and when i received It I onlu had a Windows ME computer, when i received it it wasnt charged so I pluged it in my windows ME computer and a screen came up asking me to reformate drive, not paying attention I did. Now every time I open Ipod a file icon with an exclamation make apeared then the ipod shuts down. I asked arround and people said that I need to restore it, So i went to a windows XP computer, installed the software and restored it,
    when it was done being restored it asked me to plug it into the portable firewire. Now every time i open my ipod, instead of having the file icon with a exclamation mark theres a picture of a wall plug, and an arrow to show something being plugged, someone told me it was portatif firewire, which wasnt included in the ipod.
    I tried calling tech support but since i bought ipod on ebay the warranty was over and its 59$ for a question
    please help me this is pretty bad and I can only access windows XP computer on weekends so please help me before weeken ends!

    alex,
    The first generation mini came supplied with a power adapter as standard. One of the reasons it did, was that when you restore the iPod's software via a usb connection, then you need to plug the iPod into a wall outlet via the adapter to complete the process. Hence the picture you are seeing on the iPod's screen.
    There is no way around this.
    Perhaps you should contact the seller and ask why it was sold without the charger?
    And btw, it's not a 4th gen as you incorrectly stated in your OP.

  • Week Old MacBook, Big Problem need help fast!!

    Well im on my Macbook tonight and i get a message about a new softwhare update so i go ahead and instal it. Then it tells me to restart my comp so i do and as it boots up my screan goes blue and nothing happens. Its just blue. I shut it down and restart it and same thing only this time its goes from blue to a black screan. And jsut my luck its 11:30 at night so i cant call mac. Im pretty peturbed that this would happen to a less than a week old Macbook. Please help me. THanks
    MacBook   Mac OS X (10.4.7)  

    Hey Damasta,
    Sorry to hear about your problem... If you do a search in the forum, there are many posts on the subject.
    If you have an Apple Store in town, take it to a "genius" so they can take a look at it.
    Here's a link to some threads on the subject:
    http://discussions.apple.com/search.jspa?threadID=&q=won%27tboot+afterupdate&objID=&dateRange=last90days&userID=&numResults=15&rankBy=10001
    MacMini G4 1.42 GHz, IBook G4 1.42 GHz, MacBook 2 GHz 2GB RAM   Mac OS X (10.4.6)  

  • Big problem; Need to know if it's possible to recover my iTunes library

    Well, I just recently got an iPod and started using iTunes. I didn't really have a huge library but I had recently purchased around 50 songs. My hard drive crashed on me a few days ago and I wasn't able to recover anything from it because it was unable to be read by any computer I hooked it up to.
    So basically, my iTunes and everything is gone now and I hadn't yet backed it up (was planning to do that this weekend once I purchased a couple more songs), and I was just wondering if there's any way for me to recover my library and songs that I had. (at least maybe my purchased ones?)

    Sure, in itunes 7 and later, you can transfer purchases from an iPod back to a PC after that PC has been authorized for itunes.
    http://support.apple.com/kb/HT1848

  • I have big problems with mountain lion. you can not have a boot disk system I resulted in the need to re-download the os from scratch impiegandoci 8 hours, it is outrageous even with windows 95.

    I have big problems with mountain lion. you can not have a boot disk system I resulted in the need to re-download the os from scratch impiegandoci 8 hours, it is outrageous even with windows 95.
    at least that the operator has confirmed to me that he called me. I also have problems with either the start of the mac with the power off. I can not understand if it crashes or is just very very slow.
    Finally, I have a problem with the external hard disck. I often said to have been ejected incorrectly (not true) and I start to restore the startup recovery disk because disk utility is ineffective from the normal operating system .. is a shocking thing, but how you reduced. in four years it had never happened. seem to have windows or worse. Wake up.
    I am an Italian, alas, and then I would like an answer to my language because my € are the same as German French or English.

    You are on Windows 2000, you do not have a "Firefox" button, and should consider yourself to be fortunate in that you still have menus and don't have to do anything to get the menus back instead of the "Firefox" button. (The same applies to Windows XP users).
    Use the "File" menu to get to Import. You are not on Windows 7 or Vista, and don't have to put up with the nonsense added for Aero.
    If you want the "Firefox" button you can get it with View -> toolbars -> (uncheck) Menu Bar. The menu bar and the "Firefox" button were supposed to be mutually exclusive (which is impossible in some cases without being incompatible).
    Once you are using the "Firefox" button ...
    Use the "Alt" key to view the menu bar (temporarily) containing File, Edit, View, History, Bookmarks, Tools, and Help. On Windows 7 and Vista, the menu bar was hidden by default in Firefox 4 and above. These menu items are more or less available under the "Firefox" button which has the most used of the built-in Firefox menu items available in a different format.
    To get back to having menus again. "Firefox" button -> Options (second column) -> (check) Menu Bar
    You can make '''Firefox 7.0.1''' look like Firefox 3.6.*, see numbered '''items 1-10''' in the following topic [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface Fix Firefox 4.0 toolbar user interface, problems (Make Firefox 4.0 thru 8.0, look like 3.6)]. ''Whether or not you make changes, you should be aware of what has changed and what you have to do to use changed or missing features.''
    * http://dmcritchie.mvps.org/firefox/firefox-problems.htm#fx4interface

  • I HAVE A BIG PROBLEM I HAVE NOT BEEN ABLE TO RECOVER THE ANSWERS OF SECURITY SINCE THE MAIL THAT APPEARS TO DO THIS MEAN I NEED TO CHANGE THE OTHER SHOULD I DO FOR THE TRUTH WILL MAKE A PURCHASE AND ME THE REQUESTS, AS IS A NEW PHONE EXPECT AN ANSWER

    I HAVE A BIG PROBLEM I HAVE NOT BEEN ABLE TO RECOVER THE ANSWERS OF SECURITY SINCE THE MAIL THAT APPEARS TO DO THIS MEAN I NEED TO CHANGE THE OTHER SHOULD I DO FOR THE TRUTH WILL MAKE A PURCHASE AND ME THE REQUESTS, AS IS A NEW PHONE EXPECT AN ANSWER PROMPT AND POSITIVE
    so I get looks but that is not my email recovery can help you reset your security information by sending a message to your email recovery: j ••••• @ mail.com

    You need to ask Apple to reset your security questions; this can be done by clicking here and picking a method, or if your country isn't listed, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (111384)

  • Hi everybody, I am in Turkey on a long assignment, I need help solving a big problem on my macbook pro os 10.9.3. The other week my wife visited some website and now we have a redirect virus of some sort, and every other time when we click

    Hi everybody, I am in Turkey on a long assignment, I need help solving a big problem on my macbook pro os 10.9.3. The other week my wife visited some website and now we have a redirect virus of some sort, and every other time when we click on a link or anywhere on the page we are redirected to this casino web site, https://casino.7bets10.com/tr/?from=hy9yKXD43jSC-8Oxbw4femNd7ZgqdRLk-dHJpeG9uaXR l. Its the same whether on Chrome or Safari. Does anyone have a solution, thank you!

    1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.
    Don't be put off merely by the seeming complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.
    2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.
    There are ways to back up a computer that isn't fully functional. Ask if you need guidance.
    3. Below are instructions to run a UNIX shell script, a type of program. All it does is to collect information about the state of the computer. That information goes nowhere unless you choose to share it. However, you should be cautious about running any kind of program (not just a shell script) at the behest of a stranger. If you have doubts, search this site for other discussions in which this procedure has been followed without any report of ill effects. If you can't satisfy yourself that the instructions are safe, don't follow them. Ask for other options.
    Here's a summary of what you need to do, if you choose to proceed:
    Copy a line of text in this window to the Clipboard.
    Paste into the window of another application.
    Wait for the test to run. It usually takes a few minutes.
    Paste the results, which will have been copied automatically, back into a reply on this page.
    The sequence is: copy, paste, wait, paste again. You don't need to copy a second time. Details follow.
    4. You may have started the computer in "safe" mode. Preferably, these steps should be taken in “normal” mode, under the conditions in which the problem is reproduced. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual. If you can only test in safe mode, do that.
    5. If you have more than one user, and the one affected by the problem is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.
    6. The script is a single long line, all of which must be selected. You can accomplish this easily by triple-clicking anywhere in the line. The whole line will highlight, though you may not see all of it in the browser window, and you can then copy it. If you try to select the line by dragging across the part you can see, you won't get all of it.
    Triple-click anywhere in the line of text below on this page to select it:
    PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/libexec;clear;cd;p=(Software Hardware Memory Diagnostics Power FireWire Thunderbolt USB Fonts 51 4 1000 25 5120 KiB/s 1024 85 \\b%% 20480 1 MB/s 25000 ports ' \*AutoCad \*dropbox \*GoogleDr\* vidinst\* ' DYLD_INSERT_LIBRARIES\ DYLD_LIBRARY_PATH -86 ` route -n get default|awk '/e:/{print $2}' ` 25 N\\/A down up 102400 25600 recvfrom sendto CFBundleIdentifier 25 25 25 1000 MB com.apple.AirPortBaseStationAgent 464843899 );N5=${#p[@]};p[N5]=` networksetup -listnetworkserviceorder|awk ' NR>1 { sub(/^\([0-9]+\) /,"");n=$0;getline;} $NF=="'${p[26]}')" { sub(/.$/,"",$NF);print n;exit;} ' `;f=('\n%s: %s\n' '\n%s\n\n%s\n' '\nRAM details\n%s\n' %s\ %s '%s\n-\t%s\n' );S0() { echo ' { q=$NF+0;$NF="";u=$(NF-1);$(NF-1)="";gsub(/^ +| +$/,"");if(q>='${p[$1]}') printf("%s (UID %s) is using %s '${p[$2]}'",$0,u,q);} ';};s=(' /^ *$|CSConfigDot/d;s/^ */  /;s/[-0-9A-Fa-f]{22,}/UUID/g;s/(ochat)\.[^.]+(\..+)/\1\2/;/Shared/!s/\/Users\/[^/]+/~/g ' ' s/^ +//;5p;6p;8p;12p;' ' {sub(/^ +/,"")};NR==6;NR==13&&$2<'${p[10]} ' 1s/://;3,6d;/[my].+:/d;s/^ {4}//;H;${ g;s/\n$//;/s: [^EO]|x([^08]|02[^F]|8[^0])/p;} ' ' 5h;6{ H;g;/P/!p;} ' ' ($1~/^Cy/&&$3>'${p[11]}')||($1~/^Cond/&&$2!~/^N/) ' ' /:$/{ N;/:.+:/d;s/ *://;b0'$'\n'' };/^ *(V.+ [0N]|Man).+ /{ s/ 0x.... //;s/[()]//g;s/(.+: )(.+)/ (\2)/;H;};$b0'$'\n'' d;:0'$'\n'' x;s/\n\n//;/Apple[ ,]|Intel|SMSC/d;s/\n.*//;/\)$/p;' ' s/^.*C/C/;H;${ g;/No th|pms/!p;} ' '/= [^GO]/p' '{$1=""};1' ' /Of/!{ s/^.+is |\.//g;p;} ' ' $0&&!/ / { n++;print;} END { if(n<200) print "com.apple.";} ' ' $3~/[0-9]:[0-9]{2}$/ { gsub(/:[0-9:a-f]{14}/,"");} { print|"tail -n'${p[12]}'";} ' ' NR==2&&$4<='${p[13]}' { print $4;} ' ' END { $2/=256;if($2>='${p[15]}') print int($2) } ' ' NR!=13{next};{sub(/[+-]$/,"",$NF)};'"`S0 21 22`" 'NR!=2{next}'"`S0 37 17`" ' NR!=5||$8!~/[RW]/{next};{ $(NF-1)=$1;$NF=int($NF/10000000);for(i=1;i<=3;i++){$i="";$(NF-1-i)="";};};'"`S0 19 20`" 's:^:/:p' '/\.kext\/(Contents\/)?Info\.plist$/p' 's/^.{52}(.+) <.+/\1/p' ' /Launch[AD].+\.plist$/ { n++;print;} END { print "'${p[41]}'";if(n<200) print "/System/";} ' '/\.xpc\/(Contents\/)?Info\.plist$/p' ' NR>1&&!/0x|\.[0-9]+$|com\.apple\.launchctl\.(Aqua|Background|System)$|'${p[41]}'/ { print $3;} ' ' /\.(framew|lproj)|\):/d;/plist:|:.+(Mach|scrip)/s/:[^:]+//p ' '/root/p' ' !/\/Contents\/.+\/Contents|Applic|Autom|Frameworks/&&/Lib.+\/Info.plist$/ { n++;print;} END { if(n<1000) print "/System/";} ' '/^\/usr\/lib\/.+dylib$/p' ' /Temp|emac/ { next;} /(etc|Preferences|Launch[AD].+)\// { sub(".(/private)?","");n++;print;} END { print "'${p[41]}'.plist\t'${p[42]}'";if(n<500) print "Launch";} ' ' /\/(Contents\/.+\/Contents|Frameworks)\/|\.wdgt\/.+\.([bw]|plu)/d;p;' 's/\/(Contents\/)?Info.plist$//;p' ' { gsub("^| |\n","\\|\\|kMDItem'${p[35]}'=");sub("^...."," ") };1 ' p '{print $3"\t"$1}' 's/\'$'\t''.+//p' 's/1/On/p' '/Prox.+: [^0]/p' '$2>'${p[9]}'{$2=$2-1;print}' ' BEGIN { i="'${p[26]}'";M1='${p[16]}';M2='${p[18]}';M3='${p[31]}';M4='${p[32]}';} !/^A/ { next;} /%/ { getline;if($5<M1) a="user "$2"%, system "$4"%";} /disk0/&&$4>M2 { b=$3" ops/s, "$4" blocks/s";} $2==i { if(c) { d=$3+$4+$5+$6;next;};if($4>M3||$6>M4) c=int($4/1024)" in, "int($6/1024)" out";} END { if(a) print "CPU: "a;if(b) print "I/O: "b;if(c) print "Net: "c" (KiB/s)";if(d) print "Net errors: "d" packets/s";} ' ' /r\[0\] /&&$NF!~/^1(0|72\.(1[6-9]|2[0-9]|3[0-1])|92\.168)\./ { print $NF;exit;} ' ' !/^T/ { printf "(static)";exit;} ' '/apsd|OpenD/!s/:.+//p' ' (/k:/&&$3!~/(255\.){3}0/ )||(/v6:/&&$2!~/A/ ) ' ' $1~"lR"&&$2<='${p[25]}';$1~"li"&&$3!~"wpa2";' ' BEGIN { FS=":";} { n=split($3,a,".");sub(/_2[01].+/,"",$3);print $2" "$3" "a[n]" "$1;b=b$1;} END { if(b) print("\n\t* Code injection");} ' ' NR!=4{next} {$NF/=10240} '"`S0 27 14`" ' END { if($3~/[0-9]/)print$3;} ' ' BEGIN { L='${p[36]}';} !/^[[:space:]]*(#.*)?$/ { l++;if(l<=L) f=f"\n  "$0;} END { F=FILENAME;if(!F) exit;if(!f) f="\n  [N/A]";"file -b "F|getline T;if(T!~/^(AS.+ (En.+ )?text$|POSIX sh.+ text ex)/) F=F" ("T")";printf("\nContents of %s\n%s\n",F,f);if(l>L) printf("\n  ...and %s more line(s)\n",l-L);} ' ' /^ +[NP].+ =/h;/^( +D.+[{]|[}])/{ g;s/.+= //p;};' ' /^ +B/{ s/.+= |(-[0-9]+)?\.s.+//g;p;} ' ' END{print NR} ' ' /id: N|te: Y/{i++} END{print i} ' ' / / { print "'"${p[28]}"'";exit;};1;' '/ en/!s/\.//p' ' NR!=13{next};{sub(/[+-M]$/,"",$NF)};'"`S0 39 40`" ' $10~/\(L/&&$9!~"localhost" { sub(/.+:/,"",$9);print $1": "$9;} ' '/^ +r/s/.+"(.+)".+/\1/p' 's/(.+\.wdgt)\/(Contents\/)?Info\.plist$/\1/p' 's/^.+\/(.+)\.wdgt$/\1/p' 's/0/Off/p' );c1=(system_profiler pmset\ -g nvram fdesetup find syslog df vm_stat sar ps sudo\ crontab sudo\ iotop top pkgutil PlistBuddy whoami cksum kextstat launchctl sudo\ launchctl crontab 'sudo defaults read' stat lsbom mdfind ' for i in ${p[24]};do ${c1[18]} ${c2[27]} $i;done;' defaults\ read scutil sudo\ dtrace sudo\ profiles sed\ -En awk /S*/*/P*/*/*/C*/*/airport networksetup mdutil sudo\ lsof test );c2=(com.apple.loginwindow\ LoginHook '-c Print /L*/P*/loginw*' '-c Print L*/P*/*loginit*' '-c Print L*/Saf*/*/E*.plist' '~ $TMPDIR.. \( -flags +sappnd,schg,uappnd,uchg -o ! -user $UID -o ! -perm -600 \)' '.??* -path .Trash -prune -o -type d -name *.app -print -prune' '-c Print\ :'${p[35]}' 2>&1' '-c Print\ :Label 2>&1' '{/,}L*/{Con,Pref}* -type f ! -size 0 -name *.plist -exec plutil -s {} \;' "-f'%N: %l' Desktop L*/Keyc*" therm sysload boot-args status " -F '\$Time \$Message' -k Sender kernel -k Message Req 'bad |Beac|caug|dead[^bl]|FAIL|fail|GPU |hfs: Ru|inval|jnl:|last value [1-9]|n Cause: -|NVDA\(|pagin|proc: t|Roamed|rror|ssert|Thrott|tim(ed? ?|ing )o|WARN' -k Message Rne 'Goog|ksadm|SMC:' -o -k Sender fseventsd -k Message Req 'SL' " '-du -n DEV -n EDEV 1 10' 'acrx -o comm,ruid,%cpu' '-t1 10 1' '-f -pfc /var/db/r*/com.apple.*.{BS,Bas,Es,J,OSXU,Rem,up}*.bom' '{/,}L*/Lo*/Diag* -type f -regex .\*[cgh] ! -name *ag \( -exec grep -lq "^Thread c" {} \; -exec printf \* \; -o -true \) -execdir stat -f:%Sc:%N -t%F {} \;|sort -t: -k2 |tail -n'${p[38]} '-L {/{S*/,},}L*/Lau* -type f' '-L /{S*/,}L*/StartupItems -type f -exec file {} +' '-L /S*/L*/{C*/Sec*A,E}* {/,}L*/{A*d,Ca*/*/Ex,Compon,Ex,In,iTu,Keyb,Mail/B,P*P,Qu*T,Scripti,Sec,Servi,Spo,Widg}* -type f -name Info.plist' '/usr/lib -type f -name *.dylib' `awk "${s[31]}"<<<${p[23]}` "/e*/{auto,{cron,fs}tab,hosts,{[lp],sy}*.conf,pam.d/*,ssh{,d}_config,*.local} {,/usr/local}/etc/periodic/*/* /L*/P*{,/*}/com.a*.{Bo,sec*.ap}*t /S*/L*/Lau*/*t .launchd.conf" list getenv /Library/Preferences/com.apple.alf\ globalstate --proxy '-n get default' -I --dns -getdnsservers\ "${p[N5]}" -getinfo\ "${p[N5]}" -P -m\ / '' -n1 '-R -l1 -n1 -o prt -stats command,uid,prt' '--regexp --only-files --files com.apple.pkg.*|sort|uniq' -kl -l -s\ / '-R -l1 -n1 -o mem -stats command,uid,mem' -i4TCP:0-1023 com.apple.dashboard\ layer-gadgets '-d /L*/Mana*/$USER&&echo On' '-app Safari WebKitDNSPrefetchingEnabled' );N1=${#c2[@]};for j in {0..8};do c2[N1+j]=SP${p[j]}DataType;done;N2=${#c2[@]};for j in 0 1;do c2[N2+j]="-n ' syscall::'${p[33+j]}':return { @out[execname,uid]=sum(arg0) } tick-10sec { trunc(@out,1);exit(0);} '";done;l=(Restricted\ files Hidden\ apps 'Elapsed time (s)' POST Battery Safari\ extensions Bad\ plists 'High file counts' User Heat System\ load boot\ args FileVault Diagnostic\ reports Log 'Free space (MiB)' 'Swap (MiB)' Activity 'CPU per process' Login\ hook 'I/O per process' Mach\ ports kexts Daemons Agents launchd Startup\ items Admin\ access Root\ access Bundles dylibs Apps Font\ issues Inserted\ dylibs Firewall Proxies DNS TCP/IP Wi-Fi Profiles Root\ crontab User\ crontab 'Global login items' 'User login items' Spotlight Memory Listeners Widgets Parental\ Controls Prefetching );N3=${#l[@]};for i in 0 1 2;do l[N3+i]=${p[5+i]};done;N4=${#l[@]};for j in 0 1;do l[N4+j]="Current ${p[29+j]}stream data";done;A0() { id -G|grep -qw 80;v[1]=$?;((v[1]==0))&&sudo true;v[2]=$?;v[3]=`date +%s`;clear >&-;date '+Start time: %T %D%n';};for i in 0 1;do eval ' A'$((1+i))'() { v=` eval "${c1[$1]} ${c2[$2]}"|'${c1[30+i]}' "${s[$3]}" `;[[ "$v" ]];};A'$((3+i))'() { v=` while read i;do [[ "$i" ]]&&eval "${c1[$1]} ${c2[$2]}" \"$i\"|'${c1[30+i]}' "${s[$3]}";done<<<"${v[$4]}" `;[[ "$v" ]];};A'$((5+i))'() { v=` while read i;do '${c1[30+i]}' "${s[$1]}" "$i";done<<<"${v[$2]}" `;[[ "$v" ]];};';done;A7(){ v=$((`date +%s`-v[3]));};B2(){ v[$1]="$v";};for i in 0 1;do eval ' B'$i'() { v=;((v['$((i+1))']==0))||{ v=No;false;};};B'$((3+i))'() { v[$2]=`'${c1[30+i]}' "${s[$3]}"<<<"${v[$1]}"`;} ';done;B5(){ v[$1]="${v[$1]}"$'\n'"${v[$2]}";};B6() { v=` paste -d: <(printf "${v[$1]}") <(printf "${v[$2]}")|awk -F: ' {printf("'"${f[$3]}"'",$1,$2)} ' `;};B7(){ v=`grep -Fv "${v[$1]}"<<<"$v"`;};C0(){ [[ "$v" ]]&&echo "$v";};C1() { [[ "$v" ]]&&printf "${f[$1]}" "${l[$2]}" "$v";};C2() { v=`echo $v`;[[ "$v" != 0 ]]&&C1 0 $1;};C3() { v=`sed -E "$s"<<<"$v"`&&C1 1 $1;};for i in 1 2;do for j in 2 3;do eval D$i$j'(){ A'$i' $1 $2 $3; C'$j' $4;};';done;done;{ A0;A2 0 $((N1+1)) 2;C0;A1 0 $N1 1;C0;B0;C2 27;B0&&! B1&&C2 28;D12 15 37 25 8;A1 0 $((N1+2)) 3;C0;D13 0 $((N1+3)) 4 3;D23 0 $((N1+4)) 5 4;for i in 0 1 2;do D13 0 $((N1+5+i)) 6 $((N3+i));done;D13 1 10 7 9;D13 1 11 8 10;D22 2 12 9 11;D12 3 13 10 12;D23 4 19 44 13;D23 5 14 12 14;D22 6 36 13 15;D22 7 37 14 16;D23 8 15 38 17;D22 9 16 16 18;B1&&{ D22 11 17 17 20;for i in 0 1;do D22 28 $((N2+i)) 45 $((N4+i));done;};D22 12 44 54 45;D22 12 39 15 21;A1 13 40 18;B2 4;B3 4 0 19;A3 14 6 32 0;B4 0 5 11;A1 17 41 20;B7 5;C3 22;B4 4 6 21;A3 14 7 32 6;B4 0 7 11;B3 4 0 22;A3 14 6 32 0;B4 0 8 11;B5 7 8;B1&&{ A2 19 26 23;B7 7;C3 23;};A2 18 26 23;B7 7;C3 24;A2 4 20 21;B7 6;B2 9;A4 14 7 52 9;B2 10;B6 9 10 4;C3 25;D13 4 21 24 26;B4 4 12 26;B3 4 13 27;A1 4 22 29;B7 12;B2 14;A4 14 6 52 14;B2 15;B6 14 15 4;B3 0 0 30;C3 29;A1 4 23 27;B7 13;C3 30;D13 24 24 32 31;D13 25 37 32 33;A2 23 18 28;B2 16;A2 16 25 33;B7 16;B3 0 0 34;B2 21;A6 47 21&&C0;B1&&{ D13 21 0 32 19;D13 10 42 32 40;D22 29 35 46 39;};D13 14 1 48 42;D12 34 43 53 44;D22 0 $((N1+8)) 51 32;D13 4 8 41 6;D12 26 28 35 34;D13 27 29 36 35;A2 27 32 39&&{ B2 19;A2 33 33 40;B2 20;B6 19 20 3;};C2 36;D23 33 34 42 37;B1&&D23 35 45 55 46;D23 32 31 43 38;D12 36 47 32 48;D13 20 42 32 41;D13 14 2 48 43;D13 4 5 32 1;D22 4 4 50 0;D13 14 3 49 5;D12 26 48 59 49;B3 4 22 57;A1 26 46 56;B7 22;B3 0 0 58;C3 47;D23 22 9 37 7;A7;C2 2;} 2>/dev/null|pbcopy;exit 2>&-
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    7. Launch the built-in Terminal application in any of the following ways:
    Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Click anywhere in the Terminal window and paste by pressing command-V. The text you pasted should vanish immediately. If it doesn't, press the return key.
    8. If you see an error message in the Terminal window such as "syntax error," enter
    exec bash
    and press return. Then paste the script again.
    9. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. In most cases, the difference is not important. If you don't know the password, or if you prefer not to enter it, press the key combination control-C or just press return three times at the password prompt. Again, the script will still run.
    If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.
    10. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, there will be nothing in the Terminal window and no indication of progress. Wait for the line
    [Process completed]
    to appear. If you don't see it within half an hour or so, the test probably won't complete in a reasonable time. In that case, close the Terminal window and report the results. No harm will be done.
    11. When the test is complete, quit Terminal. The results will have been copied to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.
    At the top of the results, there will be a line that begins with the words "Start Time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.
    If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.
    12. When you post the results, you might see the message, "You have included content in your post that is not permitted." It means that the forum software has misidentified something in the post as a violation of the rules. If that happens, please post the test results on Pastebin, then post a link here to the page you created.
    Note: This is a public forum, and others may give you advice based on the results of the test. They speak only for themselves, and I don't necessarily agree with them.
    Copyright © 2014 by Linc Davis. As the sole author of this work, I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

  • Hi, I got a big problem. I restored my mac and after I erased everything and started to restall the system, it showed I need to give the apple ID that was purchased the lion. The problem is that I lost my CD, and I don't have an ID with lion purchased

    Hi, I got a big problem. I restored my macbook pro and after I erased everything and started to restall the system, it showed I need to give the apple ID that was purchased the lion. The problem is that I lost my installing CD, and I don't have an ID with lion purchased, so what should I do? Do you sell the system software?

    This is a user forum; we're not  Apple. 
    Please contact the Apple Support folks directly for issues related to hardware and software purchases.
    The particular model of MacBook Pro is a key detail here, as the Mac model will determine the oldest version it can boot, as well as whether it'll boot more current software.
    AFAIK there is and was no Lion installer DVD available.  It was a download.  AFAIK, the last DVDs commonly available were for Snow Leopard 10.6.  Snow Leopard DVDs are still available in the Apple online store in various countries, if your MacBook Pro is old enough to be able to boot that version.
    If your MacBook Pro purchase with Lion wasn't registered with Apple, then you'll have to discuss this directly with the Apple Support folks, or repurchase Lion from the Mac App Store (which will usually involve a call to Apple for a redemption code as it's old software), or you'll "purchase" (it's free) Mavericks OS X 10.9 and wipe and install that assuming your MacBook Pro supports Mavericks.  If you didn't purchase the MacBook Pro from Apple (and it was shipped with an older release), then you'll end up acquiring a redemption code from Apple for Lion, or installing Mavericks.
    For completeness and given you're probably already aware of this, the usual approach for restoration with recent OS X versions is via the recovery boot (more details).  If the disk is wiped and you can't get Lion, then you'll probably end up reinstalling with Target Disk Mode using another Mac with a compatible FireWire or Thunderbolt port and a cable.  Or visit the local Apple Store.
    sputniki: Once OS X 10.7 or 10.9 has been reinstalled, yes, getting Time Machine configured and going is undoubtedly on the agenda.  But had there been a viable backup here, I expect jianghua would have used it.

  • Having big problems with Creative Zen Micro Photo!! I need much urgent help!

    Hi. I am having a big problem with my MP3 Creative Zen Micro Photo device at the computer.Here is the thing:Before I bought this I had the regular Zen Micro & having fun with it. I had no problems with that when I used the Media Explorer to transfer songs. So I bought the Zen Micro Photo & installed it my computer. As normal I used the Media Explorer to transfer songs & pictures.So I reinstalled Windows XP at my computer, and when I installed the CD that followed to transfer new songs, the Windows said that it's an unknown thing I have connected in the USB.So I installed Service Pack & 2. I have tried to install drivers from the cd but it seems that there are no drivers on the cd! The big problem is that when I connect the MP3 to the computer, it doesn't read it's a Zen Micro, it's just unknown! So the Zen Micro Photo Media Explorer program doesn't work & I can't transfer songs or picture on it! And it just happened after I re-installed Windows on my computer. The same thing happened on my brother's computer after he re-installed windows. And when I connect the MP3 to the USB, it says that it's not a USB 2.0, but .! And I am sure it is 2.0 because it has always been like that before I re-installed windows. Also the MP3 does not re-charge when I put it my computer! The battery is just the same, it tries to do it but it doesn't. So I am using my sisters computer to charge the MP3 & transfer songs. I have tried everything but I can't seem to understand what the problem is? I have never experienced something like this before, and I really hope you can help me with this! To be honest I think what I am missing is the driver. So can someone PLEASE provide me the link for the driver? I have downloaded all those 3 on www.creative.com, but they are none of them! Also that playforsure firmawre thingy does not work because it sais that I have to connect my MP3, and it is connected already!Please reply as quick as possible! Thanks a lot for you kind help!
    I have also sent this mail to creative support! But please help me I have had this problem for almost 2 months now! =(Message Edited by anakwalajinn on 05-0-2006 08:47 PM

    Might try this:? http://forums.creative.com/creativel...mp=true#M95059

  • I need help please!  Can pictures get on your icloud other ways?  Can something be put on there by someone other than yourself, liked public wifi or hacked?  Got a big problem h some **** on an iPod and I am to knowledgeble about the ipod...thanks

    .         Can pictures get on your icloud other ways?  Can something be put on there by someone other than yourself, liked public wifi or hacked?  Got a big problem with some **** on an iPod and I am to knowledgeble about the ipod...thanks

    You're not confusing this with a shared Photo Stream...?
    Because the short answer is no, photos don't appear unless they were put there by someone with your Apple ID credentials. To rule out that possibility, change your Apple ID password by carefully following all these instructions:
    iCloud: Change your iCloud account password
    If you decide to change your password, and you also want to change your Apple ID, I recommend you do not concurrently change your Apple ID until sufficient time has passed and you are confident the password change has been effected on all your iOS devices. 24 hours ought to be more than enough.
    It is not necessary to change your Apple ID unless it is an email address you no longer wish to use.

  • One Apple ID two phones big problem.

    Hi guys,
    Before 6 months I bought new Iphone 4s,but it was used one day from person who sell it to me, so it already has Apple id.
    I deleted user and created my user which was synced with iCloud and worked without any problem.
    Before 10 I bought Iphone 5, also created my Apple ID on it and sync with my PC/ iCloud.
    Yesterday I want to sell my first Iphone 4 and I did reset ( Erase all content and setting), but it did not want to wake up, so i started it with DFU mode using I tunes, and I did restore and update.
    Now I am facing to bit problem, on the begging steps it says something like "this apple id cannot be used to unlock this iphone".
    If I go to iCloud I can see only one device and currently its new iPhone 5, but both devices called with same name, so I am not sure is this problem.
    So I have two doubts:
    - I am not sure does SIM card can make this problem(on initiation phase you have to put sim in Iphone), because main is much smaller now so I using my wife SIM to finis registration Iphone 4 (iPhone 5 using smaller than iPhone4)?
    - another thing It says you have to "use original apple id..", like I sad on the beginning when i bought Iphone4 it already has apple id on it, which I was deleted and configure main (afterwards this device was visible on my iCloud). So do I need to put first creaded apple id, does iPhone remembering first created or last used. If yes I have big problem because I dont have contact of user who sell it to me.
    I want to add one thing, Iphone is not stolen I have warranty documentations and all profs that is not stolen.
    PLEASE HELP, in my country we have awful support !

    Just left the Apple store with an official answer.  You can have two phones one Apple ID, turn off auto updates so you don't automatically get apps on both phones. Then you need two different iCloud accounts.

  • Problems in SQL Query

    Dear All,
    I am having some problem in SQL query. I am trying to get total sum of one inventory using the following query it works fine:
    sum(case when mt.transaction_quantity > 0 then (mt.transaction_quantity) else 0 end) "TOT_IN"
    ,sum(case when mt.transaction_quantity >= 0 then 0 else (abs(mt.transaction_quantity)) end) "TOT_OUT"
    But when I breakup the total sum into monthly breakup it fails to return the correct some could any one help what is wrong in the following query which is returning incorrect monthly sum. Following is that query. Your help in this regard would highly be appreciated.
    sum(case when mt.transaction_quantity > 0 then (decode (floor (floor (to_date('17-MAR-2009')- mt.transaction_date) / 30), 0, mt.transaction_quantity, null)) else 0 end) "MONTH1_IN"
    ,sum(case when mt.transaction_quantity >= 0 then 0 else (decode (floor (floor (to_date('17-MAR-2009')- mt.transaction_date) / 30), 0, abs(mt.transaction_quantity), null)) end) "MONTH1_OUT"
    Thanks

    Hi,
    Sorry, I don't really understand what you want.
    Whenever you have a question, it helps to post:
    (1) The version of Oracle (and any other relevant software) you're using
    (2) A little sample data (just enough to show what the problem is) from all the relevant tables
    (3) The results you want from that data
    (4) Your best attempt so far (formatted)
    (5) The full error message (if any), including line number
    Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
    If you can present your problem using commonly available tables (for example, tables in scott schema, or views in the data dictionary), then you can omit (2).
    Formatted tabular output is okay for (3). Type these 6 characters
    &#123;code&#125;
    (small letters only, inside curly brackets) before and after the tabular text, to preserve spacing.
    What exactly do you mean by "monthly breakup"?
    If you want separate figures for each calendar month, Blushadow's suggestion (TRUNC (mt.transaction_date, 'MM')) is what you want.
    If you want separate figures for the last 30 days before today, then something like what you posted ("FLOOR ((:target_date - mt.transaction_date) / 30)": the extra FLOOR doesn't help any) should work, so if you ran the query on March 17, 2009, the first "month" would be February 16 through March 17.
    In a CASE statement, there's rarely any need to use DECODE. The following is equivalent to the last line of code you posted:
    ,       SUM ( CASE
                WHEN  mt.transaction_quantity >= 0
                THEN  0
                WHEN  TO_DATE ('17-MAR-2009', 'DD-MON-YYYY') - mt.transaction_date
                        BETWEEN 0
                        AND     29.99999  -- 30 days minus a fraction of a second
                THEN  ABS (mt.transaction_quantity)
               END
             )          AS month1_outDon't you find this easier to understand (and debug)?

  • Strange problem in a query

    Hello all,
    I'm facing a non-sense problem in a query, I hope you could help me.
    I have defined a structure in the rows of my query. Inside the structure, I have defined several selections and formulas. Selections are basically account intervals and formulas are additions of some selections.
    Some formulas are correct, adding amounts properly but others aren't. Instead of the addition, a * appears.
    Even if I copy and paste now one correct formula and show both in the execution, the first one appears correctly and the second one shows a *. How is it possible?
    I need some suggestions about what to do. Thank you in advance. I will assign points.

    Thank you for your answers!
    I have followed Mustafa advice in SPRO and now I don't see any *.
    But there is a thing I can't understand now. As said before, I created a formula based on selections and it shows correctly the amount and the unit.
    Then I have copied the formula and pasted after the first one. Both of them show the same value but only the first one is showing the amount.
    What do you think? How is it possible if both have been defined identically?

Maybe you are looking for

  • Report SDK roadmap or workarounds?

    Hi, my company ships a metadata-driven 3rd-party application which creates and manages universes and WebI reports.  We're finally starting to get customer interest in upgrading to BOBJ BI 4.0, so our next release will support that.  Like a lot of oth

  • Displaying images in ADF Table

    I have a column in table of type blob. I created entity and view against it. In view type of attribute is blobdomain (by default). Now when i drop that view on form to create table, it places control inputText for blob. I want to ask how i can displa

  • Dazzle for Mac... In Italy...

    Hi everyone. I want to record my TV screen while playing videogames such as Wii and Xbox 360. I saw a few days ago that the most convenient solution is buying a Dazzle for Mac. It would work fine for me, if i'd live in USA... Can anyone help me find

  • RWB not in SLD

    Hi guys, I am facing the following problem in a new PI 7.01 installation (be careful the PI version is 7.01 not 7.1). According to the Readiness Check guide everything seems to be working fine, but the RWB is not registered itself in the SLD, under t

  • Open a new window after clicking on a tab(workset)

    hi, i am creating 1 application in EP using PDK. m using jspdynpage for tht. what i want is when user clicks on a certain workset tab, a new window shud get open without taskbar,statusbar and without any toolbar (just like the window which gets opene