The problem of the spreadsheet table
Hello everyone
I have a picture of worksheet to write my data into an excel file of the DAQmx which measures the pressure, but I get too much data under the measure. Anyone know how to get rid of it, because I want exactly the same as my 2D array data in the excel file (one measurement every second).
Thanks in advance
Orlando
Tags: NI Software
Similar Questions
-
Problem using: read the spreadsheet file
Hello
I have 2 problems with reading spreadsheet file:
(1) for the use of .txt file I can get the first column and not the other (even if I chose the correct output...)
(2) this does not at all when you use my .xls file
I must do something wrong but can't find what...
Has anyone an idea?
I have attached the .VI and my two files.
Thank you
User
A native Excel file is NOT a text file. It is a format of custom file created by Microsoft. This is why you must use ActiveX to interact with him.
The worksheet ' ' folder features found in the work of LabVIEW with text files (delimited by tabs, CSV, etc.). The text files are a format more generic that can be read by programs such as Notepad. Tried to use Notepad to open an .xls file? It does not work. Excel can open a text file, because it is a generic format.
So even if everyone automatically thinks "Excel" when they see the word "Spreadsheet", the two are not synonymous. In the case of LabVIEW, 'Spreadsheet' made reference to a delimited text file.
Who is?
-
Problem when selecting a table after you have created the dblink
Hello
We have created the dblink for oracle to sql server and created successfully,
But while selecting the oracle table, we receive the question below,
Select * from 'sysdiagrams"@omniyat;
ERROR on line 1:
ORA-00942: table or view does not exist
[Microsoft] [ODBC SQL Server driver] [SQL Server] Incorrect object name
'sysdiagrams '. {42S 02, NativeErr = 208} [Microsoft] [ODBC SQL Server driver] [SQL
Server] instructions could not be prepared. {NativeErr 42000, 8180 =}
ORA-02063: preceding 2 lines of DAMAC
Please provide us with the solution for this problem.
Concerning
Sham
Hi S27.
We had the similar problem, and I guess you went to the database MSSQL and verified that the table exists in fact.
The problem we encountered was that we were in the wrong database on the instance of MSSQL. I am unsure of your Setup, but if this is your case, you can try either by setting the database default to the ODBC connection to the correct on the instance MSSQL database (can be done on Windows, I'm not sure about Linux), or you can USE the command through the :
SELECT DBMS_HS_PASSTHROUGH.EXECUTE_IMMEDIATE@<
> ('USE < >') FROM DUAL; You try your select statement from the DB link.
-
Insert the problem using a SELECT table with an index by TRUNC function
I came across this problem when you try to insert a select query, select returns the correct results, but when you try to insert the results into a table, the results are different. I found a work around by forcing a selection order, but surely this is a bug in Oracle as how the value of select statements may differ from the insert?
Platform: Windows Server 2008 R2
11.2.3 Oracle Enterprise Edition
(I've not tried to reproduce this on other versions)
Here are the scripts to create the two tables and the data source:
Now, execute the select statement:CREATE TABLE source_data ( ID NUMBER(2), COUNT_DATE DATE ); CREATE INDEX IN_SOURCE_DATA ON SOURCE_DATA (TRUNC(count_date, 'MM')); INSERT INTO source_data VALUES (1, TO_DATE('20120101', 'YYYYMMDD')); INSERT INTO source_data VALUES (1, TO_DATE('20120102', 'YYYYMMDD')); INSERT INTO source_data VALUES (1, TO_DATE('20120103', 'YYYYMMDD')); INSERT INTO source_data VALUES (1, TO_DATE('20120201', 'YYYYMMDD')); INSERT INTO source_data VALUES (1, TO_DATE('20120202', 'YYYYMMDD')); INSERT INTO source_data VALUES (1, TO_DATE('20120203', 'YYYYMMDD')); INSERT INTO source_data VALUES (1, TO_DATE('20120301', 'YYYYMMDD')); INSERT INTO source_data VALUES (1, TO_DATE('20120302', 'YYYYMMDD')); INSERT INTO source_data VALUES (1, TO_DATE('20120303', 'YYYYMMDD')); CREATE TABLE result_data ( ID NUMBER(2), COUNT_DATE DATE );
You should get the following:SELECT id, TRUNC(count_date, 'MM') FROM source_data GROUP BY id, TRUNC(count_date, 'MM')
Now insert in the table of results:1 2012/02/01 1 2012/03/01 1 2012/01/01
Select the table, and you get:INSERT INTO result_data SELECT id, TRUNC(count_date, 'MM') FROM source_data GROUP BY id, TRUNC(count_date, 'MM');
The most recent month is repeated for each line.1 2012/03/01 1 2012/03/01 1 2012/03/01
Truncate your table and insert the following statement and results should now be correct:
If someone has encountered this problem before, could you please let me know, I don't see what I make a mistake because the selection results are correct, they should not be different from what is being inserted.INSERT INTO result_data SELECT id, TRUNC(count_date, 'MM') FROM source_data GROUP BY id, TRUNC(count_date, 'MM') ORDER BY 1, 2;
Published by: user11285442 on May 13, 2013 05:16
Published by: user11285442 on May 13, 2013 06:15Most likely a bug in 11.2.0.3. I can reproduce on Red Hat Linux and AIX.
You can perform a search on MOS to see if this is a known bug (very likely), if not then you have a pretty simple test box to open a SR with.
John
-
problem in the form of master-detail when you use the ADF table for detail
Hello
jdev version - 11.1.2.1.0
I create master shape detail using datacontrol drag as ADF master shape secondary Table.
Now when I create a new line in the detail table using the key CreateInsert a new empty row created on top of the secondary table.
and other show line that the previous record data based on the master.
problem is I want to when I click on the createInsert button all the line of the secondary table must be empty and what line to fill two or three user then validate.
Thanks in advanceHello
If a secondary table has data, then createInsert adds to them. If you want to hide the existing lines, create a new instance of the View object and set the option "extract database" to "No. Rows. Use an af:switcher to change the specified table when the user clicks the createInsert button. There is some coding needed to have this use case in the ADF, but its essentially declarative. Bottom line, is that there is no option automated other than to create new lines in a separate page or dialog box if you are bothered by existing lines
Frank
-
Problems with slot-shaped table and set the values of column
Hello
I have a problem with a tabular presentation.
I have two tables
P_detail and table v_master
columns of v_master:
v_id
v_Name
v_info
columns of p_detail:
P_ID
p_master_fk
p_name
p_info
I want to have a tabular presentation where I can store permanent data retail values. That's why I want to keep the default main column join the detail columns.
In SQL, I can do this with an outer join:
SELECT m.v_name, d.p_master_fk, d.p_name, d.p_info
OF v_master, p_detail
WHERE v_id = p_master_fk (+)
I get the lines that exist for the master data and can add values for the columns of detail. I removed the "add lines" because that makes no sense, because the amount lines are already offered at the opening of the tabular presentation.
Now, I want to get/save the v_id (main table) in the p_master_fk column value
How can I do this?
Thank you and best regards,
MatthiasHello
One approach is to use a database instead trigger. If you define a database view using the query:
SELECT m.v_id, m.v_name, d.p_id, d.p_master_fk, d.p_name, d.p_info
OF v_master m, p_detail d
WHERE v_id = p_master_fk (+)Then, create a trigger on the view that will insert in the detail table if d.p_id is null and update the secondary table if d.p_id is not null instead.
The Apex tabular form is then based on the view (with identifiers like hidden columns) and all treatments multirow Apex should work without modification.
Rod West
-
Export form data to a spreadsheet to repeat the rows in the dynamic table
My form has a table near the top that has a table row that is repeated when a button is clicked. Some users of the form click this button only once and others can click twice or several times. How to export data when the same form may contain a different number of these fields?
Hello
Each instance of the repeating line will have its own set of columns in the worksheet. So if one of the returned forms had five instances of the repeating line, then the spreadsheet merged would have five sets of columns. When one of the returns had only a single instance, then it can only contain data in the first set of columns in the worksheet.
Hope that helps,
Niall
-
Calc problem with fact table measure used in the bridge table model
Hi all
I have problems with the calculation of a measure of table done since I used it as part of a calculation in a bridge table relation.
A table of facts, PROJECT_FACT, I had a column (PROJECT_COST) whose default aggregate is SUM. Whenever PROJECT_COST was used with any dimension, the appropriate aggregation was made at appropriate levels. But, no more. One of the relationships that project_fact is a dimension, called PROJECT.
PROJECT_FACT contains details of employees, and every day they worked on a project. So for one day, employee, Joe, could have a PROJECT_COST $ 80 to 123 project, the next day, Joe might have $40 PROJECT_COST for the same project.
Dimension table, PROJECT, contains details of the project.
A new feature has been added to the software - several customers can now be charged to a PROJECT, where as before, that a single client has been charged.
This fresh percentage collapse is in a new table - PROJECT_BRIDGE. PROJECT_BRIDGE has the project, CUSTOMER_ID, will BILL_PCT. BILL_PCT always add up to 1.
Thus, the bridge table might look like...
CUSTOMER_ID BILL_PCT PROJECT
123 100.20
123 200.30
123 300.50
456 400 1.00
678 400 1.00
Where to project 123, is a breakdown for multiple clients (. 20,.30.50.)
Let's say in PROJECT_FACT, if you had to sum up all the PROJECT_COST for project = 123, you get $1000.
Here are the steps I followed:
-In the physical layer, PROJECT_FACT has a 1:M with PROJECT_BRIDGE and PROJECT_BRIDGE (a 1:M) PROJECT.
PROJECT_FACT = > PROJECT_BRIDGE < = PROJECT
-In the logical layer, PROJECT has a 1:M with PROJECT_FACT.
PROJECT = > PROJECT_FACT
-Logical fact table source is mapped to the bridge table, PROJECT_BRIDGE, so now he has several tables, it is mapped (PROJECT_FACT & PROJECT_BRIDGE). They are defined for an INTERNAL join.
-J' created a measure of calculation, MULT_CUST_COST, using physical columns, which calculates the sum of the PROJECT_COST X the amount of the percentage in the bridge table. It looks like: $ (PROJECT_FACT. PROJECT_COST * PROJECT_BRIDGE. BILL_PCT)
-J' put MULT_CUST_COST in the presentation layer.
We still want the old PROJECT_COST autour until it happened gradually, it is therefore in the presentation layer as well.
Well, I had a request with only project, MULT_CUST_COST (the new calculation) and PROJECT_COST (the original). I expect:
PROJECT_COST MULT_CUST_COST PROJECT
123. $1000 $1000
I'm getting this for MULT_CUST_COST, however, for PROJECT_COST, it's triple the value (perhaps because there are quantities of 3 percent?)...
PROJECT_COST MULT_CUST_COST PROJECT
123 $1000 (correct) $3000 (incorrect, it's been tripled)
If I had to watch the SQL, you should:
SELECT SUM (PROJECT_COST),
SUM (PROJECT_FACT. PROJECT_COST * PROJECT_BRIDGE. BILL_PCT),
PROJECT
Of...
PROJECT GROUP
PROJECT_COST used to work properly at a table of bridge of modeling.
Any ideas on what I got wrong?
Thank you!Hello
Phew, what a long question!
If I understand correctly, I think the problem is with your old measure of cost, or rather that combines with you a new one in the same request. If you think about it, your request as explained above will bring back 3 rows from the database, that's why your old measure of cost is multiplied. I think that if you took it out of the query, your bridge table would work properly for the only new measure?
I would consider the migration of your historical data in the bridge table model so that you have one type of query. For historical data, each would have a single row in the bridge with a 1.0 BILL_PCT.
Good luck
Paul
http://total-bi.com -
Problem, out the second table based on ID in the first table data
Hi everyone: I was stuck for a few days to a few questions. And here's one:
I have a table of COURSE. I also have a summary of COURSES which displays all courses and related information page.
When a user clicks on a specific course he will lead them to a page of details for this specific courses. PROBLEM: Everything works well except: I have a separate table that contains information of teachers. The two tables are related by The Primary Key (PERSONNEL_ID) in the table of teachers (called PERSONNEL_LISTS) and MT_ID in the COURSES TABLE. I don't want the MT_ID to be displayed on the details page: I have teachers want first and last name.
Here are two tables:
http://www.coolflasher.com/Courses_table.gif
http://www.coolflasher.com/Personnel_table.gif
The SQL that is currently used on the course detail page is:
< name cfparam = "URL. Default COURSE_ID"="-1 ">".
< name cfparam = default 'URL_COURSE_ID' = '#URL. COURSE_ID #">"
< cfparam name = default 'SESSION._Insert_COURSES' '-1' = >
< name cfquery = "CLASS" datasource = "SCHEDULING_TRACKER" >
SELECT *.
COURSES
WHERE COURSE_ID = < cfqueryparam value = '#URL. "COURSE_ID #" cfsqltype = "cf_sql_numeric" > OR (-1 = < cfqueryparam value = "" #URL_COURSE_ID # "cfsqltype ="cf_sql_numeric"> AND COURSE_ID = < cfqueryparam value =" #SESSION._Insert_COURSES # "cfsqltype ="cf_sql_numeric">")
< / cfquery >
And I'm out of the MT_Code: cfoutput > #COURSES.MT_ID # < / cfoutput >
I tried to add the table PERSONNEL_LISTS of the request, but I can't figure how to get it out of the column FIRST_NAME and LAST_NAME that correspond with the MT_ID in the table of COURSE. Table of coursesDo not use select *.
The two most common ways to join the tables are:
FROM table1 join table2 on table1.somefield = table2.somefield
and
FROM table1, table2
where table1.somefield = table2.somefieldYour code example doesn't have.
-
I was looking for the solution and find many examples, but I do not know what is the best in my option and don't understand everything.
I realized that can't do a SELECT query in the table where trigger is triggered. But I have need SELECT COUNT (col), then MAX (id) of this table, update some statistical info...
And also need to row id update, so I can't do trigger of table instead of relaxation of the line.So this is my TRIGGER:
create or replace
update_stat relaxation
AFTER UPDATE ON TABLE1 TO EACH LINE
DECLARE
juice FLOAT;
all the NUMBER;
end NUMBER;
BEGIN
IF (: old.ended <>: new.ended) THEN
SELECT COUNT (id) FROM end FROM table1 WHERE fk_table2 = new.fk_table2 AND finished = 1; -Error in the table of mutation
SELECT COUNT (id) FROM everything FROM table1 WHERE fk_table2 = new.fk_table2; -Error in the table of mutation
Juice: = ((end /all) * 100);
UPDATE table2 SET suc = success WHERE id =:new.fk_table2;
END IF;
END;
I also tried with
pragma autonomous_transaction;
trigger body....AND
commit;
But don't working right when insert more records.
Thanks, Urban
Data and structure of the example table
SQL> create table table2 2 ( 3 id integer 4 , success number 5 , constraint table2_pk primary key (id) 6 ); Table created. SQL> create table table1 2 ( 3 id integer 4 , id_t2 integer 5 , ended integer 6 , constraint table1_pk primary key (id) 7 , constraint table1_fk_id_t2 foreign key (id_t2) references table2 8 ); Table created. SQL> insert into table2(id, success) values (1, 0); 1 row created. SQL> insert into table2(id, success) values (2, 0); 1 row created. SQL> insert into table1 2 ( 3 id 4 , id_t2 5 , ended 6 ) 7 select level 8 , ceil(level/10) 9 , 0 10 from dual 11 connect by level <= 20; 20 rows created. SQL> commit; Commit complete.
Create objects to the suite
create or replace type update_stat_obj as object (id integer, id_t2 integer, ended integer) / create or replace type update_stat_tbl as table of update_stat_obj / create or replace package update_stat_pkg as g_table_1 update_stat_tbl; procedure load(p_id integer, p_id_t2 integer, p_ended integer); procedure updt; end; / show err create or replace package body update_stat_pkg as procedure load(p_id integer, p_id_t2 integer, p_ended integer) is begin if g_table_1 is null then g_table_1 := update_stat_tbl(); end if; g_table_1.extend; g_table_1(g_table_1.count) := update_stat_obj(p_id, p_id_t2, p_ended); end; procedure updt is begin merge into table2 t2 using ( select t1.id_t2 , (count(t2.id)/count(t1.id))*100 success from table1 t1 left join table(g_table_1) t2 on t1.id = t2.id and t2.ended = 1 group by t1.id_t2 ) t1 on (t2.id = t1.id_t2) when matched then update set t2.success = t1.success; g_table_1 := null; end; end; / show err create or replace trigger update_stat_row_trig after update on table1 for each row begin if (:old.ended <> :new.ended) then update_stat_pkg.load(:new.id, :new.id_t2, :new.ended); end if; end; / show err create or replace trigger update_stat_trig after update on table1 begin update_stat_pkg.updt; end; / show err
Now look for the UPDATE.
SQL> select * from table1; ID ID_T2 ENDED ---------- ---------- ---------- 1 1 0 2 1 0 3 1 0 4 1 0 5 1 0 6 1 0 7 1 0 8 1 0 9 1 0 10 1 0 11 2 0 12 2 0 13 2 0 14 2 0 15 2 0 16 2 0 17 2 0 18 2 0 19 2 0 20 2 0 20 rows selected. SQL> select * from table2; ID SUCCESS ---------- ---------- 1 0 2 0 SQL> update table1 set ended = 1 where id between 1 and 7 or id between 11 and 19; 16 rows updated. SQL> select * from table2; ID SUCCESS ---------- ---------- 1 70 2 90 SQL> select * from table1; ID ID_T2 ENDED ---------- ---------- ---------- 1 1 1 2 1 1 3 1 1 4 1 1 5 1 1 6 1 1 7 1 1 8 1 0 9 1 0 10 1 0 11 2 1 12 2 1 13 2 1 14 2 1 15 2 1 16 2 1 17 2 1 18 2 1 19 2 1 20 2 0 20 rows selected.
-
Problem with the af:table links and views
I want to display a table with data from a database table called PERSON, so I use af:table tag.
The PERSON table has the following fields:
- PERSON_CODE
- PERSON_NAME
- PERSON_COD_STATE
The PERSON_STATE field is a foreign key to another table called PERSON_STATE:
- PERSON_COD_STATE
- DESCRIPTION
I created a view for the data of the PERSON (personView) table. Because I want to show the person status description in the af: table, I created another view for the data in table PERSON_STATE (personStateView). And I've also created a link between personView and personStateView.
In the column of the af: table that represents the State of no one, I drop the field 'description' of the State view linked to the view of anyone.
When I run the JSP, the State is not displayed correctly. All persons are displayed with the same State.
During the test directly with the application module, the display link works correctly.
View links inside an af:table work?
I work with ADF 10 g.
Thank you
Your scenario should be treated with a sql (VO on two EOs) join with a relationship master / detail. The table will be able to browse the details for each master record to time stamping.
-
Problem with the records to display in the advanced table of the popup window OPS
Dear all,
I have a requirement as below.
I have a contextual search page I displays the data sought in the advanced table, but the question is of all the rows displayed in the window pop up due to the size of the window dolls, even I'm not able to view the button 'Next' in the table to proceed following files, can anyone suggest me how to display the button 'NEXT' in the table , so i can display all the records in the table.
or is it possible to implement "SCROLLBAR" in table advanced in the pop up window so that I can scroll vertically and horizontally to display the records.
Thank you
My question solved thanks
-
Selection of records in the same table problem
Hi all
I have the following table
My results should bewith emp as ( select '11' A,'aaa' B, '40' C from dual union all select '11','bbb', '40' from dual union all select '33','ccc', '30' from dual union all select '44','ddd', '20' from dual union all select '11','eee', '10' from dual )
Basically the requirement is select different combination of values in the column 'B' need to know what is the value of 'A' (it must be the same for all records of three)A B C 11 aaa 40 11 bbb 40 11 eee 10
Hope in this sense.
See you soon
Sexyan attempt to rephrase:
you want all the files "aaa", "bbb" and "EEA" where, for each set of column A, where they exist.
that is, if games to have only "aaa" and "bbb" but not "eee" in column B, then you don't want to retrieve this record?
Try this:
SQL> with emp as ( 2 select '11' A,'aaa' B, '40' C from dual union all 3 select '11','bbb', '40' from dual union all 4 select '33','ccc', '30' from dual union all 5 select '44','ddd', '20' from dual union all 6 select '11','kkk', '20' from dual union all 7 select '10','eee', '20' from dual union all 8 select '11','eee', '10' from dual 9 ) 10 select a, b, c 11 from (select emp.*, count(*) over (partition by a) cnt 12 from emp 13 where b in ('aaa','bbb','eee')) 14 where cnt = 3 15 / A B C -------------------------------- -------------------------------- -------------------------------- 11 eee 10 11 aaa 40 11 bbb 40 3 rows selected.
Published by: WhiteHat June 30, 2011 11:04
-
Problem with update of table (using the subquery to retrieve value)
Hello
I update a table based on the value of the subquery.
Here's the update statement.
UPDATING temp xm
SET xm.col1 = (SELECT DISTINCT col1
Of
(SELECT col1, col2 COUNT (col2)
FROM table2
WHERE col1 = xm.col1
AND col2 = xm.col2
GROUP BY col1)
where col2 in (select... in the table3)
)
WHERE xm.col5 = < value >
AND xm.col6 = < value >
When I run this statement I get following error.
ORA-00904: "XM". "" Col1 ": invalid identifier.
Can someone help me why I get this error?
Why doesn't the main table alias in the subquery?
Is it possible to avoid this / re - write the query in a different way?
Thank you
Published by: user552703 on November 2, 2009 20:42You can nest only 1 level deep (referring to the table to be updated).
Have you looked at using the MERGE command? It is "easier" perform updates of this nature, assuming you are using a recent version of Oracle (9 or MORE).
-
Problem with the name of the dynamic Table
Hi all
I can't using a dynamic table name. I have the following code...
When I try to execute it I get an errordeclare l_cur sys_refcursor; l_ID int; l_tableName varchar(30); BEGIN open l_cur for select hkc.ColumnID, mapping from &HKAPPDB_Schema_Name..doctablemapping ddm inner join &HKDB_Schema_Name..HKColumns hkc on hkc.doctablemappingid = ddm.id where ddm.id > 0; LOOP FETCH l_cur into l_ID, l_tableName; EXIT WHEN l_cur%notfound; -- update missing VerbID in DocumentDocMapping table UPDATE &HKAPPDB_Schema_Name..IndexedDocument SET VerbID = (SELECT t.VerbID FROM (SELECT DocRef, VerbID, DateUpdated FROM &HKAPPDB_Schema_Name..l_tableName dd - this is where the dynamic table name is used WHERE dd.VerbID is not NULL)) WHERE HKColumnID = l_ID AND VerbID is NULL; END loop; end; /
ORA-00942: table or view does not exist
What I am doing wrong?
Kind regards
TobyYou cannot use a variable instead of a table name. You must build the dynamic SQL. Search for IMMEDIATE EXECUTION or DBMS_SQL in Document Oracle.
Maybe you are looking for
-
I have a faulty ram (top) slot for a Mid 2012 Macbook Pro 13 "i5. Can I install a 8 GB Ram in the slot below or is maximally 4 GB? This was after the 3 beep error and I couldn't restart the Mac with one of the 2 GB of Ram into the lower slot. Is the
-
Cannot export contacts Notes using automator?
Hello I use automator to save my contacts into one. VCF. I use the Export vCard command. It works fine, but if I have notes attached to the contacts, they are not exported to the. VCF file. I think that it is a bug, unless someone can tell be what I'
-
How to recover data to a dvd - r backup system
Several months ago, I did a full system back up to 3 DVD-R discs. My hard drive has failed, and after I replaced it I download data on the disks of backup to my computer.
-
HelloI built a rdf using pivot option BI-Publisher. When I saw on my local machine it generates the output correctly. But what rtf downloaded in EBS and simultaneous is run it see as finished phase and status as a warning. Output is generated in xml
-
Display numbers in Millions fields
I have a numeric column in the analysis which shows sales figures that are large enough, sometimes in the billions. I work to show sales on a chart.I would like to show the figures in millions of dollars as 250M, 450M, etc.When I use the format #, #.