APEX 4.2.5: Calculated column, how to?
Good afternoon
I've followed columns in a table:
first name
last_name
complete_name
The complete_name column should be filled in as: last_name + "," + name »»
Example:
name = James
last_Name = Bond
complete_name = Bond, James
The complete_name column is used as a unique key.
What is the best practice to achieve this?
Kind regards.
Wilfried
IMO with trigger;
create table a_name (first_name varchar2(20), last_name varchar2(20), complete_name varchar2(40) unique);
Tags: Database
Similar Questions
-
I want to put two tables on a page with two columns how can I do this?
I want to put two tables on a page with two columns how can I do this?
It depends on what application you are using.
If you use Word, then a good way would be to create a single table of 5 columns, check the borders of the invisible middle column so that it appears to be two separate tables. You will need to do the same thing for unused cells downstairs as well.
To get the best advice on Office-Word questions, use the forum not the Windows 7 Office forum that you do. Look at the top of this page, just below the logo MS Answers and click on Forums , then select desktop. Once there, you can select Word. By using the forum Office will give you a better chance to find a solution to your problem, as it is inhabited by people who know much about their topic. Search the Forum of office for the topic, then, if no notice is found, ask your question here instead of this.
-
My array is not having that columns every time I ran the OAF page in Jdev wife who wants mandatory columns how to override that columns?
That add columns to your table, it is necessary for the audit also. It is a preferred method of creating custom table. It will do no harm.
If you want to continue to move forward with the recommended not method, take a look to follow the link.
iWiDi - EO without columns that
See you soon
AJ
-
Hi all
I am relatively new to this looking for some tips/advice.
Is it possible to include a calculated column in a financial statement? For example, I have three columns A, B and C. In column C, I want to show him the calculation of column A minus column B? Is it still possible?
Would be grateful for any help on this.
Thank you very much
Dan...
Dan,
The tool itself contains tons of documentation, so maybe it's a good opportunity to start having a look...
TIMESTAMPDIFF (SQL_TSI_DAY, "The Dates of transmission". "" Real offer start date ', 'the Dates of transmission. " ("" Available Date ")
Of course, it won't work if your "Offer of actual start Date" and "Date available" are date or timestamp columns.
The user interface has doc for each of the functions, to explore the available functions and read the doc. Plan B start looking for a good book or training, there is no miracle solution to start with OBIEE...
-
I converted a PDF to Excel and now I have a lot of extra columns, how do I get rid of the additional columns, there are probably more than 50?
Hi Carl,
Please see this thread link: I converted a pdf file to excel and now I have columns, many of them, I don't know how to get rid of?
Kind regards
Rahul
-
In a report, I used the source area to create a query that uses / creates calculated columns.
Query:
SELECT id, name, amount, percentage,.
amount * percentage AS CalCost
store
where id = 3;
Now, I want to create a calculated column in the query using the column "CalCost" created, similar to:
SELECT id, name, amount, percentage,.
amount * percentage AS CalCost.
amount - CalCost AS difference,
However, I get the error ORA-0094 indicating that 'CalCost' is an invalid identifier.
Is it possible to calculate this column without raising this error?963510 wrote:
However, I get the error ORA-0094 indicating that 'CalCost' is an invalid identifier.Is it possible to calculate this column without raising this error?
Yes - the alias is not available as of the SELECTION list. You will have to redo the calc, i.e.:
SELECT id, name, amount, percentage, amount * percentage AS CalCost, amount - (amount * percentage) AS Difference FROM store WHERE id = 3;
Alternatively, you can rewrite it as follows, where the alias expected to be available, but I see no reason to:
SELECT id, name, amount, percentage, CalCost amount - CalCost AS Difference FROM (SELECT id, name, amount, percentage, amount * percentage AS CalCost, amount - (amount * percentage) AS Difference, FROM store WHERE id = 3 );
-
the minimum value of two calculated columns column
Hi all
Please, help me in the following scenario.
I have to get the data in two tables, so whatever the columns I need to put it in the select statement, but I have to do the calculations for two columns, and assigned an alias to these two calculated columns name, lets say X & Y.
I need to show the data in column Z, the rule for this column must have a minimum value of columns X and Y.
I have to use only a select statement and retrieve the data. Camnt make changes or creating features on the database.
Thnaks in advance.Use a view inline and function LESS.
http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/queries007.htm#SQLRF52357
http://download.Oracle.com/docs/CD/E11882_01/server.112/e17118/functions087.htm#SQLRF00657
-
Create a new calculated columns
Hi all
I want to create a calculated column with the following formula:
Sales/Sum (Sales) * 100
I got an error saying:
ERRORS:
[14041] error in the measure for the test of the column definition. Nested aggregate measure definitions are not currently supported.
I can of course create in response but the user like a column or a shared measure (which may be reusable).
ConcerningIn fact, you must create two columns in the business model.
First, create a column of the measure based on the level for the denominator. It must be a measure of the year-level.
Then, create the measure part as a separate column. Select 'Sales' in your business model, right click and select "Wizard of calculation" in the context menu. You can create an action that compares the year-level measurement.
-
Aggregation in IR works incorrectly when using calculated columns breaks
I have a problem with the aggregation in IR when using stops on calculated columns.
Please see the exact steps to reproduce the problem in my next post below
Martin
Published by: Martin Krepelka, October 22, 2008 11:18Martin,
I filed a bug about the problem you are having. The problem is when you control break on a calculated column with defined format mask and aggregates, the aggregate information is not displayed correctly. When I run the interactive report in debug mode, I see that analytical for aggregated information function partitions incorrectly. Using your example:
IR runs this query to get the counts for each month of posting:
count("AMOUNT") over (partition by "POSTING_DATE")
Instead, it should run this query:
count("AMOUNT") over (partition by to_char("POSTING_DATE",'RRRR/MM'))
To work around the problem, you can change the calculation month without the format mask view and set to_char(F,'RRRR/MM'). Aggregates will display correctly.
Christina
-
How to create a calculated column in another dimension
Hi all
I use OBIEE 11.9 on oracle 12 c.
I have the following two dimensions in Bussiness model,
I want to create FEMALES TOTAL logical column in dimension F1 student Graduation which is based on the column between the sexes in the student D1 dimension. The gender column has two possible values 'F', have '. the column TOTAL WOMEN should have sex for F.
How I do that?
Thank you.
Kind regards.
Add the dimension as a join table in the LTS made-> general tab, and then in the formula in the column, use a case statement to evaluate the dimensional condition and return the column done or 0.
KEY: Size is not an LTS on its own by the way (as your picture shows)
Oracle BI applications example:
For staff than for those who is marked as active employees.
Then the column DISTRIBUTION is: CASE WHEN 'Oracle Data Warehouse'. "'"' Catalogue'."" """dbo"."" "" "Dim_W_EMPLOYMENT_D '." " W_ASG_ACTIVE_INACTIVE_CODE' = 'A' AND ' Oracle Data Warehouse. "'"' Catalogue'."" """dbo"."" "" "Dim_W_EMPLOYMENT_D '." " W_WORKER_TYPE_CODE' = 'Worker EMPLOYEE' THEN ' Oracle Data Warehouse. "'"' Catalogue'."" """dbo"."" "" "Fact_W_WRKFC_EVT_MONTH_F_Snapshot '." " END OF MEMBERSHIP"0 OTHERWISE
-
APEX 5 interactive report data column alignment
Hello
I want to vertically align a column of APEX 5 interactive report data to the top of the cell (currently using the universal theme). By default, if a cell in the column in the file contains several lines (for example via the packaging), the other cells in the same row are centered compared to this in terms of vertical alignment multiline cell. I guess this can be managed with a set column expression shaped HTML, but I was not able to do so far.
More generally how can it be implemented for all interactive reports / classics in a given application?
I searched the forum etc. for similar positions, but not found a solution.
See you soon,.
Alan
a_rintoul wrote:
I want to vertically align a column of APEX 5 interactive report data to the top of the cell (currently using the universal theme). By default, if a cell in the column in the file contains several lines (for example via the packaging), the other cells in the same row are centered compared to this in terms of vertical alignment multiline cell. I guess this can be managed with a set column expression shaped HTML, but I was not able to do so far.
It requires CSS rather than HTML, specifically the
vertical-align
property on the report table cells. For a single report, add a static region ID in the report area and include this style sheet in CSS Inline property page:#static-region-id .a-IRR-table td { vertical-align: top; }
Leave aside the
#static-region-id
selector to apply the rule to each SORTING on a page.More generally how can it be implemented for all interactive reports / classics in a given application?
Creating Styles of theme using the theme roller is the privileged and supported way to customize the appearance of the applications that use the universal theme.
- Go to a page of IR in your application.
- Click the Thème Roller on the developer toolbar.
- Expand the CSS custom section.
- Add this style custom rule:
/* Interactive report cells */ .a-IRR-table td, /* Standard report template cells: add selectors as required for other report templates */ .t-Report-report td.t-Report-cell { vertical-align: top; }
- The page will automatically preview changes.
- Click on record under and type a name for the style of custom theme.
- Topic close Roller
-
Totals on calculated columns does not work properly
Hi all
IM creating column calculation in MDB something like this, {CASE WHEN SUBSTRING (DEPT of 2 for 1) = 'Y' THEN END of ANOTHER SALARY 0}. And in response using the same column to display in the report, it does correctly. When I tried to put in the Grand Total I don't see the correct totals on the report.
Can someone help me on this please.
Thank youHi user7417334,
How did you define this measure? Did you do in the general tab (' logical use existing columns as source ")? If so, try to specify it instead on the Data Type tab.
(1) uncheck "use logic existing columns...". »
2) click the Data Type tab
3) double-click your physical source
(4) in the new box, make sure "Display unmapped columns" is checked
5) click on the button next to your new column name
(6) specify your formula here
7) click OK until you return to the window of Data Type
8) click the aggregation
(9) set the SUM aggregation
(10) save RPD and recheck your report.Best regards
-Joe
-
APEX 5.0 Interactive report (nopadding, how to set the line height)?
APEX 5.0.
Theme: 26. Productivity applications
Interactive report region
Where and how can I global set Dimensions height of the line and policies, etc., lines in interactive report?
I use standard interactive report.Thank you
user555867 wrote:
Please help me in detail.
The best way to get detailed help is to create an example on apex.oracle.com and share credentials of developer comments in the workspace here.
I have:
1 created a (= external CSS style sheet) file with the name 'ir_css_padding.css' local on PC (C:\tmp).
2 added "Shared components"-> 'Static Application files'-> 'Download the file statistics Appl.': 'c:\tmp\ir_css_padding.css '.
3. under "attributes of User Interface:
(General properties)
The value 'Statistics file prefix': ' #APP_IMAGES #ir_css_padding.css.
'Media Type' value: text/css
Why have you changed these settings? They are not relevant to the addition of static CSS files in the repository database. Read the help on line for these properties:
Static file prefix
Determines the virtual path of the Web server uses to point to static files when you use the #APP_IMAGES substitution string #.
Do not specify what to do refers to files that are stored with your application definition in the database.
For performance reasons, you can also store your application files on your Web server. Use a valid URL to refer to them.
Media type
Enter the Internet media type. An Internet media type is identifier into two parts for the formats of files on the Internet. A media type is composed of at least two parts: a type and a subtype and one or more optional parameters. This type of media used in the HTTP Content-Type header when the page is rendered.
If both the values of page-level and the level of the application for the media Type are NULL, text/html is used.
Two of these parameters must be null in your current environment.
(The User Interface definition)
"CSS File URL' value: 'text/css/ir_css_padding.css '.
This parameter must use the static text of APP_IMAGES substitution string:
&APP_IMAGES.ir_css_padding.css
After that, I can't jerome in application. (See the only CSS text in the browser)
--> WHAT IS THE PROBLEM?
APEX is serving pages using the type of text/css media according to the incorrect media Type parameter described above. Remove and the app will return to normal.
4. WHERE and HOW VALUE / reference the CSS file?
I need this change for all interactive reports in my application, self think I can change my model that I use: 'interactive report Region '.
Interactive report region isn't just a region container designed for use with interactive reports. It does not control the appearance of the interactive reports somehow. Not there at - it a report model for interactive reports. Their appearance can be changed using CSS.
-
Oracle Apex Interactive report missing filter column header information?
Hello
I use Oracle Apex 4.2, on Internet Explorer 9. I created an interactive report based on the views created in the database (11 g, version 11.2.0.1.0) oracle (workspace = database schema) I use the value of rownum to act as a key to identify the different lines.
Whenever I try to find the information of one of the column headers for the interactive report (number), I'm not able to find the line, but when I try the same search for "action bar" at the top I am able to see the desired results. That is true of the SQL Developer so know if enter the same information in the filter of the columns, I see the corresponding lines.
Y at - it an explanation for this behavior?
Thank you
Harry
Hello
This is a limitation of APEX. Column header filters in IR displayed first 999 distinct values in the ascending (after the application of all the IR filters). For example, you can filter 2310 using 'menu action filter' (as you specify) and then try clicking on the topic 'the number '. Then you must see 2310 here.
fac586 of course it is a bug in the documentation, but 1 million limit is neither practical nor a way to go.
Kind regards
Hari
-
Simple Contact widget to scale to fit column-how low width
I tried to put the simple contact of the widget library widget in a column, but the width is off. I can't understand how to limit the width of the widget. There must be a simple solution that I'm on. Does anyone have an answer?
Please take a look here:
https://forums.Adobe.com/message/5241505
Thank you
Sanjit
Maybe you are looking for
-
Nothing more to say. Nothing happens when I download Autofill.
-
HP p6230y: p6230y on Atheros 802.11 a/b/g/n - wireless Internet problems
Hello world New here, so please let me know if this is vague or where I can find information to provide. I've had my computer for a while and after not having internet for awhile I finally returned, the problem is that the wifi does not connect. I tr
-
0x8007efe IE won't even go to the update page
I have Vista svp2 and constantly updated. Now, suddenly, IE 8 will get not even on site update - all attempts by using all the methods I know show the same message: "an error has occurred all trying to connect to Windows Update.
-
failures after you download the update of the EOS 5 computers xp...
pretty much says it sll. I have 2 desktop computer and top of map 2 and 4 neighbors 4, that after loading the UPDATE of EOS seems to hang in very slow motionand no longe do work at an acceptable level on the step 2 days that I tried to help everyone,
-
My HP Laserjet 1200 printer will not print several copies.
Printer was fine for several months after installing Windows 7/64, but now will not print multiple copies.Install the latest drivers from HP does not work.