Using built-in function in the definition of relation between two blocks...
Hi ,
Is it possible to define a relation between two form blocks(db based) ....
I have a master table such as:
table : strdet (cols: ms varchar2(10) , det varchar2(10))
materialized view : mv (cols : det varchar2(10) , sum_a number(5), sum_b number(5))
and data:
strdet
ms det
1 1.1
1 1.2
1.1 1.1.1
1.1 1.1.2
1.1.1 1.1.1.1
e.t.c.
and for the mv
det sum_a sum_b
1 500 300
1.1 100 200
1.2 540 150
e.t.c.
I have tried some versions of relations so as to create a master-detail relation(in reality , the two blocks are connected via ms.det
->mv.det... but the relation is one-to-one....) . I want a result such as:
Master block
1.1
Detail Block
1.1.1
1.1.2
e.t.c.Is it possible somehow...????
Note: I use Dev6i and Dev10g ...
Thanks ,,,
Sim
I think you'll have to use a from-clause-query for the detail block. If you join the master table and the mv on the DET column then you can give each row in the detail block a MS column (from the master table) which you can use in the relation.
Similar Messages
-
Creating a Relation between two Blocks - the Join Condition [SOLVED]
Hi. I'm trying to create a Relation between my TTMS_Audit table and my Bundle_Exceptions table. This is the join condition:
ttms_audit.primary_key_values = bundle_exceptions.project_cd||','||bundle_exceptions.bundle||','||bundle_exceptions.exception_cd
And I get the following error:
FRM-15004: Error while parsing join condition
Does anyone know if my concatenated values in the Join Condition are allowed? Can I even do this? Is there a logical work around?Got it.
I first created the concatenated values as a non-base table item on my form:
:NBT_PRIMARY_KEY_VALUES := :bundle_exceptions.project_cd||','||:bundle_exceptions.bundle||','||:bundle_exceptions.exception_cd;
Then my join condition simply became:
ttms_audit.primary_key_values = bundle_exceptions.nbt_primary_key_values -
Count the number of records between two key values (BTREE)
How can I count the number of keys between two values?
I'm using python driver, and BTREE access method.
====>
ideally what I want is to average a whole time-series data set (the intervals can change) to a given number of points. The keys are the time stamps and the values are the data that needs to be averaged. I need to count the number of records between two time stamps so that I can divide that number by the number of points i need, and average the data. What is the best way to do this? Or should I just keep the intervals for the time stamp constant and use RECNO access method?
Thank you
(first post btw.. and why aren't there many people in stackoverflow who answer Berkeley DB questions?)BDB is an embedded db and it does not have any internal counters or statistics that you could grap to use for this. You will need to do it manually.
You can create a cursor, grap the records you want, each time you get the next record you bump a counter.
If you are using RECNO, you can use a cursor to get the record number of the record (DB_GET_RECNO), and if all you data is in
sequentail records with no missing records you can figure out the total count by take last rec # - initial rec # + 1 to get a total count.
If you switch over to the SQL API, you can issue a SQL query to give you a count. Select count(*) Where .......
Since you have to grab the data anyway, then best may be to count records as you go along.
thanks
mike -
Hi All,
Please have a look in to the below mentioned environment.
primary site :SITE 1
server 1
server 2
secondary site :SITE 2
server 3
Note : All the above three servers are in single DAG .All the database are mounted on the server (server 1) which is located in the primary site (I.E SITE 1).
On that 5 databases we are having 3500 users .Based on the user designation we have allocated the mailbox size.
Query : Each and every day we are having the large no copy queue length for all the five databases to the server located in SITE 2.
Please help me out on this and also tell me is there any tool available to exactly get the required bandwidth for the exchange servers located between the active directory sites.
Thanks & Regards S.NithyanandhamI don't know of any tool that can calculate things for you but latency is the biggest thing you have to worry about. The other issues is looking at the network gear between the 2 sites. I have seen many times were switches get maxed out if they are set to
1 GB or even ports getting maxed out and need to bonded for more throughput. Test your latency from the edge of each site then test it within to see if there is a difference.
Regardless of their geographic location relative to other DAG members, each member of the DAG must have round trip network latency no greater than 500 milliseconds between each other member.
As the round trip latency between two Mailbox servers hosting copies of a database increases, the potential for replication not being up to date also increases. Regardless of the latency of the solution, customers should validate that the networks between
all DAG members is capable of satisfying the data protection and availability goals of the deployment. Configurations with higher latency values may require special tuning of DAG, replication, and network parameters, such as increasing the number of databases
or decreasing the number of mailboxes per database, to achieve the desired goals.
Round trip latency requirements may not be the most stringent network bandwidth and latency requirement for a multi-datacenter configuration. You must evaluate the total network load, which
includes client access, Active Directory, transport, continuous replication, and other application traffic, to determine the necessary network requirements for your environment.
http://technet.microsoft.com/en-us/library/dd638104(v=exchg.150).aspx
DJ Grijalva | MCITP: EMA 2007/2010 SPA 2010 | www.persistentcerebro.com -
An anyone help me to find the difference and relation between the following
Hi,
can anyone help me to find the difference and relation between the following methods of Swing :
a) validate()
b) invalidate()
c) revalidate()
d) repaint()You'd be far ahead by opening up the API and Java turorial and your course book and learning for yourself, rather than, asking other to do your homework for you.
But if you have andwers already to go, then post them and ask if you have drawn appropriate conclusions. -
I wanted to know how do you calculate the number of days between two dates
i wanted to know how do you calculate the number of days between two dates in java ? i get both the dates from the database. i guess there are many issues like leap year and Febuary having diff no of months ..etc.
thanks..
I solve my problem as
public class MyExample {
public static void main(String a[]) {
String stdate = "2009-03-01";
java.sql.Date currentDate = new java.sql.Date(System.currentTimeMillis());
java.sql.Date preDate = java.sql.Date.valueOf(stdate);
System.out.println(currentDate);
System.out.println(preDate);
// int dateCom = preDate.compareTo(currentDate);
// System.out.println(dateCom);
long diff = currentDate.getTime() - preDate.getTime();
int days = (int) Math.floor(diff / (24 * 60 * 60 * 1000));
System.out.println(days);
} -
How to calculate the no. of weekdays between two active dates
Hi all,
I need to calculate the no. of weekdays between two days.
For Example:
If i want to know the number of weekdays between 17-NOV-2008 to 7-DEC-2008 its 10 excluding sat and sun.
how to do that if the period is more?
like 1-JAN-2006 to 12-APR-2007
Thanks in advance..
Regards,
ManojNEXT_DAY(start_date - 1,'SUNDAY') is first sunday >= start_date. NEXT_DAY(end_date - 7,'SUNDAY') is last Sunday <= end_date. Therefore:
(NEXT_DAY(end_date - 7,'SUNDAY') - NEXT_DAY(start_date - 1,'SUNDAY')) / 7 + 1 is number of Sunday's between start_date and end_date. Same way:
(NEXT_DAY(end_date - 7,'SATURDAY') - NEXT_DAY(start_date - 1,'SATURDAY')) / 7 + 1 As a result, number of weekdays between start_date and end_date is:
business_day_count := end_date - start_date + 1 -((NEXT_DAY(end_date - 7,'SUNDAY') - NEXT_DAY(start_date - 1,'SUNDAY')) / 7 + 1 + (NEXT_DAY(end_date - 7,'SATURDAY') - NEXT_DAY(start_date - 1,'SATURDAY')) / 7 + 1) or
business_day_count := end_date - start_date - 1 -(NEXT_DAY(end_date - 7,'SUNDAY') - NEXT_DAY(start_date - 1,'SUNDAY')) / 7 - (NEXT_DAY(end_date - 7,'SATURDAY') - NEXT_DAY(start_date - 1,'SATURDAY')) / 7 or:
SELECT end_date - start_date - 1 -(NEXT_DAY(end_date - 7,'SUNDAY') - NEXT_DAY(start_date - 1,'SUNDAY')) / 7 - (NEXT_DAY(end_date - 7,'SATURDAY') - NEXT_DAY(start_date - 1,'SATURDAY')) / 7 FROM DUAL; The above code assumes business day count between two dates includes both start and end dates. Keep in mind, the above code is NLS dependent.
SY. -
How to identify the follow up relationship between two service ticket
Hi Folks,
How to identify the follow up relationship between two service ticket ?
Please help me on this...
Regards,
Shashi K, ReddyHi Pepe !
Thank you for the answer, but I dont find this structure ET_DOC_FLOW.....
Please let me know is that structure is correct ......
Regards,
Shashi K, Reddy
shashikumarreddy at gmail dot com -
What are the difference and relations between Automatic Tuning Optimizer...
What are the difference and relations between Automatic Tuning Optimizer and Automatic SQL Tuning Advisor?
In my opinion, they are same.SQL> SELECT * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production -
Hi
I whis to know how i can configure the WLC (2500) for reduce the time of responce between Two Lightweight APs (1040 and 1602) if one of they are disconnected for any reason (energy, malfunction, etc.) for the reconnection of the clients.
I realized the next test: I have 2 APs connected, connect my laptop to the AP 1602 and start to making a TFTP transfer between my laptop and a server, then disconnect the AP 1602 and showing the laptop, the laptop makes the change to AP 1040, but the connection to the service, the TFTP transfer is cut because it takes about 30 seconds to resume the connection with the network
How i can reduce this time, because my clients want their connection is not lost when passing a situation similar, i look in the pages of cisco but did not find any information pudisese help me, any help is welcome.
thank you very much in advance
JonathanNot much you can do as its up to the client card to know it has no network connectivity and then to try to associate and obtain a DHCP address again. This is client dependent.
Sent from Cisco Technical Support iPhone App -
Use Built in Mic at the Same Time as the Built in Input/Output(MacBPro13")
i want to use the built in mic at the same time as the output input. im trying to use the output/input to input an audio signal to my computer but at the same time i want to use the mic to input an audio signal to my computer. if i have something pluged into the audio jack the mic no longer works and the only sound going into my computer comes from the audio jack. is there any way to use the built in mic and use the audio jack as an input at the same time?
Check out 'SoundFlower' or 'Jack' - utilities that let you mix and match audio.
-
After using Merge Clips in CS6, the resulting file now has two audio tracks
Hey guys,
I'm running into a weird problem after using the Merge Clips option. I have my video and audio selected, I've already moved the audio so they're both synced. It looks like this:
Then I use Merge Clips and pull the new file into a new sequence which in turn looks like this:
I checked the audio channels for both and apparently the merged file separated the left and right audio channels into two separate streams as opposed to using the single stream for both channels like the original.
Anyway to prevent it from doing this?So according to Adobe's website: http://help.adobe.com/en_US/premierepro/cs/using/WS2bacbdf8d487e582-73725e6a12e5a6165d0-7f ff.html
At the very bottom they list limitations, one of which being "Merged clip audio results in mono track audio only."
Which I was familiar with before posting this. It doesn't seem however that the two tracks are mono it looks like they are two separate stereo tracks. If I mute one I still get audio in both speakers even though I muted the "right" track.
Here's what they look like in the audio mixer
The original only has the left most track.
I guess the only thing to do is just deal with it or render out each clip uncompressed to have that single audio channel. -
Using IDoc to convert Purchase Order as Sale Order between two Company code
Dear Experts,
We are in need of implementing IDoc.
We have 2 Company codes. One in US and another in India.
The US Company receives Customer Order and PR is generated automatically for the Third Party Sale Order.
The PO is also generated based on this PR against the Vendor code (Indian Company actually created as a Vendor code also)
Now, the PO from Us Company should be converted as Order in Indian Company. The PO sending Plant is the Customer in this case.
Now,
1. How we go about this using IDoc.
2.How do we capture the Sold-to-Party ( US Compnay in thsi case) and the Ship-to-Party ( Direct Customer of US Company)
Please share your experties on this.
Regards,
RamkiHi Ramki,
Since the goods are selling between 2 company codes.. you should ideally use inter company process i.e. choose plant as Indian plant and etc..pls search the forum for intercompany process set up or refer to the setup required for Intercompany :
[http://www.sap-img.com/sap-sd/inter-company-sales-process.htm]
The above setup will help you in dealing with your question 2.
On question 1: Once you setup the intercompany you won't require IDocs setup.
I hope this helps.
Regards,
Raghu. -
Function Module for getting Number ranges between two number
Hi guys,
Is there any Function module which provide us the number range between two numbers?
For Ex:If i give 1 and 10 to FM it must give me 1
2
3
4.....upto 10.
is there any FM for doing this,but i'm not able to find exact Fm for same.
I can write small piece of code for getting number ranges, but if i get FM it could save little work.Hi
But why do u need a fm, can't you do it by yourself?
DATA: FROM_NUMBER TYPE I VALUE 1,
TO_NUMBER TYPE I VALUE 15.
DATA: NUMBER TYPE I.
DATA: BEGIN OF T_NUMBER OCCURS 0,
NR TYPE I,
END OF T_NUMBER.
NUMBER = FROM_NUMBER.
DO.
IF NUMBER <= TO_NUMBER.
T_NUMBER-NR = NUMBER.
APPEND T_NUMBER.
ELSE.
EXIT.
ENDIF.
NUMBER = NUMBER + 1.
ENDDO.
LOOP AT T_NUMBER.
WRITE: / T_NUMBER-NR.
ENDLOOP.
Max -
Sharing the same Aperture Library between two Mac's?
gents does any of you manage to share the same Aperture Library between your iMAC and a MacBook?
How can I do it without risking to lose anything or to jeopardize the integrity of my library backup?
the idea is to work on Projects while I am on the move and placing them back into my Main Library sitting on my iMAC at home...
Thx!
PFor each project you want to work on, CTRL + Click the project and "Export -> Project as new library". These new temporary libraries can be moved to your MacBook for working on.
When you come back, import the libraries back to your main Aperture Library with "File -> Import -> Library" and choose to merge your changes. The changes you made will be added to your main library. The temporary libraries can then be deleted.
Deleting them avoids the temptation of working on them later, possibly creating conflicts. It best to export new copies from your main library each time you work away so you know you have current up to date versions.
-Najinsky
Maybe you are looking for
-
I just got a new Mac Book for college and I created my own apple id for it. My family already has a shared account and I was hoping to transfer the purchases from that account onto my new account. I tried the Homesharing feature, but we already have
-
Hi,<o:p></o:p> I have task to create remainder email notification 3 days before by comparing with End date (my list item) so i created one calculated column in the list as remainder date by using that remainder date i created, but my project manager
-
Reader XI - I can't print a pdf file.
I'm getting an error message LXAIGF.DLL not found, error 126. Tried to repair program and then removed and downloaded XI again and rebooted. Same error message. Lexmark printer is connected. Windows XP OS.
-
Drag and Drop an Attached AutoCad File in a PDF Portfolio to and Open Drawing in AutoCad
I currently Printed all my Details to PDF and combined them all into a catalog to view them. I them attached all the AutoCad files to the PDF. I can open the AutoCad file in the pdf, but it will open it as a new drawing int AutoCad. I would like to D
-
Synch with palm on a pc?
Hi, I'm switching from a palm treo to the iphone. Has anyone been successful in synching palm contacts and calendar? Thanks.