Change column from CHAR(1) to NUMBER(6)
Hi,
I have to tables referenced by
see my reply in this tread
<a id="jive-thread-3" href="thread.jspa?threadID=432846&tstart=0"
>Please help me</a>
<br>
hope that helps
Similar Messages
-
Including column from fact table reduces number of rows returned
Hello
I am facing this issue where in a report I select 5 columns from a fact table. Out of these five columns one of the column is "Amount" for which the aggregation rule is defined as Sum in RPD.
When I include these five column and filter results based on some criterion , I get all the rows (three rows) that satisfy the criterion. No I add a sixth column to my report and suddenly I only see one row returned by my report. Addition of this sixth column does not affect the criterion as the criterion is not based on this column. But this sixth column is a calculated column.
I tried different things but because the report was just getting columns from one table (fact) and suddenly inclusion of one column leads to reduction in number of rows , I was unable to find any reason why would that happen.
So I thought that some one in community may know that in what scenario this happens.
ThanksAre there any repeated values? I'm wondering if what you're seeing is actually suppression of repetition in the results. Edit the analysis, go to the criteria tab, click column properties, go to the Column Format tab, and change the setting for value suppression from 'Suppress" to "Repeat". Repeat for each of your 6 columns and check the outcome.
Otherwise, I would try testing with other calculations and also bring in some columns from dimension tables to see how this affects the result. You should be able to come up with a case-by-case scenario to work out exactly what causes the rows to be suppressed which will get us one step to closer to working out why the rows get suppressed.
Thanks,
George -
Change columns from header to normal
I don't want the first column to be headers (dark grey).
Only way I found was to uses a pop-up in the inspector to reduce the number of header columns. But this in essence deletes from the left. So what if I already entered some data? I can copy and paste, but then I still have to set the font to non-bold.Correct. The conversion is available, but only in one direction—the leftmost regular column may be converted TO a header column, the topmost regular row may be converted TO a header row, to a maximum of five in each case.
For your situation (one header column that you want to replace with a regular column), you can do the whole table replacement described by Wayne, or you could replace only the single column:
Click on any cell in column B to select it. Press option-left arrow to Add a Column before column B.
Click on the Column A reference tab to Select the whole column. Copy.
Click on cell B1 (in the new column B).
Go Edit > Paste and Match Style.
Click on any cell in column A.
Go Table > Delete Column.
Works fine IF the table contains no formulas that referenced cells in column A. Any such formulas will now show a REF error, and will need to be reconstructed to correct the cell references to the new column A.
You can get past this issue by formatting any cells containing column A cll references as Text before deleting column A, then changing their format back to Automatic (or whatever setting you had previously) after column A is deleted.
Regards,
Barry -
Changing columns from english to Mandarian Language
Hi,
As of now i created a script form in english and now my requirement was to change those column headings to Mandarian language.Could anyone please help me on how to work on this?
Thanks,
Priya.use the transaction SE63
http://help.sap.com/saphelp_sm310/helpdata/en/b4/54601d77f38e429ffad9e3e11c1b25/content.htm
http://help.sap.com/saphelp_sm310/helpdata/en/41/71601b3ab0f34a8e00aa01338c68f3/content.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-basis/transport-of-translations-se63-383226
http://sap.ittoolbox.com/groups/technical-functional/sap-abap/se63-generate-change-request-for-translations-2253377 -
Conversion from Char to Packed Number
Hi,
How do we convert a 18 byte char field(Which contains all numerics) in to a 8 byte field ?
Regards,
HariHi.,,
what is your actual requirement ??
if u want to move a character variable which contains all numerics into a P type field u can directly move it !!
<b>data w_char(18) type c value '1234567'.
data w_p type p decimals 2.
move w_char to w_p.
write w_p.</b>
<u>If you want to hold large numbers then increase the size of P type variable..</u>
<u>data w_p<b>(10)</b> type p decimals 2.</u>
reward if it helps u..
sai ramesh. -
Fact columns Datatype is changing from char to int in OBIEE 11g
Hi ,
I am taking measure columns - "product description","tot cost" against a dimension "project name" .
I am generating this report in a planing form and OBIEE .
in planing form :
product description tot cost
project name
P1 A 1500
p2 B 1700
p3 C 1800
in obiee report :
product description
project name
P1 16 1500
p2 17 1700
p3 19 1800
Somehow , measure's datatype are getting changed from char to number , in OBIEE report.
By default , the data type for all fact's is Double .I tried changing that to varchar , but result is same .
Do I need to change anything in physical layer / RPD .
OBIEE version : 11.1.1.6
Essbase version : 11.1.2Hi ,
Thanks for your reply . To confirm , the data type of product description column is "double" in essbase .
I found out ,thers's a RDBMS table , consisting of two columns - ID, text value . where product description's are in text value's with the corresponding ID's(integer values) .
Now , when I am creating a form in planning , its fetching the text values of product description (there's some inbulit setting's available for this in plannng) .
However , in obiee its fetching the ID values of product description .
So ,
1. Is there any similer setting I can do for OBIEE , so that it's fetches only text value's of product description .
2. If not , then I have to join the essbase fact table with this RDBMS table . I am not sure how to do it . -
Change column datatype from varchar2 to number(10) and keep existing data
Hi,
I need to change the datatype on a column that already has data in it from a varchar2 to number(10). The data that is already there is not necessarily number data, however I must be able to keep the old data to. We are running 10g. Does anyone have any ideas? Thanks. Here's the current data.
Current Values for From_Value
T
U
T2
K
M
A
T
T1
O
E
S
NSTU
4Example of keeping the data in the current column and adding a new numeric column for numeric data:
SQL> drop table t purge;
Table dropped.
SQL> create table t(i int, x varchar2(10));
Table created.
SQL> insert into t values(1, 'T1');
1 row created.
SQL> insert into t values(2, 2);
1 row created.
SQL> --
SQL> alter table t add (xn number);
Table altered.
SQL> --
SQL> begin
2 for c in (select i, x from t)
3 loop
4 begin
5 update t set xn = to_number(c.x) where i = c.i;
6 exception
7 when invalid_number then null;
8 end;
9 end loop;
10 end;
11 /
PL/SQL procedure successfully completed.
SQL> show errors
No errors.
SQL> select * from t;
I X XN
1 T1
2 2 2 -
Table control change column position or number
Hi Guys,
I need to move a column from position 10 to position 5 in the standard program. I did change the table control position in screen painter by doing cut and past of columns at required positions and it does change there but it does not show column positions in the actual screen. Is there config for table control in the standard program?
In the attributes the position number is disable. Is there some other way that I can move the columns.
Please advise.
Thanks,
FSThanks Manesh,
I am using travel overview transaction PR05. Can you recommend any config area where the table column positions are maintained. Thanks.
Regards,
FS -
Oracle Best practices for changing Byte to Char on Varchar2 columns
Dear Team,
Application Team wanted to change Byte to Char on Varchar2 columns to accommodate Multi byte character on couple of production tables.
Wanted to know is it safe to have mixture of BYTE and CHAR semantics in the same table i have read on the couple of documents that It's good practice to avoid using a mixture of BYTE and CHAR semantics columns in the same table.
What happens if we have mixture of BYTE and CHAR semantics columns in the same table?
Do we need to gather stats & rebuild indexes on the table after these column changes .
Thanks in Advance !!!
SKApplication Team wanted to change Byte to Char on Varchar2 columns to accommodate Multi byte character on couple of production tables.
Wanted to know is it safe to have mixture of BYTE and CHAR semantics in the same table i have read on the couple of documents that It's good practice to avoid using a mixture of BYTE and CHAR semantics columns in the same table.
No change is needed to 'accommodate Multibyte characters'. That support has NOTHING to do with whether a column is specified using BYTE or CHAR.
In 11g the limit for a VARCHAR2 column is 4000 bytes, period. If you specify CHAR and try to insert 1001 characters that each take 4 bytes you will get an exception since that would require 4004 bytes and the limit is 4000 bytes.
In practice the use of CHAR is mostly a convenience to the developer when defining columns for multibyte characters. For example for a NAME column you might want to make sure Oracle will allocate room for 50 characters REGARDLESS of the actual length in bytes.
If you provide a name of 50 one byte characters then only 50 bytes will be used. Provide a name of 50 four byte characters and 200 bytes will be used.
So if that NAME column was defined using BYTE how would you know what length to use for the column? Fifty BYTES will seldom be long enough and 200 bytes SEEMS large since the business user wants a limit of FIFTY characters.
That is why such columns would typically use CHAR; so that the length (fifty) defined for the column matches the logical length of the number of characters.
What happens if we have mixture of BYTE and CHAR semantics columns in the same table?
Nothing happens - Oracle could care less.
Do we need to gather stats & rebuild indexes on the table after these column changes .
No - not if you by 'need' you mean simply because you made ONLY that change.
But that begs the question: if the table already exists, has data and has been in use without their being any problems then why bother changing things now?
In other words: if it ain't broke why try to fix it?
So back to your question of 'best practices'
Best practices is to set the length semantics at the database level when the database is first created and to then use that same setting (BYTE or CHAR) when you create new objects or make DDL changes.
Best practices is also to not fix things that aren't broken.
See the 'Length Semantics' section of the globalization support guide for more best practices
http://docs.oracle.com/cd/E11882_01/server.112/e10729/ch2charset.htm#i1006683 -
The finder window for an external USB hard disk suddenly started separating files by time (today, yesterday, etc.) and stopped allowing me to change column width, order, etc. Also the header bar shifted to flat white from gray.
All was normal until the icon for the disk stopped showing up on the desktop when I would plug it in. I rebooted the computer, and the disk icon now shows up but this new look to the finder window started as a result. The hard disk does not have this problem when I use it on another Mac running Snow leopard. Also, two other external hard disks that I use on this computer running lion 7.4 still have the normal header bars with columns that can be reordered, etc.
I have tried looking in preferences and other places but have not seen this discussed.Well duh - I finally figured out that somehow in the View options for the hard drive, the "arrange by" option had been changed to "by date" from "none". Not sure how that happened, I had never used the "view options" menu tem before. Changing "arrange by" back to "none" gets the gray column headers and the collapsible folder icons back.
-
How to change column "Date" from "Text" to "Date-Time" in Document Library.
How to change column name "Date" from "Single line of Text" to "Date and Time" in Document Library.
Hi,
If you would change column type, you might need to re-create column.
If you would like a text column to display in date format, you could refer to the links below:
http://sharepoint.stackexchange.com/questions/45774/how-to-convert-date-field-in-single-line-of-text-using-calculated-columns
http://yasuanantha.blogspot.com/2008/06/to-convert-text-column-to-date-column.html
Regards,
Rebecca Tu
TechNet Community Support -
Get a table from XML with unknown number of columns
Guys, I'm looking if it is possible to get the following result:
imagine I have an XML like one of the following (it doesn't matter which one, I just give a few examples for you to have a choice). The main idea, that there are described several columns and values for 1 row of these columns, e.g.:
SQL> with t as (select
2 ' <column>
3 <name>col1</name>
4 <value>100</value>
5 </column>
6 <column>
7 <name>col2</name>
8 <value>200</value>
9 </column>' xml from dual union all
10 select
11 ' <column>col1
12 <value>100</value>
13 </column>
14 <column>col1
15 <value>100</value>
16 </column>' from dual union all
17 select
18 '<col1>100</col1>
19 <col2>200</col2>' from dual)
20 --
21 select * from t
22 /
XML
<column>
<name>col1</name>
<value>100</value>
</column>
<column>
<name>col2</name>
<value>200</value>
</column>
<column>col1
<value>100</value>
</column>
<column>col1
<value>100</value>
</column>
<col1>100</col1>
<col2>200</col2>
SQL> I want to get the following result from this XML:
COL1 COL2
100 200So the main idea here is that the number of columns can vary - it is not fixed.
So it is quite similar to dynamic SQL.
Is it possibe with XML?The only general way to get a flexible amount of columns I know of is to use table functions returning anydataset.
It should be rather straightforward to pass in a xml document and return its tablestructure respectivly (though the »structure« of the xml must be fixed).
Would that be an acceptable way of doing this? -
How do you Change time from number format(ie. 3.50 hours) to regular time format( ie.3:30)
I performed the following function in order to get my report to view the information the way that I wanted to see it:
put this formula across from the caption âu20ACu0153Display Stringâu20AC within the âu20ACu0153Format Fieldâu20AC window for description.Â
whileprintingrecords;
MonthName(tonumber(Mid({CartonHistory.DateTimeStamp},5,2)),true) & Mid({CartonHistory.DateTimeStamp},7,2) & ", " & Mid({CartonHistory.DateTimeStamp},1,4)Â & " " & Mid({CartonHistory.DateTimeStamp},9,2) & ":" & Mid({CartonHistory.DateTimeStamp},11,2) & "." & Mid({CartonHistory.DateTimeStamp},13,2)
It converts dates from: 20061212102311xx to: Dec12, 2006 10:23.11. -
Change "Date" From a Column in Table A, to New Column in Table B:
I'm trying to pull a Date from TABLE_A, and change the year to a current date, and popluate this into a new table. I also want to pull the PK of TABLE_A over, so that I can create a link back to the master record.
In my example I'm useing SYSDATE for my current date. Once I get the script working, I want to pull the Calander_Date from my "Current Calendar" in APEX.
1. INSERT INTO TABLE_B (NAME_ID,Date,New_Date VALUES (
2. NAME_ID , (This is a Column FROM TABLE_A),
3. DATE, (This is also a Colum From TABLE_A)
4. TO_CHAR(DATE,'DD')||'-'||
5. TO_CHAR(DATE,'MON')||'-'||
6. TO_CHAR(SYSDATE,'YY') )
7. FROM TABLE_A
8 WHERE TO_CHAR(DATE,'MON') = TO_CHAR(SYSDATE,'MON');
Needless to say, this doesn't work!!! I'm very new to SQL and APEX. I've also tried embedding SELECT STATEMENTS, as shown below, but still now dice (Trying to figure out out to calculate the TO_CHAR FROM DUAL and from TABLE_A for the "DATE" Column)
1. INSERT INTO TABLE_B (NAME_ID,Date,New_Date VALUES (
2. SELECT NAME_ID FROM TABLE_A,
3. ELECT DATE FROM TABLE_A,
4. SELECT TO_CHAR(DATE,'DD')||'-'||
5. SELECT TO_CHAR(DATE,'MON')||'-'||
6. SELECT TO_CHAR(SYSDATE,'YY') ) FROM
7. FROM NAMES
8 WHERE TO_CHAR(DATE,'MON') = TO_CHAR(SYSDATE,'MON');
Depending on the modifications I make I usually get the following two errors:
ORA-0933: SQL Command not properly ended (in the first example)
ORA-00936: Missing Expression (in the second example).
Appreciate any thoughts you all might have!!!
LEONHARKSo here's a question: are the different pieces of the day stored in the same column in Table A, or different columns? If they are the same, you can simplify a lot of your data copy procedure to:
insert into TABLE_B (NAME_ID, SOME_DATE, NEW_DATE)
values (select KEY_ID, to_date(ORIG_DATE,'DD-MM-YYYY') from TABLE_A
where to_date(ORIG_DATE,'MM') = TO_DATE(SYSDATE,'MM'));If the dates are stored in individual fields in Table_A, use something like:
insert into TABLE_B (NAME_ID, SOME_DATE, NEW_DATE)
values (select KEY_ID, to_date(ORIG_DAY || '-' || ORG_MONTH || '-' || ORIG_YEAR,'DD-MM-YYYY') from TABLE_A
where to_date(ORIG_DATE,'MM') = TO_DATE(SYSDATE,'MM'));An alternate for your where clause that uses a range of dates instead of a specific month is
where to_date(ORIG_DATE,'DD-MM-YYYY') between TO_DATE('01-01-2007','MM-DD-YYYY') and TO_DATE('12-31-2007','MM-DD-YYYY');A couple of advantages: a date comparison is much faster than a string comparison and more accurate to what you want. Convert the strings to dates rather than the dates to strings. In my opinion, dealing with dates can be one of the biggest headaches for those learning SQL. There are a lot of good helps out there, but you will want to familiarize yourself with the TO_DATE() and TO_CHAR() functions, because you will use them a lot!
Also, store dates as DATE datatypes! Do NOT store them as text! You will save yourself a lot of headaches and your queries will run much faster if you use DATE datatypes. -
CWB-Need to change the eligible salary column from yearly to monthly
Hi All,
I need to change the eligible salary column from yearly to monthly at Employee Allocation from Compensation Workbench.
Kindly help me guys
Regards,
SajidYou can change the activity reference period in the Plan Form - > Not In Program tab from annually to monthly. However, it will impact all the calcuations as it will use monthly values for everything. Please be careful of this. I would suggest testing this (along with posting back the increases to ensure they are annual amounts) before proceeding with this.
Maybe you are looking for
-
All final cut events, projects disappeared from external hard drive
I had a re-start this morning and the event I was working on lost its purple box and its white star. Can't find the project, can't find the event. Even more troubling, the Final Cut Events and Library folders on my external hard drive is also gone. R
-
Change profile name on support form
Can anyone tell me how do I change my profile name on this support forum?
-
I'm trying to reinstall Premiere CS6 and I notice that according to the Creative Cloud manager, in the app list, Premiere is still listed as being installed, which is now not letting me reinstall the app. How can I remove Premiere CS6 from this list?
-
How to recover database using dbf file
Hi all, My oracle database gets crash. But i have all the dbf file . But there is no controlfile,redo log file and pfile . So i have to create a database that will contain these existing dbf file. Can anyone tell what are the steps i have to follow ?
-
Distributed destination with MQ as Foreign Provider
Hi Messages arrive in a set of clustered MQ Series Queues. MDBs process the messages (We use MQ as the Foreign JMS Provider). Can I set up a distributed destination (JMS Queues) in WebLogic and use those clustered MQ queues as the Foreign P