Need help with cursor selection in control panels
I can't get my cursor to work in the control panel at the top of the screen, for example, when I select text and want to change the font size, etc. It won't even select to change from font to paragraph mode. Other issues are trying to choose the selection tool, which I can only do with the "V" shortcut tool--escape doesn't work, nor does the cursor choose the icons. Help!
Windows? see InDesign tools and panels don't respond to mouse clicks (Windows 7/Vista)
Similar Messages
-
I need help with a SELECT query - help!
Hello, I need help with a select statement.
I have a table with 2 fields as shown below
Name | Type
John | 1
John | 2
John | 3
Paul | 1
Paul | 2
Paul | 3
Mark | 1
Mark | 2
I need a query that returns everything where the name has type 1 or 2 but not type 3. So in the example above the qery should bring back all the "Mark" records.
Thanks,
IanOr, if the types are sequential from 1 upwards you could simply do:-
SQL> create table t as
2 select 'John' as name, 1 as type from dual union
3 select 'John',2 from dual union
4 select 'John',3 from dual union
5 select 'Paul',1 from dual union
6 select 'Paul',2 from dual union
7 select 'Paul',3 from dual union
8 select 'Paul',4 from dual union
9 select 'Mark',1 from dual union
10 select 'Mark',2 from dual;
Table created.
SQL> select name
2 from t
3 group by name
4 having count(*) <= 2;
NAME
Mark
SQL>Or another alternative if they aren't sequential:
SQL> ed
Wrote file afiedt.buf
1 select name from (
2 select name, max(type) t
3 from t
4 group by name
5 )
6* where t < 3
SQL> /
NAME
Mark
SQL>Message was edited by:
blushadow -
As usual I have been stuck for a while on what is probably a very simple solution so perhaps someone can help me, thanks.
I have a portfolio page to which I post a url to filter the portfolio type (0, 1 or 2) and display the results.
It works ok except that I can't get the url right to show all records. I have tried things like
/portfolio.php?websitetype=1&2
and
/portfolio.php?websitetype=*
/portfolio.php?websitetype>0
Perhaps I need to change my select?
$query_portfolio = "SELECT * FROM portfoliodb WHERE portfoliodb.websitetype='". $_GET['websitetype'] ."' AND portfoliodb.visible = 1 ORDER BY portfoliodb.portfolio_id DESC";bikeman01 wrote:
Ok I've now got it working as suggested so that's a big improvement, thanks but it's not quite what I was after. What I want is for all records to be retrieved by default when there is no url suffix and not require ?websitetype=ALL
That is not what your OP asked for!
It works ok except that I can't get the url right to show all records. I have tried things like
/portfolio.php?websitetype=1&2
and
/portfolio.php?websitetype=*
/portfolio.php?websitetype>0
// determine if the URL parameter for websitetype is set.
if (isset($_GET['websitetype'])) {
// run a query to filter only selected types
// based off value of URL parameter
$query_portfolio = "SELECT *
FROM portfoliodb
WHERE portfoliodb.websitetype='". $_GET['websitetype'] ."'
AND portfoliodb.visible = 1
ORDER BY portfoliodb.portfolio_id DESC";
// else if the URL parameter for websitetype is not set.
} else {
// run query to display ALL types
$query_portfolio = "SELECT *
FROM portfoliodb
ORDER BY portfoliodb.portfolio_id DESC";
// end condition if the URL parameter for websitetype is set. -
Need Help With A Select Staement
This is my data set.
OPEN_DATE CLOSE_DATE
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 03-JAN-08
04-JAN-08 04-JAN-08
05-JAN-08
07-JAN-08
07-JAN-08 07-JAN-08
07-JAN-08 07-JAN-08
08-JAN-08 08-JAN-08
08-JAN-08
02-JAN-08
02-JAN-08
08-JAN-08
09-JAN-08
I'm need totals for those that are opened and closed per day. Here is what I'm trying to achieve...
Status Value DATE
Open 6 02-JAN-08
Closed 3 02-JAN-08
Open 0 03-JAN-08
Closed 1 03-JAN-08
Open 1 04-JAN-08
Closed 1 04-JAN-08
Open 0 05-JAN-08
Closed 1 05-JAN-08
Open 3 07-JAN-08
Closed 2 07-JAN-08
Open 3 08-JAN-08
Closed 1 08-JAN-08
Open 1 09-JAN-08
Close 0 09-JAN-08
This select statement gets me close but the problem is how to get the ones that should have a Value of 0
select 'Open' "Status", count(*) "Value", to_char(open_date, 'DD-MON-YY') "DATE"
from usar_log2
where open_date IS NOT NULL and
to_char(open_date, 'MON-YY') = to_char(sysdate, 'MON-YY')
and (USAR_status like 'CLOSED' or usar_status like 'OPENED' or USAR_Status like 'WORKING')
group by to_char(open_date, 'DD-MON-YY')
UNION
select 'Closed' "status", count(*) "Close", to_char(close_date, 'DD-MON-YY')
from usar_log2
where close_date is not null and
to_char(close_date, 'MON-YY') = to_char(sysdate, 'MON-YY')
and (USAR_status like 'CLOSED' or usar_status like 'OPENED' or USAR_Status like 'WORKING')
group by to_char(close_date, 'DD-MON-YY')
order by 3, 1 desc;
The above select statement's results...
Status Value DATE
Open 6 02-JAN-08
Closed 3 02-JAN-08
Closed 1 03-JAN-08
Open 1 04-JAN-08
Closed 1 04-JAN-08
Closed 1 05-JAN-08
Open 3 07-JAN-08
Closed 2 07-JAN-08
Open 3 08-JAN-08
Closed 1 08-JAN-08
Open 1 09-JAN-08
But I need this instead...
Status Value DATE
Open 6 02-JAN-08
Closed 3 02-JAN-08
<----- Open 0 03-JAN-08
Closed 1 03-JAN-08
Open 1 04-JAN-08
Closed 1 04-JAN-08
<----- Open 0 05-JAN-08
Closed 1 05-JAN-08
Open 3 07-JAN-08
Closed 2 07-JAN-08
Open 3 08-JAN-08
Closed 1 08-JAN-08
Open 1 09-JAN-08
<----- Close 0 09-JAN-08
Any help would be more appreciative.Thank you...You all are great. While I'm still
looking at the various ways you all provided, from
what I have looked at so far, they don't address
05-JAN-08 which has a null open date. There are
three possiblities, maybe four. Does 05-JAN-08 have a null open date in the data you supplied?
You showed us:
OPEN_DATE CLOSE_DATE
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 03-JAN-08
04-JAN-08 04-JAN-08
05-JAN-08
07-JAN-08
07-JAN-08 07-JAN-08
07-JAN-08 07-JAN-08
08-JAN-08 08-JAN-08
08-JAN-08
02-JAN-08
02-JAN-08
08-JAN-08
09-JAN-08
which looks like they all have open dates.
Perhaps, if there was null open dates you should have used [code][/code] or [pre][/pre] tags around your data so it looked something like
OPEN_DATE CLOSE_DATE
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 02-JAN-08
02-JAN-08 03-JAN-08
04-JAN-08 04-JAN-08
05-JAN-08
07-JAN-08
07-JAN-08 07-JAN-08
07-JAN-08 07-JAN-08
08-JAN-08 08-JAN-08
08-JAN-08
02-JAN-08
02-JAN-08
08-JAN-08
09-JAN-08And then it would have required the ANSI outer join in my query to allow for outer joining on more than one column...
SQL> ed
Wrote file afiedt.buf
1 WITH t as (SELECT to_date('02-JAN-2008','DD-MON-YYYY') as open_date, to_date('02-JAN-2008','DD-MON-YYYY') as closed_date from dual union all
2 SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('02-JAN-2008','DD-MON-YYYY') from dual union all
3 SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('02-JAN-2008','DD-MON-YYYY') from dual union all
4 SELECT to_date('02-JAN-2008','DD-MON-YYYY'), to_date('03-JAN-2008','DD-MON-YYYY') from dual union all
5 SELECT to_date('04-JAN-2008','DD-MON-YYYY'), to_date('04-JAN-2008','DD-MON-YYYY') from dual union all
6 SELECT NULL, to_date('05-JAN-2008','DD-MON-YYYY') from dual union all
7 SELECT to_date('07-JAN-2008','DD-MON-YYYY'), NULL from dual union all
8 SELECT to_date('07-JAN-2008','DD-MON-YYYY'), to_date('07-JAN-2008','DD-MON-YYYY') from dual union all
9 SELECT to_date('07-JAN-2008','DD-MON-YYYY'), to_date('07-JAN-2008','DD-MON-YYYY') from dual union all
10 SELECT to_date('08-JAN-2008','DD-MON-YYYY'), to_date('08-JAN-2008','DD-MON-YYYY') from dual union all
11 SELECT to_date('08-JAN-2008','DD-MON-YYYY'), NULL from dual union all
12 SELECT to_date('02-JAN-2008','DD-MON-YYYY'), NULL from dual union all
13 SELECT to_date('02-JAN-2008','DD-MON-YYYY'), NULL from dual union all
14 SELECT to_date('08-JAN-2008','DD-MON-YYYY'), NULL from dual union all
15 SELECT to_date('09-JAN-2008','DD-MON-YYYY'), NULL from dual)
16 ,all_dates as (select minod+rownum-1 as dt
17 from dual, (select min(open_date) minod, max(open_date) maxod from t)
18 connect by rownum <= maxod-minod+1)
19 ,stat as (select 'open' as status from dual union all select 'closed' from dual)
20 -- END OF DATA
21 select all_dates.dt, stat.status, sum(decode(decode(stat.status, 'open', t.open_date, t.closed_date), all_dates.dt, 1, 0)) as cnt
22 from stat JOIN all_dates ON (1=1)
23 LEFT OUTER JOIN t ON (NVL(t.open_date, NVL(t.closed_date, all_dates.dt)) = all_dates.dt)
24 group by all_dates.dt, stat.status
25* order by 1,2 desc
SQL> /
DT STATUS CNT
02-JAN-08 open 6
02-JAN-08 closed 3
03-JAN-08 open 0
03-JAN-08 closed 0
04-JAN-08 open 1
04-JAN-08 closed 1
05-JAN-08 open 0
05-JAN-08 closed 1
06-JAN-08 open 0
06-JAN-08 closed 0
07-JAN-08 open 3
07-JAN-08 closed 2
08-JAN-08 open 3
08-JAN-08 closed 1
09-JAN-08 open 1
09-JAN-08 closed 0
16 rows selected.
SQL>Make your requirements clear in the future. -
Hi I have seen some where in the code
.what I could not understand is
1.what does the e with clause in this code will do? where it is used frequently and what is the advantage?
2.the temp_holding is a table with only one column.So is it like we can use with caluse in the cursor with only one columned tables?
3.why is the AS keyword used in this?
4.If I want to write a select staement for a cursor like this and see what is the data contained in the cursor ,how to write it ?
thanks in adavnce for your help..
OPEN lv_refcur FOR
WITH TEMP_HOLDINGS AS
SELECT A1.VENDOR_INSTRUMENT_ID,A1.DATA_SOURCE_CD FROM FI_IDX_BENCHMARK_HOLDINGS A1, FI_IDX_BENCHMARK B1, FI_IDX_SOURCE C1
WHERE
A1.PRICING_DT = pv_in_dt AND A1.DATA_SOURCE_CD = pv_in_data_src_cd AND A1.INDEX_CD = B1.INDEX_CD
AND B1.INDEX_CD = C1.INDEX_CD AND C1.DATA_SOURCE_CD = A1.DATA_SOURCE_CD AND B1.IS_PA_REQUIRED = 'Y'
UNION
SELECT A2.VENDOR_INSTRUMENT_ID,A2.DATA_SOURCE_CD FROM FI_IDX_FORWARD_HOLDINGS A2, FI_IDX_BENCHMARK B2, FI_IDX_SOURCE C2
WHERE
A2.PRICING_DT = pv_in_dt AND A2.DATA_SOURCE_CD = pv_in_data_src_cd AND A2.INDEX_CD = B2.INDEX_CD
AND B2.INDEX_CD = C2.INDEX_CD AND C2.DATA_SOURCE_CD = A2.DATA_SOURCE_CD AND B2.IS_PA_REQUIRED = 'Y'
-- MDR START MC IGAR Disclosure change
UNION
SELECT
A1.VENDOR_INSTRUMENT_ID,
A1.DATA_SOURCE_CD
FROM
FI_IDX_BENCHMARK_HOLDINGS A1,
FI_IDX_BENCHMARK B1,
FI_IDX_SOURCE C1,
fi_group_member GM
WHERE
A1.PRICING_DT = pv_in_dt
AND GM.group_cd = 'BCGLBIDXPA'
AND GM.purpose_cd = 'GLOBALIDX'
AND A1.DATA_SOURCE_CD = GM.character_val
AND A1.INDEX_CD = B1.INDEX_CD
AND B1.INDEX_CD = C1.INDEX_CD
AND C1.DATA_SOURCE_CD = pv_in_data_src_cd
AND B1.IS_PA_REQUIRED = 'N'
UNION
SELECT
A2.VENDOR_INSTRUMENT_ID,
A2.DATA_SOURCE_CD
FROM
FI_IDX_FORWARD_HOLDINGS A2,
FI_IDX_BENCHMARK B2,
FI_IDX_SOURCE C2,
fi_group_member GM
WHERE
A2.PRICING_DT = pv_in_dt
AND GM.group_cd = 'BCGLBIDXPA'
AND GM.purpose_cd = 'GLOBALIDX'
AND A2.DATA_SOURCE_CD = GM.character_val
AND A2.INDEX_CD = B2.INDEX_CD
AND B2.INDEX_CD = C2.INDEX_CD
AND C2.DATA_SOURCE_CD = pv_in_data_src_cd
AND B2.IS_PA_REQUIRED = 'N'
-- MDR END
SELECT
INSTRUMENT_ID,
FUND_OR_INDEX_CD,
PRICING_DT,
FI_INSTRUMENT_ID,
ISSUE_DESCRIPTION,
TICKER,
ISSUE_DT,
STATED_MATURITY_DT,
COUPON,
STATE_CD,
COUNTRY_CD,
CURRENCY_CD,
CALLABLE_FLAG,
PUTABLE_FLAG,
INSURED_FLAG,
AMT_CD,
REVENUE_SOURCE_CD,
ISSUER_ID,
NON_2A7_DIVER_ISSUER_ID,
BLOOMBERG_MBS_TYPE,
MBS_AGENCY_CD,
ORIGINAL_TERM,
DS_CLASS1_CD,
DS_CLASS2_CD,
DS_CLASS3_CD,
MAX(LB_CLASS1_CD) LB_CLASS1_CD,
MAX(LB_CLASS2_CD) LB_CLASS2_CD,
MAX(LB_CLASS3_CD) LB_CLASS3_CD,
MAX(LB_CLASS4_CD) LB_CLASS4_CD,
GENERIC_INSTRUMENT_ID,
MAX(SC_CLASS1_CD) SC_CLASS1_CD,
MAX(SC_CLASS2_CD) SC_CLASS2_CD,
MAX(SC_CLASS3_CD) SC_CLASS3_CD,
MAX(SC_CLASS4_CD) SC_CLASS4_CD
FROM (
SELECT
DISTINCT
PV_FND_IDX_CD AS FUND_OR_INDEX_CD,
IAI.FI_INSTRUMENT_ID AS FI_INSTRUMENT_ID,
-- MC IGAR Disclosure
decode( pv_in_data_src_cd, 'LBG', decode (I.INSTRUMENT_DOMAIN_CD, 'MBS', I.cusip, IAI.ALTERNATE_ID), IAI.ALTERNATE_ID) AS INSTRUMENT_ID,
-- MC IGAR Disclosure
pv_in_dt AS PRICING_DT,
I.ISSUE_DESC AS ISSUE_DESCRIPTION,
I.BLOOMBERG_TICKER AS TICKER,
DECODE(pv_in_data_src_cd,'LBG',I.ISSUE_DT,NULL) AS ISSUE_DT,
I.STATED_MATURITY_DT AS STATED_MATURITY_DT,
I.COUPON AS COUPON,
I.STATE_CD AS STATE_CD,
I.COUNTRY_CD AS COUNTRY_CD,
I.CURRENCY_CD AS CURRENCY_CD,
I.CALLABLE_IND AS CALLABLE_FLAG,
I.PUTABLE_IND AS PUTABLE_FLAG,
DECODE(pv_in_data_src_cd,'LBG',I.INSURED_IND,NULL) AS INSURED_FLAG,
I.AMT_CD AS AMT_CD,
I.REVENUE_SOURCE_CD AS REVENUE_SOURCE_CD,
I.MASTER_ISSUER_ID AS ISSUER_ID,
I.NON_2A7_DIVER_ISSUER_ID AS NON_2A7_DIVER_ISSUER_ID,
MBS.BLOOMBERG_MBS_TYPE AS BLOOMBERG_MBS_TYPE,
MBS.MBS_AGENCY_CD AS MBS_AGENCY_CD,
MBS.ORIGINAL_TERM AS ORIGINAL_TERM,
NULL AS DS_CLASS1_CD,
NULL AS DS_CLASS2_CD,
NULL AS DS_CLASS3_CD,
DECODE (S.CLASSIFICATION_SCHEME_CD, 'LBCC', S.CLASSIFICATION_LEVEL1_CD)
AS LB_CLASS1_CD,
DECODE (S.CLASSIFICATION_SCHEME_CD, 'LBCC', S.CLASSIFICATION_LEVEL2_CD)
AS LB_CLASS2_CD,
DECODE (S.CLASSIFICATION_SCHEME_CD, 'LBCC', S.CLASSIFICATION_LEVEL3_CD)
AS LB_CLASS3_CD,
DECODE (S.CLASSIFICATION_SCHEME_CD, 'LBCC', S.CLASSIFICATION_LEVEL4_CD)
AS LB_CLASS4_CD,
NULL AS GENERIC_INSTRUMENT_ID,
DECODE (S.CLASSIFICATION_SCHEME_CD, 'SCIS', S.CLASSIFICATION_LEVEL1_CD)
AS SC_CLASS1_CD,
DECODE (S.CLASSIFICATION_SCHEME_CD, 'SCIS', S.CLASSIFICATION_LEVEL2_CD)
AS SC_CLASS2_CD,
DECODE (S.CLASSIFICATION_SCHEME_CD, 'SCIS', S.CLASSIFICATION_LEVEL3_CD)
AS SC_CLASS3_CD,
DECODE (S.CLASSIFICATION_SCHEME_CD, 'SCIS', S.CLASSIFICATION_LEVEL4_CD)
AS SC_CLASS4_CD
FROM
INSTRUMENT I,
INSTRUMENT_SECTOR S,
TEMP_HOLDINGS H,
INSTRUMENT_ALTERNATE_ID IAI,
INSTRUMENT_MBS MBS,
FI_IDX_INSTRUMENT FII
WHERE
H.DATA_SOURCE_CD = FII.DATA_SOURCE_CD
AND H.VENDOR_INSTRUMENT_ID = FII.VENDOR_INSTRUMENT_ID
AND FII.FMR_CUSIP = IAI.ALTERNATE_ID
AND IAI.FI_INSTRUMENT_ID = I.FI_INSTRUMENT_ID
AND IAI.FI_INSTRUMENT_ID = S.FI_INSTRUMENT_ID(+)
AND IAI.FI_INSTRUMENT_ID = MBS.FI_INSTRUMENT_ID(+)
AND IAI.ALTERNATE_ID_TYPE_CODE = 'FMR_CUSIP'
GROUP BY INSTRUMENT_ID, FUND_OR_INDEX_CD, PRICING_DT, FI_INSTRUMENT_ID,
ISSUE_DESCRIPTION, TICKER, ISSUE_DT, STATED_MATURITY_DT, COUPON, STATE_CD,
COUNTRY_CD, CURRENCY_CD, CALLABLE_FLAG, PUTABLE_FLAG, INSURED_FLAG, AMT_CD,
REVENUE_SOURCE_CD, ISSUER_ID, NON_2A7_DIVER_ISSUER_ID, BLOOMBERG_MBS_TYPE,
MBS_AGENCY_CD, ORIGINAL_TERM, DS_CLASS1_CD, DS_CLASS2_CD, DS_CLASS3_CD,
GENERIC_INSTRUMENT_ID;
Edited by: 953115 on Dec 5, 2012 2:04 AM953115 wrote:
1.what does the e with clause in this code will do? where it is used frequently and what is the advantage?The WITH clause is called subquery factoring, not easy to find in the manual if you don't know that
http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#i2161315
http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#i2077142
>
subquery_factoring_clause
The WITH query_name clause lets you assign a name to a subquery block. You can then reference the subquery block multiple places in the query by specifying query_name. Oracle Database optimizes the query by treating the query name as either an inline view or as a temporary table.
>
Simply, it is like creating a view local to the query that can be used one or more times in the rest of the query. It has added benefits such as the potential to materialize the results, explicitly push predicates into the subquery, and perform hierarchical queries using the recursive feature.
>
2.the temp_holding is a table with only one column.So is it like we can use with caluse in the cursor with only one columned tables?No you can put any query in the WITH clause
>
3.why is the AS keyword used in this?Developer preference? It is optional when specifying a column alias, it seems many of the aliases in your query are unnecessary since they just duplicate the existing column name.
4.If I want to write a select staement for a cursor like this and see what is the data contained in the cursor ,how to write it ?You can view the results from the cursor the same way as any select query, e.g.
SQL> var c refcursor
SQL> begin
2 open :c for
3 with test_data as
4 (
5 select 1 n, 'a' s from dual union all
6 select 2 n, 'b' s from dual union all
7 select 5 n, 'x' s from dual
8 )
9 select n, s, case when n > 2 then 'High' else 'Low' end y
10 from test_data;
11 end;
12 /
PL/SQL procedure successfully completed.
SQL> print c
N S Y
1 a Low
2 b Low
5 x High -
Need help with Advanced Selection in MSA
Hi,
Has anyone managed to identify how to create additional
advanced selection criteria using links to existing combo engines ? Documentation on Mobile system maint is limited so looking for some additional help. Some criteria you can run the check against but not all why ? What should go in the hierachy fields and how do you select the choice list values ?
Thanks in advance
MHi,
Thanks,my issue is I want to use the combo box so the user can select from the drop down the relevant code from the choice list. Not rocket science really.
Example of sql generated for profession whch is kna1 field.
select KNA1.TITLE,KNA1.SFAKNA2,KNA1.SFAKNA1,KNA1.PROFRESSION as PROFESSION,KNA1.PAFKT,KNA1.NAME2,KNA1.NAME1,KNA1.KVTGRP,KNA1.KVCPPOS,KNA1.KUNNR,KNA1.KTOKD,KNA1.BPACT,KNA1.ANRED,KNA1.ABTNR,ADRC.TELNR_LONG,ADRC.STREET,ADRC.POST_CODE1,ADRC.CITY1,ADRC.ADRCDFLT,ADDR.SFAKNBP , (KNA1.PROFESSION ='MIC') as ReturnValue1 from SMOKNA1 KNA1,SMOADRC ADRC,CDBD_ADDREXT ADDR where kna1.deleted='0' and KNA1.Source='CON' and ADRC.deleted='0' and ADDR.deleted = '0' and (ADRC.ADRCDFLT='S' or ADRC.ADRCDFLT='P') and (1=1) and kna1.sfakna1=adrc.sfakna1 and adrc.sfaadrc = addr.sfaadrc order by kna1.name1
Code fails !
I have set VAR1 as a free Combo with Bdoc as Choice, segment as Choice List with fields chkey/Textx so hiearchy fields looks like this //*/Profession hiearchy params being mandt/spras/list
It will not check is this because there is an error in this definition ?
Regards
MM -
Need help with a SELECT statement
Dear forumers,
I'm a newbie in ABAP and I'm trying to figure out what the following line means (in bold letters):-
SELECT SINGLE STAT2 FROM PA0000 INTO PA0000-STAT2
WHERE PERNR = ITAB_DATA-STAFF_NO.
Does this mean that the single data from the STAT2 field is selected and then placed back into the same field (doesn't quite makes sense, right)?
Please help and many thanks in advance!SELECT SINGLE STAT2 FROM PA0000 INTO PA0000-STAT2
WHERE PERNR = ITAB_DATA-STAFF_NO.
Does this mean that the single data from the STAT2 field is selected and then placed back into the same field (doesn't quite makes sense, right)?
it sense very much right.
have you heared about table buffer concept?
here this concept exactly comes.
try with this below code:
TABLES:pa0000."tables must be decleare
SELECT SINGLE STAT2 FROM PA0000 INTO PA0000-STAT2.
write:PA0000-STAT2.
and since you are using select single than you should be use much key as much possible for getting accurate data.other wise system will pick first data which match your where condition.
Amit. -
Need help with special select case
Oracle DB 12c, I think 12.1.2
drop table person_tests;
create table person_tests (
person_id number,
test_type_id varchar2(1),
test_date date
insert into person_tests (person_id,test_type_id,test_date) values (1,'A',to_date('01012000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (1,'A',to_date('01022000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (1,'B',to_date('01032000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (1,'B',to_date('01042000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (1,'C',to_date('01052000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (2,'C',to_date('01062000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (3,'A',to_date('01072001','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (3,'A',to_date('01082000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (3,'B',to_date('01092000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (3,'B',to_date('01102000','MMDDYYYY'));
insert into person_tests (person_id,test_type_id,test_date) values (3,'C',to_date('01102000','MMDDYYYY'));
Persons as participating in certain tests: A, B and C where each test is tagged with a date when done.
I need to output only people that completed 2 tests of type A, 2 tests of type B and 1 test of type C. I have to display the test type and the date of the most recent of those tests. In the example above, desired output would be
1 C 05-JAN-00
3 A 07-JAN-01
Hope this problem definition makes senseHi,
Sorry, I missed the requirement about showing the most recent test_type_id.
Assuming the date to be shown is the date the minimum requirements were fulfilled (whether of not gratutitous tests came afterwrds), you can do something like this:
WITH got_r_num AS
SELECT person_id, test_type_id, test_date
, ROW_NUMBER () OVER ( PARTITION BY person_id, test_type_id
ORDER BY test_date
) AS r_num
FROM person_tests
WHERE test_type_id IN ('A', 'B', 'C')
SELECT person_id
, MIN (test_type_id) KEEP (DENSE_RANK LAST ORDER BY test_date) AS last_test_type
, MAX (test_date) AS last_test_date
FROM got_r_num
WHERE r_num <= CASE test_type_id
WHEN 'A' THEN 2
WHEN 'B' THEN 2
WHEN 'C' THEN 1
END
GROUP BY person_id
HAVING COUNT (*) = 5 -- 2 'A's + 2 'B's + 1 'C'
What test_type_id would you want to display in case of a tie for the latest test?
I just saw your post saying that a person with 3 or more type 'A' tests should be excluded. In that case, my original solution (with = in the main WHERE clause) is what you want; only used LAST to get the latest test_type_id. The solution in this message is for the situation where you don't care if someone had 3 or more 'A's, but you want to ignore all but the first 2. -
Need help with my Toshiba remote control and receiver for Qosmio G30 161
Hello to all
I have a Toshiba Qosmio G30-161 and with it I have a Toshiba remote control and a Toshiba remote control receiver, this is the first time I have used it (tried to that is), my problem is the remote is not working on the computer when I press any program buttons the computer does nothing.
I have installed four brand new AA batteries and the remote works fine its sending signals to the receiver, the receiver the detecting the remote as a red light appears every time you press a button and as for the computer I have checked the drivers and the USB is picking up the receiver as a E-home remote receiver which I have checked with Toshiba and that is correct, so all in all the remote is working, the receiver is picking up signals and the pc has detected the receiver but nothing works, I have installed remote control manager but this still has done anything. I have spoken to Toshiba help and support and the end result is they are not sure what the problem is. Can anyone help I require the remote for slideshows for customers as I??m a photographer.
Also to confirm I am running Windows XP MCE addition.
Anthony WorlockHi there,
this remote contol works, if you use it without any special drivers and special software, only in the Media Center.
But if you install such stuff like [WinLirc|winlirc.sourceforge.net] then you should be able to get some functions for your presentation.
Please try this tool and check if it works.
By the way: If I were you I would first read the Manual and FAQ of WinLirc before starting because its a little bit tricky to handle the program. :) (Too many settings :D)
Greets -
Need help with cursor ...
Hi there,
I don't know what I did wrong, but the cursor in my project became an horizontal arrow with which I can't no longer highlight clips ...
I can't point anything...
The cursor still looks fine on the top of the TL
How can I go back ?
Many thanks
IvanIt sounds like you activated the Select Track Forward Tool. If you pressed t while editing, it turns this on. Simply press a or click on the normal pointer in the Tool Palette on the right.
-
PSE8 - Need help with bizarre selection problem with spot healing and clone tools
In using clone stamp and spot healing brush--. When I Alt click for my sample I get entire image---acting as if I'm moving a layer---whether I'm working on a single or multi-layer image. This is PSE8 3 gig ram windows ----Lenovo Core II duo P8400 @ 2.26 GHZ with ATI 256 meg graphics
This sure is fun!!!
I'm trying to get rid of an old numbering imprint on a film(not digital) image.Actually the overlay option is helpful. It shows the region that you are copying - and i dont think thats causing the issue.
The issue is because you dont have the clip option checked along with Overlay.
Just make sure you have both Overlay and Clipped options checked and you would not see this problem anymore.
Regards,
Pri
(Attached an image of the settings) -
Need help with Hierarchical Select List
I'm trying to left-pad the entries in a select list to indicate organizational hierarchy. Here's the query:
SELECT
LPAD(' ',2*(LEVEL-1)) || ORG_NM d,
ORG_ID r
FROM
ORG_ENTITIES
START WITH ORG_ID = 901
CONNECT BY PRIOR ORG_ID = MNG_ORG_ID
ORDER BY 2;
(there are two spaces between the single quotes)
It seems to work fine from a standard SQL prompt, but it looks as if either Apex or the browser is stripping off the spaces in the padding. Can someone point out a reason? I'm using Application Express 3.0.0.00.20. Thanks.I've used the concatenation of two items to create space between them before, and that works fine. This is an LPAD situation, however, as there is only one item.
I did try the & nbsp; in place of the literal space character. The select list strips out the & and I get some variation of the literal characters. I even tried using periods in place of spaces for the padding and that didn't work either.
Don't know what is going on. -
Need Help with cursor features
I just got my first job at a media buying place in NYC, and I'm loving it! my daily tasks include entering data, creating tons and tons of spreadsheets, and interpreting data. I know, sounds boring, but I like it.
Only problem I've been having deals with Excel. I have a type of dyslexia that makes it difficult to see the white space between lines. Contrary to the norm, I have no problem following left to right- or vice versa- however it is difficult to distinguish
one line from the next because of it's vertical proximity.
For example when I read, I often re-read the line I just finished because I lose my spot when I shift my eyes.
I was wondering if anyone knew of cursor features on excel that follows my cursor using dotted lines- sort of an X,Y coordinate feature- from the top and side tab. It'd make my life a whole lot easier especially if the dotted lines are a different color
from the background.
Any input would be great. I'm sure there's a feature, I just cant find it.
Greatly Appreciated,
-JSUnfortunately there is no feature in Excel to do what you describe, not sure if Windows provides something like that as a general utility.
However it should be possible to develop an Excel macro to draw a line that follows the cursor. I have in mind something like press and keep depressed a key (say F9),and if/as the cursor moves a trail will follow, release the key and the macro terminates.
Optionally the trail could be cleared when the key is released, or cleared next time the key is depressed. That's all subject to developing and testing but would something along those lines be useful? If so explain anything else that's relevant or would be
useful. -
Need help with 'Video' selection on iPod
I have a 30g iPod 5th generation, and I try to download some videos, but when I try to watch them on my iPod, they just play the sound, and don't show the video screen. They are in the mp4 format, if that is the problem. If anyone knows what the problem is, please help me.
Thanks so muchDoes this article contain anything useful?
(28691) -
Need help with using selected class with includes...
Hi guys,
I'm using PHP includes for my site and in the header include I have my main navigation - so it's drawn in to whatever page the user goes to from header.php.
I want to have a 'selected' <li> class for the navigation so the relevant button is highlighted depending on which page/section the user is on...
How would I go about implementing it into header.php - is there a way I can put a bit of PHP in each of the pages to make the appropiate <li> in header.php use the 'selected' class?
Thank you and I hope to hear from you.
SMI'm sure there will be an easier way than this for PHP but if you give each menu item a class, you can then give each <body> a different id (or class) to determine where the user is.
Eg:
CSS
nav li.menu_home a{style here} /* class is 'menu_home' for home menu item */
#home nav li.menu_home a{style here} /* the id of 'home' is added to the body tag on the home page, <body id="home"> */
HTML
<body id="home">
<!-- navigation include -->
<nav>
<ul>
<li class="menu_home"><a href="">Home</a></li>
</ul>
</nav>
<!-- end navigation include -->
</body>
Or you could try searching for a javascript method.
Maybe you are looking for
-
Hi MM Gurus, My Client want to have the Purchase requisition Printout. But i have checked in SAP system that there is no standard settings for Purchase Requisition Printout. I have also checked in NACE that there is no Application available in SAP. H
-
Dynamically choosing operation in db adapter
Hi, I have a xml message on which various operations can be performed like create,update,delete,read.I want depending upon user input i am able to do the selected operation and want to create just one DB adapter to do so instead of 4 i.e. one for eac
-
How to use a third party datasource in java se use toplink jpa?
because i am working on a desktop app, i don't have a container.So i can't use a JNDI provider; but i want to use proxool or dbcp connection pool instead of toplink's connection pool. how can i handle this? thx for your help
-
Looking through the SDK it doesn't look like there is any way of syncing files onto the iPhone. You can request that a file be downloaded from a specified URL. That's not very user friendly though. What I'd like to know is if there is a way of regist
-
Error 1394689636 (dF!S) NEW
All apps in the Creative Suite Premium abort after the message " photoshop quit unexpectedly". This is the error message the console gave me. Adobe does not have anything on this. Can you help?. I am very frustrated. Thanks bob dolan