Does this query work on your DB?
I'm on 9.2.0.4. The following query fails because it can't see the u.username column of the inner-inner query. But if I un-nest it by one level it works fine. It's as if the inline view hides the column names of the outermost query.
Is it supposed to work this way, or have I hit a bug?
If it works on your installation, could you please tell me your version number? Thanks.
SELECT u.username
,(SELECT object_name
FROM (SELECT o.object_name
FROM all_objects o
WHERE o.owner = u.username
ORDER BY o.object_id DESC)
WHERE rownum = 1
) greatest_object_id
FROM all_users u
ERROR at line 5:
ORA-00904: "U"."USERNAME": invalid identifier
SELECT u.username
,(SELECT count(*)
FROM all_objects o
WHERE o.owner = u.username) object_count
FROM all_users u
USERNAME OBJECT_COUNT
SYS 2851
SYSTEM 31
HANSENE 15
...
I tested in 9.2.0.6 and didn't work either. I think it should work... can be a bug, not sure. An alternate way is:
select
u.username,
(select o.object_name from all_objects o where o.owner = u.username and o.object_id = (select max(m.object_id) from all_objects m where m.owner = o.owner)) greatest_object_id
from
all_users u;
Similar Messages
-
Does this applet work on your system.
After talking to other people, it seems to me that it doesn't work on XP for some reason. Please go here: http://pigseye.kennesaw.edu/~prosconi/Shooter/index.html and tell me if it works on your system.
JDK 1.4.2
Windows 2000
MSIE 6.0Doesn't work on mine :(
Towards the end of loading process this pops up in a
java console:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission exitVM)
at
java.security.AccessControlContext.checkPermission(Acc
ssControlContext.java:270)
at
java.security.AccessController.checkPermission(AccessC
ntroller.java:401)
at
java.lang.SecurityManager.checkPermission(SecurityMana
er.java:542)
at
java.lang.SecurityManager.checkExit(SecurityManager.ja
a:762)
at java.lang.Runtime.exit(Runtime.java:88)
at java.lang.System.exit(System.java:713)
at Shooter.loadBufferedImage(Shooter.java:71)
at Shooter.init(Shooter.java:45)
at sun.applet.AppletPanel.run(AppletPanel.java:341)
at java.lang.Thread.run(Thread.java:536)I'm on winXP, I got this feeling I've disabled
something on my computer the other day but I can't
remember what, doh!
public BufferedImage loadBufferedImage(String image)
try
return ImageIO.read(new URL(getCodeBase(), image));
catch (Exception e)
e.printStackTrace();
System.exit(0); // <-- can't exit VM in applet... shouldn't even get here though.
return null;
}Apparently on your computer it does not want to download the image. Is there an equivalent to System.exit(0) for Applets? :/ -
How does this query work?
UPDATE medfileinfo mf
SET total_tap_count = total_tap_count-
(SELECT COUNT (1)
FROM rating_temp rt
WHERE ( ( ( (calledcallzone IS NULL) OR (callingcallzone IS NULL)) AND calltype = 0) OR (charges_inr IS NULL))
AND rt.fileid=mf.fileid
WHERE EXISTS (SELECT COUNT (1)
FROM rating_temp rt
WHERE ( ( ( (calledcallzone IS NULL) OR (callingcallzone IS NULL)) AND calltype = 0) OR (charges_inr IS NULL))
AND rt.fileid=mf.fileid)
AND chargedamount=0;After the question has solved on HOW this works. I guess you have a issue with this? Performance?
This query will tell you what it will do:
SELECT mf.fileid,mf.total_tap_count,rt.cnt,
mf.total_tap_count-rt.cnt new_total_tap_count
FROM
medfileinfo mf
INNER JOIN (SELECT fileid,count(*) cnt FROM rating_temp
WHERE ( ( ( (calledcallzone IS NULL) OR (callingcallzone IS NULL)) AND calltype = 0) OR (charges_inr IS NULL))
GROUP BY fileid ) rt
ON rt.fileid=mf.fileid)
WHERE chargedamount=0;And if you want to get rid of subselects use MERGE like this:
MERGE medfileinfo target
USING
(SELECT mf.fileid,mf.total_tap_count,rt.cnt,
mf.total_tap_count-rt.cnt new_total_tap_count
FROM
medfileinfo mf
INNER JOIN (SELECT fileid,count(*) cnt FROM rating_temp
WHERE ( ( ( (calledcallzone IS NULL) OR (callingcallzone IS NULL)) AND calltype = 0) OR (charges_inr IS NULL))
GROUP BY fileid ) rt
ON rt.fileid=mf.fileid) source
ON (target.fileid = source.fileid
and target.chargedamount=0)
WHEN MATCHED THEN UPDATE
SET total_tap_count = source.new_total_tap_count; -
Does this video work in your browser
http://www.fishtec.co.uk/fishtecmovie.swf
i see a white page. i'm not sure if that's what i'm supposed to see.
-
Past from 1year am using 4s in India...if we carry this phone to Australia does this phone work...
If its does not work Then what is the procedure..???Call AppleCare and tell them you just want to know if your iPhone is unlocked and if not, who is it locked with. If it is locked contact the cell provider and ask them what their unlock process is and complete it if you qualify.
-
24 hours after setting the erase button on the Find My iPhone option in iCloud the phone was still not erased. Does this function work in a timely fashion?
No. It functions when connected to the Internet.
-
Does this query need function based index?
Hello All,
I have a strange problem. I have a table DM_T_CLEAN_EXCEPTION_LOG and I am doing a query in reports as follows:
select COUNT(*) NO_OF_ALL_RECORDS
FROM DM_T_CLEAN_EXCEPTION_LOG
WHERE CREATE_DATE > to_date(to_char(sysdate -1 ,'dd-mon-yyyy') || ' 05:00:00PM' ,'dd-mon-yyyy hh:mi:sspm')
AND EXCEPTION_SEVERITY = :EXCEPTION_SEVERITY
AND EXCEPTION_DESCRIPTION = :EXCEPTION_DESCRIPTION
Now I created indexes on CREATE_DATE, EXCEPTION_SEVERITY and EXCEPTION_DESCRIPTION. It says Index Skip Scan so I think it is slow. I tried even creating function based index on create_date using the to_date(to_char(create_date,'dd-mon-yyyy') but then it does a full table scan. Can anyone tell me what is the right way in this situation?
ThanksIt says Index Skip Scan so I think it is slow.Is it really slow or do you only think that it is slow ?
If it is slow, please show us the explain plan with cardinalities, so we can figure out if an index on (exception_severity,exception_description,create_date) is more beneficial than your current one on (create_date,exception_severity,exception_description).
Regards,
Rob. -
HOW DOES THIS FORUM WORK?
I'd be interested to know how this forum works - are there any moderators who read the posts. I posted earlier today regarding a problem I have on my printer - it hasn't even been viewed.
Quite frankly I'm feeling extremely let down by HP recently. I've always been an HP printer fan but I'm starting to wonder if it really is worth ALL my time and effort - Epson reviews next on th list!!!!Cook book techs.
Follow a logic tree and hope that the questions asked were for the actual problem. The real problem is that words mean things and if we each have our own meaning.
Freeze--- 5 minutes I see no change? 10 minutes? 2 days later the computer has not done anything?
Hangs up - - no change in 5 minutes? no change in 10 minutes? no change in 30 seconds? 2 days later the screen is different it turned it's self off.
hesitates - - no change in 30 seconds, 5 minutes, 10 minutes, 2 tv shows later there is something different.
I am a patient person. Hesitates no change 30 seconds; hangs 2 tv shows later; and freeze 2 days later. Some one else may react differently 2 seconds for hesitates, 30 seconds hangs, freezes 31 seconds.
So the cook book teck may ask whats your problem give you 4 answers to choose from. And each of us may give different answers from our unique prospective. Me it was hangs up where the same problem may be a hesitation or a freeze to another. Of course then the teck decides to enter another answer cos she don't think you know what you are talking about....
C'est la Vie. And they might be in Corvallis Oregon -
Why is this query working??
According to the rules of GROUP BY statement, this query shoun't work
SELECT e.secction_id,
COUNT(*) AS num,
(SELECT s.capacity FROM section S WHERE E.section_id=S.section_id ) capacity
FROM enrollment e
GROUP BY e.section_id
The column capacity is obtained from a correlated subquery, it is not a group function. I made this query , it gives correct results, but after a while i recognized that it doesn't follow the rules of group by statements.
Thanks in advance.
Edited by: chg78 on 16-mar-2011 2:11
Edited by: chg78 on 16-mar-2011 2:11chg78 wrote:
SELECT e.secction_id,
COUNT(*) AS num,
(SELECT s.capacity FROM section S WHERE E.section_id=S.section_id ) capacity
FROM enrollment e
GROUP BY e.section_idThe column capacity is obtained from a correlated subquery, it is not a group function. I made this query , it gives correct results, but after a while i recognized that it doesn't follow the rules of group by statements.The query fetching collumn capacity is executed for each row of the outer query. So this is a ugly but valid statement.
bye
TPD -
Hard drive caddy - T61 - How does this thing work?
I have a 200gig hard drive on my T61. Since my computer has died twice in a year I want to have a cloned hard drive handy to insert and not miss a beat and not fuss with reinstalling everything.
When I bought the machine I also bouht a hard drive caddy...
http://shop.lenovo.com/SEUILibrary/controller/e/web/LenovoPortal/en_US/catalog.workflow:item.detail?...
I bought a SATA 500 gig hard drive and inserted this into the hard drive caddy.
I inserted the caddy into the CD drive area.
Now what?
When I click on "My Computer" I do not see the drive listed?
Do I need special software to make a clone of my hard drive on here? Recommendations?
I thought Lenovo had one that came with it, but I do not see anything?
Should "My Computer" see this drive with the caddy?
All advice greatly appreciated!!Good advice, same as the Lenovo Tech support. Unfortunately it does not see the new drive there either...
Right clicked My Computer
Manage
Disk Management
(Only C: drive shows)
This is the way to initialize drives, a step before cloning apparently to set up a new drive.
I ordered a SATA to USB cable from Amazon for $28. Hopefully this will work were yet another Lenovo periferal has failed.
Very frustrated with Lenovo, definitely my last one. After buying 3 in a year from Lenovo even with a warranty all I get is attitude from customer service. One guy told me that backing up was the same as cloning.
For anyone with the same problem trying to clone, I believe you will need a 3rd party software to make a clone.
Norton Ghost - $70
CloneZilla - Free
1. Get Hard Drive
2. Connect new hard drive
3. Initialize new hard drive
4. Get third party software
5. Clone -
How does this programme work?
can someone please explain step by step how this programme workes? The code was developed by ian.f.k
Attachments:
graph_with_jpg-bkgd_01052003[1].vi 33 KBA JPEG file is read from disk and written to a picture indicator (Read JPEG File and Draw Flattened Pixmap). The size of the rectangle (right and bottom items of the cluster) is checked to make sure that it is greater than zero. This is done by converting the cluster to an array and the Less or Equal function creates an array of Booleans for each comparison. The array of comparison results is ANDed together to verify that all elements are not TRUE (each element is not less or equal to zero). If each element is not less than or equal to zero, the size of the picture indicator is set to the same size as the JPEG file. If any element is less than or equal to zero, then the size of the picture indicator is set to a default width of 50 and height of 50.
-
How does home sharing work between your computers?
How does home sharing work between computers?
With any luck, the following document may be of some assistance:
Understanding Home Sharing -
HT4623 Does this really work??
I want to. Know if this really works cuz all my friends have it
Work as what?
Thermo nuclear lance?
No, not so you'd notice.
Peter -
Why does the query work in SQL Developer, but not in APEX?
Hi, guys:
I have a silly question. I have a complicated query, and I tested it successfully with SQL developer, and result is correct. However, when I put it into APEX to generate a report, it always reports no data found. I also know the condition related to "other marks" select list in the where clause part causes this problem. It also looks strange: before I add this condition, everything works OK; after I add this condition, even I do not choose the "other marks" select list, other components do not work neither. I always got no data found result. Could anyone help me on this problem? You can also visit our developing site as http://lsg-solutions.com:8888/apex/f?p=206 to check the problem.
Thanks a lot
Sam
select distinct 'MAP','Detail',so.doc_number as "DOC Number", so.offender_id as "Offender ID", so.first_name||' '|| so.middle_name||' '||so.last_name as "Offender Name",
so.date_of_birth as "Date of Birth",
(select sc1.description from sor_code sc1 where sc1.code_id=so.race) as "Race",
(select sc2.description from sor_code sc2 where sc2.code_id=so.sex) as "Sex",
(select sc8.description from sor_code sc8 where sc8.code_id=so.hair_color) as "Hair Color",
(select sc9.description from sor_code sc9 where sc9.code_id=so.eye_color) as "Eye Color",
replace(replace(nvl2(sl.address1, sl.address1||' '||sl.address2 ||' '||sl.city ||' '||sl.county||' '||(select sc3.description from sor_code sc3 where sc3.code_id=sl.state)||' '||sl.zip, 'No Known Address'),'#'),',') as "Address",
replace(replace(nvl2(sl.physical_address1,sl.physical_address1||' '||sl.physical_city ||' '||sl.physical_county||' '||(select sc4.description from sor_code sc4 where sc4.code_id=sl.physical_state)||' '||sl.physical_zip, 'No Known Address'),'#'),',') as "Physical Address",
sl.status as "Status",
sl.jurisdiction as "Jurisdiction",
to_char(sl.ADDRESS_LATITUDE) as "Address Latitude",to_char(sl.address_longitude) as "Address Longitude",
to_char(sl.physical_address_latitude) as "Physical Latitude",to_char(sl.physical_address_Longitude) as "Physical Longitude",
decode(rox.habitual, 'Y', 'Habitual', '') as "Habitual",
decode(rox.aggravated, 'Y', 'Aggravated', '') as "Aggravated",
rox.status as "Registration Status",
rox.registration_date as "Registration Date",
rox.end_registration_date as "End Registration Date"
from sor_location sl, sor_offender so, registration_offender_xref rox, sor_last_locn_v sllv
where rox.offender_id=so.offender_id
and sllv.offender_id(+)=so.offender_id
and sl.location_id(+)=sllv.location_id
and rox.status not in ('Merged')
and rox.reg_type_id=1
and upper(rox.status)='ACTIVE'
and nvl(rox.admin_validated, to_date(1,'J'))>=nvl(rox.entry_date, to_date(1,'J'))
and (((select sc11.description from sor_code sc11 where sc11.code_id=so.race and sc11.description=:P5_SL_RACE) is not null ) or (:P5_SL_RACE is null))
and (((select sc12.description from sor_code sc12 where sc12.code_id=so.sex and sc12.description=:P5_SL_SEX) is not null ) or (:P5_SL_SEX is null))
and (((select sc13.description from sor_code sc13 where sc13.code_id=so.hair_color and sc13.description=:P5_SL_HAIR_COLOR) is not null ) or (:P5_SL_HAIR_COLOR is null))
and (((select sc14.description from sor_code sc14 where sc14.code_id=so.eye_color and sc14.description=:P5_SL_EYE_COLOR) is not null ) or (:P5_SL_EYE_COLOR is null))
and (( so.offender_id in(select sm.offender_id from sor_code sc15, sor_mark sm, sor_offender so1 where sm.offender_id=so1.offender_id and sc15.code_id=sm.code and sc15.description=:P5_SL_OTHER_MARKS and sm.description is not null)) or (:P5_SL_OTHER_MARKS is null))My suggestion would be to put some instrumentation into your query and see what values you are using.. Or even simpler take out ALL the where clauses you can until data starts to sho wup and then add them back in one at a time until you find the culprit..
My bet would be on any date comparisons you are doing between page items and database columns..
Thank you,
Tony Miller
Dallas, TX -
Apple Mail specific domain domain \ username does this still work for Mavericks?
THIS DISCUSSION IS ARCHIVED
Where do I include Exchange domain in Mail setup?
10212 Views 8 Replies Latest reply: Aug 18, 2010 2:37 PM by jruano
Level 1 (10 points)
mike_donahue
Jun 2, 2010 4:46 PM
Our company is running Exchange 2007, OWA enabled, EWS is setup, Auto discovery is enable. The only thing I haven't got an answer on is whether Service Pack 4 has been installed. The server is set up with a domain specified but I don't know where to include that in the Mail Account Setup. Mail seems to be locating the server fine but it says username or password can not be verified. I can only assume that it's because I haven't included the domain correctly.
iPad (and I assume iPhone/iTouch) have a field in their setup to include the domain and a coworker is connecting fine with to the company server. Where is it in Mail? I have tried to prepend it to my username (domain/username) but it hasn't worked. I can't recall all the variations I have tried of this, but unless I have the domain first in the username field, Mail won't even connect to the server. I've been all over these boards and dozens more and I can't find any answers to this problem.
Any here have any ideas? Thanks,
Mike D
MacBook Pro, Intel Core 2 Duo 2.66 GHz, Mac OS X (10.6.3), 4 gig RAM
I have this question too (0)
Categories: Mail and Address bookTags: mail_address_book_macosx_v10.6, mac_os_x_v.10.6
Level 7 (22,080 points)
Matthew Morgan Los Angeles, CA
Re: Where do I include Exchange domain in Mail setup?Jun 2, 2010 5:48 PM (in response to mike_donahue)
Here's an article that may help.
http://support.apple.com/kb/HT3748
MattDual 1.8 GHz G5 2.5 GB RAM/MBP 2.26GHz 2GB RAM/iPod nano 4g/iPhone 3GS, Mac OS X (10.6.2), ATI Radeon 9600, Time Capsule, AirPort Express
Like (0)
Level 1 (10 points)
mike_donahue
Re: Where do I include Exchange domain in Mail setup?Jun 2, 2010 9:01 PM (in response to Matthew Morgan)
I already read that one and it fails to address the domain question, but thank you for the suggestion.
MikeMac OS X (10.6.3)
Like (0)
Level 1 (10 points)
mike_donahue
Re: Where do I include Exchange domain in Mail setup?Jun 6, 2010 5:07 PM (in response to mike_donahue)
Bump.
I still haven't found an answer to this. Anyone else have any ideas. Still waiting to hear back from out IT guys about the service pack issues.
Is there any way to attach a screen grab to a post? Thought it might help paint the picture in case I haven't stated it clearly.
Again, thanks in advance for any help with this.
MikeMacBook Pro, Intel Core 2 Duo 2.66 GHz, Mac OS X (10.5.1), 4 gig RAM
Like (0)
Level 1 (0 points)
tf99
Re: Where do I include Exchange domain in Mail setup?Jun 22, 2010 1:00 PM (in response to mike_donahue)
Hi. I'm having precisely the same problem. My Exchange account works like a charm on my iPhone, but all permutations of the same settings simply don't work in OS X Mail (v. 4.3).
Has anyone out there set up an Exchange account with a domain? Can you tell us where you put it to get the account to work?
Thanks!2.0 GHz MacBook, Mac OS X (10.6.4)
Like (0)
Level 4 (2,535 points)
Asatoran
Re: Where do I include Exchange domain in Mail setup?Jun 22, 2010 1:16 PM (in response to mike_donahue)
Enter your username as:
<domain>\<username>
This is standard practice for Microsoft if there's no place to enter the domain name.
(Note the backslash, not the forward slash. Backslash is NOT the one under the question mark on a U.S.A. English keyboard.)MBP 15" Penryn, Mini 2009, Mac OS X (10.6.2)
Like (0)
Level 1 (0 points)
tf99
Re: Where do I include Exchange domain in Mail setup?Jun 22, 2010 1:42 PM (in response to Asatoran)
Thanks Asatoran. That turned out to be part of the solution for me. The other part was changing the port I used for the SSL connection -- it was set wrong at some point, either because the default was wrong, or because I forgot I had changed it in troubleshooting before trying the slash the way you suggest. Anyway, the port number for some reason doesn't show up on my iPhone settings, so it didn't occur to me to tweak it.2.0 GHz MacBook, Mac OS X (10.6.4), 4GB RAM
Like (0)
Level 1 (0 points)
frieiv
Re: Where do I include Exchange domain in Mail setup?Jun 25, 2010 12:06 PM (in response to tf99)
Hi!
Could you please state the port numer you changed from and to?
I´m having the same problem and still can´t access the exchange server outside the company network.
But it seems like Mail 4.3 tryes to use the internal server and never the external? Any tips on this?MacBook Pro, Mac OS X (10.6.4)
Like (0)
Level 1 (0 points)
jruano
Re: Where do I include Exchange domain in Mail setup?Aug 18, 2010 2:37 PM (in response to mike_donahue)
<domain>\<username> worked for me... FINALLY!!
Thanks muchMacBook Pro, Mac OS X (10.6.4), iMacQuit your mail entirely, then in terminal do:
mv ~/Library/Mail/V2/MailData/Envelope* ~/Desktop
This moves all your "Envelope Index*" files to your desktop. An alternative is deleting the files, but this allows you to keep them as a temporary back-up (you can delete them at-will later). Also, you can move the files from Finder instead of Terminal, if you prefer.
After the files have been moved, re-open Mail
This should re-load all your email messages, updating/restoring the count
While this works, it does not explain the reason the count goes missing, nor does it ensure that the count won't go missing again in the future, but at least it's a temporary workaround.
Maybe you are looking for
-
Can't activate Creative Cloud for teams
Hi, I'm trying to activate creative cloud for teams - it says my trial has expired, but when I sign in it asks for a serial number. This is happening on two different computers. I downloaded the product from the creative cloud website via the appli
-
First song playing jumps to next.
Hello. My problem with the ipod video 60gb: Turn on ipod. Chose an album to play Then chose the first song in the album. The ipod shows the name of the song, the artist and album cover but does not play that firs song. Instead jumps to the next song
-
Getting problem in tag libraries,please help!!!
hello. i am writing simple tag for accessing database. i am getting follwing error ======================================================================= weblogic.servlet.jsp.JspException: (line 26): Could not parse deployment descrip tor: java.io.I
-
Regarding Error. Description Spool Request
Hi all, How do we get error description of a spool request in a program , iam able to catch the spool no , but iam not able to get the error description of the same. Thanks & Regards, Kishore Kumar Yerra.
-
Problem in calling function module CLVF_VB_INSERT_CLASSIFICATION'
Hello every one I need to update the characteristic value of material by calling a function module CLVF_VB_INSERT_CLASSIFICATION. but i dont know what parameters should be passed to it, please help me. thanking you all p.chitrakala