How to use the Substring function with Case statement.
Hi allI have a requirement where I have to use the substring function on the ground for the report criteria.
FOR EXAMPLE
I branch domain name where I have all the information of the branch names, now some of the branch names are too large with an extension after the name.
now I want substing it, but the length of characters varies for each branch.
so is it possible where we use a box where we can define if the character of name plug exceed a value then he substing with this length.
Try something like this:
LENGTH WHEN CARTER (tablename. Branch_Name) > n THEN SUBSTRING (...) Of ANOTHER tablename. Branch_Name END
where n is the number of characters that you want to start the break.
Tags: Business Intelligence
Similar Questions
-
How to use the TRUNC function with dates in the expression builder in OBIEE.
Hello
How to use the TRUNC function with dates in the expression builder in OBIEE.
TRUNC (SYSDATE, 'MM') returns 1 July 2010"where sysdate is July 15, 2010 ' in SQL. I need to use the same in the expression builder in the logical layer mdb column.
Thanks in advanceUse it instead:
TIMESTAMPADD (SQL_TSI_DAY, (DAYOFMONTH (CURRENT_DATE) *-1) + 1, CURRENT_DATE) -
How do we use the SUBSTR function in OWB
Hello, I'm pretty new to OWB. I need to use the SUBSTR function in owb. My source table has 16 characters in length. But in my datamar,.
the length is 14 years. I want to the substring from source to the destination. The mappings are already developed. I need to change the mapping to make sure that,
It brings only SUBSTR (1.14) mini - DW.
Any help is appreciated.Use the operator of expression between two attributes.
OWB has already SUBSTR as a preset transformation
Take a look at the doc below
26.3.1 open the expression builderhttp://docs.Oracle.com/CD/E11882_01/OWB.112/e10935.PDF
-
Oracle: how to use the max() function in expression box
How to use the max() function in the case where expression, please explain with an exampleHope this helps and should be explicit
with t as (select 1 col,100 col2 from dual union select 2 ,100 from dual union select 2 ,200 from dual union select 3,100 from dual union select 3,200 from dual ) select col, case when max(col2)=100 then 'with 100 range' when max(col2)=200 then 'with 200 range' end from t group by col
-
How to call the java function with javascript setting in mobile adf?
How to call the java function with javascript setting in mobile adf?
The ADF Mobile utility container API can be used from JavaScript or Java.
-
How to use the @accum function in the calculation script
Dear all.
I'm new in essbase - calculation script so don't know how to use the @accum function.
I want the aggregation value of child to parent
Hierarchy
Product
100 > Storage Dimensions marked as stored (marked as intentionally as I want to calculate the value using the calculation script)
100. 10 (+)
100-20 (+)
100-30 (+)
I'm trying calculation Script
100 = @Accum (@children("100"), jan: Feb);
It works when I use below
100 = @Accum("100-10",Jan:Feb);
Error:-number of Dimensions [1] does not match number of gen/lev [3] office [@Dim]
Don't know how I can roll up to an aggregate value of all the members of the child to the parent.
you do this more difficult it must be. If you want to accumulate up to 100 then you could just make your calc
'100 '.
but that would be only 100, to make the OU any dimension would
AGG (Product);
Or better yet
AGG (Product, Market);
-
How to use the NVL function in decoding?
Hi all
How to use the NVL function in decoding?
SELECT Decode (Sign (sum (nvl (7), 0)-nvl (sum (5), 0)), - 1, 0, (sum (nvl (7), 0)-nvl (sum (5), 0)) QTY)
of the double
Thank you
You should not do that...
Greatest (NVL (Sum (Quantity), 0)-NVL (SUM (quantity_received), 0), 0) AS qty_arrival
will do the same
HTH
-
How to use the ESD document with structured templates
Hello
I started to learn working with SEDD. I have an existing ESD, now I'm suppose to use it to create documents. I created a new book and imported this ESD file to it. I can see all the items in the catalog of the element. But when I start to add items to the book and add a new document, the elements are turning to red. Referring to the User Guide, it is said EDD cannot be used directly and must be used with structured patterns. But I do not have these models structured with me. Can someone please tell me how to create these structured templates and how to use the ESD file with these models, and out of this problem.
Thanks in advance.
Although ESD exist in the form of a separate document, the only way that it can be used is when it is part of the model. As a model of structured FrameMaker, a structured model contains master pages, pages reference, character formats, paragraph formats, etc. IN ADDITION, a structured model contains a DSP. To add the EDD to your template file, or any document FrameMaker who will use it, open the template file and the file of ESD. Click anywhere in the template file, and then select file > import > element definitions. In the dialog box, select the EDD file as source and click Import. Then save the template file.
To use the template file, open it and save it as a FrameMaker document, giving it the name you want. You can now create your structure.
If you use a book, all documents in the book must use the same ESD. Open the template file. In the book file, select all the documents in the book. Then select file > import > element definitions. In the dialog box, select the template file and click Import. Once completed, all documents in the book have the same ESD. In addition, ESD is copied into the file of the book itself.
You say:
But when I start to add items to the book and add a new document, the elements are turning to red.
It is is not clear to me what you do. While it is true that SOME elements of a book are in the book file, you cannot add a book of items in the folder (at least not as far as I know). In general, the book file, it encapsulates elements around the documents root elements in the book. You may need to update the book to get a part of the Red disappear lines. You may need to rearrange items in the structure of the book to remove the red lines.
Hope this helps,
Van
-
How to use the goto function?
How to use the goto function in indesign javascript?
my script begins by chekcing if the input files are present or not... If one of the input files is not present, I want the n function put an end to the operation in the display of the message tht file exists... I was wondering to use goto for tht... then how to use it? or is there an alternative to that?
GoTo is generally frowned upon by the programmers.
The only legitimate use of goto is when you need to escape from a nested loop.
If you need to jump into a routine, use break or simply in return from the current function.
The model currently used by the SDK looks like this:
do { if(condition1 == false) break; if(condition2 == false) break; if(condition3 == false) break; doSomethingReallyCool(); }while(false);
'break' the jumps at the end of the do / while loop that always comes out when you reach the end of it (while (false))
Substances
-
How to use the NVL function to a parameter with comma delimited values
Gurus,
It is confusing to me. I am trying to use the NVL function, but the setting that I'm passing in my cursor contains multiple values with commas. The NVL function is confused when analyzing the values.
'Where' cursor clause...
and nvl (sn.c_attribute1,'x@#$%') in nvl (p_desig,'x@#$%'( )
translated parameter values...
and nvl (sn.c_attribute1,'x@#$%') in nvl ('SPRT''GOOD' 'BAD' 'x@#$%') -NVL does not parse the value correctly
Any idea on how to get NVL recognize 'x@#$%' , if p_desig is null?
Thank you
Scott
HI, Scott.
Whenever you have a problem, please post a small example data (CREATE TABLE and only relevant columns, INSERT statements) of all the tables involved, so that people who want to help you can recreate the problem and test their ideas.
Also post the results you want from this data, as well as an explanation of how you get these results from these data, with specific examples.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum: https://forums.oracle.com/message/9362002#9362002
My best guess, based on what you posted bone is present, that your problem is discussed in the following:
-
Hi all
I want to use the function NOW with a different operator in obiee11.1.1.6.11 or 11.1.1.7.1
but every time I have a creating a filter as
TRAN_DATE is equal to NOW()-120, we become "an arithmetic operation is being performed on a non-digital type.»
11.1.16.11 and 11.1.1.7.1
Hare TRAN_DATE is in RPD datetime data type
Can someone tell me how to replace the error and make the report run and return the results
Do now () - 120 is a very simplistic way to look at it because it is highly ambiguous. IE: NOW less 120 "what?" Minutes? Seconds? Years? Petroleum products?
Accuracy is the key. Now() gives a timestamp (a real timestamp DATA TYPE object!), so I guess you mean days.
Timestamp data types are changed (projected through time) using the TIMESTAMPADD function, which in your case would by this formula:
TIMESTAMPADD (SQL_TSI_DAY,-120, NOW()))
-
How to use the add_months() function in a mapping?
Hello
I have a variable in ODI with a date and I need to add another variable to add 'x' months...
How can do that?
Thank you
If you say you have variable1 organise a date for example 01/01/2015 and variable 2 holding a certain number of months for example 7?
If so in your mapping expression simply use the date functions available to your database technology (step/target) and replace the variable in the function
that is for Oracle your mapping would be ADD_MONTHS (#Variable1,Variable2of #)
-
How to use the "Toshiba controls" with other players?
Heey
I have a Satellite with Toshiba controls. How can I change so I can use the buttons for other media players and not only Windows Media Player?
A dude sorry for the bad news, but I fear that it is not possible to use the Toshiba controls with another application as with WMP (CD) and WinDVD (DVD)
I think that the utility was already programmed and designed to use only these two applications. -
How to use the video port with Vista on Qosmio G30
Im running windows vista Ultimate edition.
How to use the monitor in port?The Composite (in the port monitor) port is placed to the right.
With the video component cable software plug-in delivered a CATV or satellite box can be connected to the computer to watch channels.
You can for example use the Qosmio Player or Windows Media Center to watch other channels.As much as I know the ultimate Vista supports Windows Media Center, Windows Media Center HDTV.
You should read some more details on your new operating system! -
How to use the node function call library for a function in the dll with the data SUB type
Hi all
I would ask for your kind help
I am facing a problem with the call library node.
I have a C++ (stdcall) function, which has Sub as data type
XXXX error code (hwnd, lid, getValue, * Sub data1, * Sub data2)
data1 and data2 types are constantly changing based on the value of 'getValue '.
Mainly I can use the call library node several times and adapt each node according to the types of data data1, data2 and extract the values and use in the code. Here is no question. Real question is:
My question:
How can I use a node of library time call and make a case according to the 'getvalue', who will control the data1, data2 data type. Here I really seeking solutions.
My tests:
I used varaints as entry to the libray call node of the data1, data2 and selected parameters in the call libraby node as "Adapt to type. Here labview just crashed.
I appreciate your suggestions to feedbackand.
Thank you
Karine
You must allocate enough space for data1 and data2, and then pass a pointer to this space. An easy way to do this is the function to initialize table. Set the U8 type and size for the number of bytes required. Pass this array to the function as a pointer of table data.
After the function call returns, you need to extract the data in the table. You can do it manually, but a simple approach is to use the array of bytes to a string. Then, in a housing structure, use Unflatten chain to convert the string to the correct data type. This method also converts the "endianness" which will be probably necessary; Be sure to only set all entries for unflatten correctly.
Maybe you are looking for
-
Just got my phone today. I play with her, but I found a problem obvious and unpleasant. If I can not ge this fix I must return. I have the opportunity to "do nothing" when the lid is closed. However, I discovered that the laptop opens just randomly f
-
I can script volume shadow copy service files to copy VSS files to another server?
Hello Wanted to ask if it was possible to take the info created by VSS and move it to another server? The reason why I ask is that I need to information to a file on a backup server, copy it to another standby server and have it ready to go when the
-
I have windows Vista Home Basic
-
How to size of ImageView using scaling property
Hello I use Imageview to display images that are active, I want to resize them, I tried to use image resize using the scale in c ++. I am not able to do, how to do? Is it possible outside the scaling of method? Concerning Rakesh Shankar.P
-
HELP blackBerry BOLD 9790 Smartphones!
Hello! I just got a used blackberry bold 9790... When I plugged my SIM my BIS plan did not work even if im subscribed + I can't save it for the host routing table (when I go to setting > advanced Setup > host routing table > register now, it is said