How to split column
I m running iOS 10.9.5 and pages 5.2.2. In this version, how i gonna split table column & row like pages v09.
I m running iOS 10.9.5 and pages 5.2.2. In this version, how i gonna split table column & row like pages v09.
Similar Messages
-
How to split column wise into separate flat files in ssis
IN SSIS...
1.---->I have a sales table country wise regions like (india, usa, srilanka) ....
india usa
srilanka
a b
c
d e
f
so i want output like in
flat file1.txt has india flat file2.txt has usa flat file3.txt has srilanka
a b
c
d e
f
2.----->i dont know how many regions in my table....dynamically split into separate flat files ....
pls help me.....thank uI think what you can do is this
1. Do a query based on UNPIVOT to get the data as rows instead of columns
For that you can use a query like this
IF OBJECT_ID('temp') IS NOT NULL DROP TABLE temp
CREATE TABLE temp
Country varchar(100),
Val decimal(25,5)
DECLARE @CountryList varchar(3000),@SQL varchar(max)
SELECT @CountryList = STUFF((SELECT ',[' + Column_Name + ']' FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '<SalesTableNameHere>' FOR XML PATH('')),1,1,'')
SET @SQL= 'SELECT * FROM <SalesTableNameHere> t UNPIVOT (Val FOR Country IN (' + @CountryList + '))p'
INSERT temp
EXEC (@SQL)
Once this is done you'll get data unpivoted to table
Then you can use a execute sql task with query like above
SELECT DISTINCT Country FROM Temp
Use resultset option as full resultset and store the result to an object variable
Then add a ForEach loop container with ADO enumerator and map to the object variable created above. Have variables inside loop to get inidvidual country values out.
Inside loop place a data flow task. Use a variable to store source query , make EvaluateAsExpression true for it and set Expression as below
"SELECT Val FROM Temp WHERE Country = " + @[User::LoopVariable]
Where LoopVariable is variable created inside loop for getting iterated values
Inside data flow task place a oledb source, choose option as SQL command from variable and map to the above query variable.
Link this to flat file destination create a flat file connection manager. Set a dynamic flat file connection using expression builder. Make it based on a variable and set variable to increment based on loop iteration
The core logic looks similar to this
http://visakhm.blogspot.ae/2013/09/exporting-sqlserver-data-to-multiple.html
dynamic file naming can be seen here
http://jahaines.blogspot.ae/2009/07/ssis-dynamically-naming-destination.html
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
How to split columns into rows
Hi All,
Below is my table structure:=
SQL> create table split(id number,value varchar2(200));
Table created.
SQL> insert into split values(1,'X,Y,Z');
1 row created.
SQL> insert into split values(2,'A,B,C');
1 row created.
SQL> commit;
Commit complete.
Expected Output
ID Value
1 X
1 Y
1 Z
2 A
2 B
3 C
I know the feature of converting rows into columns by listagg in Oracle 11g, but is there any feature to convert rows into columns based on a delemiter..."," in my case.
Please help....
Thanks
Arijit>
is there any feature to convert rows into columns based on a delemiter
>
Here is one way
VAR csv VARCHAR2(100)EXEC :csv := 'abc,de,fg,hij,klmn,o,pq,rst,uvw,xyz';
The query:
WITH data AS( SELECT SUBSTR(csv, INSTR(csv,',',1,LEVEL)+1, INSTR(csv,',',1,LEVEL+1) - INSTR(csv,',',1,LEVEL)-1 ) token FROM ( SELECT ','||:csv||',' csv FROM SYS.DUAL ) CONNECT BY LEVEL < LENGTH(:csv)-LENGTH(REPLACE(:csv,',',''))+2 )SELECT token FROM data;See http://projectwownow.blogspot.com/2010/02/oracle-convert-csv-string-into-rows.html -
How to Split Column Data Based on Identifier
Hi,
I am using oracle database.
I am having data in this format in my column 1234~2345~3456~4567.
I need a query to split the data in the column based on the identifier '~',so that i can pick out the value after the second occurrence of the identifier.
May i know who can i achieve this.
Edited by: 962987 on Oct 3, 2012 12:11 PMHi,
Welcome to the forum!
Whenever you have a question, please post CREATE TABLE and INSERT statements for a little sample data, and the results you want from that data. For example, given this data
CREATE TABLE table_x
( my_column VARCHAR2 (40)
INSERT INTO table_x (my_column) VALUES ('1234~2345~3456~4567');
INSERT INTO table_x (my_column) VALUES ('just~2 parts');I think you're asking for these results
PART_3 MY_COLUMN
3456 1234~2345~3456~4567
just~2 partsI assume that, if the string doesn't contain at least 2 '~'s, you want to return NULL. It's a good idea to explain what you want for special cases like that, and include examples in your sample data and results.
Not all versions of Oracle are exactly the same. In fact, they are all different. If you want the best solution that works on your version, then say what version that is.
The following query will work in Oracle 10.1 and higher:
SELECT REGEXP_SUBSTR ( my_column
, '[^~]+'
, 1
, 3 -- 3rd occurrence (after 2nd delimiter)
) AS part_3
, my_column -- if wanted
FROM table_x
;See the forum FAQ {message:id=9360002}
Edited by: Frank Kulash on Oct 3, 2012 3:24 PM
Added sample data and results. -
How to Split the Date Column in OBIEE
Hi,
We have date column name :To_Date and format is MM/DD/YY HH:MM:SS .
How do split the date into YEARS,MONTH,DAY as new columns.
kindly help on this.
Regards.,
CHR
Edited by: 867932 on Nov 23, 2011 10:18 PMHi User,
All 3 functions can be written in rpd too.In BMM layer, duplicate the date column ->Goto Column Mapping tab-> Expression builder ->Select Functions-> Calendar Date/Time Functions-> Select DayofMOnth function. Your logical column's formula will look like,
DayofMonth(YourDateColumn)
Rgds,
Dpka -
How to split list of columns into 2 tables in SSIS 2012?
Hi,
I have 200 columns in Source. Now i want to split these columns, few into Destination A and few more columns into
Destination B. Multi cast i tried to use, but it coping all the columns . Any help would be appreciated. Thanks in Advance.
Lets assume i have columns A,B,C,D,E..
i want to move Columns A,B,D into destination A and
columns A,C,D,E INTO Destination B. please help me to implement this logic?Hi vasu_479,
Based on your description, you want to split columns in source table into two destination tables.
After testing the scenario in my environment, we can use Multicast to achieve your requirement. Just as you said, the Multicast would return all columns. But we can use the method below to achieve the goal:
If the destination tables are existing tables, we can just map column A, B and D as Input Columns to the corresponding Destination Columns in the Mapping tab for destination A. Then map column A, C, D and E in destination B.
If the destination tables are created in the Destination component, we can modify the create table query to directly create A, B and D for destination table A, create A, C, D and E for destination table B. Then there columns would be automatically mapped
in the Mappings pane.
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Splitting Column Data in a Ticker View
Hi All,
How to split the column data into Rows rather in a Single Row in a Ticker View?
I have created a Request with 3 columns viz., Emp ID, EName and Salary. In Ticker View, diplaying the data in 3 rows. But, I would like to display the data as we see in a Table Format i.e.,
1 John 10000
2 Allen 15000
Instead of
1 2
John Allen
10000 15000
Thanks,
-VencyHi,
Thanks for giving Reply.
I knew that we can use HTML tags. I have done with Creating Table and used @{Column_Number} in Row Format.
<Table><tr><td>@2</td></tr><tr><td>@3</td></tr></Table>
Here, @2 is a Second Column Data is occupying only one row i.e., displaying John Allen. But I need to display Allen in the next line as I gave the example in the previous post. I am not getting the way How can I Split that @2 into multiple rows.
Is you are expecting me to do in other way? please suggest..
Thank You,
-Vency -
How to split table in the report so it shows on the next page?
Hi,
How to split table in the report so it shows on the next page? Im trying to fit long (many columns) table into my report page. It is too long however. I want it to wrap and show the rest on the next page. What I get now is table cut at the page end and rest is not visible.Yes, this might be that the amount of data will cause table to grow and exceed 1, 2, 3.. pages. In that case I would probably want to have, lets say , one half of columns on 1st page then the other on the 2nd page and then repeatedly the same sequence down across all pages. Is there a way to achieve this?
-
How to SPLIT data from Uploaded :AZT file at ";"
Dear All Experts,
I need to upload an :AZT file and then SPLIT the data of .AZT fiel at ";" into various fields into an internal table "itab" and then I need to save/update these data of internal table "itab" to database table "ZLT_AZT" . But I am facing some problems in the output. So please follow the following to understand my problem and please suggest me as how to SPLIT the data correctly at each ";".
1) The code that I wrote in se38.
2) The attachement; Projekt ABAP AZT file upload doubt5.jpg; the screen shot of the output that i am getting in internal table "itab" during debugging after my code is executed in se38
PROBLEM: I am unable to SPLIT the data at ";".
3) The attachement; Projekt ABAP AZT fiel upload doubt4.jpg: the screen shot of the data populated in database table "ZLT_AZT" in se11.
PROBLEM: i) I am not able to see all the columns. I am only able to see the 8 if 9 columns. I did go to Sellting--> Format List-->Choose Fields and selected all the fields but it didn't worked. Also I went to Settings-->User Parameters-->Databrowser and here I tried to change the width of output list but still it didn't work.
1) So the code in se38 is:
DATA itab TYPE STANDARD TABLE OF zlt_azt.
DATA wa_tab TYPE zlt_azt.
DATA: file_str1 type string.
Parameters: p_file1 type localfile.
At selection-screen on value-request for p_file1.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
STATIC = 'X'
CHANGING
file_name = p_file1.
Start-of-Selection.
file_str1 = P_file1.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_str1
tables
data_tab = itab
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT itab INTO wa_tab.
SPLIT wa_tab AT ';' INTO wa_tab-M2 wa_tab-k2 wa_tab-A2 wa_tab-P2 wa_tab-S2 wa_tab- D1 wa_tab-STD wa_tab-BES.
Write: sy-uline(120),
/ sy-vline,
2 wa_tab-M2,
11 sy-vline,
13 wa_tab-k2,
25 sy-vline,
27 wa_tab-A2,
32 sy-vline,
34 wa_tab-P2,
39 sy-vline,
41 wa_tab-S2,
46 sy-vline,
48 wa_tab-D1,
60 sy-vline,
62 wa_tab-STD,
72 sy-vline,
74 wa_tab-BES,
120 sy-vline.
ENDLOOP.
MODIFY zlt_azt FROM TABLE itab.
Looking forward to your valuable feedback to my new problems.
Best regards
Chandan KumarHi Chandan,
I am sorry for typing wrong at a place - Now try the corrected one
data it_string type stringtab.
data lv_string type string.
DATA itab TYPE STANDARD TABLE OF zlt_azt.
DATA wa_tab TYPE zlt_azt.
DATA: file_str1 type string.
Parameters: p_file1 type localfile.
At selection-screen on value-request for p_file1.
CALL FUNCTION 'KD_GET_FILENAME_ON_F4'
EXPORTING
STATIC = 'X'
CHANGING
file_name = p_file1.
Start-of-Selection.
file_str1 = P_file1.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = file_str1
tables
data_tab = it_string
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT it_string INTO lv_string. " <<<<< previously I wrote loop at itab>>>
clear wa_tab.
SPLIT lv_string AT ';' INTO wa_tab-M2 wa_tab-k2 wa_tab-A2 wa_tab-P2 wa_tab-S2 wa_tab- D1 wa_tab-STD wa_tab-BES.
append wa_tab to itab.
Write: sy-uline(120),
/ sy-vline,
2 wa_tab-M2,
11 sy-vline,
13 wa_tab-k2,
25 sy-vline,
27 wa_tab-A2,
32 sy-vline,
34 wa_tab-P2,
39 sy-vline,
41 wa_tab-S2,
46 sy-vline,
48 wa_tab-D1,
60 sy-vline,
62 wa_tab-STD,
72 sy-vline,
74 wa_tab-BES,
120 sy-vline.
ENDLOOP.
MODIFY zlt_azt FROM TABLE itab.
Regards,
Rachna -
How to split the report into different versions view 1 agent delivery
Hello
I have a scenario where I need to send a dashboard to multiple users. The user information are stored in the table like the following:
USER Day Car Pay Type Cost Email
USER1
-10
-2
Honda
Customer Pay
500
[email protected]
USER2
-4
-1
AUDI
Customer Pay + Warranty
1000
[email protected]
USER2
-4
-1
PORSCHE
Customer Pay + Warranty
1000
[email protected]
Now I have a dashboard call Car, on this dashboard I have prompts like Date, Car, Pay Type, Cost, pretty much the same name as the columns in the above table. I have also set up session variables to pick up users based on the log in.
Now for user2, he is getting 1 email, which is the dashboard with both Audi and Porsche on there. Instead, he wants to 2 attachments, 1 for Audi and 1 more Porsche. Is there a way to achieve this using 1 agent?
Please let me know how to split the result sets based on user records in the table
Thank youHello,
Thank You very much for the useful hint.
Regards
Aloha -
How to split a page in to two in smart form
how to split a page into two in smart form, so that the data that is printed in one column when reaches the end of the column, continues with the second column?
if u r using a secondary window.........it cannot possible to split..........
if u r using a main window............sap will take care abt data flow in to second page...
if u have any restrictions to print 10 records in one page and another 10 records in another page....keep a page break....or mantion the page break in condtions tab....
reward points if helpful............. -
How to split the string by datetime in sql
Hi,
How to split the string by datetime in sql, I've a table with comments column stores comments by datetime, while selecting I want to split and show as in rows by each jobref.
can anyone help me in this please.
Thanks,declare @callcentre table (comments varchar(max),lbiref varchar(200))
insert into @callcentre
select '(28/10/2014 14:56:14) xyz ..... call logged (28/10/2014 14:56:58) xyz ..... call updated (28/10/2014 14:57:41)xyz ..... call updated','Vi2910201'
insert into @callcentre
select '(29/10/2014 14:56:14) xyz ..... call logged (29/10/2014 14:56:58) xyz ..... call updated (29/10/2014 14:57:41)xyz ..... call updated','Vi2910202'
insert into @callcentre
select '(30/10/2014 14:56:14) xyz ..... call logged (30/10/2014 14:56:58) xyz ..... call updated
output:
1) 28/10/2014 14:56:14, (28/10/2014 14:56:14) xyz ..... call logged ,'Vi2910201'
2) 28/10/2014 14:56:58 ,(28/10/2014 14:56:58) xyz ..... call updated ,'Vi2910201'
3) 28/10/2014 14:57:41, (28/10/2014 14:57:41)xyz ..... call updated,'Vi2910201'
4) 28/10/2014 14:56:14, (28/10/2014 14:56:14) xyz ..... call logged ,'Vi2910202'
5) 28/10/2014 14:56:58 ,(28/10/2014 14:56:58) xyz ..... call updated ,'Vi2910202'
6) 28/10/2014 14:57:41, (28/10/2014 14:57:41)xyz ..... call updated,'Vi2910202'
7) 28/10/2014 14:56:14, (28/10/2014 14:56:14) xyz ..... call logged ,'Vi2910203'
8) 28/10/2014 14:56:58 ,(28/10/2014 14:56:58) xyz ..... call updated ,'Vi2910203'
Thanks,
See this illustration
declare @callcentre table (comments varchar(max),lbiref varchar(200))
insert into @callcentre
select '(28/10/2014 14:56:14) xyz ..... call logged (28/10/2014 14:56:58) xyz ..... call updated (28/10/2014 14:57:41)xyz ..... call updated','Vi2910201'
insert into @callcentre
select '(29/10/2014 14:56:14) xyz ..... call logged (29/10/2014 14:56:58) xyz ..... call updated (29/10/2014 14:57:41)xyz ..... call updated','Vi2910202'
insert into @callcentre
select '(30/10/2014 14:56:14) xyz ..... call logged (30/10/2014 14:56:58) xyz ..... call updated','Vi2910203'
SELECT LEFT(p.u.value('.[1]','varchar(max)'),CHARINDEX(')',p.u.value('.[1]','varchar(max)'))-1) AS [Date],
'(' + p.u.value('.[1]','varchar(max)') AS comments,
lbiref
FROM
SELECT lbiref,CAST('<Root>' + STUFF(REPLACE(comments,'(','</Data><Data>'),1,7,'') + '</Data></Root>' AS XML) AS x
FROM @callcentre c
)t
CROSS APPLY x.nodes('/Root/Data')p(u)
and the output
Date comments lbiref
28/10/2014 14:56:14 (28/10/2014 14:56:14) xyz ..... call logged Vi2910201
28/10/2014 14:56:58 (28/10/2014 14:56:58) xyz ..... call updated Vi2910201
28/10/2014 14:57:41 (28/10/2014 14:57:41)xyz ..... call updated Vi2910201
29/10/2014 14:56:14 (29/10/2014 14:56:14) xyz ..... call logged Vi2910202
29/10/2014 14:56:58 (29/10/2014 14:56:58) xyz ..... call updated Vi2910202
29/10/2014 14:57:41 (29/10/2014 14:57:41)xyz ..... call updated Vi2910202
30/10/2014 14:56:14 (30/10/2014 14:56:14) xyz ..... call logged Vi2910203
30/10/2014 14:56:58 (30/10/2014 14:56:58) xyz ..... call updated Vi2910203
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page -
How to split the blob byte array and insert in oracle
how to split the blob byte array and insert in oracle
I am having a string which is of more than lenght 4000 so i am using BLOB datatype as input to get the string.
need to split the blob in oracle and store in the different column
The string is of bytearray i need to strore it in each column based on the byte array.this will be my input i need to split the above and store it in different columns in a table.
for spliting say
Column1 -1 byte
Column2-3 byte
Column3-5 byte
ColumnN-5 byte
Table will have corresponding data type
Column1 - number(10,2)
Column2 - Float
Column3 - Float
ColumnN-Float
here Column2 datatype is float but it will always have 3 byte information.
where as Column3 datatype is also float but it will always have 5 byte information.
Say N is Column 120 -
Split column into multiple text and number columns
I'm trying to figure out how to split this column into multiple columns with power query. One column for the company name/person name, one for the address, one for the zip. Some of the addresses have a three or four digit code before the address, which
I would like in its own column too. It's the 170 on the lastname, firstname line. Does anyone have any pointers on this? I'm familiar with PQ advanced editor, but struggling with this one.
COMPANY INC. 195 MAIN ST MYCITY ST 12345
LASTNAME, FIRSTNAME 170 477 ANY STREET CIRCLE MYCITY ST 12345
Thanks for your help!HI Gil,
We have column with more than one numbers separated by space or comma or semicolon.
We need to add the row for each number by keeping all other column value same.
Here is a original table
Col1
Col2
Col3
A
B
11 22,33 44; 55
C
D
10 20
and expected output should be
Col1
Col2
Col3
A
B
11
A
B
22
A
B
33
A
B
44
A
B
55
C
D
10
C
D
20
Please let us know the best way to solve this... -
How to Split/Bend a tabular into 3 parts in a Form?
Hi Form Experts,
My questions is how to split a tabular into 3 parts on the canvas.
Say I have a table like following.
create table a (
id number,
name varchar2(10)
insert into a values(1,'a');
insert into a values(2,'b');
insert into a values(3,'c');
insert into a values(4,'d');
insert into a values(5,'e');
insert into a values(6,'f');
insert into a values(7,'g');
insert into a values(8,'h');
insert into a values(9,'i');
In a Form, I would like to show 'table a' in a tabular, but it was cut into 3 parts.
It is like a 3x3 array.
The first 3 records are displayed on the first column, the middle 3 records are in the 2nd column,the last 3 records are in the last column.
1,a 4,d 7,g
2,b 5,e 8,h
3,c 6,f 9,i
When I do the execute_query to this Text Item, I can use Key-up and Key-down to scroll the records.
The reason why I want to make it, just because if the records cannot fit in one screen, I can bend it to the right side.
Can you guys give me any hints or solutions?
Appreciate in advance.
PhilI think we have maybe a communication problem.
I interpreted your question to be how to separate two paragraphs top and bottom, but now it looks more like you want to separate multi-paragraph "sections" into two parts top and bottom, and yo are coorect, what I suggested does not do that.
What MIGHT work would be to put text frames on the master pages, two on each, one above the other (and these two frames can actually overlap to allow for content of different lengths). The two top frames should have vertical alignment set to top, the lower frames should be set to bottom. Thread the top frame on the left to the bottom frame on the left, then the top frame on the right and the bottom frame on the right.
If the paragraph style for the first paragraph in any "section" is set to start in next frame you should jump from frame to frame each time you hit a new section, and the there will never be more than two sections on a page, with the maximum gap available (though if there is a particularly long section, you might need to artificially adjust a frame height to create a gap, especially if the frames overlap), no matter how many paragraphs appear in the section:
The threading here looks confusing. The top frames extend not quite to the bottom, and the lower frames come not quite to the top, so the outport on the upper frame is lower on the page than the inport on the lower frame. I'vew added numbers so you can see the sequence.
Maybe you are looking for
-
can not log into itunes, get the following error message: c:\program files (x86)\itunes\itunes help.exe R6034 I have uninstalled and reinstalled and still unable to login
-
Problem while working with shuttle lists in APEX 3.2
Hi all, My requirement is to populate a table whose SQL DDL is: CREATE TABLE "C_BIA_MOD_PROD_LINE_VER_REL" ( "PRODUCT_LINE_VERSION" VARCHAR2(100) NOT NULL ENABLE, "MODULE_CODE" VARCHAR2(100) NOT NULL ENABLE, CONSTRAINT "C_BIA_MOD_PROD_L
-
WBS Element Populated on Asset GL Account Line Ledger 90
Hello All, For preliminay settlement of a WBS element to an AuC asset, how do you get the WBS element to populate on the account line for the asset gl account in ledger 90? Currently, I'm working in R/3 4.7 and the WBS populates on both sides of the
-
Airport has a self-assigning IP address...
Hi. I'm using a high-speed modem provided by my ISP which is connected to a Belkin wireless router. I was connecting perfectly fine with the Airport card in my home up until yesterday when I try to connect, I get an error message "there was an error
-
How can I replace iPhone 4's broken screen?
My iPhone 4's screen was broken, can it be replaced and whtat's the cost?