Table of the sum of the column of clusters
How I will summarize the table of cluster someone column? As attachmend table of example of clusters.
Use a shift on your loop register FOR keeping the sum. You add the sum of the currents with the value of the current cluster and set the value in the registry to offset. Need you one for every amount you want to take.
Tags: NI Software
Similar Questions
-
Mark from a table where the column value is a colon-delimited list
Version: Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production
Hello
This is a new query of a query Frank helped me with:
Demand is all users to restrict the report based on a multiple selection on the front-end server (application APEX) filter.
The filter returns that a colon-delimited list and the data in the table can be saved in a delimited by a colon list too. There may be 1 to n values (up to 4000 characters).
I need a WHERE clause that will allow a match, if it exists, between the data in the column of the Table and the Mult-selection list filter.
The abbreviated for this post query would be something like:
SELECT slt_id, slt_item, slt_owner
OF slt_dashboard
WHERE slt_owner IN (colon delimited page list);
The Create Table and Insert statements:
CREATE TABLE slt_dashboard ( dashboard_id NUMBER, slt_id VARCHAR2(10), slt_item VARCHAR2(2500), slt_owner VARCHAR2(4000), slt_type VARCHAR2(25), slt_year NUMBER, parent_id NUMBER ); --Insert slt_dashboard INSERT INTO slt_dashboard(dashboard_id,slt_id,slt_item,slt_owner,slt_type,slt_year,parent_id) VALUES (12,'1.1','Implement revenue enhancement initiatives','E15889:JPARISI:BDUR63','Business Commitment',2014,6); INSERT INTO slt_dashboard(dashboard_id,slt_id,slt_item,slt_owner,slt_type,slt_year,parent_id) VALUES (13,'1.2','Strengthen our Energy position','KVROMAN','Business Commitment',2014,6);
I have a function to separate the list delimited by two points in a table for the IN clause, but because these values can be saved in a delimited list of Colon in the column of the Table, I have a problem, being able to analyze the data in the column, AND the filter data.
The function is:
CREATE OR REPLACE FUNCTION get_list( p_string IN VARCHAR2 ,p_delimiter IN VARCHAR2 DEFAULT ':' ) RETURN vc_array_1 PIPELINED IS l_string VARCHAR2( 32000 ); l_array wwv_flow_global.vc_arr2; BEGIN l_array := APEX_UTIL.string_to_table( p_string ,p_delimiter ); FOR i IN l_array.FIRST .. l_array.LAST LOOP PIPE ROW ( TRIM( l_array( i ) ) ); END LOOP; RETURN; END;
The function called in the query in the form (it's just for reference in case someone wanted to know):
SELECT ... FROM ... WHERE slt_owner IN (SELECT * FROM TABLE( get_list( :P115_SLT_OWNER ) ));
But I can't use this approach because the data in the Table can be saved in a delimited list of Colon too.
Desired output:
If the Mult-Select list filter contains: E15889:JPARISI then
1.1 implementation of the E15889 revenue improvement initiatives; JPARISI (it's a semicolon between the names)
If the multiple-selection list filter contains: KVROMAN then
1.2 strengthen our position of energy KVROMAN
If the multiple-selection list filter contains: BDUR63:KVROMAN then
1.1 implementation of the BDUR63 revenue improvement initiatives
1.2 strengthen our position of energy KVROMAN
Please let me know if something is not clear.
Thank you
Joe
I went to approach the Table and the Page works perfectly.
Thank you to everyone!
Thank you
Joe
-
ALTER TABLE with the column NULL time consuming
Hello
I have a table with nearly 2 million documents (about 10 GB size table) when I perform the following change statement its run fast
ALTER TABLE tbl_1 ADD (DEFAULT col_4 NUMBER 100 NOT NULL);
but when I do not give the NOT NULL in the alter its taking a long time to complete this i.e tbl_1 of ALTER TABLE ADD (NUMBER col_4 by DEFAULT 100); once I do the column as NOT NULL.
Can someone explain why is it happening like that regarding the execution point.
Thanks in advance.
I can reproduce the effect in 11.2.0.1 - but not in 12.1.0.1.
drop table tbl_1;
create table tbl_1
as
Select rownum id
, lpad ('* ', 50,' *') padding
of the double
connect by level<=>=>
ALTER TABLE tbl_1 ADD (NUMBER col_4 by DEFAULT 100);
--> slow in 11.2.0.1; fast 12.1.0.1
ALTER TABLE tbl_1 ADD (DEFAULT col_4 NUMBER 100 NOT NULL);
--> Quick 11.2.0.1 and 12.1.0.1
A SQL trace for two operations (11g) shows that the altar slow (without the constraint explicit non-null) made explicit (and tedious) update of any row in the table:
Update 'TBL_1"set"COL_4"= 100
call the query of disc elapsed to cpu count current lines
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Parse 1 0.00 0.02 0 1 0 0
Run 1 11,63 33.56 8336 1016125 2053531 1000000
Fetch 0 0.00 0.00 0 0 0 0
------- ------ -------- ---------- ---------- ---------- ---------- ----------
Total 2 11,63 33,58 8336 1016126 2053531 1000000
The other trace file does not contain the explicit Update. I guess in the optimized case that oracle stores somewhere that col_4 has the value 100 and updates only the line of the block after completing DML operations. But that's just a guess.
-
How to create the Table using the column Drag and Drop feature
Hello:
I'm new to Data Modeler tool Oracle SQL dev and would like to know if there is a way to create a new table by reusing existing columns or groups of columns. The idea is to maintain consistency and save time of table design. If the columns created previously can be reused and require, drag and drop column in the right pane, then only new columns must be created manually.
Any thoughts on this will be appreciated.
Thank you!Yes - just change the name of the model table in the script (t_name = "table_template") then save this new transformation for later use.
I don't know how to apply only some of the tables. Seems like something you could do to a secondary view level?
Perhaps someone else on the forum can advise how to change the script to work on a subview only instead of the whole model.
-
table and the column in the chain
Hello
I'll have a column data containing the combination table and the names of columns as
act_hand_table.work_order
I want the names of table and column separated
I want to separte. Classified
Please help me
Kind regards
KiranI think it'll work
SELECT
SUBSTR (COL1, 1, INSTR(COL1,'.',1,1)-1) TABLENAME.
SUBSTR (COL1, INSTR(COL1,'.',1,1) + 1) COLUMNNAME
FROM TABLENAME -
I took someone else's code and have problems with the width of the columns in a table for sizing.
I have a table to create three columns of work. The table is 905px wide and I want column 140, 350, and the rest in width.
If I put these values < td width = "140"... > etc., while they seem to be neglected, and the three columns are all the same width.
It seems fine in design mode but not in Live View or published. Can someone help me to overcome this please?
Thank you very much.
- Tables in HTML behave in their own way and you do not guarantee the width of columns
- Do not specify the widths of cell via (attributes) HTML
).
The width attribute in thetag is obsolete (the browsers are not required to support or to obey) and it was always a recommendation to the browser in any case, it was never a precise measurement are met. - Learn how to your tables with CSS style
See
http://Veerle.Duoh.com/blog/comments/a_css_styled_table/
-
Table invites the column space question OBIEE 11 g
Hello
I have a relationship with the table view and 2 columns in section guests table. When I see the dashboard report 2 invites showing by far. How can I reduce the space between the 2 column guests?
Any help?
Thank you
Prasanna
I found the solution. The law in the 2nd column of filling. It solves the problem.
-
table and the columns in small capitals!
Dear all,
My database is GR 11, 2 and Linux is the operating system.
One of my application, whose code I cannot access, he is trying to insert records into the Oracle database. The problem is that the application is case sensitive and try to find the table and columns in small capitals, name while he gets the caps of Oracle and gives error or identifier is not valid.
Y at - it option to create fields and the table with small letters.
Kindly help.
Kind regards
ImranUse "" for the table and columns
create table "table_test" ( "col_test" number(12));
-
SQL join on the two tables where the column as another column
Hi all
tried to get the results of a join between two tables where only one column is like another.
Table1 (nameA) examples: black2, green1
Table2 (Name) example: black2.location.uk.com, green1.location.uk.com
so, for example, I want to match all those in table1 with black2 column in table2 that begins with black2 and so of suite, if you see what im trying to get to!
My sql up to now:
but it errors:select * from schema.table1 a join schema.table2 b on a.nameA like concat('%', b.nameB, '%');
ORA-00909: invalid number of arguments
00909 00000 - "invalid number of arguments.
Any help or advice would be greatly appreciated, thank you!Or any of them should do...
select * from schema.table1 a join schema.table2 b on a.nameA like '%'||b.nameB||'%';
or
select * from schema.table1 a join schema.table2 b on instr(b.nameB,a.nameA) > 0
-
Delete rows in a table when the columns from two tables match
Hello
I have following two tables.
===========================================
create the table empbooth as
(
Select 1 empid, 1 double cabin Union all the
Select option 2, Union 1 double all the
Select 3, Union 1 double all the
Select option 4, Union 2 double all the
Select option 5, 2 double
);
create the table attsht as
(
Select 1 empid, 240 reg, 0 unpaid all double union
Select option 2, reg 200, 0 unpaid of all the double union
Select 3, 240 reg, 0 unpaid all double them union
Select 4 480 reg, 0 unpaid all double union
Select 5 240 reg, unpaid double 0
);
=================================================
I want to remove rows from attsht where corresponding booth (which is stored in the empbooth table) is 1.
The condition is 'where attsht.empid = empbooth.empid and empbooth.booth = 1 '.
I use oracle 10g.
Help, please
delete from attsht where a.empid in (select b.empid from empbooth b where b.booth = 1)
or
remove from attsht a
where exists (select null
of empbooth b
where b.booth = 1
and b.empid = a.empid)
-
Error when selecting all the columns in the table
Hi all
When I write a query by selecting all the columns of the table fromo using * function as well as another new column, I get the error,
Select *, to_char (hiredate, 'fmday') day
WCP
where to_char (hiredate, 'fmday') ('Monday');
ERROR on line 1:
ORA-00923: THE KEYWORD not found where expected
I need all the columns in the table with the column user-defined 'day '. Is there a way I can get the result like this?
Hello
padders wrote:
Alias table to use...
Or the name of the table, for example
Select emp.*, to_char (hiredate, "fmday") as day
WCP
where to_char (hiredate, 'fmday') ('Monday');
The bottom line is that * must be qualified (with a table name or alias) when the SELECT clause includes anything else besides *.
-
Remove the column from the compressed tables
NLSRTL 11.2.0.3.0 Production Oracle Database 11g Enterprise Edition 11.2.0.3.0 64 bit Production PL/SQL 11.2.0.3.0 Production AMT for Linux: 11.2.0.3.0 Production Hello
I read on how to do to remove a compressed table column - first set unused and then drop unused columns. However, in the example below on the basis of data, I ran it, it does not work. Please, can you tell me WHEN this approach does not work. What is dependent on - settings or something else. Why can't I drop unused columns?
And the example and errors:
create table tcompressed compress in select * from all_users;
> TCOMPRESSED table created.
ALTER table tcompressed add x number;
> table TCOMPRESSED altered.
ALTER table tcompressed drop the x column;
>
Error report:
SQL error: ORA-39726: unsupported operation column add/drag on compressed tables
39726 00000 - "operation column add/drop not supported on compressed tables. ''
* Cause: Not support add/column operation move compressed tables
elapse.
* Action: When adding a column, do not specify a default value.
DELETE column is only supported in a column SET UNUSED
(remove the column metadata).
ALTER table tcompressed unused column of the set x;
> table TCOMPRESSED altered.
ALTER table tcompressed drop unused columns;
>
Error report:
SQL error: ORA-39726: unsupported operation column add/drag on compressed tables
39726 00000 - "operation column add/drop not supported on compressed tables. ''
* Cause: Not support add/column operation move compressed tables
elapse.
* Action: When adding a column, do not specify a default value.
DELETE column is only supported in a column SET UNUSED
(remove the column metadata).
As you can see even after changing the table defining the column as unused X I still can't drop by DROP UNUSED COLUMNS.
Thank you.
If you enable compression for all operations on a table, you can delete the columns in the table. If you enable compression for the only direct-path inserts, you can't remove columns.
-
How to find the name of the column in the tables
Hello..
Suppose that there are thousands of table in the database. Out of them a few tables contain the column name as 'ENTRY_BY '.
I want to know the tables that have columns like "ENTRY_BY".
... Please suggest for this query.
all_tab_cols
Select * from all_tab_cols
where column_name like ' % INPUT % ';
Post edited by: Rajavignesh
-
on the column in the table with
I chose a table cell, the column width
steady increase, a command can be written
I tried to do, but does not
var myStep = 1; var myTables = app.selection[0].stories[0].tables[0].everyItem().getElements(); for(var n=0;n<myTables.length;n++){ for (i=0; i<myTable.columns.length; i++) if(myTables [n].columns[i].width + myStep<0){myTables [n].columns[i].width= 0; continue}; myTables [n].columns[i].width = myTables [n].columns[i].width + myStep;
Hi hamdifem,
How ' end this:
// Table_ColumnsWidthIncreaseByStep.jsx var myStep = 1; var theTables = app.selection[0].tables.everyItem().getElements(); for (n=0; n
Have fun
-
Ask about the order of the column in a table
We have a table called EMP in several of our patterns. JOB is the third column in order. But in certain patterns, JOB is not the third column. I'm looking for patterns with EMP table where the column of EMPLOYMENT is not the third column.
SQL > desc emp Name Null? Type ----------------------------------------- -------- -------------- EMPNO NOT NULL NUMBER(4) ENAME VARCHAR2(10) JOB VARCHAR2(9) MGR NUMBER(4) HIREDATE DATE SAL NUMBER(7,2) COMM NUMBER(7,2) DEPTNO NUMBER(2) select column_name, column_id from dba_tab_Cols where TABLE_NAME = 'EMP' AND OWNER = 'SCOTT' order by column_id; COLUMN_NAME COLUMN_ID ------------------------------ ---------- EMPNO 1 ENAME 2 JOB 3 --------Third column MGR 4 HIREDATE 5 SAL 6 COMM 7 DEPTNO 8
select owner from dba_tab_Cols where TABLE_NAME = 'EMP' AND OWNER = 'SCOTT' and column_id != 3;
Maybe you are looking for
-
How can I update the location in Photos?
I'm trying to update the location of my pictures. I can change it under "Info" in the menu of the window (set the PIN on the map) and that works fine, but when I go to the Image menu and then click on setting Date and time, and then change the time
-
Pavilion dv6 - dv6-6b69el: Wiriless driver for dv6-6b69el
HelloSuccessfully, I have formatted and reinstalled 64 W7 on my PC.Right now, I need to reinstall the drivers, in particular, I need the driver for wiriless and bluethoot, but there is more than one driver that I can download on this Web site. What i
-
Re: Satellite Pro P300 - turning itself off on the password box
Can someone help with this problem please? Sateliite Pro P300 my daughter will not feed, he died as the power on the password box appears on the screen. I can just make out the word continue until everything goes balnk and the laptop computer shuuts
-
Desktop image freezes, I put computer to sleep, he wakes up on his own and picture freezes. I have image change every 5 seconds. How can I fix?
-
There are also multiple registrations for the same songs, how can I fix?