IF and Else running both at the same time.
Hello world
I have a strange problem underneath the small piece of code, both if and other blocks are run at the same time.
Kindly advise on this strange behavior.
DECLARE
p_year varchar2 (4): = 9999;
BEGIN
FOR I IN (SELECT lookup_code FROM fnd_lookup_values, meaning)
WHERE lookup_type = 'PARALLEL_ALLOCATION')
loop
DBMS_OUTPUT. Put_line(i.Meaning ||) e -'|| i.lookup_code);
IF i.meaning = THEN p_year
DBMS_OUTPUT. Put_line ("year values now");
DBMS_OUTPUT. Put_line(i.Meaning ||) e -'|| p_year);
on the other
DBMS_OUTPUT. Put_line (' year values in other ');
DBMS_OUTPUT. Put_line(i.Meaning ||) e -'|| p_year);
end if;
end loop;
END;
/
OUTPUT-
9999 2012
Now the values of the year
9999 9999
8888 2016
Values of the year in the world
8888-9999
Select used in for loop is to have two values only i.e.
sense lookup_code
9999 2012
8888 2016
Expected results should be in part IF that is and on the other hand does not run.
9999 and 2012 of DBMS_OUTPUT
Nope...
If you compare 8888 with 9999, it means that this condition is false (it is not true)...
It will be ignored... in your case... (nothing will happen)
You can also change your query... so, you can select just the data in your table when meaning is equal to a number...
SELECT meaning, lookup_code FROM fnd_lookup_values WHERE lookup_type = 'PARALLEL_ALLOCATION' and meaning = p_year
but... These are really programming basics...
Tags: Database
Similar Questions
-
Cannot turn off the issue of jam and paper cartridge (both at the same time)
I have a HP Officejet 8600, running on a wireless home network. The printer will not work. We get two messages. 1. Introduction to jam, and I'm going through all the steps to clear paper, including the search for pieces of paper, as well as any leaves. I found no paper, whole or in part anywhere in the printer. 2. at this point, I get a message that I have a problem with a printer (of ink, installed correctly, etc.) cartridge. Simply replace us all cartridges, so I know that we are not out of ink. However, when I opened the door to the area of printer cartridge, the cartridge does not move where I can check it out. There's just right. So I'm "stuck". I don't know how to get the cartridge door to roll over so I can check! I turned off the computer several times and tried to reset things, but nothing seems to work. Any suggestions?
Followed - I turned off the printer. Then opened the cartridge and reaches into the printer access door. Without moving the cartridge door, I pressed each cartridge to make sure it was placed correctly. Then, shut the door and back running the printer. The printer seems to start correctly. I then opened the door, the door-cartridge moved where I could access them normally. I double checked that each cartridge is installed and closed the door.
At this point, everything seems to work properly.
-
is it possible to combine ethernet and wifi connections to use both at the same time
I want to fill the two connections without using third-party software can do this combine is wifi and ethernet, all use both faster speeds for
Ethernet is the fastest connection to use your modem/router and it will not combine or run them both at the same time.
To test your speed, try > http://www.speedtest.net/
or > https://www.speakeasy.net/speedtest/http://www.speedtest.net/
If you are unhappy with the speed of your ISP, you need to communicate with them or another ISP.
-
Kodak ESPC310 + 0365 and Sony Vaio, printing problem
Kodak ESPC310 + 0365 and Sony Vaio both on the same wireless network, Vaio says printer offline, so don't not printing - suggestions?Hello
· What operating system do you use?
· Remember to proceed with changes in hardware or software on the computer before the show?
Follow these methods and check if that helps:
Method 1:
I suggest you run the fixit tool and check if it helps.
Problems printing and printing errors
http://support.Microsoft.com/mats/printing_problems/
Method 2:
Follow the steps in troubleshooting section and check if that helps.
Printer in Windows problems
http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows
See also:
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-network-printer-problems
http://support.en.kodak.com/app/answers/detail/A_ID/19500/selected/true
http://support.en.kodak.com/app/answers/detail/A_ID/1329/selected/true
-
Using Nvidia Geforce and Intel hd graphics card both at the same time for games
Helloo,
I am new to the community. I bought Lenovo y50 last month. It comes with the dedicated graphics card Nvidia Geforce gtx 860M and Intel HD 4600 Graphics intigrated. Its a portable game even if I am faced with leggings in some high permorfance games.
Can I use the graphics card Nvidia GeForce and Indigrated Intel HD graphycs... the two all in games...?
Thank you... Help will be appreciated...
One thing you can do to ensure the highest perfomance on games is to go to the Nvidia Control Panel programs, manage 3D settings, then find the game you want and set to use only High Performance NVIDIA graphics (or discrete).
You can not use both cards at the same time by writing this (DirectX 11), but with the arrival of Windows 10 and DirectX 12 July 29, you will be able to use both at the same time to increase performance. So far, however, it is simply not possible to use both at the same time. The best option is to use only the GTX 860 M.
-
Hello
My name is Ellie and I am new to Dreamweaver.
I can switch between the code sheet and css html, but I would like to see them both at the same time as well as the design window. Right now and can see rather the design and code html or design and css. How can I arrange to see everything at the same time, design, HTML and CSS?
Thank you
It ends up something like that...
-
Is it possible to install a program in my PC and my laptop without using both at the same time. Just pay for a program?
Hello
You can install the software on two computers. These two computers can be Windows, Mac OS, or everyone.
Kind regards
Hervé Khare
-
Windows 7 will not accept any ati driver and catalyst control center at the same time.
I tried a number of ati drivers. My card is a 4870 x 2 2 GB edition. The driver that windows installs will not accept any CCC.
I did also install CCC and only driver left. I tried to play Everquest 2, first game to install, and it crashes before the charge, gives me an error of ref dx9.
I'm assuming that windows 7 has the new package dx so I shouldn't have to reinstall that. I downloaded some of them however.
I'll try a restore and see if it works. If I could go back in time and never bought this o/s I now.
This is ridiculous.
Windows 7 DirectX 11. You can also download and install v9 and have both at the same time, which is what I have on two different computers for this reason.
Press the low a 3rd to: http://www.microsoft.com/downloads/en/resultsForProduct.aspx?displaylang=en&productID=9C954C37-1ED1-4846-8A7D-85FC422D1388
-
So, now that the iPhone 7 no longer a listener, how will we be able to charge phone and listen to music at the same time? Will it be a card which will be a dispatcher?
You can use a dock of lightning to reload everything using plug the dock integrated headset for listening to music.
http://www.MacRumors.com/2016/09/08/lightning-dock-iPhone-7-charging-with-music/
-
iPhone 7: how to charge and listen to music at the same time...
The new iPhone is great! But a quick question that I can't find the answer to... In the car, I use the TomTom app and listen to the music on my phone. Because it must be reloaded when I use TomTom, I have a cable for music and one for the load. The new iPhone means that I can't load and listen to music at the same time? Or will there be some accessory available?
Thank you!
You can read what is known on the Apple site.
-
iPhone 6 s - photo app does not allow users to take pictures and listen to music at the same time
The repro steps:
- iPhone 6 s - photo app does not allow the user to take pictures and listen to music at the same time
Music app vs photo app
(1) play a sound track in the music app
(2) the swtich to app photo (on the "Photo" mode)
(3) music stopsPandora app vs photo app
1) turn on pandora
2) switch to the camera on the 6s iphone app
(3) stopping the musicPLEASE FIX AS SOON AS POSSIBLE *.
My iPhone stopped playing music when you take photos?
Nothing to trouble since he was not taken in charge.
- iPhone 6 s - photo app does not allow the user to take pictures and listen to music at the same time
-
In windows movie maker, failed to get the narration and music to play at the same time
Hello
I have followed the instructions to the T, but cannot get the narration and music to play at the same time.Hi Anataia,
You are unable to play the music and narration at the same time, you can adjust the audio levels to determine which audio will play louder than the other in your movie.
The audio settings by default in Windows Movie Maker is for the audio portion of imported video and any narration or music that you add to play at an equal level, but you can change that setting if it does not give you the balance that you want. To adjust the audio levels, follow these steps:
- Click on Tools, then the Audio levels.
- Do one of the following:
- To increase the level of audio on the Audio track that is part of a video clip, drag the slider toward Audio from video.
- To increase the level of audio that is located on the audio / music, drag the slider to Audio / Music.
- Click close.
http://Windows.Microsoft.com/en-us/Windows-Vista/add-narration-to-your-movie
Hope this has been helpful.
Bindu S - Microsoft Support
Visit our Microsoft answers feedback Forum and let us know what you think -
In the latest version of muse to adobe, I have me against "PIN at the top of the browser" and 'sensitive pine' work at the same time.
Now if I choose an object and the axis 'browser', "sensitive pine" is unselected and vice versa.
The need is for the header with the logo and menu bar to be pinned to the top of the browser, so that the page scrolls in the header bar.
Now when I click on the sensitive left axis for the logo and the sensitive right pin for the navigation bar, the "pin at the top of the browser" gets deselected.
Any suggestions or workarounds will be appreciated.
Kind regards
Vijay
Hi all
Thanks for that bring to our attention. We will consider adding this feature in the future.
RyanDoyle - it's an interesting hack you have found! Unfortunately, I wouldn't count on that it works like this in the future, as a bug which is to operate. If you drag the screen to change the width of the browser as a Muse, you'll see that the behavior of the elements in the status button (a menu, for example) is different from when exported. However, if you make a small change to your hack, so it should always work: set button "width sensitive" State instead. In addition, I don't see why all parts must be in separate to this job state buttons, but I've only tried a simple example myself.
An another workaround I used is to create another, more breakpoint. For example, if I have a menu that is pinned to the top left of the browser in the dots stop, then in a breakpoint, I would pin in the center top of the browser. Normally, I wouldn't add more breakpoints, but there is a way that I found to work around the problem. Ryan workaround is perhaps the best way to go if you take my advice and use a status button sensitive width instead of the width of the browser.
Hope this helps,
Anna
-
Buy two planes? Photographic for 9.99 and 19.99 Indesign at the same time? It s less expensive than 49.99 with applications and I only need this two software
Hello
Yes, you can buy the plan of photography as well as one app In-design under the same account.
Please check the link for purchase https://creative.adobe.com/plans
Please go through the Adobe - General conditions of subscription as well.
Hope this helps!
-
Copy and paste multiple fields at the same time?
Is it possible to copy and paste several fields at the same time as in the employment history section or reference to an employment application?
Hello Glenn,.
You can right click on the domain and select 'Copy field' and can then slide it into position suitable in the document so that in the preview page.
Let me know if that helps!
Kind regards
-Usman
Maybe you are looking for
-
The exported photos do not appear in the Finder
I just discovered a quirk in the photos that might confuse some users how it confused me for a while. It seemed to me to export successfully to the photos and videos from the photos app in a folder on my desktop, but they do not. Everything seemed
-
M40-145 drive DVD - RW - low recording speed
Speed of my recorder is less announced for the model. I have a MATSU * a 831 s witch shoul DVD recording at 8 x, but I m of the maximum speed obtained is 2 x, regardless of brand, type or quality of DVD-R / + R /- + RW/DL. I've updated firmware, chan
-
Satellite L50t-A-145 drivers - how to check that they are up to date
I would like to know how to check the driver updates. My Office Help does not work. Is this something that happens in the background after I recorded my laptop?
-
I would like to know how to do this for MS Windows XP Home and (especially) MS Windows Vista Home Premium (my sons PC is running out of space fast disk - I think because of updates).
-
retrieve the beats audio driver network
Hello I have a new Beats Audio laptop running Windows 8.1. I noticed yesterday that Snapdo had been installed, probably on the back of other software, I need it to work. I had before Snapdo (on a different machine from Windows, in the past) & went