substr? How can I retrieve the codes that are only 6 characters
I have this request
SELECT
distinct
SUBSTR(A.STVSBGI_CODE,1,6),
SUBSTR(B.STVSBGI_CODE,1,6),
A.STVSBGI_TYPE_IND,
B.STVSBGI_CODE,
B.STVSBGI_TYPE_IND
FROM
stvsbgi A ,
stvsbgi_TEST6C B
WHERE A.STVSBGI_TYPE_IND = 'C'
AND B.STVSBGI_TYPE_IND = 'C'
AND instr(A.STVSBGI_CODE,1,6) = instr(B.STVSBGI_CODE,1,6)
I want to be able to extract ONLY the values (STVSBGI_CODE) where the SUBSTR (A.STVSBGI_CODE, 1, 6).There are codes in the tables of 4 characters, the query gives me 4-6 characters...
How can I write the query to get the 6-character codes
Thank yoou
Hello
If you want to only include lines in the output, if the code is at least 6 characters?
Add to the WHERE clause:
AND LENGTH (a.stvsbgi_code) >= 6
It doesn't matter if you use a. stvsbgi_code and b. stvsbgi_code in this State; the join condition is already excluding the lines where it is less than 6 characters but the other is not.
I hope that answers your question.
If not, post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all tables and also post the results desired from these data.
Explain, using specific examples, how you get these results from these data.
Always tell what version of Oracle you are using.
Published by: Frank Kulash, November 18, 2011 12:58
Tags: Database
Similar Questions
-
How can I play the songs that are in the format of .wma on my PC using my Desktop 4.0.9.17 Windows XP iTunes app?
Thank you
RSHello Ristrawn,
Thank you for your message. There is no way to play .wma in the iTunes player. You will need to find a 3rd party software to convert .wma to .mp3 files. From there, you would be able to listen to the MP3 in the iTunes player.Please let us know if it did or did not help to solve your problem.See you soonEngineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
-
How can we identify the code that triggered the promotion discount in order?
Hello
As we can create coupons and promotions assign them to give discounts. How can we identity coupon code that is added to the promotion which caused the discount in order?
Kind regards
Chede
I give you an example. Here's how you do it from the order level promotions. OrderImpl (object) (API below give you orderpirceinfo and second link gives adjustments.)
OrderPriceInfo that extends AmountInfo, the following method gives adjustments
Now browse adjustments, for pricingmodel (i.e. promotion) and coupon applied on order
PricingAdjustment (ATG Java API)
PricingAdjustment (ATG Java API)
Hope that gives you an idea where to start.
-Kiss
-
How can I see the photos that are not in an album?
How can I see the photos that aren't in an album in the App "Photos"? I noticed that in the Album 'Pictures' are pictures I thought I deleted already. I would like to see all the photos in an album, so I can finally delete them.
You can go the the file menu Photos and click New Smart Album, and then set the condition of Album - is not. This will create a smart album that will show you all the photos that are not in any other album.
-
How can I remove the bookmarks that are no longer used.
I have a list of bookmarks on firefox. Many are more used.
How can I remove the individual bookmarls of my list.
Tried to highlight and delete them, but that does not work...You can right click and delete, select and use the key "Delete", or remove
multiple bookmark click to the left of the favorite icon, and then add more with "Ctrl + click"
or spread with "Shift + click" then delete.You can remove bookmarks as described for the deletion of history in
The reference to bookmarks won't in the details, because it is in the article above.
You will be perhaps easier to delete bookmarks you don't want in the list of the bookmarks library. As noted in the article to bookmark sorting you can view and sort by additional columns, I recommend installing the extension "Show Parent Folder" link is in the article to bookmark, unfortunately that you can add the column is not sortable, but it provides valuable information.
-
How can I retrieve the code behind reports ORACLE XML?
Every afternoon.
I need to customize a copy of one of ORACLE's XML reports. (Receipts not invoiced report - CSTACREP - PL/SQL, stored procedure)
So I need to work on the data behind the original report model... But how home? Where is he? This is a directory issue somewhere because you can not download the app.
Thanks a lot a lot for research.
Al
#facepalm wrote:
.. Thank you very much both of you for your help.
The problem I have is that I only know 11i (and now proceed to r12.1.3) report delopment via rdf style and/or xsl data report models and have no idea how I can take this code in order to create a customized version of it.
Is there a Note/link somewhere that can tame me through the method of reports customized using PL/SQL procedures?
Thanks a lot, a lot.
Al
There are many examples/docs/tutorials available, just google "XML report customized pls/sql" and you should get a lot of success.
http://erpschools.com/articles/XML-Publisher
Thank you
Hussein
-
How can I uniinstall the software that are corrupt
I want to uninstall the software that is not properly installed and during uninstall, it says that the uninstall file is corrupt
Hello
One solution is to start in Safe Mode - repeatedly tap F8 as you start - then
uninstall programs.A better option is to use Revo Unistaller - free version - as it will remove usually more
programs than their own uninstall programs.Revo - Uninstaller - free version
http://www.revouninstaller.com/revo_uninstaller_free_download.htmlI hope this helps.
-
How can I find the images that are not in the catalogue?
I imported about 600 photos of a friend of Wakeboarding in Lightroom. I then analyzed quickly through them and remove those who were not good.
I wanted to delete these photos in the album. However, in about 10 cases I accidentally their removed from the catalog, not from disk.
All photos of the wakeboard are in the same folder; There are no other images in this folder.
Is there a way to find out what images are in this folder, but are not in the Lightroom Catalog?
Rotaluclac
Probably the easiest way would be to reimport them in their folder (make sure that the box Import suspected duplicates is enabled).
Those who imported will be reflected in import previous "collection." In the grid view, select all and press the delete key. Click the appropriate button on the box that appears.
HAL
-
How can I fix the libraries that are not connect?
I have improved my CC ti plans to include stock BUT libraries that I create in Apps doesn't NOT appear in interface stock or visa versa which kind of denies one of the key features. Does anyone know how to fix this?
Hi Lee,.
First of all, make sure that you are connected with the same Adobe ID on CC apps and Web Adobe Stock site.
In addition, make sure you have CC desktop application running which is responsible for the synchronization of libraries CC.
Let me know how it goes.
~ David
-
He said title. Currently, files display column headings are ' Local Files/size/Type/update the/CheckedOutBy ' how I don't mind view the Type, or maybe the positions of swap of Type and size?
Site > Manage Sites > Edit > avancΘs > file view columns
-
Firefox crashes when I open it (Mac OS). How can I retrieve the addresses of all the Web sites in my bookmarks before attempting to reinstall firefox?
ID of the Crash
c427216d-8a2f-8b48-Beca-50074acfbc6b
User Agent
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; TI - TI) AppleWebKit/533.16 (KHTML, like Gecko) Safari/533.16 Version/5.0
Yes, all your personal information is stored in your profile folder.
Again, see back up and restore the information contained in the profiles of Firefox to manually back up your profile folder. This article also contains information about what information is stored where (for example, Places.sqlite for bookmarks and history).
Then save that manually uninstall Firefox and delete the profile folder. Then you should be able to do a completely clean install and then restore your settings accordingly.
-
How can I retrieve an email that I don't have to send before the windows closed?
original title: Please! How can I retrieve an email that I don't have to send before the windows closed?Windows has shown do not respond before I send an email, I had worked for an hour, but did not save... Thank you!
Windows Mail? If she wasn't in the drafts folder, it's gone.
When composing a long message, always save in drafts after the start and after every few sentences, click file | Save or Ctrl + S to save to this day.
-
How can I find the codes of codecs
How can I find the codes of codecs
Hello
All you need is good Codec - get these if 32-bit.
-Free - CCCP also get free of insurgents tool - has also excellent forums
http://CCCP-project.NET/FFDSHOW - free
http://sourceforge.NET/projects/ffdshow/Check here:
Plug-ins for Windows Media Player
http://www.Microsoft.com/windows/windowsmedia/player/plugins.aspx---------------------------------------
VLC needs, of no use so usually Codec as a backup when asked to support associations of files just say no.
VLC - free
http://www.videolan.org/VLC/-------------------------------------------------------------
If 64 bits and you need codec.
Read this 1st and go that route, or use the one below. (Vista or Windows 7)
http://www.Vistax64.com/sound-audio/152850-Vista-codec-pack-32bit-64bit-Media-Player-codecs.html
--------------------------------------------------------------------
If 64-bit - can run WMP in 32 or 64 bit mode.
Or try these: download - SAVE - go to the place where your put them RIGHT CLICK – RUN AS ADMIN.
For 32-bit use these - OR the 32 bit ones listed above which I prefer.
K - Lite Codec Pack 6.2.0 (or newer)
http://www.codecguide.com/Use them for 64-bit:
K - Lite Codec Pack 3.7.0 (64-bit) (or newer)
http://www.codecguide.com/-------------------------------------------------------------
You know that you use WMP 32 or 64Change, change or set 64 - Bit Windows Media Player 11 (WMP11) in Windows Vista x 64 as default
http://www.mydigitallife.info/2007/01/19/switch-change-or-set-64-bit-Windows-Media-Player-11-WMP11-in-Windows-Vista-x64-as-default/-------------------------------------------------------------
And you can use it when necessary because no codex is usually required.
VideoLAN - VLC media player
http://www.videolan.org/I hope this helps.
-
How can I retrieve the original online windows
DEAR SEAR
TOW MONTHS AGO, I GOT THE NEW COMPUTER COMPANY OFFICE IN MY COUNTRY CALLED NATCO AND I USE IT SINCE A MONTH AFTER I HAVE INSTALLED WINDOWS ORIGINAL LOSS, I DON'T KNOW WHY. I HAVE NO CD OF RESTORATION,
DESCRIPTION OF THE OFFICE
HP COMPAQ 8100 ELITE CONVERTIBLE MINITOWERS PC ENERGY STAR
INSTALLED WINDOWS: WINDOWS 7 PRO OA MEA
I HAVE THE ORIGINAL FOR WINDOWS SERIAL NUMBER.
HOW CAN I RETRIEVE THE ORIGINAL ONLINE WINDOWSComputers HP recovery partition come preloaded will allow you to create a set of restore disks from Hp that can be used to retrieve all software of origin in case of major problem by tapping the key F10 or F11 permanently when the PC is first boots to the top. However, there may be times when the recovery disks are needed to restore the PC.
If your recovery partition is not available or damaged, you must contact the manufacturer of your computer, and request that a defined recovery disk you can use to reinstall Windows 7. They could practice a small shipping and handling.
HP recovery disk:
http://h10025.www1.HP.com/ewfrf/wc/document?LC=en&DLC=en&cc=us&DocName=c00810334
Another option is, if you have the COA sticker with your product key, you can download a copy of Windows 7 Professional, burn it to a blank DVD, then use the key on the sticker COST to reinstall and reactivate. You will need to go to the manufacturers website and download the correct drivers that came with your system:
COA certificate of authenticity:
http://www.Microsoft.com/howtotell/content.aspx?PG=COA
Download the Windows 7 ISO Image
Windows 7 Professional x 64 (64-bit)English: http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65805/X15-65805.iso
Windows 7 Professional x 86 (32 bit)
English: http://msft-dnl.digitalrivercontent.net/msvista/pub/X15-65804/X15-65804.iso
ImgBurn - supporting the creation of CD more. ISO files,
It supports a wide range of image file formats, and it's free.
(BIN, CUE, DI, DVD, GI, IMG, MDS, NRG, PDI and ISO)
http://www.ImgBurn.com/http://NeoSmart.NET/wiki/display/G/Burning+ISO+images+with+ImgBurn
Note: Use always slower burning (4 x or 2 x) speed is offered a choice
http://Windows.Microsoft.com/en-us/Windows7/installing-and-reinstalling-Windows-7
-
How can I clear the message thatI is not the latest version?
Upgrade to v.6.0.1 but always opens in http://www.mozilla.org/en-US/firefox/4.0.1/firstrun/.
How can I clear the message that this is not the latest version?
I uninstalled and reinstalled from new download but the message remains displayed. Problem is that on a user account on my laptop - the other is up-to-date with no error message.
See the following for a few suggestions:
- https://support.Mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox
- https://support.mozilla.com/kb/How+to+set+the+home+page - Firefox supports several home pages separated by ' |' symbol
- http://KB.mozillazine.org/Preferences_not_saved
Maybe you are looking for
-
My iPhone has image problems.
The button trim is there and it will allow me to crop, but as soon as I press "done" it is said that there is a problem. My iPhone doesn't let me send pictures via text or Facebook messenger unless it's a screen that has been making contortions 10 mi
-
I have 2 GB of ram. but my laptop is so slow. I am now deciding to change my ram. who is the highest range to take ram for HP 430?
-
Photosmart 5515: printing of the black bands with letters between them
When I turned on the printer in a few minutes he printed some old stuff, so I have cancellation print and reset the queue of print. then I turn it on and once again and it automaticly in 30s feel something I don't know what it was on paper 4 black ba
-
10 Windows recovery media does not work on 3020MT tour
I have a number of systems with lower upgrade Windows 7 installed by default. So I changed the firmware in the UEFI as shown: I then started the UEFI boot option dvd DVD, and then try again to install the OS, but don't have the option, I also checked
-
HP Deskjet F335 all-in-one: Troubleshooting computer says printer is disabled
I am trying to print but I get the message of my printer is offline. I ran the troubleshooting tool and the message that printer has been turned off returned. The printer is on and I can print the test since the HP Solution Center page