Column string data as separate rows
Hello.
We have a table with data that looks like:
id.........text
1.........Section1: some text||Section2: some text||Section3: some text
We would like to get and show data from column text as:
Section1: some text
Section2: some text
Section3: some text
It would look as 3 different rows.
We need to write a function but how?
Thanks.
This will look like 3 rows, but will really be in 1 row:
SQL>select REPLACE('Section1: some text||Section2: some text||Section3: some text','||',CHR(13)||CHR(10)) cols
2 from dual;
COLS
Section1: some text
Section2: some text
Section3: some text
Similar Messages
-
Grand Total & Headings as separate row
Is it possible to put the grand total BEFORE in a table view?
Can I display Table & Column Headings as separate rows in a pivot table?
I initially wanted to use a table view because I also need the Table & Column Heading to be displayed as separate row on top...(column properties in Table View: Display Column & Table Headings= As separate rows)...
but I also need the Grand Total to be on top (Before) but the only option in Table View is None & After.
I've seen that the Grand Total BEFORE is available in Pivot table view, but in Pivot I can't display column & table headings as separate rows.
Any idea how to have that 2? (Grand Total Before & Display Column & Table Headings as separate rows)
Thanks,
JanneHiey Kishore,
Here is the problem which I have. I have the table with 6 columns first 4 columns have details and last 2 columns have measures. I can apply color to Label and Measure. but the problem is that the whole line color does not change it just changes color of the column which has the label and the color of the Measures.. inbetween 3 column gets the default light blue color. Is there is a way to change that?
Thanks -
Hello,
Tell Me how i can show a single column data in one row.
10
20
30
To
10,20,30If you are OK with displaying comma separated list or column data you could:
SQL> select ltrim(sys_connect_by_path(ename,','),',') ename_list
2 from (
3 select ename,
4 row_number() over(order by 1) rn,
5 count(*) over() cnt
6 from emp
7 )
8 where rn = cnt
9 start with rn = 1
10 connect by rn = prior rn + 1
11 /
ENAME_LIST
SMITH,ALLEN,WARD,JONES,MARTIN,BLAKE,MILLER,SCOTT,KING,TURNER,ADAMS,JAMES,FORD,CLARK
SQL> To display as separate columns you would need to either know number of rows:
SQL> select min(case rn when 1 then ename else null end) ename1,
2 min(case rn when 2 then ename else null end) ename2,
3 min(case rn when 3 then ename else null end) ename3,
4 min(case rn when 4 then ename else null end) ename4,
5 min(case rn when 5 then ename else null end) ename5,
6 min(case rn when 6 then ename else null end) ename6,
7 min(case rn when 7 then ename else null end) ename7,
8 min(case rn when 8 then ename else null end) ename8,
9 min(case rn when 9 then ename else null end) ename9,
10 min(case rn when 10 then ename else null end) ename10,
11 min(case rn when 11 then ename else null end) ename11,
12 min(case rn when 12 then ename else null end) ename12
13 from (
14 select ename,
15 rownum rn
16 from emp
17 )
18 /
ENAME1 ENAME2 ENAME3 ENAME4 ENAME5 ENAME6 ENAME7 ENAME8 ENAME9 ENAME10 ENAME11 ENAME12
SMITH ALLEN WARD JONES MARTIN BLAKE CLARK SCOTT KING TURNER ADAMS JAMES
SQL> or use dynamic SQL.
SY. -
Data with two rows in a single column
I have been working on a report with the customer due amounts shown in bucketed columns eg 1-30 , 31-60 etc for each Customer,
so for each column I want to show an additional row with the % of the due amounts for each bucketed column.
. The format of report should look like below in pivot/table view
|Customer| |Due1-30 | Due31-60 | Due60+ | Total |
|XYZ | | 3000 | 2000 | 5000 | 10000 |
| |%Due | 30% | 20% | 50% | 100% |
ABC….
I have to get the percentages on the measure values in a separate row(not as a seperate column). Could you please help me how to get result like the format what I have shown
Thanks,
BP
Edited by: user8116383 on May 6, 2011 8:55 AMHi
This can be achievable by using Pivot view.
1.In Columns field place the customer and place the measure lables in the rows field and the measure column in measure field.
2.Duplicate the measure column and name it as %Due and click more options on this duplicated column and click shown data as -> percent of -> Row
Thanks
Diney -
Splitting comma seperated column data into multiple rows
Hi Gurus,
Please help me for solving below scenario. I have multiple value in single column with comma seperated values and my requirement is load that data into multiple rows.
Below is the example:
Source Data:
Product Size Stock
ABC X,XL,XXL,M,L,S 1,2,3,4,5,6
Target Data:
Product Size Stock
ABC X 1
ABC XL 2
ABC XXL 3
ABC M 4
ABC L 5
ABC S 6
Which transformation we need to use for getting this output?
Thanks in advance !Hello,
Do you need to do this tranformation through OWB mapping only? And can you please tell what type of source you are using? Is it a flat file or a table?
Thanks -
Inserting String data to BLOB column
Hi All
I want to insert String data into BLOB column using DBAdapter - through database procedure.
anybody can help?
Regards
Albin IssacI have used utl_raw.cast_to_raw('this is only a test')).But for bigger string I get the error as "string literal too long" do we have any similar function for longer string.
Thanks,
-R -
Hello All,,
There used to be an option in Hyperion planning 11.1.1.3 to Dynamic add rows in data form. I don't see this option in planning 11.1.2.1 ?
Could you please suggest how we can grant right users to add dynamic add rows and columns in data forms? or it is possible in 11.1.2.1 ?
out user want to have a feature of adding row in data forms (planning forms)
Thank you
Edited by: 842804 on Aug 17, 2011 12:49 PMDo you mean 11.1.2, if so then adhoc web forms really take over from adding rows as they add much more functionality.
Cheers
John
http://john-goodwin.blogspot.com/ -
How to aggregate a column based date column (for weekly single row)?
How to aggregate a column based date column (for weekly single row)?
Hi,
Consider the below statement for daily bases which is ok
SELECT ID, DATE, SUM(AMOUNT) FROM TABLE_NAME GROUP BY ID, DATE ORDER BY ID, DATE
The same like the above statement, I want output on weekly, fortnightly, and monthly bases, How to do this? Need your help... -
Maximum number of rows and columns in data form
Hi,
I wanted to know if there is a limitation to the number of rows and columns that can be displayed in a data form, in Hyperion planning 11.1.2.1 ?
And what would be the most appropriate number of rows and columns to be included for optimum performance.
Thanks.Hi,
While its a fun fact to determine how much one can stuff into a web form, the reality is: how much can a user reasonably consume in a web form?
And what would be the most appropriate number of rows and columns to be included for optimum performance
You will find that the answer to this is by "what design makes a web form most usable?" And no, the users don't really know what they want from a design perspective, they see it in their head, but usually what they ask for is something that would look entirely different (huge).
The next thing to think about is the use of member selection functions in the page axis. IDescendants(Entity) in a dropdown could cause issues just as easily as too many rows - and again make the drop down unusable for a user.
If your question is a bit more technical, then consider this (somewhat oversimplified): Web forms are constructed by a process on the server. Objects are created based on the form's definition and used by the process that builds the form. The process uses Cartesian looping (lots of iterations) to construct the form cell by cell, starting at the top left and finishing up in the bottom right. If the form has a million cells on it, then the loop and all the code within it runs a million times. The capability of the server has a lot to do with how well it can handle this request, and how many it can handle at one time.
The result of this is gobs of HTML and JavaScript. All of this has to be sent over a network to the requesting client. The client starts receiving the web page code and has to render it in the browser and run the JavaScript. The ability to do this is limited by the browser, the OS, and the hardware that the client is running on.
And that's just rendering the page for use.
Now it has to be interacted with on the client machine, and changes parsed, packaged, and sent back to the server.
So the technical answer is, there can be many limitations to how many rows and columns a data form can have - none of which can truly be anticipated by anyone. This is why I put the part about usability first in this post.
Regards,
Robb Salzmann -
Problem Summary
DG4ODBC: STRING DATA, RIGHT TRUNCATION ERROR WHILE ACCESSING VARCHAR(MAX) COLUMN
Driver
Microsoft® ODBC Driver 11 for SQL Server® - RedHat Linux
Problem Description
When selecting a MS SQL VARCHAR (max) column over a ODBC Gateway database connection I am getting this error from Oracle:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
[Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
[Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
[Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
[Microsoft][ODBC Driver 11 for SQL Server]String data, right truncation {01004}
ORA-02063: preceding 2 lines from <LINK_NAME>
The ODBC driver should map the varchar(max) column to SQL_LONGVARCHAR which would be appropriate for Oracle but the column is getting truncated
Issue
By default the SQL Server ODBC driver exposes the varchar(max) data type as a SQL_VARCHAR. When reporting the maximum size of a varchar(max) column, the driver returns 0, which is the Microsoft convention for "unlimited".
[ODBC][25518][1399527750.588980][SQLDescribeCol.c][497]
Exit:[SQL_SUCCESS]
Column Name = [raw_response]
Data Type = 0x7fffe3cbe1a4 -> 12
Column Size = 0x7fffe3cbe158 -> 0
Decimal Digits = 0x7fffe3cbe1ac -> 0
Nullable = 0x7fffe3cbe1b0 -> 1
DG4ODBC is unable to interpret a zero length as an "unlimited" size and returns an error when retrieving varchar(max) data.
FreeTDS and DataDirect ODBC drivers return SQL_LONGVARCHAR instead of SQL_VARCHAR with 0 precision. So there is no problem reported for these drivers.
Is there a fix for this or is the Microsoft ODBC driver team working on a fix for the driver regarding varchar(max)?
Regards,
JamesHi James,
Thank you for your question. I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.
If you have any feedback on our support, please click
here.
Regards,
Elvis Long
TechNet Community Support -
Spry:repeat display data in multiple rows/columns
I know how to use spry:repeat to display data in table rows,
one item per row.
Is there a way to tell spry to display data in a grid of x
rows by y columns?
I'm trying to maximize the page's real estate. Here is the
page
http://www.jannah.com/mp3/browse.html
Click on "Artist/Scholar" in "STEP1" section. "STEP2" section
gets filled with a list. I'm trying to display that list in 3
columns and as many rows as needed. How do I do that?
While I'm at it, I also can't figure out why the spry:select
is not working for "STEP2" section; I need to click twice on the
same item to get it highlighted. the other spry selects on the page
work ok. Can someone take a look.
Greatly appreciated.You can't use Spry with tables to do this, but if you're up
to using a div based layout/presentation, it is possible. Check out
the Zuggest sample:
http://labs.adobe.com/technologies/spry/samples/data_region/ZuggestSample.html
It uses floated divs to get the same effect. The nice thing
about using divs, is that more columns dynamically appear as the
horizontal real-estate is expanded.
--== Kin ==-- -
How to display data as separate clumns when db data is as different rows
Hi,
I think i have been confusing the group with UI details.
The basic requirement is " To display the data as columns which is present as rows in the table"
For example : For customer 1 ,there are 4 accounts. This info is available in the db table as 4 rows.
But the OAF display has to be like customer <<account 1 name>><<account 2 name>><<account 3 name>><<account 4 name>>
Also these needs to be advanced table in advanced table in the same feature.
Also all the account name columns are dynamic. There can be 3 accounts for one case and 4 for other and hence needs to be built in CO and cant be defined.
Please advise how do i code different row data as columnar data in a table or advanced table in oaf.
Does this description help you to help me .
Thanks,
RmaHi Rma,
Please try something like this:
drop table t_;
create table t_ (
nm Varchar2(20),
pr Char ( 7),
vl Number
insert into t_ values ('company 1','2003-06', 10);
insert into t_ values ('company 1','2003-07', 29);
insert into t_ values ('company 1','2003-08', 39);
insert into t_ values ('company 1','2003-09', 41);
insert into t_ values ('company 1','2003-10', 22);
insert into t_ values ('company 2','2003-06', 13);
insert into t_ values ('company 2','2003-07', 17);
insert into t_ values ('company 2','2003-08', 61);
insert into t_ values ('company 2','2003-09', 55);
insert into t_ values ('company 2','2003-10', 71);
insert into t_ values ('company 3','2003-06', 33);
insert into t_ values ('company 3','2003-07', 18);
insert into t_ values ('company 3','2003-08', 27);
insert into t_ values ('company 3','2003-09', 5);
insert into t_ values ('company 3','2003-10', 32);
select
nm,
jul,
aug,
sep,
jul+aug+sep "Total"
from (
select
nm,
max(case when pr='2003-07' then vl else null end) jul,
max(case when pr='2003-08' then vl else null end) aug,
max(case when pr='2003-09' then vl else null end) sep
from
t_
group by
nm);
This query returns:
NM JUL AUG SEP Total
company 1 29 39 41 109
company 2 17 61 55 133
company 3 18 27 5 50
I took this from http://www.adp-gmbh.ch/ora/sql/examples/pivot.html
Regards,
Reetesh Sharma -
Hello,
I am working on one project and there is need to extract Sharepoint list data and import them to SQL Server table. I have few lookup columns in the list.
Steps in my Data Flow :
Sharepoint List Source
Derived Column
its formula : SUBSTRING([BusinessUnit],FINDSTRING([BusinessUnit],"#",1)+1,LEN([BusinessUnit])-FINDSTRING([BusinessUnit],"#",1))
Data Conversion
OLE DB Destination
But I am getting the error of not converting between unicode and non-unicode string data types.
I am not sure what I am missing here.
In Data Conversion, what should be the Data Type for the Look up column?
Please suggest here.
Thank you,
Mittal.You have a data conversion transformation. Now, in the destination are you assigning the results of the derived column transformation or the data conversion transformation. To avoid this error you need use the data conversion output.
You can eliminate the need for the data conversion with the following in the derived column (creating a new column):
(DT_STR,100,1252)(SUBSTRING([BusinessUnit],FINDSTRING([BusinessUnit],"#",1)+1,LEN([BusinessUnit])-FINDSTRING([BusinessUnit],"#",1)))
The 100 is the length and 1252 is the code page (I almost always use 1252) for interpreting the string.
Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com -
Column "A" cannot convert between unicode and non-unicode string data types
I am following the SSIS overview video-
https://secure.cbtnuggets.com/it-training-videos/series/microsoft-sql-server-2008-business-development/6143?autostart=true
I have a flat file that i want to import the contents onto a SQL database.
I created a Dataflow task, source file and oledb destination.
I am getting the folliwung error -
"column "A" cannot convert between unicode and non-unicode string data types"
in the origin file the data type is coming as string[DT_STR] and in the destination object it is coming as "Unicode string [DT_WSTR]"
I used a data conversion object in between, dosent works very well
Please help what to doI see this often.
Right Click on FlatFileSource --> Show Advanced Editor --> 'Input and Output Properties' tab --> Expand 'Flat File Source Output' --> Expand 'Output Columns' --> Select your field and set the datatype to DT_WSTR.
Let me know if you still have issues.
Thank You,
Jay -
String type data in Summary Row
Hi,
Can any one hlep out on this..
I am working as a flex developer in one organization.I have a special scenario like,
I want to display comments in Summary Row,
But as per my knowledge Summary Rows can hold only numeric data.is it possible to display String type data in Summary row.
If possible , please provide that piece of code."nikos101" <[email protected]> wrote in
message
news:gq8693$9a$[email protected]..
>I am using the following in a summary row in a
AdvancedDataGrid. How would
>I
> modify it to also display a piechart with its data?
>
> package
> {
> import
mx.controls.advancedDataGridClasses.AdvancedDataGridItemRenderer;
> import mx.controls.listClasses.BaseListData;
>
> public class ItemTotalGBP_Renderer extends
AdvancedDataGridItemRenderer
> {
> public function ItemTotalGBP_Renderer()
> {
> super();
> }
>
> override public function set data(value:Object):void
> {
> super.data = value;
> listData.label = " " + data["totalTransfers"]
> +
> " Transfers " + data["totalGBP_Eq"].toFixed(2) + " GBP
equivalent";
> }
>
> }
> }
The pie chart example here seems really close to what you
want:
http://www.adobe.com/livedocs/flex/3/html/help.html?content=advdatagrid_10.html
Maybe you are looking for
-
Hi guys and girls. Background I have a MacBook Pro (March 2009 vintage). It was loaded with OS X Leopard on a 250GB HDD. When Snow Leopard was released, I upgraded using a DVD bought from Apple. In time, I added an external USB HDD to use for Time
-
FTP task runs fine from SSIS Package Store, always times out in scheduled job
SQL Server 2012 VS 2010 SQL Server data tools FTP Connection Manager - port 21, chunk size 1kb, passive mode=false, saved plain text pw Downloads 1 csv file to local directory on SQL Server box This always works when run from the package. And alway
-
Hello Everyone i am srikanth. i would like to know wheather do we have a facility for Delta Upload for flat file. If yes can u please give me the steps. thanks in advance srikanth
-
Hi All, I am using radiobuttons to display to different field catalogs in ALV Report. Instead i want to display an hyperlink in the grid display and when i click on that it should display the other field catalog. Can u help me on this. Thanx in advan
-
Hello, Consider these lines of code: public class myObject extends JPanel implements PropertyChangeListener public void paint(Graphics g) super.paint(g); g.drawString("foo", 10, 10); public void update(Graphics