How to get the other columns of a particular mininum value
<p>I have a multiple rows per account in a table. I build a object minimum(col1) in the Business Object universe. I need to get the corresponding values of a min(col1) for each account. Problem is when i pull the min(col1) and other column, it always gives every combination of the min(col1) for each account. How do i get only the corresponding values.</p><p>Example</p><p>Acct Col1 col2 col3 </p><p>1 34 3 4</p><p>1 45 5 6</p><p>2 3 7 8</p><p>output should be</p><p>1 45 5 6</p><p>2 3 7 8</p><p>How i accomplish with data providers or free hand sql combinations</p><p> </p><p>Thanks</p><p> </p><p> </p>
you can do this very quickly by creating a crosstab with the Acct as the Row, and Col1,2,3 as the Columns, and the Maximum of your field as the summary.
Similar Messages
-
How to get the primarykey columns of the table in SAP BI Java SDK
Hi, I'm new to sap BI Java SDK. I'm not getting how to get the primarykey columns, using BI JDBC Connector (for relational data sources). If anybody knows, please let me know. its very very urgent task to be done in my project. In the below following code.... I have written a code to connect to the database through resource bundle, reading table names, once user select table name, i need to show the primary key columns of that table to the user. here i'm not getting how to get the primary key columns . Please send me the code if there is any method to find out the primarykey columns or a logic to get them. I will be greatful to you.... if you can do this favour.
Please check out the following code ........
ManagedConnectionFactory mcf;
IConnectionFactory cf;
IConnectionSpec cs;
mcf = new JdbcManagedConnectionFactory();
cf = (IConnectionFactory) mcf.createConnectionFactory();
cs = cf.getConnectionSpec();
ResourceBundle rbLocal = ResourceBundle.getBundle( "xxxx");
Enumeration propnames = rbLocal.getKeys();
while (propnames.hasMoreElements())
String key = (String) propnames.nextElement(); //out.print(key); //out.println("="rbLocal.getString(key)"");
cs.setPropertyValue(key, rbLocal.getString(key));
// Establishing the connection. // The IBIRelational interface provides an entrypoint to access // metadata and execute queries.
IBIConnection connection = (IBIConnection) cf.getConnectionEx(cs); I
BIRelational rel = connection.getRelational();
IBIQuery query = rel.createQuery();
String sqlStatement = "SELECT * FROM " + "BICQPERSON where type='pk'"; ResultSet rs = IBIDataSet dataset = query.execute();
Thanks SreeKanthHi,
looks like you are on Infomation Builders, correct? If yes through which adapter and to what DB are you connecting?? in an R3/BW system you can do the folowing:
"(ABAP)
SELECT DISTINCT FIELDNAME
FROM DD03L
WHERE TABNAME = '/BIC/QPERSON'
AND AS4LOCAL = 'A'
AND KEYFLAG = 'X'
ORDER BY 1
Another option is goto directly to the RDBMS; in this case let me which one are you using
hope this helps...
Olivier.
Message was edited by:
Olivier Cora -
How to get the dynamic columns in UWL portal
Hi All,
I am working on UWL Portal. I am new to UWL. I have down loaded uwl.standard XML file and costomized for getting the values for "select a Subview" dropdown and I am able to see the values in the dropdown. Now my requirement is to get the dynamic columns based on the selection from dropdown value.
can any body suggest on how to get the dynamic columns in UWL portal.Hi Manorama,
1) If you have already created a portal system as mentioned in following blog
/people/marcel.salein/blog/2007/03/14/how-to-create-a-portal-system-for-using-it-in-visual-composer
2) If not, then try to create the same. Do not forgot to give the Alias name .
3) After creating a system, log on to the VC, Create one iView.
4) Now Click on "Find Data" button from the list which you can view in right side to Visual composer screen.
5) After clicking on "Find Data" button, it will ask for System. If you have created your system correctly and Alias name is given properly, then your mentioned Alias name is appeared in that list.
6) Select your system Alias name and perform search.
7) It will display all the BAPIs and RFCs in your systems.
8) Select required BAPI and develop the VC application.
Please let me know if you any further problems.
Thanks,
Prashant
Do reward points for useful answers. -
I modified the first business card in a template. Does anyone know how to get the other cards on the template to look like the first one without doing each individually? please and thanks!
http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&mforum=iworktips ntrick
Peter -
How to get the last column info of the given table
Hi All,
I want to get the last column information like :
column name, datatype of the last column in the given
table use PL statement. Please help.
Thanks,
JPSCOTT@orcl SQL> desc emp
Name Null? Type
EMPNO NOT NULL NUMBER(4)
ENAME VARCHAR2(10)
JOB VARCHAR2(9)
MGR NUMBER(4)
HIREDATE DATE
SAL NUMBER(7,2)
COMM NUMBER(7,2)
DEPTNO NUMBER(2)
SCOTT@orcl SQL> select column_name, data_type from user_tab_columns
2 where table_name = 'EMP'
3 and column_id = (select max(column_id) from user_tab_columns
4 where table_name = 'EMP');
COLUMN_NAME DATA_TYPE
DEPTNO NUMBER
SCOTT@orcl SQL> -
How to get the transport request for a particular standard text?
Hi,
i want to know, how we get the transport request which associated for standard text.
Please note already the standard text is assigned to the TR using RSTXTRAN program.
i have a std text. i want to find the related TR for that!
rds,
Siva.Refer the link. It might tellsa about attaching to transport request but using the way you can find also -
Re: How To Transport STANDARD TEXTS??
Regards,
Amit
Reward all helpful replies -
How to get the OTHER value in a poplist
A poplist has 2 values. The one the user sees and the "real" value. I need to access both in my project. Is it possible to get the value of the "other" value, the one the user sees??
sure thing... I had to send both the "real" value and also the string value the user sees and actually selects in the list to another block. Here's the code:
total_list_count NUMBER;
loop_index_var NUMBER;
list_element_value VARCHAR2(200);
BEGIN
--populate actual value
:SENDING_BLOCK.actual_value := :RECEIVING_BLOCK.actual_value;
--populate "other" value user sees
loop_index_var := 1;
total_list_count := GET_LIST_ELEMENT_COUNT('SENDING_BLOCK.other_value');
LOOP
list_element_value := GET_LIST_ELEMENT_VALUE(SENDING_BLOCK.other_value, loop_index_var);
IF :SENDING_BLOCK.other_value = list_element_value THEN
:RECEIVING_BLOCK.other_value := GET_LIST_ELEMENT_LABEL('SENDING_BLOCK.other_value', loop_index_var);
END IF;
loop_index_var := loop_index_var + 1;
EXIT WHEN list_element_value = :SENDING_BLOCK.other_value OR
loop_index_var = total_list_count;
END LOOP;
END IF;
I think i replaced the right variables. I can't understand why there isn't a simple function to get this value, this code does the job. -
Updated to 5.0 any ideas how to get the OTHER back
When I updated to 5.0 my OTHER SPACE used went to 7.2 gigs... any way to get that
space back.- A reset may work and you lose nohing by trying.
Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Next, restoring from backup works if the other is not in the backup
- Last, a restore to factory defaults/new iPod always works. -
How to get the text elements for a particular program
Hi All,
I want to get the all text elements , selection texts for a particular program...How to get.
I have used one FM READ_TEXTELEMENT_FROM_REPORT , but not much useful..
please help me..
Regards,
rajHi..
You may use this statement to read the text elements:
DATA: i_reptx TYPE STANDARD TABLE OF textpool WITH HEADER LINE.
READ TEXTPOOL (reports) INTO i_reptx. " reports is the report name.
Best Regards,
Pradeep. -
How to get the Inspection lot for a particular serial number ?
Hi all,
Can anyone help me to get the Instpection Lot number from the given serial number ?
Regards,
ShankarHi again,
1. goto se11, open the table ,
in display mode.
2. click button INDEXES
on application toolbar.
a new window will come
3. choose CREATE
a new window will come
4. in index name, type Y01
5. a new window will come
6. there give the field name for serial number
7. also give short description for the index.
8. save and activate
9 thats all
regards,
amit m. -
How to get the empty column in the reports
Hi All,
i am having a requirement where i need to create the gap of one column after every quarter column, Is this possible if let me know whats the procedure for this.
will Appreciate ur suggestions.
Regards
KKHi KK.
Is your column using a structure? If yes, you can add a row(new selection) in this column and leave blank or something like ". " as the title of this row.Then in the definition of this row you make a "impossible selection" like the quantity of 0MATERIAL = '123456789' which does not actually exist in your system.
Hope this helps.
Regards,
Aaron -
How we get the lower level employee under particular level employee
Hi ,
i have query like
select lpad(' ', 3*level) || empno, level
from
scott.emp
start with
mgr is null
connect by
prior empno=mgr
output:-
LPAD('',3*LEVEL)||EMPNO LEVEL
7839 1
7566 2
7788 3
7876 4
7902 3
7369 4
7698 2
7499 3
7521 3
7654 3
7844 3
7900 3
7782 2
7934 3
i want to get all hierarchy under particular employee id i entered during runtime. eg. if i entered 7566 then it should display the following output.
7566 2
7788 3
7876 4
7902 3
7369 4
is it possible , please suggest.
thanks
kamHello,
How about trying like this?
SELECT LPAD(' ', 3*LEVEL) || empno, LEVEL
FROM scott.emp
START WITH empno=7566 -- Or any value from where you want to start
CONNECT BY PRIOR empno=mgr -Ammad -
How to get invoice status column in ap_invoice_all table
how to get the invoice_status column like "NEEDS RE VALIDATION" in account payables tables.
The invoice approval status does not come from any table / lookup.
Instead, Oracle builds it by calling the ap_invoices_pkg.get_approval_status function.
You can also call it by passing invoice_id, payment_status_flag and invoice_type_lookup_code.
All these 4 columns are present on the ap_invoices_all record.
Hope this helps
Sandeep Gandhi
Independent Consultant -
How to get the class name of a page in oracle apex
Hi All,
Can anyone please let me know how we can get the class name of a page or region in oracle apex? I would also like to know how we get the DOM object ID for particular item.
I appreciate any help on this.
Regards
RajRajEndiran wrote:
Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID. -
How to get the Class name of an API method?
Like most of us, it's difficult to know where every method within a Java class is. Also, many of the same methods are scattered throughout Java Classes. I know of two methods that retreive this... getClass().getName(). But, you must have an object to use these. Is there a way to find out what Class contains a method or Class variable thru an Applet or Java Application?? Obviously, I can look at API Docs; but this takes time.
Tks RandyRajEndiran wrote:
Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID.
Maybe you are looking for
-
File view permissions not working in Rel 1
I'm part of a team setting up a new portal; Oracle 9iAS rel 1. I have a portlet which is really a view into a folder called Social Events. Under Folder Style > Access, permission is granted to the company group: View Content, Manage Items, and this a
-
Hi, I know that most DVD players lock out after a certain number of region changes but if I buy two super drives can I use one for my international DVDs and one for my American DVDs or is the region lock part of the hardware of my macbook air? Thanks
-
this update is not available for this apple id either because it was bought by a different user or the item was refunded or cancelled
-
This is a change. I always used to specify the location for the file.
-
I don't know why it does this And it's pretty annoying