Distnct Keyword
Hi Everyone,
I've a select query having a distinct keyword to reduce the duplicates. Later I found that my query is taking a little bit more time to execute because of this distinct keyword. So I wrote my query some thing like this as mentioned below. But after this if the performance is not improving, then it's meaningless. My goal is to remove the distinct and achieve performance. Is there any alternative way. These queries are just sample.
DB version
{code}
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
"CORE 10.2.0.1.0 Production"
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
{code}
Queries
{code}
select distinct ecode from test;
select a.ecode test a
where rowid >(select min(rowid) from test b
where a.ecode = b.ecode
and a.ename = b.ename);
{code}
Regards,
BS2012.
BS2012 wrote:
Hi Everyone,
I've a select query having a distinct keyword to reduce the duplicates. Later I found that my query is taking a little bit more time to execute because of this distinct keyword. So I wrote my query some thing like this as mentioned below. But after this if the performance is not improving, then it's meaningless. My goal is to remove the distinct and achieve performance. Is there any alternative way. These queries are just sample.
DB version
{code}
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
PL/SQL Release 10.2.0.1.0 - Production
"CORE 10.2.0.1.0 Production"
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
{code}
Queries
{code}
select distinct ecode from test;
select a.ecode test a
where rowid >(select min(rowid) from test b
where a.ecode = b.ecode
and a.ename = b.ename);
{code}
Regards,
BS2012.
Hi,
Can you try below code, please?
{code}
select ecode, ename from test a
where rowid = (select min(rowid) from test b
where a.ecode = b.ecode
and a.ename = b.ename);
{code}
This code return distinct duplicated rows.
Regards
Mahir M. Quluzade
http://www.mahir-quluzade.com
p.s. It is my first reply on new OTN Forums!
Similar Messages
-
Easy way to add a single keyword to an image?
I just organized a bunch of photos I took at a birthday party, and ran into some <br />awkwardness when keywording. Hopefully it's just user ignorance, but if not, <br />maybe someone can offer a workaround.<br /><br />I did the import with no keywords, because I wasn't thinking. Once I'd done <br />that, I selected all images in the "Last Import", hit Ctrl-K, and typed Birthday <br />(which is one of my standard keywords). Then I deselected all images and <br />started doing selective keywording. That's where it started getting awkward.<br /><br />I had several shots that had my son in them, so I selected all of them and hit <br />Ctrl-K. This put my cursor in the keyword box in the right-side panel, with <br />Birthday highlighted. I hit <End>, then typed comma and MySonsName. No problem <br />so far.<br /><br />I delselected the shots and selected the ones that had my daughter in them. The <br />right-side keyword panel now showed something like "Birthday*, MySonsName*". I <br />wasn't sure whether I could just add MyDaughtersName to the images without <br />actually adding MySonsName to all selected images (even those without my son in <br />them). That's the awkward part.<br /><br />What I found was that in order to add a single keyword to a bunch of images at <br />once, I had to enable Keyword Stamping and use that. An alternative was to "Set <br />Keyword Shortcut", enter the keyword, select the images I wanted, and then use <br />"K" to add the shortcutted keyword to the images.<br /><br />Is there any way to simply say "add this keyword to all selected images" in one <br />atomic action? In other words, hit a keystroke, type the keyword, hit Enter, <br />and it's now applied to all selected images.<br /><br />-- <br />Rob Freundlich<br />"Males ae biologically driven to go out and hunt giraffes." - Newt Gingrich<br />"Some folks you don't have to satirize, you just quote 'em." - Tom Paxton
<[email protected]> wrote in message <br />news:[email protected]..<br />> In the right hand keyword pane the list should show something like "birthday, <br />> *sonsname". The * means that the keyword isn't<br />>applied to all the images.<br />><br />> To add your daughter's name to the selected images, just add it to the end of <br />> the list and press return. As long as you don't<br />>remove the * you won't apply your son's name to all the images. if you do <br />>remove the *, then you will.<br /><br />Sweet. I'm a programmer, so I thought the * meant multiple images, not "not all <br />images", so I didn't even think of trying that. Works like a charm, though.<br /><br />Thanks!<br /><br />-- <br />Rob Freundlich<br />"Males ae biologically driven to go out and hunt giraffes." - Newt Gingrich<br />"Some folks you don't have to satirize, you just quote 'em." - Tom Paxton
-
Lightroom Upgrade at a client - sucess? - keyword problem deal breaker
Hi
Just a small report, on how upgrading a client's LR 2 catalog went.
Background: The client is a professional photographer specialized on garden photography. Her customers are gardening and lifestyle magazines who publish her photos regularly as illustrations to various articles. She has a professional Canon EOS 1Ds MK III equipment and shoots exclusively raw. In a shoot around 300 to 1000 images are shot. The Lightroom catalog has around 20,000 images currently.
In Lightroom she uses mostly DAM and some basic development features, images are delivered either as raw of as JPEG images to the clients. Keywording is especially important. She has an extensive hierarchical list of plants most of them multiword keywords with spaces, and lots of other keywords indicating if images were sent to clients and other stuff.
The upgrade went just very well. I exported the catalog to a new intermediate catalog without previews, installed LR3 and imported this intermediate catalog into LR3 generating new previews from scratch. The hardware is modest, and some functional tests (especially switching images in develop, spot tool, and adjustment brushes) revealed that everything performs well enough.
Then she asked me where she would have benefits from using the new version. And then I told the whole benefit story, which can be read everywhere.
- New process version, better details and noise reduction. She asked where she can see it? Hmm, I switched to 1:1 view changing the process versions, not really much to see on Canon 1Ds Mk III files. Even with noisier files, it was hard to tell, what has actually changed. So only a 4:1 view very tiny changes were visible. The impact on her business? Near to nothing as she does not print large. The differences would hardly be seen in the magazine prints.
- Lens corrections and perspective control: does not really matter in garden photography, but she could see some occasional usefullness.
- Publish services: no real need for it
- Print packages: nope
- Slightshow improvements: no use for it
- Performance improvements: nothing visible
- Effects: completely superfluous
- New import dialog: at first glance a hindereance, as she has to get used to it
Then she asked: did they correct the keyword handling, when entering keywords witrh spaces? (You know the nasty bug, where keyword completion is broken at keywords with spaces). We checked (I knew it wasn't fixed), and of course she was heavily disappointed. Thus, after 2 years of development nothing new for her, keyword bug not fixed? Of course she said, that I should tell her, when keyword completion works, then and only then would she consider an upgrade.
So, despite all the bells and whistles about the new version, I doubt that for many photographers the benefits are really so overwhelming in the real world. It is a pitty that Adobe continues to neglect the DAM features (some fresh ideas for client management would be great), that existing features aren't consequently implemented (esp. the possibilities to query the catalog, and keywording), and that existing bugs are constantly ignored and not fixed.
So, please Adobe, get keyword completion fixed for keywords with spaces immediately !!! This is what professionals need. A catalog without reliable DAM features, renders the catalog concept to a great extend useless. Please listen!
Disclaimer: As I am not a professional for me the situation is not the same. I just report my experience I had, with a photgrapher, who needs a proper asset management. I recommended Lightroom to her because of the overall package (she moved from Cumulus), so I feel a little obliged to help her in this issue. In my case, as a user of a modest Lumix G camera system, I would consider the IQ benefits more signifcant. I don't know, if this is a general observation.
Kind regards
ThomasW.W. Webster wrote:
tgutgu wrote:
Just a small report, on how upgrading a client's LR 2 catalog went ...
So, please Adobe, get keyword completion fixed for keywords with spaces immediately !!! This is what professionals need. A catalog without reliable DAM features, renders the catalog concept to a great extend (sic) useless. Please listen!
I just report my experience I had, with a photgrapher (sic), who needs a (sic) proper asset management.
So the over-riding conclusion from your experience with just one photographer is that Lightroom is 'useless', and this compels you to demand, in bold type, that Adobe must listen?
That Lightroom has issues and areas for ongoing development is obvious, and Adobe won't dispute this. But rants like yours add nothing and are unhelpful. Julie's response is extremely tactful and far more moderate than your post deserves.
Dear Mr. Webster
I think when you post, you should definitely change your tone. Julie simply answered my original post by acknowledging the problem, your accusation that I did not use appropriate "netiquette" is ridiculous. Posts like yours are a real problem of this forum.
I simply gave a user story example to show that not for everybody the shiny advertised new features provide real benefits and that paying attention to a thorough implementation of features can be equally important. I think Julie has recognized this. And the issue is nothing for ongoing developments. Lightroom supports keywords with spaces, so it has to be done consequently. Keywording is essential for DAM. If keywording gets too tedious or leads to wrong keyword assignments, then DAM is really pointless.
The intention of my post was to point Adobe to an apparently small problem, which has quite a big impact to people, who depend on good DAM features. The issue is nothing new, existed since the first release of Lightroom, but nothing was done about it, unfortunately. Now that Lightroom addressed keywords with spaces even with a new preference setting, it was fair to assume, that they had done something about it with care. This isn't so obviously. The issue was discussed in previous threads, but did not get any visible notice from Adobe. I am glad that this has changed now with Julie's post.
In no way did I say that Lightroom is useless or even that I regard it to be so. I merely said that the catalog concept is to a great extend (not completely) useless, if its implementation is sloppy. DAM starts with data entry and only after doing this, you can use it to your benefit. Therefore it has to be efficient, which currently is not. Lightroom is criticized by a large number of users that it is forcing them into a catalog system instead of just providing access to the file system. Long existing bugs like this, likely proves them right in their view.
The competition (I mean complete workflow solutions) is not really better than Lightroom with respect to DAM features, however, my take is, that the developers should be equally ambitious with the quality of the catalog system as they are with IQ, especially if the achievements in IQ are apparently less relevant to owners of high end camera systems. (I could be wrong with the last statement, but it would be interesting to hear if others have similar observations).
Kind regards
Thomas
Thomas -
Does Bridge only Filter/Search Keywords in one folder at a time?
It seems the "Filter" feature in CS6 Bridge will only search keywords in a single opened folder. What if I have multiple folders for image downloads, one per day, in a parent folder for the month, or even a year? Can I use Bridge to filter images in a folder containing other folders?
If not, is there another search strategy I can use to quickly filter images in multiple folders? Thanks.You can select a root folder, and then select Show Items from Subfolders from the View menu. That adds all contained files to the Content panel, from which you can filter.
If you need more control, you can use Find instead, where you can also do AND/OR operations too, but takes a little more patience. -
Keyword and Metadata Integration throughout Adobe Modules
Thanks! That's helpful.
What I mean by "common metadata", is a unified, updated, most current metadata, which I could update in each program. That is without overwriting the metadata, but appending new keywords to the metadata I created in the previous program.
I use Bridge, then Lightroom and finally Photoshop. That's the regular workflow: Bridge for preliminary sorting and and adding some keywords; Lightroom for organizing and picking the best images; finally, Photoshop for processing. I got Photoshop Elements on trial. Doesn't work for my purposes.
I need to share and update the metadata / keywords when I go from one program into another. Can't retrieve metadata I set up in Bridge into Lightroom. Same happens with Photoshop, where I can't retrieve keywords I add in Lightroom. It's tedious to write up the keywords again.
Thanks for your efforts! -
Using iPhote Keywords with PS Elements and visa-versa
Howdy,
Does anyone know if you can xfer (import/export) iPhoto keywords to PS Elements 4 or Photo Bridge and visa-versa?
Or do you have to create a new Keyword list with Photo Bridge and PS Elements 4MV:
You can use iView MediaPro in the Demo mode to catalog your iPhoto LIbrary and then sync (write) the keywords back to the original file. That will permit other applications to read those annotations in the source file. Check out Tutorial #1 here. The methodology is there to do what you want even though it's geared for a different issue.
G5 Dual Core 2G, 2G RAM, 22 Display, 250G HD, 250G FW HD, QT 7.0.4P Mac OS X (10.4.5) Canon S400, i850 & LIDE 50, Epson R200, 2G Nano -
Hi Bridge Geniuses!
I need your help. I am using Bridge to sort and keyword a pretty big photo archive. I have created a pretty long nested hierarchy (4 layers deep, max) and, for a few reasons, would like the parent tags to be automatically included when I indicate a sub-tag. The problem I have now is that the keyword list is distractingly long and organized alphabetically. My first question is this: is there a preference setting in Bridge that will ask the program to display the keywords in their hierarchy? That is, will Bridge present the list as, for example, cars à hybrids à Toyotas à Prius.
My second question is: if I have two or more names that represent the same keyword, is there an “aka” function in this program that will allow me to direct searches for two or more different words to the same keyword entry? (For example, if I want my searches for “Bruce Wayne” to also show entries marked as “Batman.”)
Finally, I would like to know if Bridge will perform keyword searches for more than one word at a time. So far, I have tried entering two keywords with overlap at a time, separated by a space or a comma or a semicolon, and the search comes up empty.
Thank you very much for your help!I reset my custom workspace and all seems to be well now. My keywords now show, the number of photos each applies to and I can again search.
Thank you. -
Images not displaying at their normal size, and not all keywords displaying, why?
Not sure what's going on inside Adobe Bridge CC 2014.1, but why is it that my images are not displaying at full size. Bridge says they're displaying at 100% but I know that's not the case, because when I open the same images in Mac OS Preview (OS 10.10.1 Yosemite) at 100% they're much bigger. Is there a viewing preference setting I'm missing?
Also, I use Bridge and Photoshop on two mac pro desktops: one at my office and one at home.
At work, I created more than 30 keywords in Bridge for several hundred images that reside on my external thunderbolt hard drive. But when I take that hard drive home and connected it to my home mac and then open Bridge, only a handful of keywords appear. I don't see the full list of keywords that I created at work. But in Bridge, I didn't see any option to save or export keywords as a file.
Although the image metadata does appear, because whatever keyword i assigned to an image at work does display on the home mac, I just don't see the entire keyword list.
Can or should Bridge therefore only be used on one computer? Is it not possible to transfer the entire Bridge keyword list from one mac to another?
Thanks in advance for any help feedback with this.Hi Zenos,
I've discovered what is causing the problem, but I still need a way to fix it, if possible.
The cause of the problem is that in Windows 7 Control Panel > Display I have set the size of "text and other items" to 150% (otherwise everything is much too small too read on my screen's recommended resolution of 1920×1080).
I discovered that Irfan Viewer was also displaying at the incorrect resolution, but I managed to solve that problem by right-clicking on the IrfanView.exe icon and following Properties > Compatibility and selecting "Disable display scaling on high DPI settings".
I tried the same procedure with Thunderbird, but it made no difference. It is still displaying at the incorrect resolution.
Any suggestions?
Regards,
Catsix -
Keywords in Adobe Bridge CC and Lightroom 5 not working
I recently upgraded to Adobe CC. We use Bridge and Lightroom regularly to tether while shooting, batch process and search for images. I have noticed that files I have keyworded in Bridge will randomly lose the keywords attributed with them. When we shoot tethered to lightroom we will keyword as we shoot but those keywords do not show up in Bridge. This is a huge issue for us. We have thousands of images and plan on using bridge as a tool for our designers and marketing team to search seamlessly for photos based on keywords. If they are randomly disappearing or not carrying through from Lightroom to Bridge it becomes completely unmanageable and completely out of our hands. And a completely useless tool. Any suggestions?
Keyword list in Adobe system, bridge and lightroom, need standardizing. That's what I feel.
-
Keyword selection function in Adobe Bridge CS3
Hello,
Does anybody know if and how I can change the "selection criteria" of keywords in Adobe Bridge CS3?
-> selection criteria: If I want to use the filter with the keywords, it selects the images which include any of the selected keywords (OR-function), but I would like to select only those images which have all of the selected keywords(AND-function).
Example: In a holiday folder named "italy", I want to see all pictures with the keywords "beach" and "me". What I get are all the "beach" images and all the "me" images. How can I change this?
Would be great if someone could help me...!
Thanks!In the Find box the Match drop down has 2 options. "If all criteria is met" is like "and" while "if any criteria met" is like "or" logic.
-
Display keywords in full screen?
I know you can see the attached keywords for specific fotos in the right panel, but is there a way to see them when you are in full screen mode. PSE allowed you to r-click and get "remove keyword" which functioned to tell you what keywords were attached to any given foto.
is there any way to make the keywords visible in a similar workaround in LR3 or more straight forward way in LR3. it would be great if keywords were one of the options for r-click or as one of the library view options. any suggestions out there?thanks i just did:
please add "remove keyword" to the r-click options in lightroom. it is
available in PSE and not only shows what keywords are attached to a
given foto , but also gives
the option to edit the keyword list without scrolling through dozens of
nested keywords in the panel. i have 20,000+ images accumulated over
decades and my keywording system has evolved over that time, making
editing essential. the current options are clunky.
terry -
I can not see "Keyword" detail
Hello I have got a problem with Windows Explorer and it is
because of Adobe Flash product.
I added keywords to some files with right click in every
file, then properties, Summary and in the field Keyword I wrote
some data.
Then in Windows Explorer in the Folder that contains those
files, I go to View menu and select Choose details, I activate the
Checkbox "Keyword" to view that field in the Details View, but when
I list the files in the Windows explorer under Details View, the
details fields of name, type, size, date modified and keyword
appear but the data I added before to keyword does not appear under
the keyword field in the view of Windows Explorer, the field of
keyword is empty.
I Know this issue is related with MAcromedia Flash because
the checkbox "Keyword" does not appear if I have not installed
Macromedia Flash, it means Native Windows do not have this field,
and that this field is added by Macromedia Flash but it does not
work properly because it does not show the data under its field in
Windows Explorer.
I really appreciate your help
Thank youHope it helps
* fact: Oracle Network Manager
* fact: Net8 Assistant
* fact: Advanced Security Option (ASO)
* symptom: No Advanced Security tab
* symptom: ASO product has been installed
* cause: The file $ORACLE_HOME/network/tools/NetProperties does not include 'ANO' or 'ASO' in the INSTALLEDCOMPONENTS parameter.
fix:
- Make sure the Advanced Security Option (ASO) is installed by clicking
the 'Installed Products' button in Oracle Universal Installer.
- Check the file 'NetProperties' in $ORACLE_HOME/network/tools:
The parameter INSTALLEDCOMPONENTS should include the value 'ANO' or 'ASO'.
Example:
INSTALLEDCOMPONENTS=CLIENT,NET8,JAVAVM,SERVER,ANO
If neither value 'ANO' nor 'ASO' is present, add it to the list.
- Alternatively Comment out this parameter completely by placing a "#"
at the front of the line. -
Is there a way to update the LR3 keyword hierarchies in existing LR catalogs for minor changes done in Bridge?
I have started to use LR for the first time. I have about 50K photos that are key worded from within Bridge in maybe a hundred sub dirs. The hierarchies seem to work somewhat differently in Bridge than in Lightroom catalogs & don't seem to handshake with each other. Apparently I should have originally turned on the keyword hierarchies in preferences in the Bridge when I originally set the keywords. I have hundreds of keywords without hierarchies. Now I want to correct the (missing delimiters) hierarchies in LR3 (using the most efficient method).
(The hierarchies do not show up on Bridge filters, so I saw no reason to use them originally, when I had fewer keywords). Correcting the hierarchy in LR seems to not go back and correct the Bridge hierarchies. So if there is a way to get the keyword hierarchy to update back from LR to Bridge, that would be the easiest way to fix the hierarchies, but I don't see how to do it. Any suggestions?
thanks,
ron...It will depend on if you saved the metadata from LR to the file or not. If not and you update the keywords in bridge, you will loose one or the other your choice.
If you saved the metadata, then its a simple matter of just reading the metadata into LR or syncing that file.
If you plan on editing metadata in bridge from time to time, then you need to get in the habit of saving the metadata (ctrl-s in windows) from LR or turn on autosave. -
What is the difference between Topic Keywords and Index File Keywords?
What is the difference between Topic Keywords and Index File Keywords? Any advantages to using one over the other? Do they appear differently in the generated index?
RH9.0.2.271
I'm using WebhelpHi there
When you create a RoboHelp project you end up with many different ancillary files that are used to store different bits of information. Many of these files bear the name you assigned to the project at the time you created it. The index file has the project name and it ends with a .HHK file extension. (HHK meaning HTML Help Keywords)
Generally, unless you change RoboHelp's settings, you add keywords to this file and associate topics to the keywords via the Index pod. At the time you compile a CHM or generate other types of output, the file is consulted and the index is built.
As I said earlier, the default is to add keywords to the Index file until you configure RoboHelp to add the keywords to the topics themselves. Once you change this, any keyword added will become a META tag in the topic code. If your keyword is BOFFO, the META tag would look like this:
<meta name="MS-HKWD" content="BOFFO" />
When the help is compiled or generated, the Index (.HHK) file is consulted as normal, but any topics containing keywords added in this manner are also added to the Index you end up with. From the appearance perspective, the end user woudn't know the difference or be able to tell. Heck, if all you ever did was interact with the Index pod, you, as an author wouldn't know either. Well, other than the fact that the icons appear differently.
Operationally, keywords added to the topics themselves may hold an advantage in that if you were to import these topics into other projects, the Index keywords would already be present.
Hopefully this helps... Rick -
If CASE Statement can be used just nest to 'WHERE' keyword in sql?
HI All,
There are 2 tables,
dbo.headcount_smart_view & dbo.headcount_user_view,they
are not joined i.e. there is no join between these 2 tables.
User is trying to create the access restriction on table
dbo.headcount_smart_view as below,
The following case clause is just next to 'WHERE' keyword :
CASE select distinct dbo.headcount_user_view.role_cd from
dbo.headcount_user_view where UPPER(dbo.headcount_user_view.cmt_id) = UPPER(@Variable('BOUSER'))
WHEN 8 THEN dbo.headcount_smart_view.l3_id In (select distinct
dbo.headcount_user_view.divid from dbo.headcount_user_view
where UPPER(dbo.headcount_user_view.cmt_id)=UPPER(@Variable('BOUSER')))
WHEN 9 THEN dbo.headcount_smart_view.l4_id In (select distinct
dbo.headcount_user_view.divid from dbo.headcount_user_view
where UPPER(dbo.headcount_user_view.cmt_id)=UPPER(@Variable('BOUSER')))
ELSE
dbo.headcount_smart_view.l2_id In (select distinct
dbo.headcount_user_view.divid from dbo.headcount_user_view
where UPPER(dbo.headcount_user_view.cmt_id)=UPPER(@Variable('BOUSER')))
END
The user is getting 'syntax error', it seems that the value is not getting compared with any column hence getting the error.
can case statment be used just next to 'WHERE' keyword in sql?I don't have the entire table query...
but could u tell me wil the sql given below work ....
if not, why? and what can be done to make it work ?
SELECT * FROM Customers
where case select CustomerID from customers
when 8 then 'Spock'
when 9 then 'Yedi'
else 'Jedi'
end;
Nope
because of wrong syntax
What the purpose of the case when statement here? I'm not seeing a condition in WHERE. You should use it in a condition like below
SELECT * FROM Customers
where case CustomerID
when 8 then 'Spock'
when 9 then 'Yedi'
else 'Jedi'
end = @SomeParameter
Please Mark This As Answer if it solved your issue
Please Mark This As Helpful if it helps to solve your issue
Visakh
My MSDN Page
My Personal Blog
My Facebook Page
Maybe you are looking for
-
My Officejet Pro 8500 A909g suddenly stopped working. It was connected to my HP Pavillion dv9700 by wireless and has been for the last 6 months or so. My laptop is running on Windows 7 Ultimate 32bit. I have made no software or hardware changes since
-
Why are my apps not downloading?
Why are my apps not downloading? They just sit there waiting and I keep getting an error saying that my purchases cannot be downloaded at this time and to try again later. I have tried logging out and in, and rebooting but neither has worked
-
Creating sales order with BAPI_SALESORDER_CREATEFROMDAT2
Hi, I´m creating sale orders with the function BAPI_SALESORDER_CREATEFROMDAT2. If you create sales order manually over the transaction, the system will find the right delivery date for you, if you are typing a date too early, for example. The same I
-
Center Spry Menu Horizontal Bar
My spry menu bar has 7 items with no sub menus. The menu looks fine but it's up against the left hand border and I am having a terrible time trying to center on the page.
-
i cant install the photo shop softwear because the redemption code doesn't work what do i do