Checking for the exististence of entries in the IN list
DB Version: 10gR2
create table x
(col1 varchar2(30));
insert into x values ('SONY');
insert into x values ('ALSTHOM');
insert into x values ('AERO');
insert into x values ('JAKE');
insert into x values ('MAINE');
select col1 from x
where col1 in
('SONY',
'ALSTHOM',
'HAITI',
'MAINE',
'GHANA'
COL1
SONY
ALSTHOM
MAINEWhenever an entry in the IN list of the query is absent in the table, how can i get the result like
COL1
SONY
ALSTHOM
MAINE
HAITI -----> NOT PRESENT
GHANA -----> NOT PRESENT
Something like this? All employees, marking those not in the list
SQL> WITH mylist as (
2 SELECT 'ANAND' item FROM DUAL UNION ALL
3 SELECT 'SVEN' FROM DUAL UNION ALL
4 SELECT 'GORAN' FROM DUAL UNION ALL
5 SELECT 'CHARLES' FROM DUAL UNION ALL
6 SELECT 'LEMAR' FROM DUAL UNION ALL
7 SELECT 'ZIPAJ' FROM DUAL UNION ALL
8 SELECT 'KRALJIC' FROM DUAL UNION ALL
9 SELECT 'YING' FROM dual)
10 SELECT empname, DECODE(item, empname, NULL, 'Not in List')
11 FROM employees
12 LEFT JOIN mylist
13 ON empname = item;
EMPNAME DECODE(ITEM
ANAND
CHARLES
ZIPAJ
KRALJIC
YING
JAKE Not in List
ALSTHOM Not in List
AERO Not in List
KRUPP Not in List
YANEK Not in List
MAINE Not in List
SONY Not in ListOr all list marking entries not in employees:
SQL> WITH mylist as (
2 SELECT 'ANAND' item FROM DUAL UNION ALL
3 SELECT 'SVEN' FROM DUAL UNION ALL
4 SELECT 'GORAN' FROM DUAL UNION ALL
5 SELECT 'CHARLES' FROM DUAL UNION ALL
6 SELECT 'LEMAR' FROM DUAL UNION ALL
7 SELECT 'ZIPAJ' FROM DUAL UNION ALL
8 SELECT 'KRALJIC' FROM DUAL UNION ALL
9 SELECT 'YING' FROM dual)
10 SELECT item, DECODE(empname, item, NULL, 'Not in Table')
11 FROM mylist
12 LEFT JOIN employees
13 ON empname = item;
ITEM DECODE(EMPNA
CHARLES
YING
ZIPAJ
ANAND
KRALJIC
GORAN Not in Table
SVEN Not in Table
LEMAR Not in TableIf your list is longer, and you are getting it programatically somwhere, it might be worthwhile to populate a global temporary table with the list and use that in place of the sub-query factoring clause.
John
Similar Messages
-
i know my e-mail address and the password, but what website do I go to to check for the e-mail. I have a older laptop and my iTunes is 9.1.1 or something and Apple 10.4.11 so how do I do this. Thanks.
i know my e-mail address and the password, but what website do I go to to check for the e-mail. I have a older laptop and my iTunes is 9.1.1 or something and Apple 10.4.11 so how do I do this. Thanks.
-
I was bought iPhone4 16 GB on Jan 07, 2013 from online shop from Laos they told me that this iPhone from Apple in Hongkong (first hand) but I check for the warranty is already expire date. What should we do? I want to know about my iPhone4 first hand or second hand. How can i check?
This will show you warranty status and give you an idea
of when originally sold:
https://selfsolve.apple.com/agreementWarrantyDynamic.do -
How can I check for the existence of an XML file in Illustrator Javascript??
I'm writing a Javascript to run at startup. I want to check for the existence of XML files and process them, if they are available. How can I check for their existence?
Your first line just sets a variable to a string value… getFiles() is a method of Folder… so
var InputXMLDir = Folder( "D:/Brackets/Create_Bracket_Graphics/Input/XML-n-Templates/" );
Not a PC user so I can't remember if the colon is OK…? As you appear to know the file name why bother with a folder get files anyhow you could just check if the file exists then do some thing…
alert( File( "D:/Brackets/Create_Bracket_Graphics/Input/XML-n-Templates/brackets_men_web.xml" ).exists ); -
F110 payment run completed but not generated all check for the payments
Do any one have an idea or the potential answer on my query
I've run F110 and generated one Payment all 45 open items for one vendor
Now after the print done only the first 20 items got into the check register, and left over the remaining 25 items
So my question is why system not generated the check for the remaining 25 items and what is the remedyNo all settings are available, but still the same situation the all checks are not generated for all items of the vendor open items clearing in the one payment documents
single vendor
single payment for all 25 open items
After print activity compelted
checks created for items 5
leftover items 20 not created check
can anyone tell why system is behaving like this -
How to check for the sub folder in the document library Is already Exist using CSOM?
Hi,
My requirement is to create the folder and sub folder in SharePoint document library. If already exist leave it or create the new folder and the subfolder in the Document library using client side object model
I able to check for the parent folder.
But cant able to check the subfolder in the document library.
How to check for the sub folder in the document library?
Here is the code for the folder
IsFolder alredy Exist.
private
string IsFolderExist(string InputFolderName)
string retStatus = false.ToString();
try
ClientContext context =
new ClientContext(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryLink"]));
context.Credentials =
CredentialCache.DefaultCredentials;
List list = context.Web.Lists.GetByTitle(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryName"]));
FieldCollection fields = list.Fields;
CamlQuery camlQueryForItem =
new CamlQuery();
camlQueryForItem.ViewXml =
string.Format(@"<View Scope='RecursiveAll'>
<Query>
<Where>
<Eq>
<FieldRef Name='FileDirRef'/>
<Value Type='Text'>{0}</Value>
</Eq>
</Where>
</Query>
</View>",
@"/sites/test/hcl/"
+ InputFolderName);
Microsoft.SharePoint.Client.ListItemCollection listItems = list.GetItems(camlQueryForItem);
context.Load(listItems);
context.ExecuteQuery();
if (listItems.Count > 0)
retStatus =
true.ToString();
else
retStatus =
false.ToString();
catch (Exception ex)
retStatus =
"X02";
return retStatus;
thanks
SundharHi Sundhar,
According to your description, you might want to check the existence of sub folder in a folder of a library using Client Object Model.
Please take the code demo below for a try, it will check whether there is sub folder in a given folder:
public static void createSubFolder(string siteUrl, string libName, string folderServerRelativeUrl)
ClientContext clientContext = new ClientContext(siteUrl);
List list = clientContext.Web.Lists.GetByTitle(libName);
CamlQuery camlQuery = new CamlQuery();
camlQuery.ViewXml =
@"<View Scope='RecursiveAll'>
<Query>
<Where>
<Eq>
<FieldRef Name='FSObjType' />
<Value Type='Integer'>1</Value>
</Eq>
</Where>
</Query>
</View>";
//camlQuery.FolderServerRelativeUrl = "/Lib1/folder1";
camlQuery.FolderServerRelativeUrl = folderServerRelativeUrl;
ListItemCollection items = list.GetItems(camlQuery);
clientContext.Load(items);
clientContext.ExecuteQuery();
Console.WriteLine(items.Count);
if (0 == items.Count)
//create sub folder here
Best regards
Patrick Liang
TechNet Community Support -
Once in a while i get the error
Event ID 6463
The timer service encountered an exception checking for the upgrade mode registry key. Requested registry access is not allowed.
This also happens when i restart the timer service.
I already cleared the SharePoint cache (xml's) but no success with that.
Environment is
SharePoint 2013 SP1 + CU Dec 2014This is a brand new SP13 with SP1 installation after binaries installation i also installed Dec 2014 CU and then created the SP farm.
The Apppool/Timer account is member of WSS_ADMIN_WPG.
Issue can be reproduced with restarting SharePoint Timer Service.
Hereby the Process Monitor output. Hence i filtered it on NOT SUCCESS and Path contains the word UPGRADE
11:37:57,4244851 OWSTIMER.EXE
6272 RegQueryValue
HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\UpgradeLogLevelOverride
NAME NOT FOUND Length: 144
11:37:57,6632057 OWSTIMER.EXE
6272 RegOpenKey
HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\v4.0_policy.15.0.Microsoft.Office.Access.Services.Moss.Upgrade__71e9bce111e9429c
NAME NOT FOUND Desired Access: Read
11:37:57,6632889 OWSTIMER.EXE
6272 RegOpenKey
HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\policy.15.0.Microsoft.Office.Access.Services.Moss.Upgrade__71e9bce111e9429c
NAME NOT FOUND Desired Access: Read
11:37:57,7140763 OWSTIMER.EXE
6272 RegOpenKey
HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\v4.0_policy.15.0.Microsoft.PerformancePoint.Scorecards.Upgrade__71e9bce111e9429c
NAME NOT FOUND Desired Access: Read
11:37:57,7141089 OWSTIMER.EXE
6272 RegOpenKey
HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\policy.15.0.Microsoft.PerformancePoint.Scorecards.Upgrade__71e9bce111e9429c
NAME NOT FOUND Desired Access: Read
11:37:57,7313089 OWSTIMER.EXE
6272 RegOpenKey
HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\v4.0_policy.15.0.Microsoft.SharePoint.Portal.Upgrade__71e9bce111e9429c
NAME NOT FOUND Desired Access: Read
11:37:57,7313403 OWSTIMER.EXE
6272 RegOpenKey
HKLM\SOFTWARE\Microsoft\Fusion\PublisherPolicy\Default\policy.15.0.Microsoft.SharePoint.Portal.Upgrade__71e9bce111e9429c
NAME NOT FOUND Desired Access: Read
11:37:59,2026527 OWSTIMER.EXE
6272 RegQueryValue
HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
NAME NOT FOUND Length: 144
11:37:59,2109400 OWSTIMER.EXE
6272 RegQueryValue
HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
NAME NOT FOUND Length: 144
11:38:05,3534303 OWSTIMER.EXE
6272 RegQueryValue
HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
NAME NOT FOUND Length: 144
11:38:05,3537846 OWSTIMER.EXE
6272 RegQueryValue
HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
NAME NOT FOUND Length: 144
11:38:05,3594290 OWSTIMER.EXE
6272 RegQueryValue
HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
NAME NOT FOUND Length: 144
11:38:05,3597316 OWSTIMER.EXE
6272 RegQueryValue
HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
NAME NOT FOUND Length: 144
11:38:05,3653094 OWSTIMER.EXE
6272 RegQueryValue
HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
NAME NOT FOUND Length: 144
11:38:05,3656118 OWSTIMER.EXE
6272 RegQueryValue
HKLM\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\15.0\WSS\MS_InternalUse_Only_UpgradeableVersion
NAME NOT FOUND Length: 144 -
WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL
dear Friends,
our users want to WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL SHOULD BE ENABLE,
at present we maintaing KP in Material Master. if we activated what will happen?
please advice.
with regards,
Rajesh GHi,
The availability check is generally used for goods movements(GR,GI,reservation) & not for PRs.
Regards,
Vijay -
I am looking for a way to develop a grammar checker for the web like spellcheckerplus can you help? I have my own dictionary for comparing and replacing words.
Hi,
The forum is about install/uninstall .NET Framework, please post your issue to dev related forum instead of here.
Best regards,
Barry
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Checking for the existence of a Frame
Hello,
I am currently designing an application which consists of 8 JFrames (all in different classes), During the application, one JFrame provides information to a user and when they select the appropriate fields another JFrame opens an the active one closes. However the problem i am having is that i need to be able to write an if statement saying
if (this particular frame exists already){
destroy it;
}else{
whatever........};
But i dont know how to check for the existence of a frame currently running, or how to destroy it..
im currently using dispose(); to destroy frames but the dispose method only works when your in the class thats creating the frame, it wont let me write something like class1.dispose() (where class1 is the frame object created in the constructor of class1.java); in class2.
I have searched throught the forum and havent found anything that can help me, i would really appreciate anyones input.
Thanks in advance,
DevHey its ok i've decided to restructure the program, but if anyone does know how to do this please still reply to the message, as i would still like to know
-
I am on a MAC Application.
It has been rejected by following reason.
This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed.
We recommend implementing receipt validation to resolve this issue.
At a minimum, the app will need to check for the existence of an App Store receipt and exit at launch with a status of 173 if it does not exist.
Any help ?
Thanks in Advance.I am on a MAC Application.
It has been rejected by following reason.
This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed.
We recommend implementing receipt validation to resolve this issue.
At a minimum, the app will need to check for the existence of an App Store receipt and exit at launch with a status of 173 if it does not exist.
Any help ?
Thanks in Advance. -
Checking for the existence of a file.
I have a GUI to enter test info. A file is created based on the entered test number. I want to check for the existence of a file, and then notify the operator while not allowing the program to save it.
This vi checks the presence of the input file.
If file is not found, it will be created.
regards
ian.f
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010
依恩与LabVIEW
LVVILIB.blogspot.com
Attachments:
File_check_existance_openorcreate_2003.vi 72 KB -
Regular expression: check for the presence of special characters.
I have the following requirement:
I need to check for the presence of the following characters in a keyword: @, #, > if any of these characters are present, then they need to be stripped off, before going further. Please let me know the regular expression to check for these characters.I am trying to extend the same logic for the following characters:
.,?!@#%^&*()-~<>[]{}\+=`©® . here is the code fragment:
Pattern kValidator = Pattern.compile("[\\.,\\\\?!@#%^&*()-~<>[]{}\\+=\\`©®]");
Matcher kMatcher = kValidator.matcher(keyWord);
if (kMatcher.find(0)) {
keyWord = keyWord.replaceAll("[.,\\\\?!@#%^&*()-~<>[]{}\\+=\\`©®]", " ");
}I get the following error. This error is from the weblogic command window. I dont understand these special characters.
Error:
28 Oct 2008 12:27:48 | INFO | SearchController | Exception while fetching search results in controller:Unclosed character class near index
39
[\.,\‘\“?!@#%^&*()-~<>[]{}\+=\`©®]
^
java.util.regex.PatternSyntaxException: Unclosed character class near index 39
[\.,\‘\“?!@#%^&*()-~<>[]{}\+=\`©®]
^
at java.util.regex.Pattern.error(Pattern.java:1650)
at java.util.regex.Pattern.clazz(Pattern.java:2199)
at java.util.regex.Pattern.sequence(Pattern.java:1727)
at java.util.regex.Pattern.expr(Pattern.java:1687)
at java.util.regex.Pattern.compile(Pattern.java:1397)
at java.util.regex.Pattern.<init>(Pattern.java:1124)
at java.util.regex.Pattern.compile(Pattern.java:817) -
Where to Authorization check for the plant while creating outbound delivery
Hi Experts,
For outbound delivery , the standard program is not doing the authorization check .
Can i use BADI *LE_SHP_DELIVERY_PROC * and the method : DELIVERY_FINAL_CHECK
To write Authority-check statement ,
If the particular is not authorized for any of the plants of the items in the outbound delivery i will throw a error message
Can i use as above?
And if i use it has to apply only for outbound delivery?Because for inbound delivery also the same BADI is getting triggered?
Please suggest.
Regards
Ramakrishna LHi,
Yes you can use the said BAdi and the method if it is triggerd before the SAVE of the Outbound Delivery Order to do the Authorisation Check. In case the code is triggered for all the orders and you want only to restrict for the Outbound Delivery, then check for the Delivery Type (LFART) from the Delivery Header table for only the Outbound Delivery Order.
Thanks,
Susanth Swain -
Where can i check for the latest version of Maps e...
To be sure i always have the latest and most-updated recent maps, i would like to update Nokia Maps every once in a while. Where can i update my maps or check for the latest version?
I now have version v2.0 wk39 b04.http://europe.nokia.com/explore-services/maps
this is usually a good place to start. now maps 3.0 final beta has been released for the fp1 fp2 and v5th phones so yours might be there too. i can't tell you as you did not list your phone but this site should clear it all up for you.
You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery.... -
Apple Configurator Internet Error when checking for the latest IOS
Hey all,
I have just updated my apple configurator software to 1.2.1 and every time the software tries to check for the latest ios version it just times out saying internet error. All internet connectivity is fine as I have unistalled and downloaded the app several times trying to resolve it. I can browse web pages fine so I know internet connectivity is not to blame. What can I do to get this thing to succsessfully phone home?We have the same error. I've called apple enterprise support and gotten a case ID.
I suggest everyon call apple.
It's easy to reproduce once it happens. It's hard to resolve. It happens even when we reboot and have just one ipad connected to the mac desktop with just a single USB cable. We can no longer update the ipads.
I've asked apple to focus on less fluff and more function in configurator.
Please do the same.
It would cost us about 12 man hours to wipe out our machine , restore lion, then restore from time machine.
Maybe you are looking for
-
I own an HP laser jet printer, which is AirPrint compatible. However, when I choose to print a document, I don't have any access to settings (print some pages only, color mode...) My main need is to be able to print in monochrome mode from my iPad. D
-
Spool request missing for Payment run
Hi SAP gurus, I have executed one payment run, 87 payment orders have been generated. When i saw the spool request, it shows only 34 pages, rest other pages are missing. Even, system is showing status of spool as "waiting". I thought, it might be
-
Automator: Apply Color Label and Copy to Folder
I'm trying my hand at Automator, and I need help with one of my workflows (⇪). Basically, it's a service (accessible via right-click) that will apply a color label on an image file, and then copy that image file to a corresponding folder with the sam
-
I am running a Dual 2GHz G5 with 4 GB of Ram with FCP 5.0.4 When I try to print to video with bars and tone through my AJA IO LA to my Beta SP deck I can either 1. Get the entire project with sound. 2. Get the bars and tone and first 10 seconds of th
-
Customer consignment with intercompany process
Hello, Has anybody worked on Customer consignment with intercompany process. If yes, what are the main points to be taken into or configured for this process ? regds