Can I query through 1:n relationships?
If I have a structure like "one foo contains many bars and each bar has a name," can I write a query like, "Give me all the foos who have bars with name 'Mr. Bigglesworth'?" If so, how?
thanks
john
Thanks Gene,
My index was not being used but now I know why. It wasn't clear to me that the extractor passed to addIndex() and the extractor passed to the filter had to satisfy equals(). That's why I couldn't understand how the right index was chosen, if at all. In my original case, I was using 2 separate anonymous inner classes so I could override extract() to do System.out.println(). When I ran my query, I saw the extract() called once for each element in the cache. After I made the extractors equal, it didn't get called at all, like you indicated, and I can see why that means the index is being used.
I think it would be helpful if your javadocs spelled out the importance of equals instead of the current boilerplate that they now contain. This was the critical piece that I was missing. Adding this information to your implementors' guide about would be helpful, too.
thanks
Similar Messages
-
Can we query through 5-6gb large database with AIR
As it creates one single file for whole database, can we have 5-6 GB large database if an AIR application requires
There's no arbitrary limit to the database size. It would depend on performance and the user's file system, I suspect. Only you could judge the performance aspect as it should depend on the complexity of your database and queries.
-
For Container Freight payment can be downloaded through a standard query.
for Container Freight payment can be downloaded through a standard query.
Regards
Maheshhello, friend.
are you using LE-Transportation? if yes, there are some helpful t-codes such as VI11 and VI12. you may also use t-code SQVI for queries, but you would have to know what tables to look for.
hope this helped even if a bit. reward, even a little if yes.
thanks and regards.
jty -
SQL query can be executed through TOAD but not through Discoverer
Hallo, everybody:
Got another problem. A SQL query can be executed through TOAD, but when I want to execute it by a worksheet of Discoverer Plus, it always shows there is no data.
PS: I copied this query from Discoverer Plus to TOAD, which means, this query is generated through the Discoverer. Does anybody know about how could it be?
Thank you.
GengHi,
If you are able to get data in TOAD with the same user credential as that of Discoverer Plus then it will implies an issue with Discoverer.
Else it is privilege issue , your TOAD user has select privilege to the base objects (tables/views etc) where as your Disoverer used does not.
Compare the privileges granted to these 2 users and you can narrow done to the issue .
Thanks,
Sutirtha -
In R12 DQM synchronization method can be done through UI...
We have one issue going on where DQM synchronization menthod is changed to BATCH from automatic.
Its happening frequently.
Can some one please give the query behind the page so that we can identify who has changed the query.
Regards,
Prakash RanjanDuplicate post.
In R12 DQM synchronization method can be done through UI...
In R12 DQM synchronization method can be done through UI... -
How many e-mails can i send through Bex Broadcaster?
Dear Experts
I would like to know to how many e-mail address i can send a query through "broadcast e-mail" function with BEx Broadcaster. In other words, what's the maximum number allowed of recipients?
I'm using BI version 7.0.
Thank you in advance
Mario1. How many more phones/ipods/devices can I sync with my iTunes? I know it's 5 computers. What about iphones and ipods?
No stated limit.
2. Does Syncing multiple devices mean that all devices and my iTunes will always
have the same content? i.e., If I download a few songs to an iPhone and then sync with iTunes, will itunes then sync that new content to any other devices that I sync with my copy of iTunes, therefore all devices will always attempt to have the same content?
Depends. If all devices are set for automatic synchronization and they all have sufficient capacity to hold your entire iTunes library, then all devices will have identical content and will continue to do so whenever you add new content. If you're using manual synchronization and/or your entire library won't fit on one or more of the devices, then of course whether or not the devices have identical content will depend on you.
3. How does this affect store purchases? Can I sync multiple devices to the same copy of iTunes and how many times can I sync the purchased iTunes store content to devices? I know it's 5 computers, but what about devices?
Same answer as #1.
4. Lastly, can a device such as an iPhone be synced to more than 1 computer/iTunes? Can I sync my iPhone to my own copy of iTunes and then sync again to someone elses and will this then sync new content to all associated computers and synced devices on those computers? Again, what about purchased content in such a scenario?
Unless things have changed, an iPhone can only be synched to a single copy of iTunes. iPods other than the shuffle can be synched to multiple systems by setting to manual sync. -
Error while executing query through rsrt
hello experts,
I am facing following error while executing one HR query through rsrt.
"System error in program SAPLRRI2 and form REP_ASSIGN_INITIAL_OPT-01- (see long text) "
while executing query through rsrt it automatically goes to debug mode, coming out of debug mode i get the screan showing above error message.
What would be an issue?
Regards,
Nirav
Edited by: Nirav Shah on Apr 21, 2008 8:19 AMHi ramesh,
I havent kept any execlusion selection. Though i saw long text, it is like this:
"Diagnosis
This internal error is an intended termination resulting from a program state that is not permitted.
Procedure
Analyze the situation and inform SAP.
If the termination occurred when you executed a query or Web template, or during interaction in the planning modeler, and if you can reproduce this termination, record a trace (transaction RSTT).
For more information about recording a trace, see the documentation for the trace tool environment as well as SAP Note 899572.
Notification Number BRAIN 299 "
Regards,
Nirav -
Getting SQL*Net more data from client waits when running a query through web based interface
Hi, you all,
We are having this weird behavior when running query through web based interface, we get a lot of "SQL*Net more data from client" waits, the OEM indicates that the current wait event is SQL*Net more data from client
It's just a very simple query wich invokes a db link.
When I execute the same query on any PL/SQL tool like toad or sql developer it works fine, but that query inside an application executed through a web based interface, it hangs for ever.
Where can I start looking for the problem.
We are working on a 3 Node RAC 11gr2, both databases are on the same RAC.
Thanks.Hi ,
we managed to reproduce the case in test environment, below are the steps:
1)have 2 databases on different machines, will call the first one local, the other one remote.
2)in the local database create:
a - DBLink to remote database.
b - read data from remote database(we simply used select count(*) from dummy_table )
c - insert data into a table on the local database
d - terminate the connection between the 2 databases (disconnect either machine from the network)
e - commit on local database.
what we noticed was the following:
1)when the local database is disconnected from the network(the machine is not connected to any network at the moment): almost immediately throws an error, and issuing the following:
select * from dba_2pc_pending;we found some data .
2) when the remote database was disconnected(the local database is still connected to the network):
after 7-8 seconds an error is thrown, and issuing the following:
select * from dba_2pc_pending;did not return any data.
since this is pretty similar to our case ,we concluded that it's a network issue.
is this the correct behavior ?
as a temporary solution till the network issue is fixed ,we did the following:
1) changed the call of the remote procedure to calling a local procedure that calls the remote procedure.
2) added pragma autonomous_transaction to the local procedure.
3) at the end of the local procedure rollback the autonomous transaction.
it seems that since the global transaction does not use the DBLink database does not issue a 2PC commit.
this works in my cases since the DBLink is only issed to read data. -
Execute Query through Variable
I want to execute query through variable in Oracle Developer
sql_text varchar(1000);
sql_text:='select some query';
How to execute this query text stored in sql_text variable?
Regards,If your query returns only one row, you can use:
EXECUTE IMMEDIATE sqltext INTO <list of into variables> USING <list of input bind variables>.
If you query returns more than one row, you must open a cursor:
- either with DBMS_SQL package
- or declare a REF CURSOR and use OPEN ,FETCH, CLOSE:
c REF CURSOR;
OPEN c FOR sqltext;
FETCH c INTO <list of into variables>;
CLOSE c -
Hi all,
I am on BW 3.5.
I have a wierd problem when I try to open a query through BEx;
as the variable entry screen comes up after I have selected a query, I can see the last opened workbook behind it.
Then after I continue with the query putting in whatever options, the workbook opens.
If I refresh, it tries to refresh the workbook, and there is no sign of the query.
If I log on using a collegues user, BEx works as normal so, it must be down to the user settings or authorisations!!!
Has anyone experienced this before.
Thanks,
Shane.Hi Suraj,
If you want to execue your query, you can use the bex analyzer.
If you are opening the query from query designer 3.x query in 7.0 fronend, it will get upgraded and then cannot be reveted.
In your case this automatic migration might be havng some issues, owing to complexities.
Please recheck.
-Vikram -
CRM 2011: Creating SQL Query through MSCRM
I have been asked to create some kind of query through SQL to find all open opportunities that have an activity record associated to that opportunity.
Is this something that can be done through SQL? If so how do I join these two tables together?
Thanks in advanceYou can do this in SQL, though you can also easily access this directly in CRM using Advanced Find.
When accessing data via SQL, the supported route is to use the filtered views, rather than querying the tables directly. Each entity has an associated filtered view, for example the opportunity entity has a filtered view called FilteredOpportunity.
You can join opportunities to activities using the regaridngobjectid field on the ActivityPointer entity
select * from FilteredOpportunity o join FilteredActivityPointer a on o.opportunityid = a.regardingobjectid
Microsoft CRM MVP - http://mscrmuk.blogspot.com/ http://www.excitation.co.uk -
Start Saved Query through menuitem
HI,
I have saved different queries, stored in the "queries manager". But saved queries are only accessible through that queries manager. It is also possible to define a formatted search behind an EditText control.
What I need is startup a saved query through code, by catching the button click event on a form or by catching a click event on an item in the modules menu. Are saved queries accessible through code?
Has anyone done this before and tell me how I can do this?
Thanks in advance
EddyEddy,
Maybe you'll find the following snippets useful.
Just make sure that the name of your query is unique in the Menus -collection.
HTH
Juha
-- snip ---
SBOLaunchQuery("TheNameOfMyQuery")
-- snip ---
Public Sub SBOLaunchQuery(ByVal strQueryName As String)
Dim mnuitem As SAPbouiCOM.MenuItem
mnuitem = GetMenuItemByTitle(strQueryName, SBOApplication.Menus)
SBOApplication.ActivateMenuItem(mnuitem.UID)
End Sub
-- snip ---
Public Function GetMenuItemByTitle(ByVal strTitle As String, ByVal mnus As SAPbouiCOM.Menus) As SAPbouiCOM.MenuItem
Dim mnuitem As SAPbouiCOM.MenuItem
Dim mnuitem2 As SAPbouiCOM.MenuItem
On Error GoTo EndFunction
If mnus.Count = 0 Then Exit Function
On Error GoTo 0
For Each mnuitem In mnus
With mnuitem
If .String = strTitle Then
GetMenuItemByTitle = mnuitem
Exit Function
Else
If .Type = SAPbouiCOM.BoMenuType.mt_POPUP Then
mnuitem2 = GetMenuItemByTitle(strTitle, .SubMenus)
If Not mnuitem2 Is Nothing Then
Return mnuitem2
End If
End If
End If
End With
Next mnuitem
EndFunction:
End Function
-- snip --- -
Identifying Technical name of a query through a portal link
Hi,
If from a portal link I see a BW report, how can I know its technical name so that I can access it in BEx to see the query definition. The title on the portal appears not to be helping.
ThanksIn the future, please do not post the same question more than once:
Identifying Technical name of a query through a portal link
Thanks! -
Hi all,
I was trying to create a query through transaction Code SQVI
I choose as a data source join table and basic mode
Then I selected the table to joined and insert the propper field. After I clicked excute button, I see a print screen when I have a Layout field from where I can choose some possible entry.
My question is related to that because I can't understand what it is for and how I can proceede.
please let me know
ThanksHi CMM,
In SQVI after adding these required fields you need to get some out by giving some input.
For .Ex: i am adding sales order tables for getting all information abt certain orders with in time period.( VBAK-VBAP-VBEP).
In this scenario you need to join these 3 tables as you said. After completing this activity you need to come back you need to select certain check boxes i.e what should be the input and what should be the output. In SQVI Input is Selection Field and output is ListFields.
In my example in VBAK i selected VBAK - ERDAT, ERNAM, AUART as a Selection Fields i.e. Input and VBAP - POSNR,MATNR & VBEP - EDATU,WMENG,BMENG,VRKME is List Fields i.e. Output.
Then save the query and execute the query .
After giving the input execute the button you will get some data where it gives all your required information in default layout format. If you want to get this report as per your requirement then please choose the layout icon and do the changes as u required and save it in your system as user specific or Default Setting.
The SQVI is useful becasue instead of creating 'Y' report you can create query in SQVI when u save this query automatically one program will generate in back ground that program u can assign it to 1 customized t.Code and provide it to all users as report .
If you ahve any query plz revert back...
Regards,
Durga Sana -
How can you resolve an M: M relationship in BI repository?
HI,
I want to know, how can we resolve an M: M relationship in BI repository?
Regards,
SumedhHi ,
Is this an ODI question or OBIEE one ?
For OBIEE , post your query in Business Intelligence Suite Enterprise Edition
Thanks,
Sutirtha
Maybe you are looking for
-
Blue ray reader is no longer working. disc is also stuck in the unit. help!
Several problems have been detected: My computer doesn't detect any CD in its unit. Sometimes it detects the CD but every time I tried to play it, it doesn't work and imediately dissapears from any open menu that refers to it (may be iTunes or Windo
-
Relay Host for Outbound Messages not being used...
I have a new v7 GWIA on a new domain that is using the relay settings from the original GWIA (on a separate domain) despite its own settings. Anyone seen this before? Regards
-
Hi. So I decided to a class project, and found this supposedly great app. I imported all the pictures, recorded the voices, and inserted the soundtrack via iMovie. Then, once I clicked export and looked at the result, the first half of the product wa
-
PSE8/Windows 7 - Permission Error
I have a few files that get the error "You don't have permission to open this file." when I try to open them with PSE8 Editor under Windows 7. I get the error even if I run PSE8 as an Administrator. The files I get the error on are in the same folder
-
Time Machine Backup to Time Capsule Pauses Airtunes
Hello, I have an Airport Express and a MBP which are both wireless clients of a Time Capsule. I use the AX to stream music to my stereo which usually works without any trouble. The annoying thing is that practically every time Time Machine starts a b