Finding the numbers which are not consecutive in an order....
Hi,
The solution i found was using the minus set operation:
SQL> create table test as
2 mplestselect 1 a from dual
3 union all
4 select 3 a from dual;
Table created
SQL>
SQL> select level
2 from dual
3 connect by level<=10
4 minus
5 select a from test
6 /
LEVEL
2
4
5
6
7
8
9
10
8 rows selectedQuestions:
1) Is there any other solution...(i'm convinced there is even simpler....)
2) Trying in the above sql stmt not to create the table test... i tried the following :
but the error appearerd...
with sample as
(select level
from dual
connect by level<=10),
x as
(select 1 a from dual
union all
select 2 a from dual
union all
select 7 a from dual)
select level from sample
minus
select a from x
ORA-01788:required connect by expression in this query blockHow could i edit the query without creating the "test" table...????
Thank you,
Sim
Hi, Sim,
sgalaxy wrote:
Questions:
1) Is there any other solution...(i'm convinced there is even simpler....)Not that I know of (assuming I understand the problem).
2) Trying in the above sql stmt not to create the table test... i tried the following :
but the error appearerd...
with sample as
(select level
from dual
connect by level<=10),
x as
(select 1 a from dual
union all
select 2 a from dual
union all
select 7 a from dual)
select level from sample
minus
select a from x
ORA-01788:required connect by expression in this query blockHow could i edit the query without creating the "test" table...????Don't name your columns the same as pseudo-columns (like LEVEL), built-in functions, reserved words, etc.
Use a column alias, like this:
with sample as
(select level AS level_num -- Alias defined
from dual
connect by level<=10),
x as
(select 1 a from dual
union all
select 2 a from dual
union all
select 7 a from dual)
select level_num from sample -- Alias referenced
minus
select a from x
Similar Messages
-
How can I find the profiles which are not in a role
Hi all,
how can I find all profiles which are not used in a role. Its important for a security check.Hi Stefan,
you do one thing use the transaction SUIM
SUIM>>Profile>>By Roles
give all the role name and execute you will get roles with profiles
and extract to excel sheet
to get only profiles
suim>>profile>>by profile name or text give * and execute
and extract in excel sheet no compate profile coloumns get the profiles which does not there in any roles
hope ds helps
thanks
kishore -
How can we find delivery documents which are not goods issued?
Hi All,
How can we find delivery documents which are not goods issued?
Thanks in advancehi,
please check in VL06O.
there will be plenty of options on the same.
you are requested togo for push button FOR GOODS ISSUE from there u will go to VL06G only
your requrient will be satisfied.
regards,
balajia
Edited by: balaji timmampalli achari on Nov 11, 2010 12:39 PM
Edited by: balaji timmampalli achari on Nov 11, 2010 12:40 PM -
How to remove the tasks which are not manually recoverable?
How to remove the tasks which are not manually recoverable?
I tried performing manual recovery for the BPEL processes but there are few tasks which cant be manually recoverable..
Could you please tell me how to remove those tasks and also tell me which information in the console is the task_id in the database?This article explains how to cleanup bpel process instances, you can find task instance id by searching for data in payload using api.
Managing a BPEL Production Environment
http://www.oracle.com/technology/pub/articles/bpel_cookbook/blanvalet.html
Cheers,
Rad -
Not to display the document which are not due at the time of making the pay
Hi,
My user dont want to display the document which are not in due at the time of making the payment through F-53.
For example:
Vendor Code: 1001 has the open item as below:
Due Date - 29.09.2009 Amount 50000
Due Date - 30.09.2009 Amount 10000
Due Date - 15.10.2009 Amount 40000 (due date is in future)
Now my user want to make the payment for the above vendor through T-Code: F-53 / F-58, while clicking the process Open item the syste, shows all the document (which inclues the future due date document).
My user dont want to display the document which is in future due date because by wrongly he should not make the payment for the future due dated document.
Kindly provide me the solution how to disable the document which are not in due.
Regards
JSHi,
You can try the following -
Execute transaction code O7F4, and maintain the field FAEDT. Then execute F-53 and check if the option to enter net due date appears in the additional selection or not.
Please revert.
Thanks and Regards,
Anit -
Find the cubes that are not being compressed
Hi,
Need to find the cubes that are not being compressed.
Please let me know how to find them? is there any tran codes to figure them?
Thanks,Hi
E fact tables name >> /BIC/E*
F Fact tables name >> /BIC/F*
By comparing the two list
can we find the uncompressed cubes?
If this is right it gives one more solution to your problem...
Thanks -
Any script to cancel the PO which are not taken receipt from the back end?
Hi,
We need to cancel the PO Shipments which are not taken receipts to reverse the encumbrnace budegatory amount. is there any script i can use so that i can cancel all the PO's which are not taken receipts or we need to manually cancel the each shipment by navigating in to the PO summary window using the Tools > Control option.
Please let me know your views..ASAP
Note: We are using the 11.5.10.2 version with encumbrance budgetary funds checking for PO's.
Regards,
Kevin
Edited by: user10960960 on May 6, 2009 3:17 AMThere is no documented,proven and supported way of doing such thing using scripts. Best to do it from front end; use dataloader for large volumes, and data loader in forms playback mode for larger volumes.
-
Hi All,
Please help me in building the following query:
Parent Child
==== ===
10 20
20 30
30 40
50 60
70 80
etc..... In the above data let us assue there is only one grand parent say 10 and the values 50,60,70,80 etc are not attached to grand parent 10.So i need to display the values which are forgotten to attach to the Top Node 10 i.e, here 50,60,70,80 etc. If my query helps in retreving these values then i can attach them back to the hierarchy.
Thanks in advance.
regards,
kalyanSQL>WITH t AS
2 (SELECT 10 AS par, 20 AS chi FROM DUAL UNION ALL
3 SELECT 20, 30 FROM DUAL UNION ALL
4 SELECT 30, 40 FROM DUAL UNION ALL
5 SELECT 50, 60 FROM DUAL UNION ALL
6 SELECT 70, 80 FROM DUAL)
7 SELECT *
8 FROM t
9 WHERE chi NOT IN(SELECT chi
10 FROM t
11 CONNECT BY PRIOR chi = par
12 START WITH par = 10);
PAR CHI
50 60
70 80hth, Urs -
How to Find the Queries that are not hitting the indexes..
Guys,
Hope you all doin well.
Would you guys please tell me any view , or any resource that can help me to identify those SQL Statements that are not hitting the indexes properly, Causing the system to slow down at peak times.
Thanks
Rgrds
Y.Vo.any resource that can help me to identify those SQL Statements that are not hitting the indexes properlyInteresting ! Is there any specific reason of looking only for those queries, which are not making proper use of indexes.
hare krishna
Alok -
List of materials from the excel which are not posted
I have written bdc,
that ware house storage locations should not be allowed.
All the storage locations in the table T320 are ware house storage locations.
so i have written
if not it_data1 is initial.
SELECT * into table iT_320 FROM T320
for all entries in it_data1
where WERKS = it_data1-werks and
LGORT = it_data1-lgort.
endif.
LOOP AT IT_DATA1 .
read table iT_320 INTO wa_320 with key werks = it_data1-werks
lgort = it_data1-lgort.
IF sy-subrc = 0 .
delete it_data1 index sy-tabix.
ENDIF.
endloop.
So its working fine till then.
but i wanted a list of materials from the excel wch are not posted,so tht the user is aware tht some items are not consumed.
How to display that list in bdc.
Please give the code for that.MY EXCEL DATA IS IN IT_DATA1.
LOOP AT IT_DATA1 .
read table iT_320 INTO wa_320 with key werks = it_data1-werks
lgort = it_data1-lgort.
IF sy-subrc = 0 .
delete it_data1 index sy-tabix.
ENDIF.
endloop.
LOOP AT IT_DATA1 .
MOVE-CORRESPONDING IT_DATA1 TO IT_DATA_h.
Collect it_data_h.
ENDLOOP.
Clear it_data_h.
clear : it_data1.
THEN MY BDC IS LIKE THIS.
LOOP AT IT_DATA_H .
perform bdc_dynpro using 'SAPMM07M' '0400'.
perform bdc_field using 'BDC_CURSOR'
'RM07M-WERKS'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'MKPF-BLDAT' LV_DATE .
perform bdc_field using 'MKPF-BUDAT' LV_DATE.
perform bdc_field using 'RM07M-BWARTWA' '261'.
perform bdc_field using 'RM07M-WERKS' IT_DATA_H-WERKS.
perform bdc_dynpro using 'SAPMM07M' '0421'.
perform bdc_field using 'BDC_CURSOR'
'MSEG-WERKS(03)'.
CLEAR : FLAG1, W_FLAG.
LOOP AT IT_DATA1 WHERE aufnr = it_data_H-aufnr.
W_FLAG = 1.
CONCATENATE 'MSEG-MATNR' '(' W_FLAG ')' INTO W_MATNR_C.
perform bdc_field using W_MATNR_C
IT_DATA1-MATNR.
CLEAR : QTY.
QTY = IT_DATA1-ERFMG.
SHIFT QTY LEFT DELETING LEADING SPACE.
END LOOP.
NOW HOW TO COMPARE THE MATERIALS IN EXCEL AND BDC POSTED.
PLEASE PROVIDE THE CODE FOR THAT AND HOW TO DISPLAY. -
How to find the deliveries which does not have Carnot and SHPCON
I have a scenario where for some of the deliveries no CARNOT idoc or SHPCON idocs were not been created or went into error, i have verified it in by going to we05 and found there were many idcos in error and some of the idocs were been set to status 68 and they were manually processed by users. is there any table where i can extract the deliveries which does not have SHPCON idocs created.
hi,
you have to take two steps in this:
first step:
Table EDIDC which contains EDI Control records.
which stores the partner number,partner functions & message types.
2nd step:
take that partners and get deliveries from LIKP table.
regards,
balajia -
I have a table called LoginTable in that I have a column called LoginName
I want to select only the LoginNames which are having the special charecters like %, @ and . how to write the query
Please help me out.
it is some thing like select LoginName from LoginTable where LoginName like (%, @, .) please correct my queryPlease use regexp_like, if your database is Oracle10g 10.1 or higher.
Otherwise...
how to search for '%' in data
select * from LoginTable
where
LoginName like '%\%%' escape '\'
or
LoginName like '%@%'
or
LoginName like '%.%'
; -
How to find the tables which are the candidates for gathering stats in 10g
Hi,
In 10g how can we find the tables, partitions which are the candidates for gathering the stats.
I want to findo those tables, partitions and gather the stats on daily basis.
Thanks,
MahiThe probem you describe has been posted about before. There are known issues with the default dbms_stats parameter settings for some environements.
What you can do is just go ahead an manually submit dbms_stats commands with appropriate parameters for tables that have not been analyzed or modify the maintenance window to give it more time.
I would rather just generate the missing statistics myself then the job can continue to run in the normal maintenance window. Since the job should be looking only for tables that meet the stale requirements then once everything is analyzed it is likely the job can keep the statistics updated in the default time allowed.
Be warned that the default parameter settings do not work well for some tables in some environments and if that proves true for your shop you can generate workable statistics on a table and then lock them so the nightly job ships regenerating the statistics for that table. You would then manually unlock, generate, and lock that statistics for that table as necessary.
HTH -- Mark D Powell -- -
Why does Siri not able to find phone numbers that are not listed in contacts
What could be dragging my battery life down to less than eight hours per day with minimal usage
Hi darceyam,
I'm sorry to hear you are having these issues with iCloud Drive. If you are having issues accesssing your previous files, you may find the following article helpful:
What if I don't see all my files at iCloud.com?
Any documents that you've already stored in iCloud are automatically moved to iCloud Drive when you upgrade. iCloud.com will display these files in the new iCloud Drive app in addition to the iWork apps (Pages, Numbers, and Keynote) that you're used to seeing.
If you don’t see your files in the iWork apps or in iCloud Drive, then make sure that you set up iCloud Drive on all of your devices.
Get help using iCloud Drive - Apple Support
Regards,
- Brenden -
How to find the systems which are connected in network like LAN
hello friends......
In my project i have to give the ipaddress as the input in one system and i have to find whether that corresponding system having that ipaddress is connected in LAN or not..........simply telling that is a simple ping program having only code written on the server side and not on the client side..........
anybody can help me plz..............Hi,
open the following link.
http://books.google.co.in/books?id=jTTrZjucb_QC&pg=PA37&lpg=PA37&dq=dbo2%2Bsap&source=web&ots=FgA9pC3u24&sig=sOG3EJRm5HGW2aFpkVVH_oxBjjo&hl=en#PPP1,M1
Master data load failure
Reward if Helpful
Jagadish
Maybe you are looking for
-
may any one send me the formate of purchase tracking report. wat r the details r there in that report and simple print preview of any one details.
-
For a few months, I have been unable to print from Firefox. I assumed it was a setting or something on my network, but today figured out it's my old printer driver that is no longer compatible. There is no new driver, nor will there be one. I love my
-
11.5.10.2 SYSTEM alert
Concurrent Request for "Report Set" has completed with error Log file: Application Object Library: Version : 11.5.0 Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved. FNDRSSUB module: Report Set Current system time is 14-SEP-2009 19:1
-
How is the new timestretch you lucky people, im still waiting for my upgrade.
-
Unable to update iPhone Application with ApplicationLoader
I'm having a problem updating my iPhone application with the applicationLoader. It says it was completed uploading but in the iTunesConnect interface it still says "Waiting for Upload". I've tried uploading about 20 different times now, and attempted