Concatenate the integers between a table?
Hi all
I have a table with 4 separate inside numbers, let's say they are: [1, 0, 1, 0]
When you retrieve the table, they appear as follows: 1, 0, 1, 0
But I would like to recover the matrix of a single number: 1010
What would be the best way to do this?
Thank you very much for your time.
Brendan
What Ned said work, but it's simpler to use Array.join:
var a: Array = [1,0,1,0];
trace (a.Join(""));
1010
Tags: Adobe Animate
Similar Questions
-
concatenate the data in 2 tables in a third table as well as in CONCATENATE strings
Hello. as the title says, I wish to only concatenate the data in 2 tables in a similar third table that concatenate strings don't. All tables should be 1 d. For example, suppose that there is 1 table with the following: 1. 2; 3; 4 and table 2 with:; b; c; d. I would like a table 3 either 1 a, 2 b, 3 c, 4 d. Now this could be done easily with above mentioned concatenate strings, then table construction. but table 1 and 2 have something like 150 items. Rather painful. Any ideas?
Hold arrays of two strings in a loop for example, concatentate the strings inside the loop and run the result réécrirait array3.
Autoindexing manages table manipulations.
MIke...
-
What is the difference between a table and a subform?
What is the difference between a table and a subform in LC forms? Please post your answers about the merits and demerits of using subforms instead of tables.
Hello
a table is simply a set of subforms with a particular role.
It is easier to handle the tables if they must be dynamic (add or remove lines, show or hide lines when page breaks appear etc..).
And Designers UI has some dialogue prepared in the object palette to simplify the settings of the tables.
For subforms, dialog boxes are more frequent, so you have yourself a little more script.
But at least you can do everything with subforms as you can do with tables.
The only one who is not very good with tables we work when you wrap arrays in other tables.
-
The most elegant way to get the difference between two tables - not least!
Hello
Simplified example of what I'm trying to achieve - I have two tables ORIGINAL and REVISED.
My aim is to compare the two, such as; -
When there is data in the two tables I get the difference between the Budget column, and if there is no difference, so I don't want no lines.
When data exists in the ORIGINAL, but not in review, I want to the inverse of the current value of the Budget column.
Where the data exist in REVISED I want the REVISED value.
I can see how I can do this, see below, but is there a more elegant solution?
Data for the ORIGINAL table
Data for the REVISED tableselect '801040' entity, '2186' expense_type, 234000 budget from dual union all select '801040' entity, '3001' expense_type, 1000 budget from dual union all select '801040' entity, 'P132' expense_type, 34000 budget from dual union all select '801040' entity, 'P135' expense_type, 43000 budget from dual
Desired outputselect '801040' entity, '2186' expense_type, 235000 budget from dual union all select '801040' entity, 'P132' expense_type, 34000 budget from dual union all select '801040' entity, 'P139' expense_type, 56000 budget from dual
ENTITY EXPENSE_TYPE DIFFERENCE
------ ------------ ----------
801040 2186 1000
801040 3001-1000
801040 P135-43000
801040 P139 56000
5 selected lines.
Code current to achieve this, is there a better way?
Thanks a lot for your comments,.select original.entity , original.expense_type , (nvl(revised.budget,0) - original.budget) as difference from original , revised where original.entity = revised.entity(+) and original.expense_type = revised.expense_type(+) and (nvl(revised.budget,0) - original.budget) != 0 union all select revised.entity , revised.expense_type , revised.budget as difference from revised where not exists (select 'x' from original where original.entity = revised.entity and original.expense_type = revised.expense_type) and revised.budget != 0
Robert.
Published by: Robert Angel on January 17, 2012 03:31 to change is not equal to! = - Thanks for the heads upSQL> with original 2 as 3 ( 4 select '801040' entity, '2186' expense_type, 234000 budget 5 from dual 6 union all 7 select '801040' entity, '3001' expense_type, 1000 budget 8 from dual 9 union all 10 select '801040' entity, 'P132' expense_type, 34000 budget 11 from dual 12 union all 13 select '801040' entity, 'P135' expense_type, 43000 budget 14 from dual 15 ) 16 , revised 17 as 18 ( 19 select '801040' entity, '2186' expense_type, 235000 budget 20 from dual 21 union all 22 select '801040' entity, 'P132' expense_type, 34000 budget 23 from dual 24 union all 25 select '801040' entity, 'P139' expense_type, 56000 budget 26 from dual 27 ) 28 select * 29 from ( 30 select nvl(o.entity, r.entity) entity, 31 nvl(o.expense_type, r.expense_type) expense_type, 32 nvl(r.budget,0) - nvl(o.budget,0) budget 33 from original o 34 full join revised r 35 on o.entity = r.entity 36 and o.expense_type = r.expense_type 37 ) 38 where budget <> 0 39 / ENTITY EXPE BUDGET ------ ---- ---------- 801040 2186 1000 801040 P135 -43000 801040 3001 -1000 801040 P139 56000 SQL>
-
Please help understand the mappings between PS &; tables tables of data warehouse
Hello
We have OBIEE 11 g with OLIVIER 7.9.6.3 (HR Analytics) installation with Informatica PowerCenter SE 9.01 HF2. We use PeopleSoft HRMS 9.1 system source.
Can you please help me how to understand the flow of data from end to end (or data model with relationship) between the PeopleSoft Tables and tables of data warehouse? Y at - it none available who liaises between the PeopleSoft HRMS tables and tables of data warehouse?
PS We are new to Informatica workflow maps to find it very difficult to understand each mapping for each table.You can use the guide to table HR analytics on metalink. Here's the note:
HR Analytics, Oracle Business Intelligence - Source tables uses [ID 1328607.1]
This will show you the use of the main table. If you need the full line, you can use the data lineage Guide.
If it helps, please mark as correct.
-
The spacing between a table and the edge of the page
For a table, instead she's px or more away from the left edge, can 2 you do it right up against the left edge?Under Page Properties, change the left margin 0 pixels. Who must drag your page to the brim.
-
How to find the relationship between the tables
Hello
I am working in Oracle R12
How to find the relationship between these tables INV_MIN_MAX_TEMP, po_requisition_lines_all and Per_all_people_f
These two tables, I joined with po_requisition_lines_all and Per_all_people_f To_person_id of PO and anyone HR table but I can't able to join this table with other tables INV_MIN_MAX_TEMP
concerning
Srikkanthsolved
-
What is the difference between cached and no cached TT tables
Hi all
I have three users in my Timesten
User Admin 1.TimesTen - cache
2 - cacheuser user cache manager
3.cbs_owner user schema (which is the same name as the user of oracle schema)
I have a few groups of cache in timesten for oracle tables, I created some tables on user schema TTs to compile tables pacakges.these not associted with groups of cache;
My question is what is the difference between cahed tables (tables associted with cache groups) and not cached (associted with any group of cache) TTs schema user, nice tables want to help me
example-
Command > tables;
CBS_OWNER. ACCOUNT_SUBSCRIBER / / table belongs to the Group of cache
CBS_OWNER. OFFER_REF / / not belogs to any group of table cache
Thank you
-AK
Published by: AK08 on June 13, 2010 23:30I just started to investigate TimesTen... and I think that the cache groups allow you to replicate data to and from Oracle. for example
-Group of cache Read-Only: spreading tables cached in Oracle to TimesTen.
-Group of asynchronous/synchronous cache: spreading the Oracle data.
-User managed group cache: no automatic update or spread.No cached tables do not have the features of spread.
-
Hello
We strive to integrate the OPA attributes to the Cloud Service Oracle tables to store session data for the customer portal users.
We tried mapping the attributes of the OPA with relevant tables of cloud Service Oracle? Is there any installation of additional data to create to retrieve the session data for the particular user / contact?
We managed to save tha data in arrays of cloud Service for users of ananymous and also well regarding customers portal users but to preconfigure data do we need to do any additional configuration / mapping to the contact table?
Please help on the establishment of the relationship between the contact and Global (new table created in cloud Service) tables.
Thank you
Vivek
Hi Vivek,
To load data from the Contact in the the OPA policy template, you must configure the widget of the OPA. For instructions, see the following articles:
- Incorporate an interview that uses data portals in Oracle Service Cloud Customer Portal
- Deploy and configure the sample OPA widget
- Insert the widget to sample in a customer portal page
Obviously, you need to do the mapping in OPM as well, but even if the mapping is correct, you will not be able to load the Contact data unless the widget of the OPA is implemented.
See you soon,.
Jasmine
-
SQL Developer / Data Modeler - lost visual on the relationships between the tables
11 GR 2 DBMS / SQL Developer 4.0.3
In SQL Developer, using the Data Modeler I lost the visuals 'lines' (one to several, etc.) which show the PK to FK relationship between different tables from one of my patterns of relationship. I know they exist - I'm sure it's my fault--put out something that I don't have.
I looked on the web but without SOAP. Can anyone tell me if it is a property and (as applicable) how to re - turn on the property.
Thanks in advance.
Barry D.
Sorry - I found it - the relationship lines were VERY clear yellow and I could barely see it.
Article by Jeff Smith on the model configuration screen has been very useful in this regard.
Thank you Jeff (again).
Barry D
-
What is the difference between the type of table and view?
Hello world.
What is the difference between the type of view and table that we can set using SQL statement such as: "tab type is table of...» » ?
A view is a stored query.
An array type is a construction of PL/SQL.
Both are documented:
http://docs.Oracle.com/CD/E11882_01/server.112/e10897/schema.htm#ADMQS0841
-
The differences between CAT and table TAB
1. What is the difference between cat and TAB?
2. why TAB does not exist in dict?
3. that the same situation for cat and TAB?
Thanks a lot for your answer kindly.
sys@ORCL > cat desc
Name Null? Type
----------------------------------------------------- -------- ------------------------------------
TABLE_NAME NOT NULL VARCHAR2 (30)
TABLE_TYPE VARCHAR2 (11)
sys@ORCL > tab desc
Name Null? Type
----------------------------------------------------- -------- ------------------------------------
TNOM NOT NULL VARCHAR2 (30)
TABTYPE VARCHAR2 (7)
NUMBER OF CLUSTERID
sys@ORCL > select * dict where table_name = "CAT";
TABLE_NAME COMMENTS
---------- -----------------------------------
Synonym of cat for USER_CATALOG
sys@ORCL > select * dict where table_name = 'USER_CATALOG ';
TABLE_NAME COMMENTS
-------------------- -----------------------------------------------------------------
USER_CATALOG Tables, views, synonyms, and sequences belonged to the userYou've posted enough to know that, for each position, you will need to provide your version of Oracle 4-digit (SELECT * FROM V$ VERSION)
>
1. What is the difference between cat and TAB?
2. why TAB does not exist in dict?
3. that the same situation for cat and TAB?
>
1, 2, 3 - TAB has been deprecated then don't use it.Definitioni of base for those located in the reference database
http://docs.Oracle.com/CD/B28359_01/server.111/b28320/statviews_2127.htm#sthref1535
>
CATCAT is a synonym for USER_CATALOG.
. . .
USER_CATALOGUSER_CATALOG lists all the tables, views, clusters, synonyms, and sequences belonged to the current user. Its columns are the same as those of "ALL_CATALOG".
. . .
DICTDICT is a DICTIONARY.
. . .
DICTIONARYDICTIONARY contains descriptions of data dictionary tables and views.
. . .
TABTAB is included for compatibility. Oracle recommends that you do not use this view.
>
TAB has been deprecated. He looks like the cat because it shows the USER objects, but it does not show the sequences, like the cat.If you look at the source code for the views TAB and USER_CATALOG you can see the differences. This code is copyrighted by Oracle Corporation, all rights reserved.
/* Formatted on 1/1/2013 8:50:07 AM (QP5 v5.115.810.9015) */ CREATE OR REPLACE FORCE VIEW SYS.TAB ( TNAME, TABTYPE, CLUSTERID ) AS SELECT o.name, DECODE (o.type#, 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM'), t.tab# FROM sys.tab$ t, sys."_CURRENT_EDITION_OBJ" o WHERE o.owner# = USERENV ('SCHEMAID') AND o.type# >= 2 AND o.type# <= 5 AND o.linkname IS NULL AND o.obj# = t.obj#(+); . . . /* Formatted on 1/1/2013 8:54:45 AM (QP5 v5.115.810.9015) */ CREATE OR REPLACE FORCE VIEW SYS.USER_CATALOG ( TABLE_NAME, TABLE_TYPE ) AS SELECT o.name, DECODE (o.type#, 0, 'NEXT OBJECT', 1, 'INDEX', 2, 'TABLE', 3, 'CLUSTER', 4, 'VIEW', 5, 'SYNONYM', 6, 'SEQUENCE', 'UNDEFINED') FROM sys."_CURRENT_EDITION_OBJ" o WHERE o.owner# = USERENV ('SCHEMAID') AND ( (o.type# IN (4, 5, 6)) OR (o.type# = 2 /* tables, excluding iot - overflow and nested tables */ AND NOT EXISTS (SELECT NULL FROM sys.tab$ t WHERE t.obj# = o.obj# AND (BITAND (t.property, 512) = 512 OR BITAND (t.property, 8192) = 8192)))) AND o.linkname IS NULL;
-
What is the difference between associative arrays and nested tables?
Hello
What is the difference between associative arrays and nested tables?
nested tables cannot be indexed by other than pls_integer and unlike nested tables table associative cananot be declared at the schema level.
is there any other difference set apart from the diff above 2?user13710379 wrote:
What is the difference between associative arrays and nested tables?Name-value pairs (associative) against a list of values (table standard/nested table).
nested tables cannot be indexed by other than pls_integer
They are not "indexed" the way in which an associative array is indexed. A standard table is referenced by the position of the cell in the table. This position is essentially the offset of the memory of the cell from the start address of the table.
Can not solve a cell in an associative array directly via a memory offset index. You place a cell reference value it by his 'name' (a search in the linked list/hash table).
The following example shows the difference between the pairs of name / value and a list of core values.
SQL> declare 2 --// associative arrays are NAME-VALUE pairs 3 type TArr1 is table of varchar2(10) index by pls_integer; 4 type TArr2 is table of varchar2(10) index by varchar2(10); 5 6 arr1 TArr1; 7 arr2 TArr2; 8 begin 9 arr1(100) := '1st entry'; 10 arr1(1) := '2nd entry'; 11 arr1(5) := '3rd entry'; 12 13 arr2('john') := 'New York'; 14 arr2('jane') := 'Paris'; 15 arr2('jack') := 'London'; 16 17 end; 18 / PL/SQL procedure successfully completed. SQL> SQL> SQL> declare 2 --// standard arrays are lists 3 type TArr3 is table of varchar2(10); 4 type TArr4 is table of number; 5 6 arr3 TArr3; 7 arr4 TArr4; 8 begin 9 arr3 := new TArr3( '1st entry', '2nd entry', '3rd entry' ); 10 11 arr4 := new TArr4( 100, 1, 5 ); 12 end; 13 / PL/SQL procedure successfully completed. SQL>
-
How to find the Union between the column in the table
Hello
I have the followin table and I want to find the union between the lines as below,
I need the result to be as below.create table test5 (tidset varchar2(200)); insert into test5 values('1;2;3;4;5;6;7;8;9;10;11;12;13;15;16;17;18;19;20'); insert into test5 values('1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20'); insert into test5 values('1;2;3;4;6;7;8;9;11;12;13;15;16;19;20'); insert into test5 values('1;4;6;10;6;11;12;13;14;15;16;17;18;19;20');
any help please,.1;4;6;11;12;13;15;16;19;20
Published by: user11309581 on November 17, 2011 21:32Always mention what version of oracle you are using.
The following query will give you the desired result oracle version 11g release 2.
Connected to Oracle Database 11g Release 11.2.0.2.0 SQL> SQL> with test5 as 2 ( 3 select '1;2;3;4;5;6;7;8;9;10;11;12;13;15;16;17;18;19;20' tidset from dual union all 4 select '1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20' from dual union all 5 select '1;2;3;4;6;7;8;9;11;12;13;15;16;19;20' from dual union all 6 select '1;4;6;10;6;11;12;13;14;15;16;17;18;19;20' from dual -- "END OF SAMPLE DATA" 7 ), all_items as 8 ( 9 SELECT regexp_substr(t.tidset, '[^;]+', 1, column_value) item 10 ,t.tidset 11 FROM test5 t 12 ,TABLE(CAST(MULTISET 13 (SELECT LEVEL 14 FROM dual 15 CONNECT BY LEVEL <= 16 length(regexp_replace(t.tidset, '[^;]')) + 1) AS 17 sys.odcinumberlist)) 18 ),item_counts as 19 ( 20 SELECT DISTINCT a.item 21 ,COUNT(DISTINCT a.tidset) over() total_tidset 22 ,COUNT(a.item) over(PARTITION BY a.item) item_occurance_count 23 FROM (SELECT DISTINCT item 24 ,tidset 25 FROM all_items) a 26 ) 27 SELECT listagg(item, ';') within GROUP(ORDER BY to_number(item)) common_items 28 FROM item_counts 29 WHERE total_tidset = item_occurance_count 30 ; COMMON_ITEMS -------------------------------------------------------------------------------- 1;4;6;11;12;13;15;16;19;20 SQL>
OR if you have any version of oracle less than 11g release 2 then replace below mentioned line
SELECT listagg(item, ';') within GROUP(ORDER BY to_number(item)) common_items
with this one
select xmlagg(xmlelement(c,item||';').extract('//text()') order by (to_number(item))) common_items
It is because the listagg function used in above query is not supported in versions of oracle 11.2 below.
I hope this helps.
-Gregory
Published by: Mohamed Diarra on November 18, 2011 01:05
Extra line to be changed for the oracle version lower than 11.2 -
I need to implement Drag N Drop between two tables that saves the two records
I need to implement Drag N Drop between two tables that saves the two records on a third page, using drag 'n drop.Check out this video http://baigsorcl.blogspot.com/2011/01/drag-and-drop-collection-in-oracle-adf.html
Maybe you are looking for
-
Need new HDD for my Satellite A200 - 19L
Hello I want to buy a new hard drive from Western Digital, but I don't know which is compatible with my laptop? My laptop isToshiba Satellite A200 - 19LModel No.: PSAESE-00H003AR Thank you
-
Hi, I received an email today that I suspect is not authentic. Who can I send this message through, to check if it is please?
-
Pavilion g6 2005ax: drivers bluetooth for g6 2005 ax with win8.1
recently, I installed win8.1 and bluetooth has stopped working completely. No transfer of files at all. He continues to display a yellow exclamation point. Please help me as soon as possible. hardware ID: USB\VID_0CF3 & PID_311D & REV_0001USB\VID_0CF
-
I downloaded the latest version of iTunes on my pc, running Vista, and after downloading a podcast for a year now the error "stopped (err = 3259). Look at the response from Apple to 'disable firewalls' doesn't sound like too his opinion to me - maybe
-
Care + memory leaks...
It would seem that the timesheet class has a few holes in it, a memory leak: If you try something like: for (int i = 0; i) { Sheet * x = Sheet:: create(); Delete (x); } so unless the details pane Malloc from the perspective of information system QNX,