Question of query OR Simulator
Hello. I have an Instrument Simulator NOR I've tested using the test panel VISA to the MAX to test. "I'm not sure of what is happening but when I ask a simple * IDN?, read 00062\r\n. Then, when I ask it again, it reads "National\sInstruments\sGPIB\sand\sSerial\sDevice\sSimulator\sRev\sB.1\n". When I ask it again, it rereads the '00062\r\n '. He flip-flops between the two with each request. It is to me that I need to question constantly twice, in order to obtain the desired data read? I don't know how to put this in a Vi. I tried a lot of different things, but it always the same fate. Even if I delete the registry and tried an individual entry and read, then it does the same thing. Is this normal and how do I do this in Vi?
Thank you very much for your support.
You need to refine your Google-fu skills. I was thinking something like this - http://www.amazon.com/TekPower-TP4000ZC-RS232-Interaced-Ranging-Multimeter/dp/B000OPDFLM/ref=cm_cr_p...
Tags: NI Software
Similar Questions
-
We have made from a 9i database to an 11 g database. The defined query works perfectly under 9i (about 1 second) but takes 60 to 70 seconds back to 11g. The strange thing is that it has an outer query and a subquery. If I remove the where clause of the outer query, it runs in less than a second. Here's the query...
SELECT the period, biweek_start, biweek_end, pay_period_complete, worker_count
FROM (SELECT to_char (en.start_date, ' dd/mm/yyyy') |) « à » ||
TO_CHAR (en.start_date + 13, ' dd/mm/yyyy') period.
en.start_date biweek_start,
en.start_date + biweek_end 13,
Decode (sign (sysdate - en.start_date - 13),
-1,
'Ongoing',
Pay_period_complete 'Done'),
ta_mssauth_pkg.actual_endorser (en.start_date, '33811') worker_count
FROM (select worker_id,
default_endorser resolved_endorser,
effective_date,
correspondents
of endorse_delegate_history_v
where default_endorser = '33811'
Union
Select worker_id,
temporary_delegate resolved_endorser,
effective_date,
correspondents
of endorse_delegate_history_v
where temporary_delegate = '33811'
and temporary_delegate is not null),
endorse_activity_v en
WHERE en.worker_id = de.worker_id
AND en.endorse_status = n
AND en.start_date < = de.expiration_date
AND en.start_date + 13 > = de.effective_date
GROUP BY en.start_date)
WHERE worker_count > 0;
The function that is used in the inner query to generate the worker_counts is quite complex. But it works subsecond if you run manually. And it works very well when you run the query without the "where worker_count > 0" part.
So the where clause of the outer query seems to be the cause of the problem - it is based on a function which should have calculated a value FIRST, and then the outer query must run depending on the result of the inner query. Here are the plans to explain to the two different versions:
BAD REQUEST - 60 to 70 seconds
Object owner name cardinality bytes cost object description
SELECT STATEMENT, GOAL = 41 1 617 ALL_ROWS
HASH GROUP BY 41 1 617
NESTED LOOPS
616 1 41 NESTED LOOPS
VIEW CA17062 58 186 4464
58 186 5392 SINGLE FATE
UNION-ALL
TABLE ACCESS BY INDEX ROWID TAS_AUTH ENDORSE_DELEGATE_HISTORY_TBL 42 139 4170
INDEX RANGE SCAN TAS_AUTH ENDORSE_DELEGATE_HIST_DEF_IDX 3 139
TABLE ACCESS BY INDEX ROWID TAS_AUTH 14 47 1222 ENDORSE_DELEGATE_HISTORY_TBL
INDEX RANGE SCAN 3 47 ENDORSE_DELEGATE_HIST_TEMP_IDX TAS_AUTH
INDEX RANGE SCAN TAS_AUTH 2 1 TA_SCLENDORSE_PKTABLE ACCESS BY INDEX ROWID 3 1 17 ENDORSE_ACTIVITY_TBL TAS_AUTH
GOOD QUESTION < 1 second
Object owner name cardinality bytes cost object description
SELECT STATEMENT, GOAL = 1025 25 617 ALL_ROWS
HASH GROUP BY 1025 25 617
NESTED LOOPS
616 25 1025 NESTED LOOPS
VIEW CA17062 58 186 4464
58 186 5392 SINGLE FATE
UNION-ALL
TABLE ACCESS BY INDEX ROWID TAS_AUTH ENDORSE_DELEGATE_HISTORY_TBL 42 139 4170
INDEX RANGE SCAN TAS_AUTH ENDORSE_DELEGATE_HIST_DEF_IDX 3 139
TABLE ACCESS BY INDEX ROWID TAS_AUTH 14 47 1222 ENDORSE_DELEGATE_HISTORY_TBL
INDEX RANGE SCAN 3 47 ENDORSE_DELEGATE_HIST_TEMP_IDX TAS_AUTH
INDEX RANGE SCAN TAS_AUTH 2 1 TA_SCLENDORSE_PK
TABLE ACCESS BY INDEX ROWID 3 1 17 ENDORSE_ACTIVITY_TBL TAS_AUTHIf these expleain plans look almost identical to me - can someone tell me why having where clause of the outer query is originally so wrong and how I can solve this problem? I tried using the NO_MERGE and PUSH_SUBQ - tips but nothing of what I did so wrong not better requested.
Thanks in advance!
Cory
You can also try taking advantage of the scalar subquery caching by changing
ta_mssauth_pkg.actual_endorser (en.start_date, '33811') worker_count
TO
worker_count (select ta_mssauth_pkg.actual_endorser (en.start_date, '33811') of double)
Which could cache the results for recent start dates, massively reducing the number of calls.
I think the NO_PUSH_PRED is a better approach, because the cache is less reliable to eliminate duplicate calls - it can cache the value, it could have thrown the corresponding value in the cache already, there is no guarantee of behavior and values the more en.start_date the request to meet the less reliable the caching will be.
-
Newb question: SQL query on an imported table
Hi all. I'm a newb, that this issue will probably tell you!
But I am very interested to familiarize themselves with the Oracle environment.
I installed 10g Express.
I was able to set up a new user (schema) profile?
I created a new table, by importing an Excel file, saved as a CSV file. It has a PK.
When I log in as an administrator, I can see the table 'discovers' the content.
However, I can't run a SQL command with the new table.
It is said Table or view does not exist.
The table is called "Customers" and contains a column called "City" and I type City Select From Customers.
Like the Adminisistrator, I have "given" all the rights for the new table to my profile newly created (schema).
When I connect as long as this new person, I can't see the new table imported into the list of tables, yet alone to run an application or a SQL to it. What did I miss?
Any tips will be appreciated. Glyn gray...
Published by: user12501005 on February 7, 2010 11:26Hello
You wrote:
The original table is still visible to the diagram of the system, but he reports yet again as saying that the table does not exist when I try SQL.
So is there a reason why a table imported is visible to the user DBA, but SQL does not exist?
The other imported tables, those the DBA can run SQL still aren't visible to other users (schemas).
The DBA has "tuned" EVERYTHING to the default HR schema.
When I connect like HR, I'm unable to find the given table and SQL reports that the table does not exist.If I understand that you have created a Table in the schema of the SYSTEM, and you cannot question him by SQL.
For example, if you then create a table A in the diagram of SYSTEM, you can view the table A if you connect to the database
SYSTEM or any intended user he has the privilege to CHOOSE ANY TABLE.If you are connected to a user (for example, HR), which does not have this privilege, you can not query the Table.
If you have a privilege to HR as follows:
connect system/
grant select on A to HR; Then you can query the Table has to HR:
connect HR/
select * from system.A; Hope this helps.
Best regards
Jean Valentine -
Question red watch SMS Simulator
Hi all, using 2 9700 simulators under version 5 to try and test a SMS listening program. This used to work fine, but now whenever I have try and send an SMS from 1 Simulator to another, I get a red clock next to the SMS sender and I never get anything else. Like I said it worked very well. The 2nd Simulator runs from a different location than iis used during debugging. I've played around with the SMS settings (currently packs turns to 7-bit encoding) with no joy. Also shot and manage connections without joy. Mobile network take their flight simulator and data services are turned on.
Can someone tell me what I should do to fix this please because the reset does not work either. Thanks a lot for any assistance.
Try resetting the simulator by running the clean.bat file located in the directory of Simulator.
If this does not help, make sure that you do not have any firewall software that blocks the ports used to send and receive SMS messages.
-
Hello
I am facing a problem with the SDK of BBM 1.0beta.
I followed the Quick Start Guide to install it.
The MDS Simulator works well.
The 6.0.0.313 Simulator works well also.
I imported net_rim_bb_qm_platform.jar into my workspace jde.
Point 3.8 says I need to use the Simulator profile 9800 - 6.0.0.313 to compile my project, but I can't find it in the Simulator profile drop-down list.
What I am doing wrong? Can you help me please?
Thank you
Laurent
If I copy the SimPackage - 6.0.0.313_9800.rc in the folder where I installed the Simulator in the JDE\bin folder, I can select from the drop of the JDE... and fix my app on the Simulator...
Now my app to app hangs in the Simulator! Cool; (o)
-
questions AF:Query a taskflow
JDev: 11.1.2.1
I created a simple merger application, using the country HR and tables of the Department. The ViewController contains a home page and a taskflow.
The taskflow accepts a parameter "SearchBy", and I have a router (by default) which then redirects the user to one of the two pages, based on this setting.
< case id = "__1" >
< expression > #{pageFlowScope.SearchBy eq 'country'} < / expression >
< result > country < / results >
< / Body >
< case id = "__2" >
< expression > #{pageFlowScope.SearchBy eq 'departments'} < / expression >
< result > departments < / results >
< / Body >
The two pages "CountriesQueryPage" and "DeptsQueryPage" are nothing more than a standard (with table) af:query according to the criteria named "All searchable attributes" for the respective points of view.
The homepage contains the taskflow above as a region and a few links, including the value of a parameter #{requestScope.SearchBy}. The taskflow link has been changed to Refresh "ifNeeded.
< af:panelHeader text = "panelHeader 1" id = "ph1" >
< f: facet = 'context' name / >
< name f: facet = 'bar menu' / >
< f: facet name = "toolbar" >
< af:group id = "g1" >
< af:commandLink text = 'Country' id = "cl1" partialSubmit = "true" >
< af:setPropertyListener = ' #{'countries'} "to =" #{requestScope.SearchBy} ' "
type = 'action' / >
< / af:commandLink >
< af:spacer width = "10" height = "10" id = "s1" / >
< af:commandLink text = "Departments" id = "cl2" partialSubmit = "true" >
< af:setPropertyListener = ' #{'departments'} "to =" #{requestScope.SearchBy} ' "
type = 'action' / >
< / af:commandLink >
< / af:group >
< / f: facet >
< f: facet = name "legend" / >
< f: facet = 'info' name / >
< af:region value = "#{bindings.tf11.regionModel}" id = "A1" partialTriggers =": cl1: cl2" / >
< / af:panelHeader >
When I run the present, the 'country' default page in the region. Af: query works perfectly. When I click on the link to the page of departments, the region cools as expected, but when the rendering of the table of queries, an error "failed to load... content data transmission was interrupted. Check the log, I get...
< LifecycleImpl > < _handleException > ADF_FACES - 60098:Faces life cycle receives exceptions that are unhandled in phase 6 RENDER_RESPONSE
java.lang.IllegalStateException: component data flow is not found
< FaceletViewHandlingStrategy > < handleRenderException > view made Error [home]
java.lang.IllegalStateException: component data flow is not found
Can't find much online about this error message.
The only way that I was able to stop the issue is to remove the af: table on the departments query page.
I also tried to use a dynamic region to get the functionality above (splitting each page in its own taskflow application and removing the router) and got exactly the same problem.
Any ideas?
Thank you
Published by: drb on November 24, 2011 18:31Hello
can you send me a test case. My email address is in my profile OTN (just click on my OTN username). Put the workspace in a ZIP file and rename the ZIP extension to DECOMPRESS
Frank
-
Question of query with row_number
Hello
I need help to change this query, so that I can select all the results where NAS = 1.
I tried this:
But it dosent workSELECT DEPTNO, ENAME, row_number() over(partition BY DEPTNO ORDER BY DEPTNO ASC) AS rna, row_number() over(partition BY DEPTNO ORDER BY DEPTNO DESC) AS rnd FROM emp where rna = 1 ORDER BY DEPTNO ASC, rna ASC
resultSELECT DEPTNO, ENAME, row_number() over(partition BY DEPTNO ORDER BY DEPTNO ASC) AS rna, row_number() over(partition BY DEPTNO ORDER BY DEPTNO DESC) AS rnd FROM emp ORDER BY DEPTNO ASC, rna ASC
I want to have this result:DEPTNO ENAME RNA RND 10 CLARK 1 1 10 KING 2 2 2 10 MILLER 3 3 20 JONES 1 1 20 SCOTT 2 2 20 ADAMS 3 3 20 SMITH 4 4 30 ALLEN 1 1 30 WARD 2 2 30 TURNER 3 3
Thanks in advance10 CLARK 1 1 20 JONES 1 1 30 ALLEN 1 1
RoselineHello
Try this code
SELECT deptno, ename, rna, rnd FROM (SELECT deptno, ename, ROW_NUMBER () OVER (PARTITION BY deptno ORDER BY deptno ASC) AS rna, ROW_NUMBER () OVER (PARTITION BY deptno ORDER BY deptno DESC) AS rnd FROM emp) WHERE rna = 1 ORDER BY deptno ASC, rna ASC DEPTNO ENAME RNA RND ---------- ---------- ---------- ---------- 10 CLARK 1 1 20 JONES 1 1 30 WARD 1 1 3 rows selected.
-
Question about query hirarchical
Hi gurus!
I have a problem with a query hirarchical. I want is possible to query the information on the table a and b table of hierarchically.
Table one
< pre >
e_id, e_name e_num
1 ABC 100
2 200 DEF
< / pre >
Table b
< pre >
d_id, d_name e_id d_num
1 300 ABC 1
2 400 DEF 1
3 500 GHI 2
4 600 JKL 2
< / pre >
The lines should be displayed like this:
< pre >
e_id, e_name d_id, d_name d_num e_num
1 ABC 100
1 300 ABC
DEF 2 400
2 200 DEF
3 500 GHI
4 600 JKL
< / pre >
Please tell me if this is possible.
I'm waiting for your answers.
Yours sincerely
Florian W.Florian,
This isn't exactly a hierarchical query as far as I can see, but you can generate the additional lines using a rollup:
SQL> create table a (e_id, e_num, e_name) 2 as 3 select 1, 100, 'ABC' from dual union all 4 select 2, 200, 'DEF' from dual 5 / Tabel is aangemaakt. SQL> create table b (d_id, d_num, d_name, e_id) 2 as 3 select 1, 300, 'ABC', 1 from dual union all 4 select 2, 400, 'DEF', 1 from dual union all 5 select 3, 500, 'GHI', 2 from dual union all 6 select 4, 600, 'JKL', 2 from dual 7 / Tabel is aangemaakt. SQL> select case lag(max(a.e_id)) over (partition by a.e_id order by b.d_id nulls first) when a.e_id then null else max(a.e_id) end e_id 2 , case lag(max(a.e_num)) over (partition by a.e_id order by b.d_id nulls first) when a.e_num then null else max(a.e_num) end e_num 3 , case lag(max(a.e_name)) over (partition by a.e_id order by b.d_id nulls first) when a.e_name then null else max(a.e_name) end e_name 4 , b.d_id 5 , b.d_num 6 , b.d_name 7 from a 8 , b 9 where a.e_id = b.e_id 10 group by a.e_id 11 , a.e_num 12 , a.e_name 13 , rollup((b.d_id, b.d_num, b.d_name)) 14 order by a.e_id 15 , b.d_id nulls first 16 / E_ID E_NUM E_N D_ID D_NUM D_N ---------- ---------- --- ---------- ---------- --- 1 100 ABC 1 300 ABC 2 400 DEF 2 200 DEF 3 500 GHI 4 600 JKL 6 rijen zijn geselecteerd.
Kind regards
Rob. -
Question of query result table
Hi all
For the following tables, I expect results reported below. But the one I received was different
Expected resultswith tab1 as ( select 'aaa' c1,'www' c2, 'sss' c3 from dual union ALL select 'bbb' c1,'ttt' c2, 'wsw' c3 from dual union ALL select 'xxx' c1,'zzz' c2, 'rer' c3 from dual union ALL select 'ccc' c1,'kkk' c2, 'ftf' c3 from dual ), tab2 as (select 'ttt' g1,'ppp' g2 from dual union ALL select 'kkk' g1,'yyy' g2 from dual union ALL select 'qqq' g1,'fff' g2 from dual union ALL select 'uuu' g1,'jjj' g2 from dual ), tab3 as ( select 'sss' h1,'uuu' h2 from dual union ALL select 'bbb' h1,'mmm' h2 from dual union ALL select 'rer' h1,'qqq' h2 from dual union All select 'jjj' h1,'ddd' h2 from dual ), tab4 as ( select 'mmm' j1,'vvv' j2 from dual union ALL select 'uuu' j1,'lll' j2 from dual union ALL select 'qqq' j1,'eee' j2 from dual union ALL select 'ddd' j1,'rrr' j2 from dual) select tab1.c1, tab2.g2, tab3.h2, tab4.j2 FROM tab1, tab2, tab3, tab4 WHERE tab1.c2 = tab2.g1 (+) AND tab1.c3 = tab3.h1 AND tab3.h2 = tab4.j1
Please explaintab1.c1 tab2.g2 tab3.h2 tab4.j2 aaa uuu lll bbb ppp xxx qqq eee ccc yyy
See you soon
Sexywith tab1 as ( select 'aaa' c1,'www' c2, 'sss' c3 from dual union ALL select 'bbb' c1,'ttt' c2, 'wsw' c3 from dual union ALL select 'xxx' c1,'zzz' c2, 'rer' c3 from dual union ALL select 'ccc' c1,'kkk' c2, 'ftf' c3 from dual ), tab2 as (select 'ttt' g1,'ppp' g2 from dual union ALL select 'kkk' g1,'yyy' g2 from dual union ALL select 'qqq' g1,'fff' g2 from dual union ALL select 'uuu' g1,'jjj' g2 from dual ), tab3 as ( select 'sss' h1,'uuu' h2 from dual union ALL select 'bbb' h1,'mmm' h2 from dual union ALL select 'rer' h1,'qqq' h2 from dual union All select 'jjj' h1,'ddd' h2 from dual ), tab4 as ( select 'mmm' j1,'vvv' j2 from dual union ALL select 'uuu' j1,'lll' j2 from dual union ALL select 'qqq' j1,'eee' j2 from dual union ALL select 'ddd' j1,'rrr' j2 from dual) select tab1.c1, tab2.g2, tab3.h2, tab4.j2 FROM tab1, tab2, tab3, tab4 WHERE tab1.c2 = tab2.g1(+) AND tab1.c3 = tab3.h1(+) AND tab3.h2 = tab4.j1(+) / C1 G2 H2 J2 --- --- --- --- aaa uuu lll xxx qqq eee ccc yyy bbb ppp SQL>
SY.
-
Problem in flight simulator 2004. Help, please!
Well hoping that someone can help me please with my problem on FS9. first of all, when I'm in the view of the flight deck I see not the hand of mouse as a result I can't click the lights and everything? My second question is that the scroll button allows me not to zoom in and zoom out? I've never had this problem before. can someone please teach me how to solve the problem... Thank you
Hello
As your question is about Flight Simulator, I suggest you obtain in contact with the support of Flight Simulator for assistance.
http://support.Microsoft.com/GP/games-for-Windows
http://www.Microsoft.com/products/games/FSInsider/tips/pages/default.aspxI hope this helps! -
Hey I know this OS is fairly new but I already hit a bit of a problem.
When the app I'm working to try to launch a browser on the Simulator, I get an illegal state Exception. I thought it was just my application until I tried to launch the browser on its own and got the same result. Is there a way to get a web browser working on the Simulator?
I was actually able to solve the problem. My fixed can be found here:
http://StackOverflow.com/questions/3639649/BlackBerry-9800-Simulator-crashing-when-launching-browser
-
Hi I am new to Oracle forms and reports I want to know the differences between the Enter query mode and Normal mode?
Welcome to Oracle Forms! Out of curiosity, what do you mean by 'new '? You are a student or new to an organization that uses Oracle Forms? Or just play with Oracle Forms to learn something new?
Let me start by saying that many of your questions designtime can answer by searching in the help of the constructor of the form library. It's accessible, like most of the other products in the Builder menu > help.
Regarding your question, ENTER QUERY mode, as the term implies, is when it is in a State where it is accept input for the execution of a query. When in this mode, there are various restrictions. Yet once, it will find more details in the Builder Help. In this case, search help for these two subjects, "SYSTEM." MODE'and "built-ins comments that are not allowed in the input query Mode". There are many other pages that contain information about the ENTER_QUERY method, but these two should help you get started.
Normal mode, as its name implies, is when it is in a State of 'normal '. Basically to do nothing in particular, but also not in ENTER QUERY mode. In this State, you can move the shape, INSERT, UPDATE, DELETE, documents, etc..
You will find additional information, as well as a lot of documentation on the product page of forms of OTN:
-
Complex query - sort, join
Hello
I have and control panels and Department.
I'm trying to get a set of records as such:
* get 50 entries of orders with the lowest time_of_order time table, time of order is not null and department_id = 1
* Get 40 records of control panel with the lowest time of time_of_order, at the time of the order is not null and department_id = 2
* get 30 records in the order with time table lowest of time_of_order, at the time of the order is not null and department_id = 3
...
* get 10 records in the table control with the lowest time_of_order time, time of order is not null and department_id = 5
I came up with something like this:
SELECT items.order_id,
Items.Order_Details,
Items.department_name
Items.time_of_order
FROM (SELECT Row_number()
During)
ORDER BY time_of_order ASC) AS ROW_NUMBER,
NS.order_id,
NS. Order_Details,
NS.department_name
NS.time_of_order
Ns orders
outer join left Department dept
ON ns.department_name = dept.department_name
WHERE dept.department_id = 1
AND ns.time_of_order IS NOT NULL
WHERE row_number < = 50
UNION ALL
...
UNION ALL
SELECT items.order_id,
Items.Order_Details,
Items.department_name
Items.time_of_order
FROM (SELECT Row_number()
During)
ORDER BY time_of_order ASC) AS ROW_NUMBER,
NS.order_id,
NS. Order_Details,
NS.department_name
NS.time_of_order
Ns orders
outer join left Department dept
ON ns.department_name = dept.department_name
WHERE dept.department_id = 5
AND ns.time_of_order IS NOT NULL
WHERE row_number < = 10
This statement is very long and effective questionable (my query would go again and again looped while the data changes dynamically. There is large amount of data).
How can I rewrite it without all these statements of UNION? Do you see how to improve the effectiveness of the statement? I'd appreciate any help.Hello
IF you "PARTITION BY department_id", you get results like a UNION, where each branch of the UNION made only department_id.
Here's one way:
WITH got_r_num AS ( SELECT ns.order_id , ns.order_details , ns.department_name , ns.time_of_order , dept.department_id , ROW_NUMBER () OVER ( PARTITION BY dept.department_id ORDER BY ns.time_of_order ) AS r_num FROM orders ns LEFT OUTER JOIN department dept ON ns.department_name = dept.department_name WHERE dept.department_id IN (1, 2, 3, 4, 5) AND ns.time_of_order IS NOT NULL ) SELECT * -- or list all columns except department_id and r_num FROM got_r_num WHERE r_num <= 10 * (6 - department_id) ORDER BY department_id , r_num ;
If you would care to post some sample data (CREATE TABLE and INSERT statements) and the results desired from these data, then I could test it.
Feel free to simplify the problem. For example "I want the.
6 first rows of department_id = 1, the
4 first department_id = 2 rows and the
first 2 rows department_id = 3. »If you're concerned about efficiency, don't do it in a loop. Do all the values (which otherwise, you would change in the loop) at once, in a single query. If you want to know, post some sample data and the results desired from these data.
-
4 - Quiz question of Captivate
I developed in captivate 4 - at the end of my apprenticeship, I inserted a 5 question quiz - but the calculations for the quiz fool you.
He keeps thinking that I have 29 questions. There are simulations in presentations - and I wonder if it is somehow that these. I checked the preferences of quiz and statement is off - can't really think what else to try. Use not yet an LMS
Hello
They have associated points? And the total number in this view of Advanced Interaction than you expected?
Lilybiri
-
CQL join with 2-channel time-stamped application
Hello
I am trying to join the two channels that are time-stamped application, both are total-ordered. Each of these 2 channels retrieve data in a table source.
The EPN is something like this:
Table A-> processor A-> A channels->
JoinProcessor-> channel C
Table B-> processor B-> B-> channel
My question is, how are "simulated" in the processor events? The first event that happens in any channel and the Treaty as the timestamp, starting point get it? Or fact block treatment until all channels have published its first event?
Channel A
--------------
timestamp
1000
6000
Channel B
-------------
timestamp
4000
12000
Channel B arrived both of system a little later due to the performance of the db,
I would like to know if the following query won't work, whereas I would like to match the elements of channel A and B which are 10 sec window and out matches once in a stream.
The following query is correct?
Select a.*
A [here], B [slide 10 seconds of range 10 seconds]
WHERE a.property = b.property
I'm having a hard time to produce results of the join well I checked the time stamp of application on each stream and they are correct.
What could possibly cause this?
Thank you!
Published by: Jarell March 17, 2011 03:19
Published by: Jarell March 17, 2011 03:19Hi Jarrell,
I went through your project that had sent you to Andy.
In my opinion, the following query should meet your needs-
ISTREAM (select t.aparty, TrafficaSender [range 15 seconds] t.bparty t, CatSender [range 15 seconds] c where t.aparty = c.party AND t.bparty = c.bparty)
I used the test of CatSender and TrafficaSender data (I show only the part bparty fields and here and that too as the last 4 characters of each)
TrafficaSender (, bparty)
At t = 3 seconds, (9201, 9900)
At t = 14 seconds (9200, 9909)
To t = 28 seconds (9202, 9901)CatSender (, bparty)
At t = 16 seconds, (9200, 9909)
At t = 29 seconds (9202, 9901)For query q1 ISTREAM = (select t.aparty, TrafficaSender [range 15 seconds] t.bparty t, CatSender [range 15 seconds] c where t.aparty = c.party AND t.bparty = c.bparty)
the results were-
At t = 16 seconds, (9200, 9909)
At t = 29 seconds (9202, 9901)and it seems OK for me
Please note the following-
(1) in the query above I do NOT require a "abs1(t.ELEMENT_TIME-c.ELEMENT_TIME)".<= 15000"="" in="" the="" where="" clause.="" this="" is="" because="" of="" the="" way="" the="" cql="" model="" correlates="" 2="" (or="" more)="" relations="" (in="" a="" join).="" time="" is="" implicit="" in="" this="" correlation="" --="" here="" is="" a="" more="" detailed="">=>
In the above query, either W1 that designating the window TrafficaSender [range 15] and W2 means the CatSender [range 15] window.
Now both W1 and W2 are evaluated to CQL Relations since in the CQL model WINDOW operation over a Creek gives a relationship.
Let us look at the States of these two relationships over time
W1 (0) = W2 (0) = {} / * empty * /.
... the same empty up to t = 2
W1 (3) = {(9201, 9900)}, W2 (3) = {}
same content for W1 and W2 until t = 13
W1 (14) = {9201 (9900) (9200, 9909)}, W2 (14) = {}
same content at t = 15
W1 (16) = {9201 (9900) (9200, 9909)}, W2 (16) = {(9200, 9909)}
same content at t = 17
W1 (18) = {(9200, 9909)}, W2 (18) = {(9200, 9909)}
same content at up to t = 27
W1 (28) = {(9200, 9909), (9202, 9901)}, W2 (28) = {(9200, 9909)}
W1 (29) = {(9202, 9901)}, W2 (29) = {(9200, 9909), (9202, 9901)}Now, the result.
Let R = select t.aparty, TrafficaSender [range 15 seconds] t.bparty t, CatSender [range 15 seconds] c where t.aparty = c.party AND t.bparty = c.bpartyIt is the part of the application without the ISTREAM. R corresponds to a relationship since JOINING the 2 relationships (W1 and W2 in this case) that takes a relationship according to the CQL model.
Now, here's the most important point about the correlation in the JOINTS and the implicit time role. R (t) is obtained by joining the (t) W1 and W2 (t). So using this, we must work the content of R over time
R (0) = JOIN of W1 (0), W2 (0) = {}
the same content up to t = 15, since the W2 is empty until W2 (15)
R (16) = JOIN of W1 (16), W2 (16) = {(9200, 9909)}
same content up to t = 28, even if at t = 18 and t = 28 W1 changes, these changes do not influence the result of the JOIN
R (29) = JOIN of W1 (29), W2 (29) = {(9202, 9901)}Now the actual query is ISTREAM (R). As Alex has explained in the previous post, ISTREAM leads a stream where each Member in the difference r (t) - R (t-1) is associated with the t. timestamp applying this to R above, we get
R (t) - R (t-1) is empty until t = 15
(16) R - R (16 seconds - 1 nanosecond) = (9200, 9909) associated with timestamp = 16 seconds
R (t) - R (t-1) is again empty until t = 29
(29) R - R (29 seconds - 1 nanosecond) = (9202, 9901) associated with timestamp = 29 secondsThis explains the output
Maybe you are looking for
-
Chrome does not open in El Capitan, fine in Safe Mode
My Chrome browser opens that rarely when I start it. I'll try to start Chrome icon in the taskbar bounces for a bit and then nothing. If I ask her, I get the "Application not responding" and have to force quit. Every once in a while, it will be open
-
Test connection connector UNIX
HelloI followed the connector UNIX documentation to test the connector. I executed the command mentioned in the document, but how to check that it has been correctly executed. Please let me know if this is what would be the expected result.Please sug
-
URLRequest (?) compiler error IOS
I noticed a mistake that occurs only after I exported in my iPhone for additional tests.I have a function on my App that tests if the user has access to the internet so that they can use additional features (log in, scores, updates, etc.). Please not
-
I can't convert my pdf to excel or docx format please help?
Impossible to convert my PDF file to excel or docx
-
Hey I have search the Internet and this forum and if you don't find an answer. I use Platform.runLater in a new Thread to draw on a canvas in the main thread and in the documentation for the platform , he says "... to display the Runnable to a queue