Select Max Rno Records
I have following data
select * from retreport
CODE VDATE STAT ICODE INAME FCODE FNAME IAMOUNT UNITS AVG UBAL ABAL Rno
108 28/06/2010 I 1 ABC 1 MCMOF 67107445.99 659206.1130 101.8004 659206.1130 67107445.99 1
01/07/2010 I 1 ABC 1 MCMOF 12460.9732 99.9118 671667.0862 67107445.99 2
12 28/06/2010 I 1 ABC 4 AIF 3464467.18 346059.1318 10.0112 346059.1318 3464467.18 1
10 28/06/2010 I 1 ABC 4 AIF 7756481.55 2772542.9069 10.0112 2772542.9069 7756481.55 1
90 28/06/2010 I 1 ABC 6 HIF 5165025.99 51164.2000 100.9500 51164.2000 5165025.99 1
07/07/2010 I 1 ABC 6 HIF 1837.7945 97.4497 53001.9945 5165025.99 2
100 28/06/2010 I 1 ABC 9 ASCF 30538340.47 281897.9248 108.3312 281897.9248 0538340.47 1
07/07/2010 I 1 ABC 9 ASCF 22934.2707 100.1808 304832.1955 30538340.47 2
34 28/06/2010 I 1 ABC 15 NGSLF 33685667.51 3280134.3295 10.2696 3280134.3295 33685667.51 1
05/07/2010 I 1 ABC 15 NGSLF 81838.9278 10.0196 3361973.2573 33685667.51 2
5 28/06/2010 I 1 ABC 17 FHIF 148653870.75 1450706.2628 102.4700 1450706.2628 148653870.75 1
05/07/2010 I 1 ABC 17 FHIF 36256.7795 99.9715 1486963.0423 148653870.75 2
8 09/10/2009 I 1 ABC 18 FHSF 20000000.00 200000.0000 100.0000 200000.0000 20000000.00 1
15 28/06/2010 I 1 ABC 19 IIF 121444256.24 1145700.5306 106.0000 1145700.5306 121444256.24 1
05/07/2010 I 1 ABC 19 IIF 65595.7999 100.2597 1211296.3305 121444256.24 2
17 28/06/2010 I 1 ABC 21 IMMF 30591615.86 303055.6166 100.9439 303055.6166 30591615.86 1
05/07/2010 I 1 ABC 21 IMMF 2922.1006 99.9799 305977.7172 30591615.86 2
41 28/06/2010 I 1 ABC 22 AGCF 67954742.90 134710.5618 504.4500 134710.5618 67954742.90 1
27/07/2010 I 1 ABC 22 AGCF 992.9525 500.7589 135703.5143 67954742.90 2
41 30/07/2010 I 1 ABC 22 AGCF 25000000.00 49483.3934 505.2200 49483.3934 25000000.00 1
3 28/06/2010 I 1 ABC 24 AMCF 20479448.52 396427.5749 51.6600 396427.5749 20479448.52 1
07/07/2010 I 1 ABC 24 AMCF 13399.2520 49.9710 409826.8269 20479448.52 2
71 24/06/2010 I 1 ABC 27 NGBF 212884000.00 20000000.0000 10.6442 20000000.0000 12884000.00 1
07/07/2010 I 1 ABC 27 NGBF 1300260.0520 9.9944 21300260.0520 212884000.00 2
71 27/07/2010 R 1 ABC 27 NGBF 13397452.07 1340495.8842 9.9944 19959764.1678 199486547.94 3
71 17/08/2010 R 1 ABC 27 NGBF 18276174.28 1828641.4677 9.9944 18131122.7001 181210373.65 4
71 23/08/2010 R 1 ABC 27 NGBF 23167133.56 2318011.4421 9.9944 15813111.2580 158043240.09 5 I need that only show Max RNO records
01/07/2010 I 1 ABC 1 MCMOF 12460.9732 99.9118 671667.0862 67107445.99 2
12 28/06/2010 I 1 ABC 4 AIF 3464467.18 346059.1318 10.0112 346059.1318 3464467.18 1
10 28/06/2010 I 1 ABC 4 AIF 7756481.55 2772542.9069 10.0112 2772542.9069 7756481.55 1
07/07/2010 I 1 ABC 9 ASCF 22934.2707 100.1808 304832.1955 30538340.47 2
and so on .........Kindly help
Dear Sybrand Bakker
1. second output is my requirement, I need to select only Max (RNO) records
Exmaple
CODE VDATE STAT ICODE INAME FCODE FNAME IAMOUNT UNITS AVG UBAL ABAL Rno
01/07/2010 I 1 ABC 1 MCMOF 12460.9732 99.9118 671667.0862 67107445.99 2
12 28/06/2010 I 1 ABC 4 AIF 3464467.18 346059.1318 10.0112 346059.1318 3464467.18 1
10 28/06/2010 I 1 ABC 4 AIF 7756481.55 2772542.9069 10.0112 2772542.9069 7756481.55 1
07/07/2010 I 1 ABC 6 HIF 1837.7945 97.4497 53001.9945 5165025.99 2
07/07/2010 I 1 ABC 9 ASCF 22934.2707 100.1808 304832.1955 30538340.47 2
05/07/2010 I 1 ABC 15 NGSLF 81838.9278 10.0196 3361973.2573 33685667.51 2
05/07/2010 I 1 ABC 17 FHIF 36256.7795 99.9715 1486963.0423 148653870.75 2
8 09/10/2009 I 1 ABC 18 FHSF 20000000.00 200000.0000 100.0000 200000.0000 20000000.00 1
05/07/2010 I 1 ABC 19 IIF 65595.7999 100.2597 1211296.3305 121444256.24 2
05/07/2010 I 1 ABC 21 IMMF 2922.1006 99.9799 305977.7172 30591615.86 2
27/07/2010 I 1 ABC 22 AGCF 992.9525 500.7589 135703.5143 67954742.90 2
41 30/07/2010 I 1 ABC 22 AGCF 25000000.00 49483.3934 505.2200 49483.3934 25000000.00 1
07/07/2010 I 1 ABC 24 AMCF 13399.2520 49.9710 409826.8269 20479448.52 2
71 23/08/2010 R 1 ABC 27 NGBF 23167133.56 2318011.4421 9.9944 15813111.2580 158043240.09 5 2- I tried my self
select to_number(max(chk))Rno,code,inv_date,stat,inv_co_code,inv_co_name,inv_fnd_code,inv_fnd_name,inv_amount,inv_nofu,vavg,ubal,abal
from retreport
group by code,inv_date,stat,inv_co_code,inv_fnd_code,inv_amount,inv_nofu,vavg,ubal,abal,inv_co_name,inv_fnd_name3. If there is 71 Unresolved , is it my mistake? and what you want to say ?
Similar Messages
-
Select Max record for the report
Post Author: ROMZILBER
CA Forum: WebIntelligence Reporting
Hello,
Here is our problem we have history data on a table like
Example
Data:
11111 bbb 12/31/2004
11111 nnn 12/31/2005
11111 ddd 12/31/2007
On a report we only need to display the most current record (based on a date).
11111 ddd 12/31/2007
How can we do that, we have try to create subquery but it does not allowed to enter logic for the max date for the same id. So we are kind of stuck, I am more then sure this would be a very common conditions specially for data warehousing.
we are on Oracle 10g
Thank you for all your help.Post Author: ROMZILBER
CA Forum: WebIntelligence Reporting
To create a view is not a problem, supporting it is a different story
But we have find a solution, you were correct about the filter. I just did not know you can put the whole subselect in a filter
but here is a logic for the filter if someone would come up with the same problem
tablename.NNNN_PROOF_DT = (SELECT MAX(X.NNNN_PROOF_DT) FROM tablename X WHERE tablename.NNNN_CLAIM_NUMBER = X.NNNN_CLAIM_NUMBER AND tablename.NNNN_LINE_CD = X.NNNN_LINE_CD)
please let me know if you have any questions.
sorry I am new to this so please do not take any offense -
Select max date from a table with multiple records
I need help writing an SQL to select max date from a table with multiple records.
Here's the scenario. There are multiple SA_IDs repeated with various EFFDT (dates). I want to retrieve the most recent effective date so that the SA_ID is unique. Looks simple, but I can't figure this out. Please help.
SA_ID CHAR_TYPE_CD EFFDT CHAR_VAL
0000651005 BASE 15-AUG-07 YES
0000651005 BASE 13-NOV-09 NO
0010973671 BASE 20-MAR-08 YES
0010973671 BASE 18-JUN-10 NOHi,
Welcome to the forum!
Whenever you have a question, post a little sample data in a form that people can use to re-create the problem and test their ideas.
For example:
CREATE TABLE table_x
( sa_id NUMBER (10)
, char_type VARCHAR2 (10)
, effdt DATE
, char_val VARCHAR2 (10)
INSERT INTO table_x (sa_id, char_type, effdt, char_val)
VALUES (0000651005, 'BASE', TO_DATE ('15-AUG-2007', 'DD-MON-YYYY'), 'YES');
INSERT INTO table_x (sa_id, char_type, effdt, char_val)
VALUES (0000651005, 'BASE', TO_DATE ('13-NOV-2009', 'DD-MON-YYYY'), 'NO');
INSERT INTO table_x (sa_id, char_type, effdt, char_val)
VALUES (0010973671, 'BASE', TO_DATE ('20-MAR-2008', 'DD-MON-YYYY'), 'YES');
INSERT INTO table_x (sa_id, char_type, effdt, char_val)
VALUES (0010973671, 'BASE', TO_DATE ('18-JUN-2010', 'DD-MON-YYYY'), 'NO');
COMMIT;Also, post the results that you want from that data. I'm not certain, but I think you want these results:
` SA_ID LAST_EFFD
651005 13-NOV-09
10973671 18-JUN-10That is, the latest effdt for each distinct sa_id.
Here's how to get those results:
SELECT sa_id
, MAX (effdt) AS last_effdt
FROM table_x
GROUP BY sa_id
; -
Select "most recent" records in abap
Hi
how can I select the most recent records in a table by using the abap select statement.
Example: The 100 rows with the "highest" (most recent) sequence-numbers in a table with documents.
somehow like this:
SELECT "most recent" * FROM draw
INTO TABLE gt_doklist
UP TO 100 ROWS
where ...
Has anybody an idea?
Thanks in advance,
WilliActually I believe that all the answers are wrong.
I believe that there will never be a single statement. If you need to determine the last 100 records for a special user you first need to determine the highest document number.
this can be done by
select max( document_number ) into document_number from table where username = username.
Any descending sorting order or group by etc. will never make sure that you get the last one. For a simple reason What should the select statement look like that makes sure (in combination of any cursor applied)? Its impossible!
If you now need the latest 100 records for a single user its the same problem like buffered number ranges. There is no way to perform that task because there is no database routine or sql statement to do so. And 1.5 million records are too much to try out or select everything.
You could do an assumption that the last 100 for that user have been posted during the last 1000 or last 10.000 records, select them and filter out.
Alternative you can perform the following select statement for 100 times. Using an index on document number and user might not be such a performance killer if its only done for one user during his online dynpro process:
data: max_number type char10.
select max( documentnumber ) into max_number from table
where username = username into [structure].
max_number = max_number + 1.
do 100 times
select max( documentnumber ) from table intomax_number
where username = username and docnumber lt max_docnumber.
select * from [db_table] into [structure] where docnumber = max_number.
append [structure] to [table].
enddo.
Of course that just draft coding... apply if statements and so on...
Even though its pretty poor, its the only way to do. Any select statement will never garantee what records you will get if you do not restrict accordingly and if the restriction has to be made on document number, but if there is no way to get the max_number - [100 last records of this user], there is no solution using one statement.
Thats it.
Edited by: Rob Burbank on Feb 25, 2010 8:52 AM -
ResultSet Select MAX() Problem
Im using mySQL and when i write the following query :
SELECT MAX(attribute) FROM table;
and theres no records in the table i cant know what it returns ... my problem is i want to get the max() number
<code>
resultSet = connectivity.statement.executeQuery("SELECT MAX(number) FROM urls");
resultSet.next();
if(resultSet.getObject(1) != null)
.... Do certain things
else
....Do other
</code>
an SQLexcecption is thrown from this line :
if(resultSet.getObject(1) != null)
so how can i solve it ??!java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6958)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7115)
at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3908)
at sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.java:5699)
at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:353)
at sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java:410)
at indexer.Indexer.insertNewRecords(Indexer.java:80)
at indexer.Indexer.startIndexing(Indexer.java:31)
at jranker1.JRanker.writeToDB(JRanker.java:187)
Its an SQL Exception ... -
Post Author: Aron Sereny
CA Forum: Data Connectivity and SQL
i want to limit the result set of the select to only the latest invoice for a given client.
so, I was hoping to use use
invoice.num = (select max( invoice.num).....
in the record selection...but it does not like my sub select in the where clause...any work around for this?
in other words...my select returns
1002 1
1002 2
1002 3
1001 1
998 1
998 2
but i only want the first 3 records (invNum= 1002, the max invNum for this client)
using CR XI, thanks for any insightPost Author: Aron Sereny
CA Forum: Data Connectivity and SQL
i am working with MS sql 2000
my rpt returns
102 1
102 2
101 1
i would like to limit the result set to the 102 id (the largest, most recent ID)
in query analyzer my select works fine with the where clause something like:
where....
and id = (select max (id) from.....)
crystal does not like the sub select in the where clause (select criteria)
thanks for any help -
Report counterpart sample for field = select(max)
Post Author: JuneCruz
CA Forum: Crystal Reports
Hi Guys,
This the contenct of my table.
NFstCol NSndCol NTrdCol -
1 One 12 One 13 One 14 Two 15 Two 16 Two 17 One 28 One 29 One 210 One 311 One 312 One 316 Two 217 Two 218 Two 219 Four NULL20 Four NULL21 Four NULL
Now I want to display the records all records that have the maximum ntrdcol group by nsndcolso the output should be. Can this be done without using view, command as source for the database, or a subreport ?thanks.
NfstCol NtrdColOne
10 3 11 3 12 3
Two 16 2 17 2 18 2
Four 19 null 20 null 21 null
Again. Thanks guys.Post Author: ROMZILBER
CA Forum: WebIntelligence Reporting
To create a view is not a problem, supporting it is a different story
But we have find a solution, you were correct about the filter. I just did not know you can put the whole subselect in a filter
but here is a logic for the filter if someone would come up with the same problem
tablename.NNNN_PROOF_DT = (SELECT MAX(X.NNNN_PROOF_DT) FROM tablename X WHERE tablename.NNNN_CLAIM_NUMBER = X.NNNN_CLAIM_NUMBER AND tablename.NNNN_LINE_CD = X.NNNN_LINE_CD)
please let me know if you have any questions.
sorry I am new to this so please do not take any offense -
Select latest two records per group
hi there,
i've been googling around and still can't really find an appropriate solution to retrieve two most recent records per group in one sql. Is this even possible?
Let's say there is a MyLife table :
ID, Event , RecordedDate
1. 1, 'Fell down the stairs', '20-DEC-07'
2. 1, 'Fell down the stairs', '22-DEC-07'
3. 1, 'Fell down the stairs', '23-DEC-07'
4. 2, 'Tried to kiss santa', '23-DEC-07'
5. 3, 'Reindeer stolen', '24-DEC-07'
6. 4, 'Chimney Broke', '25-DEC-07'
Output should be :
2. 1, 'Fell down the stairs', '22-DEC-07'
3. 1, 'Fell down the stairs', '23-DEC-07'
4. 2, 'Tried to kiss santa', '23-DEC-07'
5. 3, 'Reindeer stolen', '24-DEC-07'
6. 4, 'Chimney Broke', '25-DEC-07'I believe that something along these lines would be portable to most other databases.
SQL> SELECT id, event, recordeddate
2 FROM mylife o
3 WHERE recordeddate = (SELECT MAX(recordeddate) FROM mylife i
4 WHERE o.id = i.id)
5 UNION ALL
6 SELECT id, event, recordeddate
7 FROM mylife o
8 WHERE recordeddate = (SELECT MAX(recordeddate) FROM mylife i
9 WHERE o.id = i.id and
10 i.recordeddate < (SELECT MAX(recordeddate)
11 FROM mylife ii
12 WHERE i.id = ii.id))
13 ORDER BY id, recordeddate;
ID EVENT RECORDEDDAT
1 Fell down the stairs 22-DEC-2007
1 Fell down the stairs 23-DEC-2007
2 Tried to kiss santa 23-DEC-2007
3 Reindeer stolen 24-DEC-2007
4 Chimney Broke 25-DEC-2007John -
Select the one record with the latest record
I have the following table called tblSales:
SKU TransDate Color
=== ====== ====
123 1/1/2015 Red
123 1/2/2015 Red
123 1/5/2015 Red
123 1/1/2015 White
123 1/2/2015 White
123 1/3/2015 White
123 1/1/2015 Blue
123 1/2/2015 Blue
123 1/5/2015 Blue
I need to create a query along the lines "SELECT the latest record FROM tblSales WHERE Color = 'White''
In this example, the record dated 1/3/2015 would be the result. I know that MAX(TransDate) is used here, but not sure how.
Thanks.
KenKarl,
I had already tried that. It returns all 3 records having SKU = 123 and Color = White.
Worst case scenario is I can always search for White 123s using a query with TransDate DESC and then get the first record. I was just hoping for something a bit more elegant.
Thanks for your help though.
Ken -
Selecting max date for specific 'operation' code
I have the following scenario: a history table that keeps track of the 'operation' and the date of the operation. For example, the operation field can have a code of U (for update), C (for closed), O (for re-opened), A (for approved), etc.
The goal of this history table is to keep track of all of the modifications made. Hence, a particular record of interest can have more than one 'U' operation documented, C operation, etc.
How can I choose the max date for each operation.
I was diong the following in my PL/SQL:
BEGIN
SELECT operation_code, o_date, user INTO lv_operation_code, lv_date, lv_user FROM table1 WHERE unique_id = pv_id AND operation_code = U' AND o_date = (SELECT max(o_date) FROM table1 WHERE unique_code = pv_id);
EXCEPTION
WHEN NO_DATA_FOUND THEN NULL;
END;
I then have another begin statement for the 'C' operation, etc.Hi,
OraclePolzovatel wrote:
... I was diong the following in my PL/SQL:
BEGIN
SELECT operation_code, o_date, user INTO lv_operation_code, lv_date, lv_user FROM table1 WHERE unique_id = pv_id AND operation_code = U' AND o_date = (SELECT max(o_date) FROM table1 WHERE unique_code = pv_id);
EXCEPTION
WHEN NO_DATA_FOUND THEN NULL;
END;
I then have another begin statement for the 'C' operation, etc.Are you sure that's what you're doing? There seem to be errors, such as unmatched quotes.
Instead of doing a single SELECT with something like "operation_code = 'U'" in the WHERE-clause, you could write a cursor with "GROUP BY operation_code". -
Materialized View hangs with SELECT MAX
Hi there,
I'm using Oracle 10.2.0.4 on a 64bit AIX system and I am having issues with creating a materialized view.
We have a large (1Tb) database and the large table the materialized view looks at is 200m rows.
I've created 5 other materialized views each with a select max clause and all looking at the same table.
When I created my problem MV I forget the select max and it created in 22mins.
I corrected my error by putting in the select max clause (so as to retrieve the top record) and the create MV ran for 16hrs+, I killed it.
If I just run the select statement at a sqlplus prompt it runs through in 22mins, if I create another object e.g. a table from the query it creates in 22mins.
So the question would be, why can I not create a MV using SELECT MAX on 10.2.0.4?
If I've missed any details don't hesitate to ask.
Thanks in advance.Hi Justin,
Thank you for your reply.
It has been upgraded to 9.2.0.8.0 from 9.1.... I'm not aware about the procedure used.
I could see a job scheduled for the materialized view , but that fails and it's broken after 16 attempts.
How to log the error generated by the Refresh Job?
Recreating the View - After the upgrade I have created the Materialized view again. Object T1 exists in the user schema User1.
I'm not explicitly getting any error but the refresh doesn't happens , so I couldn't find any records in the materialized view.
Thanks
GM -
How to select max (field) and one more field from table?
Hi experts!
I need to select maximum value of ENDDA from PA0023 and BRANC of max ENDDA.
How can I do that ?
When I trying this code:
This is the code:
SELECT MAX( endda ) branc
FROM pa0023
INTO (pa0023-endda, pa0023-branc).
I get error message:
The field "PA0023~BRANC" from the SELECT list is missing
in the GROUP BY clause. Addition INTO wa or INTO (g1,...,gn) is required.
So what is the problem?
Thanks forehead.Hi
Though am not totally sure of your requirement, check below code samples without any syntax errors:
1. As per you current coding:
TABLES: pa0023.
SELECT MAX( endda ) branc
FROM pa0023
INTO (pa0023-endda, pa0023-branc)
GROUP BY branc.
ENDSELECT.
2. Above code results only on one record where as the criteria can be more than one. Eg: for a specific data more than one record can exist. Below code helps you handle the same:
TABLES: pa0023.
TYPES: BEGIN OF t_pa0023,
endda TYPE endda,
branc TYPE brsch,
END OF t_pa0023.
DATA: i_pa0023 TYPE TABLE OF t_pa0023,
wa_pa0023 TYPE t_pa0023.
SELECT MAX( endda ) branc
FROM pa0023
INTO TABLE i_pa0023
GROUP BY branc.
LOOP AT i_pa0023 INTO wa_pa0023.
ENDLOOP.
3. If the requirement is to get the Industry Key for the record with highest End Date. We can acheive it by using subquery something like:
TABLES: pa0023.
SELECT SINGLE endda branc
FROM pa0023
INTO (pa0023-endda, pa0023-branc)
WHERE endda = ( SELECT MAX( endda ) FROM pa0023 ).
Kind Regards
Eswar -
'MAX CDR records" parameter in CCM version 6
Hello Everyone,
Where can I find the 'MAX CDR records" in CCM version 6? and what is the appropriate value to be set? Should it be left to default value?
Thank you very much in advance.You may find it in the car:tbl_system_preferences table. I would leave it as default.
admin:run sql select * from car:tbl_system_preferences
param_name param_value
========================= ========================================
MIN_DATE 01/01/1970
MAX_DATE 01/01/1970
CDR_MIN_DATE 01/01/1970
CDR_MAX_DATE 01/01/1970
MAX_CDR_NUMBER 2000000
MAX_ERROR_RECORD_ID 1
COMPANY_NAME
TOLL_FREE 1800,1855,1866,1877,1888
CHARGELIMIT 200.00
GOOD 20.00
POOR 30.00
DEFAULT_CAR_USER _unspecifieduser
LOADER_STATUS 1
CONTINUOUS_LOADING_24_7 1
LOAD_CDR_ONLY 1
MANUAL_PURGE_STATUS 0
LOADER_SCHEDULE_BACKUP DailyCdrLoad,L,1440,-1,00:00:00,0,300,30
PURGE_LOW_WATER_MARK 80
PURGE_HIGH_WATER_MARK 90
MIN_CAR_DATABASE_AGE 2
MAX_CAR_DATABASE_AGE 60
LAST_PROCESSING_DIRECTORY
LAST_PROCESSING_FILE
LAST_PROCESSING_DATA_ROW
UPDATE_STATISTICS_DATE 05/14/2010,0
LOADER_BATCH 600,600,2500,3000
INSTALLATION_DATE 2/22/2010
Michael
http://htluo.blogspot.com -
SELECT MAX(FILE_VERSION)
I have put the following part of code in a WHERE clause:
AND PCMS_CHDOC_ACTION_DESC_2.FILE_VERSION IN
(SELECT MAX(FILE_VERSION)
FROM PCMS_CHDOC_ACTION_DESC PCMS_CHDOC_ACTION_DESC_4
WHERE PCMS_CHDOC_ACTION_DESC_4.CH_UID = PCMS_CHDOC_DATA_2.CH_UID AND PCMS_CHDOC_ACTION_DESC_4.CH_DOC_ID = PCMS_CHDOC_DATA_2.CH_DOC_ID)...but for the records where the FILE_VERSION is null or doesn't exist doesn't retrieve any record.
There is a way to write it such is possible to retrieve also the records which are null?AND (PCMS_CHDOC_ACTION_DESC_2.FILE_VERSION IN
(SELECT MAX(FILE_VERSION)
FROM PCMS_CHDOC_ACTION_DESC PCMS_CHDOC_ACTION_DESC_4
WHERE PCMS_CHDOC_ACTION_DESC_4.CH_UID = PCMS_CHDOC_DATA_2.CH_UID
AND PCMS_CHDOC_ACTION_DESC_4.CH_DOC_ID = PCMS_CHDOC_DATA_2.CH_DOC_ID
) OR PCMS_CHDOC_ACTION_DESC_2.FILE_VERSION IS NULL)<i>
or doesn't exist doesn't retrieve any record.</i>
What do you mean by that?
*009*
Edited by: 009 on Apr 16, 2010 12:14 AM -
How can I select the random records in u201Cstep loopu201D.
Hi, Experts,
I am using step loop to display the data on screen now I want to select the random records from this step loop display. Like 1st 3rd or 5th record, is there any way to select the records,
like I did in Table control there was a filed in internal table named marked char length 1, I gave this field name in u201Cw/ SelColumnu201D it fill that field with u2018Xu2019 from where I can get the info about the selected records, in this way I can easily perform the operation on that internal table with the help of that marked field.
Is there any way to select the records in step loop too ?
Kind Regards,
Faisalthanks for replay shwetali,
but i just gave you example of random records with 1st 3rd and 5th my goal is not select only these records. i want to select the random mean any records from the step loop display.
like we can select from the table control. and when select any record it place 'X' in the given internal table field.
Thanks and kind Regards,
Faisal
Maybe you are looking for
-
I am putting together a slide show using iphoto and I wanted to add a description on each slide/photo. How can I do that? Also on the choice of music for the silde show, if the slide show is longer than one song can you chose a different song for bac
-
I have had my iMac for 55 days now and twice I had to power off/on and then It does not power up correctly. I verified my disk and found errors that could not be repaired (errors were associated with boot drive) I erased the drive and restored syst
-
Change SSL self-certificate email contact and default apple ID on mac mini server
Hello, I just received my mac mini server and started to set it up. I bought this computer with my regular apple id account that I use with my 2 MBPs. When installing the mac mini computer I connected my Mac Mini Server to my regular apple ID account
-
Does anyone know how to cancel a newspaper subscription i downloaded on my ipad now that my ipad is not working? Can this be done via my computer?
-
Qualifcation text in IDOC HRMD_A07
Hi Gurus, We are able to trigger IDOC HRMD_A07 with message type HRMD_A. The integration switch between PA & PD is active (PLOGI Quali). Now whenever qualification is deleted, the idoc records only the object id of qualification. Is there any way for