Ora-00911 can someone help me
SELECT
(to_char(RLT.DATEFR,'DD-Mon-YYYY') || CHR(13) || ' To ' || CHR(13) || to_char(RLT.DATETO,'DD-Mon-YYYY') ) AS DATECOVERED,
RLT.CHKNO,
RLT.CHKDT,
RLT.RECEIVEDDT,
RLT.AMOUNT,
GEOL.PRO_NAME,
(SELECT nvl(LGUNAME,'') FROM CSRIS_LGUPROF_M WHERE
MUN=BGY.MUN AND PROV=BGY.PROV AND BRGY=BGY.BRGY AND REG=BGY.REG AND ROWNUM='1') AS BRGYDESC,
(SELECT nvl(LGUNAME,'') FROM CSRIS_LGUPROF_M WHERE
MUN=BGY.MUN AND PROV=BGY.PROV AND BRGY IS NULL AND REG=BGY.REG AND ROWNUM='1') AS MUNDESC,
(SELECT nvl(LGUNAME,'') FROM CSRIS_LGUPROF_M WHERE
MUN IS NULL AND PROV=BGY.PROV AND BRGY IS NULL AND REG=BGY.REG AND ROWNUM='1') AS PROVDESC,
(SELECT nvl(LGUNAME,'') FROM CSRIS_LGUPROF_M WHERE
MUN IS NULL AND PROV IS NULL AND BRGY IS NULL AND REG=BGY.REG AND ROWNUM='1') AS REGDESC
FROM CSRIS_RLT_M RLT
JOIN CSRIS_BGYPRF_M BGY ON RLT.BGYPRFID=BGY.BGYPRFID
JOIN CSRIS_PRJ_M PRJ ON BGY.BGYPRFID=PRJ.BGYPRFID
JOIN CSRIS_PROGMON_M PROG ON PRJ.PROGMONID=PROG.PROGMONID
JOIN GEOL_PROJECT_M GEOL ON PROG.PRO_CODE=GEOL.PRO_CODE
where RLT.RECEIVEDDT BETWEEN '01-JAN-2010' and '08-SEP-2010'
and geol.pro_code='BGPF';
ORA-00911:
invalid character
Cause: identifiers may not start with any ASCII character other than letters and numbers. $#_ are also allowed after the first character. Identifiers enclosed by doublequotes may contain any character other than a doublequote. Alternative quotes (q'#...#') cannot use spaces, tabs, or carriage returns as delimiters. For all other contexts, consult the SQL Language Reference Manual.
Action: none
Not quite sure why you're getting that error as your identifiers look ok to me.
However, I would question a couple of things in your query...
e.g. the following types of statements do nothing...
nvl(LGUNAME,'')because an empty string is NULL, so you're just saying "if it's null then make it null"
Also, rownum is a number so:
ROWNUM='1'should be:
ROWNUM=1Don't make oracle have to do extra work by implicitly converting values.
Similar Messages
-
Can Someone help with SQL for update ?
Hi,
can someone help me with this code
2 tables.
table 1 = User_master
table 2 = update_users
I need to update user_master like so...
update user_master
set status = 'I'
where user_id IN ()
problem is I have to over 10k user_id to update.
So created new table called update_users and imported all user_id's into that table.
How can I read all user_id's from that table, then update user_master status column for all
users id's found in update_users ?
I already tried this...
update p.user_id from user_master p
set status = 'I'
where user_id = (select user_id from update_users where p.user_id=user_id)
It did not work -
ERROR at line 2:
ORA-01427: single-row subquery returns more than one row
Thanks,There are no duplicates. Each user_id is unique.Are you sure? the error message indicates otherwise. You might see if the following query returns any rows;
select user_id, count(*)
from update_users
group by user_id
having count(*) > 1;Also, you might want to post the exact statement that you used to generate the error. The statement that you posted raises an error de to the syntax;
update p.user_id from user_master p
set status = 'I'
where user_id = (select user_id
from update_users
where p.user_id = user_id)
ORA-00971: missing SET keywordPerhaps you ran something like;
select * from user_master;
USER_ID STATUS
1 A
2 A
3 A
select * from update_users;
USER_ID
1
2
update user_master p
set status = 'I'
where user_id = (select user_id
from update_users
where p.user_id = user_id);
2 rows updated
select * from user_master;
USER_ID STATUS
1 I
2 I
3 A -
My query is slow can someone help me how to make it fast
My query runs so slow and it does not not ever finish processing. it pops up an error message. can someone help me here
SQL> set autotrace on
SQL> select c.iplineno, c.bidprice, b.vendor, v.vnamel,l.lcontid, t.datelet, func_get_county_name (ccnty1) county, e.iplineno,sum(e.iqty)
2 from bidtabs c, bidders b, vendor v, letprop l, bidlet t, proposal p, propproj x, project pr,estcatg g, estitem e
3 where c.call = b.call
4 and c.letting = b.letting
5 and c.vendor = b.vendor
6 and b.vendor = v.vendor
7 and b.call = l.call
8 and b.letting = l.letting
9 and l.letting = t.letting
10 and l.lcontid = p.contid
11 and p.contid = x.contid
12 and x.pcn= pr.pcn
13 and pr.pcn=g.pcn
14 and e.cn = g.cn
15 and e.pcn = g.pcn
16 group by c.iplineno, c.bidprice, b.vendor, v.vnamel,l.lcontid, t.datelet, ccnty1, e.iplineno
17
SQL> /
from bidtabs c, bidders b, vendor v, letprop l, bidlet t, proposal p, propproj x, project pr,estcatg g, estitem e
ERROR at line 2:
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP1D
SQL>you could also try and check the explain plan for the statement for cartesian joins. If you have any, you should investigate if a such is intended. if not then join up your tables so you get any reference cross-covered.
A cartesian join could easily fill up your TEMP tablespace as great amounts of data are selected, also they could run for a while before finishing (if not crashing temp before :/ )
regards -
I can not send email from my iPhone 3g using me dot com. Can someone help?
I have had my iPhone 3g for 2 weeks now I believe and in this time have received tons of e mails but when I try to reply or send a new e mail I get the message "The connection to the outgoing server "smtp.mac.com" failed."
I don't see why since my wifi is connected and does everything else, like surf the web, download updates to apps and receive e mail.
Can someone help me figure this out? I also just purchased an iPod touch which will be using wifi only so I'm scared that it too will have the same problemI have a 1st gen iPhone that I just updated the software to 2.0.2
Now whenever I press the mail icon it goes to the mail app for about 4 seconds, does nothing, no loading of folders, old messages, nothing.
Then it reverts back to the home screen. Tried restarting, haven't tried restoring, thought I'd look here first.
Anyone??? -
When I try to send email from my iPad and iPhone it says that I have the wrong username and/or password, but I know they are correct. Can someone help me?
"Your email account" means to tap on the name of your email account. Whatever it is listed as in the settings.
In my mail settings, one of my email accounts is a Comcast account. I tap on the Comcast name and it brings up this window.
Then I tap on the arrow under the Outgoing mail server smtp setting to get to the next window.
In the resulting window, I then tap on the arrow next to the smtp server under the Primary Server setting.
That brings up this window in which I check to make sure that my user name and password have been entered correctly. If those items are missing, enter them in the appropriate fields and then tap done. -
my ipod touch 1st gen has gone into recovery and wont restore because of a error 1 or something like that can someone help me quick this ipod is my little cousins and i dont want her mum to find out what happend
I have not seen a solution for error (1)
make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
Apple Retail Store - Genius Bar -
Hello can someone help me I have an iphone 4 and my daughter has an ipod touch we are on the same email address but somehow with in the last 25hrs all of my contacts are gone and only hers on on my phone is there a way for me to get all my contacts back?
If you need assistance with finding any of your restores or attempting to restore from any that happened prior to his incident follow this article
http://support.apple.com/kb/ht1766
IF you do find a backup that has your contacts; I'd /highly/ recommand turning off your wifi network after the restore is finished because if the issue is with your iCloud your contacts may merge back with her's.
With iCloud you DO NOT want to share the account; bad things happen Evil evil thigns...
But in all seriousness; if two devices have the same iCloud; iCloud is told to merge and sync infomation between hte two and can't tell that it doesn't belong to the same person -
Some of my photos in Iphoto turn blank (white) when I tried to edit the size like zoon in and out.Can someone help me on this?
As a Test:
Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
Import a few pics into this new, blank library. Is the Problem repeated there? -
HT5429 direction is not coming in IOS 6 in india. can someone help me for the same?
direction is not coming in IOS 6 in india. can someone help me for the same? i'm using iphone 4
Hi Civilclerk1,
In order to achieve your requirement, we can try to use the following expression to instead the last_name column and first_name field:
last_name: =iif(Fields! staff_role.Value="Lead Atty" or Fields! staff_role.Value="BK Mgr" or Fields! staff_role.Value="Partner" ,Fields! last_name.Value,nothing)
first_name: =iif(Fields! staff_role.Value="Lead Atty" or Fields! staff_role.Value="BK Mgr" or Fields! staff_role.Value="Partner" ,Fields! first_name.Value,nothing)
Besides, if we don’t want see the blank row in the tablix, we can add a filter as below in the tablix:
Expression:=iif(Fields! staff_role.Value="Lead Atty" or Fields! staff_role.Value="BK Mgr" or Fields! staff_role.Value="Partner" ,1,0)
Operator:=
Value:=1
If there are any misunderstanding, please elaborate the issue for further investigation.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
I have an early 2011 MacBook Pro which has been running slow for a while. After looking at responses to similar problems I have downloaded and run EtreCheck. Please can someone help me with what it all means.
Thanks in advance.
EtreCheck version: 1.9.15 (52)
Report generated 19 September 2014 08:07:14 GMT+8
Hardware Information: ?
MacBook Pro (13-inch, Early 2011) (Verified)
MacBook Pro - model: MacBookPro8,1
1 2.3 GHz Intel Core i5 CPU: 2 cores
4 GB RAM
Video Information: ?
Intel HD Graphics 3000 - VRAM: 384 MB
Color LCD 1280 x 800
System Software: ?
OS X 10.9.4 (13E28) - Uptime: 0 days 0:4:29
Disk Information: ?
Hitachi HTS545032B9A302 disk0 : (320.07 GB)
S.M.A.R.T. Status: Verified
EFI (disk0s1) <not mounted>: 209.7 MB
Macintosh HD (disk0s2) / [Startup]: 319.21 GB (147 GB free)
Recovery HD (disk0s3) <not mounted>: 650 MB
MATSHITADVD-R UJ-898
USB Information: ?
Apple Inc. FaceTime HD Camera (Built-in)
Apple Inc. BRCM2070 Hub
Apple Inc. Bluetooth USB Host Controller
Apple Inc. Apple Internal Keyboard / Trackpad
Apple Computer, Inc. IR Receiver
Thunderbolt Information: ?
Apple Inc. thunderbolt_bus
Gatekeeper: ?
Mac App Store and identified developers
Kernel Extensions: ?
[not loaded] com.seagate.driver.PowSecDriverCore (5.2.4 - SDK 10.4) Support
[not loaded] com.seagate.driver.PowSecLeafDriver_10_4 (5.2.4 - SDK 10.4) Support
[not loaded] com.seagate.driver.PowSecLeafDriver_10_5 (5.2.4 - SDK 10.5) Support
[not loaded] com.seagate.driver.SeagateDriveIcons (5.2.4 - SDK 10.4) Support
[loaded] com.sophos.kext.sav (9.1.55 - SDK 10.7) Support
[loaded] com.sophos.nke.swi (9.1.50 - SDK 10.8) Support
Launch Daemons: ?
[loaded] com.adobe.fpsaud.plist Support
[loaded] com.microsoft.office.licensing.helper.plist Support
[running] com.sophos.autoupdate.plist Support
[running] com.sophos.configuration.plist Support
[running] com.sophos.intercheck.plist Support
[running] com.sophos.notification.plist Support
[running] com.sophos.scan.plist Support
[running] com.sophos.sxld.plist Support
[running] com.sophos.webd.plist Support
[running] com.trusteer.rooks.rooksd.plist Support
Launch Agents: ?
[loaded] com.divx.dms.agent.plist Support
[loaded] com.divx.update.agent.plist Support
[running] com.sophos.uiserver.plist Support
[running] com.trusteer.rapport.rapportd.plist Support
User Launch Agents: ?
[loaded] com.adobe.ARM.[...].plist Support
[running] com.amazon.music.plist Support
[loaded] com.google.keystone.agent.plist Support
[not loaded] jp.co.canon.Inkjet_Extended_Survey_Agent.plist Support
User Login Items: ?
iTunesHelper
TomTomHOMERunner
AdobeResourceSynchronizer
Dropbox
Internet Plug-ins: ?
FlashPlayer-10.6: Version: 15.0.0.152 - SDK 10.6 Support
DivX Web Player: Version: 3.2.1.977 - SDK 10.6 Support
AdobePDFViewerNPAPI: Version: 11.0.09 - SDK 10.6 Support
AdobePDFViewer: Version: 11.0.09 - SDK 10.6 Support
Flash Player: Version: 15.0.0.152 - SDK 10.6 Support
EPPEX Plugin: Version: 10.0 Support
Default Browser: Version: 537 - SDK 10.9
OVSHelper: Version: 1.1 Support
QuickTime Plugin: Version: 7.7.3
SharePointBrowserPlugin: Version: 14.4.4 - SDK 10.6 Support
iPhotoPhotocast: Version: 7.0 - SDK 10.7
Safari Extensions: ?
Ultimate
Audio Plug-ins: ?
BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
AirPlay: Version: 2.0 - SDK 10.9
AppleAVBAudio: Version: 203.2 - SDK 10.9
iSightAudio: Version: 7.7.3 - SDK 10.9
iTunes Plug-ins: ?
Quartz Composer Visualizer: Version: 1.4 - SDK 10.9
3rd Party Preference Panes: ?
Flash Player Support
Perian Support
Trusteer Endpoint Protection Support
Time Machine: ?
Skip System Files: NO
Auto backup: YES
Volumes being backed up:
Macintosh HD: Disk size: 297.29 GB Disk used: 160.38 GB
Destinations:
Data [Network] (Last used)
Total size: 2 TB
Total number of backups: 99
Oldest backup: 2012-04-20 17:05:32 +0000
Last backup: 2014-09-18 23:49:25 +0000
Size of backup disk: Excellent
Backup size 2 TB > (Disk size 297.29 GB X 3)
Time Machine details may not be accurate.
All volumes being backed up may not be listed.
Top Processes by CPU: ?
6% InterCheck
5% iCalExternalSync
3% WindowServer
2% CalendarAgent
2% SystemUIServer
Top Processes by Memory: ?
152 MB SophosScanD
147 MB InterCheck
106 MB SophosAntiVirus
66 MB Dropbox
57 MB com.apple.iTunesLibraryService
Virtual Memory Information: ?
161 MB Free RAM
1.55 GB Active RAM
1.41 GB Inactive RAM
902 MB Wired RAM
611 MB Page-ins
0 B Page-outsUninstall Trusteer software
http://www.trusteer.com/support/uninstalling-rapport-mac-os-x
Remove Sophos
https://discussions.apple.com/message/21069437#21069437 -
So I download photoshop cc (2014) and when I go to open the program, it gives me an error message and shuts the program down. It says," A problem cause the program to stop working correctly. Windows will close the program." Can someone help me please?
I've got the same issue and it affects all my adobe software. You are not alone as I have seen several postings looking for the answer to this help request.
-
please can someone help me to unistall itunes from my laptop control panel, this means it also wont let me install the latest version!
I also have Jolly's problem. I found the iMovie 9.0.9 folder and tried to launch the older version of iMove. It would not launch. I removed all of the iMovie preferences from the Preferences folder, removed iMove 10 from the applications folder, and restarted my Mac. iMove 9.0.9 still won't launch and I can't access my videos created with the older version of iMovie. Is there a way to uninstall iMovie 10 and reinstall iMovie 9.0.9?
I am running Yosemitie on a iMac.
Paul -
I cannot open itunes. When I try, a popup says I need quicktime 7.5.5 but I cannot download it. Can someone help??
Quicktime 7.5.5 can be downloaded from this link.
http://support.apple.com/downloads/#quicktime -
I cant install or uninstall my itunes. I get this error 'the feature you are trying to use is on a network resource that is unavilable' Now ive seen the solutions on here but im using windows 8.1 and none of them work for me. Ive tried all options so please can someone help?
That doesnt work for me. I removed itunes through the windows cleaner method as shown in other posts and re-installed itunes. Now im getting this error
iTunes was not installed correctly. Please reinstall iTunes
Error 7 (Windows error 126)
Also my Microsoft office has stopped working after i deleted Itunes which is really strange.
Can somebody provide me a solution please.... -
I am trying to print a PDF file to a legal size paper and I would like for it to fill up the page. How do I do this? I went into the settings and changed it from letter to legal, but it's still printing out the same size. Can someone help me, please?
Are you trying to Print to PDF or are you trying to Print a PDF file to a physical printer?
Maybe you are looking for
-
IMAQ 2.5.1 won't load on top of LabVIEW 6.0.2?
I'm trying to load IMAQ 2.5.1 onto my machine (laptop with Win2k) which already has IMAQ 2.21, and LabVIEW 6.0.2 (working beautifully, mass compiled and all that jazz). In the middle of the installation it requests the disk with lv60.msi on the LV6 i
-
Trouble installing CS5 on new Imac Yosemite
Just got new Imac running Yosemite. Trying to install CS5. Old version from a disc. One problem, no disc drive on new machine. Downloaded CS5 from adobe site and entered serial number. Get error message "not valid serial number for this product" Wh
-
How do i transfer my movie files from my mac to my external hard drive
i want to move some video files from my desktop to my external hardrive, never dont it before need help
-
Hi I have a daily job, that runs several Warehouse Builder processes, scheduled to run at 2am each day. Normally this should complete by 9am, however if there are any performance issues, there is risk that the job may still be running at 2am the foll
-
No events from CWDataSocket. Viewing from ActiveX Container Tool
Using Labview 6.1 on Windows 2000. Exploring ways our C++ program can get and set values into a VI. Was looking at the CWDataSocket ActiveX Control in the VC++ ActiveX Test Container Tool and was trying to get it to fire events. I set both a VI contr