Run one or the other query based on the result
Hi allIs there anyway that I can design this query to run only a subquery based on the returned results.
select to_char((NEXT_CHANGE# - 1),9999999999999999) latest_change
from v$archived_log
where SEQUENCE# =(select nvl(min(SEQUENCE#),0)
from v$archived_log
where ARCHIVED='YES'
and APPLIED='NO')
If the above subquery returns 0, then I would like to execute the query below. Is there any way to embed multiple queries like case conditions ?
select max(SEQUENCE#)
from v$archived_log
where ARCHIVED='YES'
and APPLIED='YES'
Thank youG
Edited by: USER101 December 9, 2010 09:34
Hello
Use the operator to decode your subquery:
Select to_char ((NEXT_CHANGE #-1), 9999999999999999) latest_change
v $ archived_log
where SEQUENCE # = decode ((select nvl (min(SEQUENCE#), 0)))
v $ archived_log
When ARCHIVED = 'YES '.
and APPLIED = 'NO'),
0,
(select max(SEQUENCE#)
v $ archived_log
When ARCHIVED = 'YES '.
and APPLIED = 'YES'),
(select nvl (min(SEQUENCE#), 0))
v $ archived_log
When ARCHIVED = 'YES '.
and APPLIED = 'NO'));
Tags: Database
Similar Questions
-
After clicking on one of the results of Google search Firefox displays wrong web page
If I click on any of the results of a Google search, I am taken to the wrong web page. When I go back and click again on everything is fine. It started a week ago. Re-loading of Firefox but its actually not difference.
URL of affected sites
http://
User Agent
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0 .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Make a check of malware with a few programs to scan for malware.
You must use all of the programs, because each detect different malware.
Make sure that you update each program to get the latest version of the database.http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
http://www.superantispyware.com/ - SuperAntispyware
http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
..........
See also 'Spyware on Windows': http://kb.mozillazine.org/Popups_not_blocked and what to do when searches take you on the wrong search site -
Apex. Submit->; process to run one of the two stored procedures on page
version: 4.2.5
page one region: form on the stored procedure
region of page two: form on the stored procedure
The region button 'submit' for the region page 2:
ACTION: Redirect URL
Run Validations: YES
Target URL: javascript:apex.submit ('CALL_MY_PROC');
'Treatments' execute the stored procedure
Point process: submit now - after calculations and Validations
Enforcement process: once a Page visit (by default)
...
Conditions
When you press the button:-no Condition button
Condition type: request = Expression 1
Expression 1: REQUEST = CALL_MY_PROC
The expected behavior is to call the stored procedure in the region on two page without invoking the other stored procedure. Separation of concerns is desired, this button sends the form this proc, this button argues that form to this proc. Nor should call each other, so to speak.
The stored procedure is not called when I click 'Submit' (button from region to region page two). How can I solve this?
Thanks in advance for any guidance.
-abe
Solution: the status... are not REQUEST =
-abe
-
Running one of the virtual machines on two physical servers at the same time. Server 2012
Hello!
I'll admit that I'm not exactly an expert Server nor I claim to be. I could use some help with the installation I build and eventually moving customers to server setup. In an effort to try to describe my question, here is a first draft of what looks like my setup.Rackstation 1 is therefore a Synology Rackstation, which runs high-availability Rackstation 2. Directly, cabledtogether, Rackstation 2 works passively and constantly updates a copy of Rackstation 1 Rackstation 1 failure.Host 1 running server 2012 and therefore host 2. Currently I have 6 servers virtualized on Rackstation 1, using Hyper-V Manager of 1 host. I created ISCSI storage for every server virtualized LUNS and currently have ISCSI targets to be used with host 1 pointing to the LUN. I created another series of ISCSI for Host 2 targets as well. The idea is to have 2 host run the Hyper-V Manager and be able to connect to the virtualized servers same Rackstation 1 just like host 1 is currently. That way if nothing ever happens to the host 1, host 2 quickly usable for servers. All that seems to be able to do with host 2 is create new virtualized servers, instead of link those already created. Currently, regarding the RAM for virtualized servers, they use host 1.So, is there a way for host 2 to have the same virtual servers as host 1? What I need to change my configuration to achieve this? IM open to ideas and advice on how to reconcile that far.Zachary, MS doesn't make it easy to find the Windows Server forum:
http://social.technet.Microsoft.com/forums/en-us/category/WindowsServer -
Running one of the laboratories HOL
Whenever register on any of the laboratories and run, it seems to take a few minutes and then comes up with the following error:
"Transaction cancelled because that its been marked as roll back only"then click ok and it says existing and takes you back to the catalog.
This happens for every lab I try, I have not used the HOL site for a while so little confused with this error
Someone has seen this before
Thank you
Dave
Thank you guys for this report. We had a power outage this morning which took laboratories in offline mode.
I believe that the problem has been resolved and laboratories should now be available.
-Doug
-
In Labview, is it possible to put two windows (both sides) appears on the same screen together, one behind the other, during run mode?
It's a shame
Secondary, it's a great way to call subVIs and you load only code when you call it, so it ease your use of resources.
Anyway, you can call Vi as pop up:
https://decibel.NI.com/content/docs/doc-2064
You could split your FP using the separator.
http://zone.NI.com/reference/en-XX/help/371361J-01/lvhowto/creating_splitter_bars_and_panes/
Or you can use the control tab.
http://zone.NI.com/reference/en-XX/help/371361J-01/lvhowto/creating_tab_controls/
Regars.
-
my mother has two computers that are running windows 7 and she wants to give me one of them, but it first wants to transfer or share all his stuff from one to the other. We network cables and such can I connect the on computers and share information from one to the other?
Hello
To connect two computers with a cable, not a router, it must be a crossover cable.
These are special cables, but they are not expensive.(You can configure a network or a host group (see below))
Connect two computers using a crossover cable (XP - Windows 7 may be the same)
http://Windows.Microsoft.com/en-us/Windows-Vista/connect-two-computers-using-a-crossover-cableIt is a description however computer stores will sell them at low cost.
http://en.Wikipedia.org/wiki/Ethernet_crossover_cableAmazon - example of a crossover cable
http://www.Amazon.com/Belkin-components-CAT5e-crossover-cable/DP/B000067RFT--------------------------
You can also use Easy Transfer
Transferring files and settings: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows-Vista/transferring-files-and-settings-frequently-asked-questionsHow Windows Easy Transfer makes setting up a computer easier?
http://Windows.Microsoft.com/en-us/Windows7/how-does-Windows-easy-transfer-make-setting-up-a-computer-easierWindows 7 Easy Transfer
http://Windows.Microsoft.com/en-AU/Windows7/products/features/Windows-easy-transferHow to get an easy transfer cable
http://Windows.Microsoft.com/is-is/Windows7/how-to-get-an-easy-transfer-cable------------------------
These should help:
Create a homegroup
http://Windows.Microsoft.com/en-us/Windows7/create-a-HomeGroupHomegroup from start to finish
http://Windows.Microsoft.com/en-us/Windows7/help/HomeGroup-from-start-to-finishAccess to files and printers on other homegroup computers
http://Windows.Microsoft.com/en-us/Windows7/access-files-and-printers-on-other-HomeGroup-computersFile sharing essentials
http://Windows.Microsoft.com/en-us/Windows7/file-sharing-essentialsShare files with anyone
http://Windows.Microsoft.com/en-us/Windows7/share-files-with-someone=========================================
More help at these locations: (Vista references also apply to Windows 7)
Vista - LAN
http://www.onecomputerguy.com/Networking/vista_network.htmVista network and sharing Center
http://www.onecomputerguy.com/Networking/vista_network_sharing_center.htmSetting up a network home
http://Windows.Microsoft.com/en-us/Windows-Vista/setting-up-a-home-networkHome network, wireless network and computer networking Made Easy
http://www.home-network-help.com/Windows Vista tip: How to install and connect to a wireless network
http://www.watchingthenet.com/Windows-Vista-tip-how-to-Setup-and-connect-to-a-wireless-network.htmlNetworking tutorial home
http://www.tehnomagazin.com/computer/home-networking-tutorial.htm
Practically networked - everything you could possibly want to know.
http://www.practicallynetworked.com/I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
How to query the master block based on one of the values of the detail block
Hello
In the form of version 6i, I have a field in data block which is not defined as a database element. I use this field to store a block of retail value. If I want to ask the form using this field (which represents one of the values of retail block), how should I do this? Pointers?
TIA,Yes, as Ammad10786 says, the ID's I mentioned are just placeholders for your real values. And done MASTERBLOCKID refers to columns in the masterblock which is the primary key or the join condition to the retail block.
-
I tried to install each on different hard drives with different names, but no matter what all the bookmarks are connected between the two. I do not open both at the same time and even installed one without him in the start menu programs. nothing prevents them to act as a single instance. I don't want to use any kind of profile, just a shortcut on the desktop for an and a folder for each other. How to work around this problem. any help would be greatly appreciated. I have used flock as my default (Firefox), but it is no longer supported or updated, and I can't quite deal with chrome. I know it's Firefox function but so minimal and causes that I don't like it.
Portable Firefox installed on the hard drive will provide a completely separate browser, so you don't have to do anything with the 'profiles' - which is run automatically by the program.
http://PortableApps.com/apps/Internet/firefox_portableGoogle Chrome has no link with Firefox, Mozilla or Gecko based, it uses WebKit as its core and is more related than any other browser to Safari,
-
When running FF for awhile, it starts to jump between different tabs I have open without clicking anything whatsoever. Also, it will sometimes appear that another copy of the same tab I have open try to open again at the top of page. The address bar that appears at the bottom of page loading will appear one above the other and the page will jump up and down about a 1/8th of an inch. Out of the enclosure, then by restarting FF does not solve the problem. I have to restart the computer and then restart FF for him to quit.
I changed to Chrome and it doesn't, but I prefer the FF browser so I can get this fixed number.
Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).
- Do not click on the reset button on the start safe mode window or make changes.
- https://support.Mozilla.org/KB/safe+mode
- https://support.Mozilla.org/KB/troubleshooting+extensions+and+themes
Try disabling hardware acceleration in Firefox.
- Tools > Options > advanced > General > Browsing: "use hardware acceleration when available.
- https://support.Mozilla.org/KB/troubleshooting+extensions+and+themes
Create a new profile as a test to see if your profile is the source of the problems.
See "create a profile":
- https://support.Mozilla.org/KB/Profile-Manager-create-and-remove-Firefox-profiles
- http://KB.mozillazine.org/Standard_diagnostic_-_Firefox#Profile_issues
If the new profile works then you can transfer files from a profile in the new profile, but make sure not to copy corrupted files.
-
The WinPE Licensing implications
Hello
I have a number of customers with machines that are fully licensed with XP, XPe or Vista.Each of these clients have a device that we have created, piloted by drivers custom within the OS. The operating system will sometimes funny (corruption, etc.) causing the device to not function.I decided to create a diagnostic utility to check whether the fault is in the operating system, driver or device. Because the fault could be deep in the operating system, the only way I can see to do is through WinPEI searched the net, but can do not seem to arrive at an acceptable legitimate answer... So here's my question.If I create a WinPE 2.0 distribution, either for CD, USB or chain loaded from Linux (Syslinux or PXElinux) which will take place on one of the machines running 'something Microsoft' what are the implications of license? Is it legal?Operating system licenses are not owned by us, but our customers if we do not have mass of licensing agreements or something like that.The plan is to create a unique distribution and add drivers to it that we encounter different machines. I know it's frowned upon to speak Hirens on a MS site, but something similar to that (I won't use Hirens because I want that it is completely legitimate)I called him to the reading of the license with WAIK, but can do not seem to find anything about this.Thank youHello
This is not a question of normal consumption. I suggest you to contact our Legal Department for legal terms Express. http://www.Microsoft.com/about/legal/en/us/default.aspx
I also suggest that you send your query in TechNet and check.
http://social.technet.Microsoft.com/forums/en-us/operationsmanagergeneral/threads
-
This printer has been great, causing no trouble so far. After that the OSX updated to 10.10.2 on my IMAC more recent (July 2014) the ADF Document (CAD) failed when trying to scan to one of my IMAC computers. The printer indicates "Document loaded", the scanner (HP utility) on the IMAC software displays "No Document loaded". When you place flat as the source of the document scanning software works perfectly.
Initially, I assumed that the printer has been responsible and progressed to clean the rollers, check the aper and network connections. Everything seemed operational, so restarted, to have the same problem. Existing printer deleted preferably printer and downlloaded and installed last HP softeware & driver set. The problem is not resolved.
Tried to scan from CAD of older IMAC (August 2007) also runs OSX 10.10.2 and it worked perfectly once, I have inastalled the printer/scanner software.
Computers and scanner are connected via a 10/100/1000 ethernet switch and all extracted and there was bo moves or changes to the physical network harware
Hello @Kozzy49,
Welcome to the Forums of HP Support!
I understand that you are having problems when you try to scan using the automatic document feeder on your printer HP LaserJet Pro CM1415fnw Color MFP to your computer Mac OS X 10.10. I would like to help you today with this problem of document feeder scan. Because this issue is only occurring with one of your computers, it certainly is a software or driver conflict on your computer Mac OS X 10.10 one and not a hardware conflict. To solve this problem please can I you follow the steps below.
Step 1: Resetting the printing system:
To begin, I will have you reset the printing system on your Mac because it is important that we have a pleasure to work with for troubleshooting clean slate. Please click herefor instructions on how to perform the reset. When the site opens, follow the steps under "Reset printing in OS X Lion system." This Reset deletes each printer on your Mac. However, it does not uninstall printers. Therefore, if use you other printers on the Mac, once the reset is complete simply make sure printers are attached via a USB cable or connected network and (+) add hide them po do add not your HP Laserjet back in right now.
Once the reset is complete, proceed to the next step.
Step 2: Uninstall the drivers and software:
Please click here to find out how to properly uninstall your printer. Once the site opens select the drop down menu 'Mac OS X v10.6, OS X v10.7, OS X v10.8 and OS X v10.9' and follow the steps to complete uninstallation.
Once the uninstall is complete, please continue on.
Step 3: Check and repair your Mac disk permissions:
- Open Macintosh HD and go to Applications
- Go to the Utilities folder
- Open disk utility
- Select the hard disk volume, you use (usually on the left)
- Select verify disk permissions
- Once this process is complete, select repair disk permissions
Step 4: Check the Apple updates:
- Go to the Apple
- Select System Preferences
- Select software update
- Click update now
- Install your available updates
- Computer restart
Step 5: Reinstall your software and drivers:
Finally, please click here to download the driver package for your printer. Once the site opens, select the download button at the top left. Once the download is complete, please follow the instructions on the screen to install your printer.
Once your printer is properly installed please try to scan the image through the automatic document feeder.
Please reply to this message with the result of your troubleshooting. I look forward to hear from you!
-
get service pack was not installed recovery changes and restart without end, once more I have no cd of windows and my rom is not working anyway, it really is _ me off, my computer was useless for days now and I have a very important job out there which is essential to my work. Thanks a lot for windows, I'll be switching os very soon
Hi Asdlfjasdfjlasdf,
How did you install ServicePack initially?
You can try to start safe mode and try to perform a system restore.
Step 1:
For a safe boot, you can follow the below given steps:
1. remove all floppy disks, CDs and DVDs from your computer and restart your computer.
Click the Start button, click the arrow next to the button lock and then click on restart.
2. do one of the following:
a. If your computer has a single operating system installed, press and hold the F8 key as your computer restarts. You need to press F8 before the Windows logo appears. If the Windows logo appears, you need to try again by waiting until the Windows logon prompt appears, and then stop and restart your computer.
b. If your computer has multiple operating systems, use the arrow keys to select the operating system you want to start in safe mode, and then press F8.
3. in the display Advanced Startup Options, use the arrow keys to select the option of safe mode you want and press ENTER. For more information about the options, see startup options (including safe mode).
4 log your computer with a user account with administrator rights.
When your computer is in safe mode, you will see marked Safe Mode in the corners of the screen. To leave safe mode, restart your computer and let Windows start normally.
If you are able to boot to the desktop in safe mode try doing a restore of the system at a point when the computer was working fine.
For more information on Safe Mode, follow the link below:
Start your computer in safe mode
http://Windows.Microsoft.com/en-us/Windows-Vista/start-your-computer-in-safe-mode
Step 2:
To restore the operating system to an earlier point in time, follow these steps:
1. Click Start, type system restore in the search box, and then click System Restore in the list programs.
If you are prompted for an administrator password or a confirmation, type your password or click on continue.
2. in the System Restore dialog box, click on choose a different restore point and then click Next
3. in the list of restore points, click a restore point created before you started having the problem, and then click Next
4. click on finish
Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.
For more information, please follow the below given link:
How to repair the operating system and how to restore the configuration of the operating system to an earlier point in time in Windows Vista
http://support.Microsoft.com/kb/936212/
After you perform a restore of the system try to boot into normal mode and then download the standalone vista service pack and try to install.
How to obtain the latest Windows Vista service pack
http://support.Microsoft.com/kb/935791
Once it is finished downloading the pack of autonomous before installing the service pack disable security software, the system n clean boot, and then install the stand-alone pack. Once the installation is complete normal startup mode and re activate the security software.
If you are not able to perform the above steps then you will need to take your computer to the technical workshop and get it rectified.
The steps to perform a clean boot are given below:
1 log on to the computer using an account with administrator rights
2. click on start, type msconfig.exe in the start search box and press ENTER to start the System Configuration utility.
If you are prompted for an administrator password or for confirmation, type your password, or click on continue
3. on the general tab, click Selective startup, and then clear the check box load startup items. (The check box use the file Boot is not available.)
4. on the Services tab, click to select the skin all the Microsoft services check box, and then click Disable all
Note: Following this step lets services Microsoft continue to run. These services include networking, Plug-and-Play, record of events, error reporting, and other services. If you disable these services, you can permanently delete all restore points. Do not do this if you want to use with existing restore points system restore utility
Once you restart to try Office Outlook and see if you get the same error message. If not then follow the divide and conquer method mentioned in the article about which program is causing the problem.
For more information about the clean boot, follow the below given link:
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
When you have completed the installation of the service pack, follow these steps to reset the computer to start as usual:
1. click on start, type msconfig.exe in the start search box and press ENTER.
If you are prompted for an administrator password or for confirmation, type your password, or click on continue.
2. on the general tab, click the Normal startup option, and then click OK.
3. When you are prompted to restart the computer, click on restart
Hope this information is useful.
Amrita M
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
All of a sudden my Windows Media Player (11) started playing the songs on each album random & not one after the other in chronological order, any ideas anyone please?
Hello
To better understand the issue, please let me know if you have made recent changes made on the computer before this problem?
This problem may occur if the Windows Media Player settings are incorrect.
Method 1:
Let's first run the fixit and check if it helps.Solve the problems of Windows Media Player video and other media or library
http://support.Microsoft.com/mats/windows_media_player_diagnosticMethod 2:
If the problem persists, I suggest you organize your digital media collection
and check if it helps.Organize and search your digital media collection
http://Windows.Microsoft.com/en-us/Windows-XP/help/Windows-Media-Player/11/libraryCheck out the link for more information.
Create and use your own customized reading lists
http://Windows.Microsoft.com/en-us/Windows-XP/help/Windows-Media-Player/11/playlistsHope this information helps. Answer the post with an up-to-date issue report to help you further.
-
Well this problem started a week ago. When computer first starts or restarts (I did not open any program still!) I get this message,
One or more ActiveX controls could not be displayed because that is: 1) your current security settings prohibit running ActiveX controls on this page, or 2) you blocked an editor of one of the controls
I know this usually occurs with internet explore, but as I said I do not have anything yet open. I've activated all the active X controls in internet explore with no luck. I searched the web for active x forums and blocked the editor and followed all the instructions in the error message (most of them see enabling active x) but without success. I am an advanced user (15 years and more), but it has left speechless me. If I try to open "Services", I get the same error. When I opened my anti virus, it opens but it is just a blank page. I know that my anti virus is working well. Also if I open internet explorer, I get a blank page, if I go to a website (enter it or go to my favorites) it works fine. I've deleted all the temp, historical, cookies etc. etc. (use CC Cleaner and other programs to clean) but if reopened once again it says white. If I use help and you want to see a help topic that it is said (may not display due to problems of congestion or network, check connection) but internet works fine. I know that I have not a virus (a lot of people in the forums think it) I scanned with Bitdefender, Eset Nod32, Super Anti Spyware pro, Malaware Anti Malawarebytes, Spybot, Stopzilla, etc. etc. and did not find a virus (in safe mode) there are many people on the web with the same problem (with the same and some with different programs). This problem seems to be random (does not affect a certain program) I tried for a week now and I'm stumped! Anybody have ideas that I heard yet?
Thank you if you do!
Hi Morksr2d2,
As you mentioned that the problem reappears as soon as you run the anti-virus program, it seems that we found the cause of these error messages at startup. I would like to recommend that you Uninstall the antivirus & check if the problem reappears. This should also allow you to make changes on the services tab in system configuration utility.
Later, reinstall the antivirus program.
Hope the helps of information. Please post back and we do know.
Concerning
Joel S
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think.
Maybe you are looking for
-
E5-571 graph Acer question?
Hi all hope someone can help? Recently bought an Acer laptop E5 - 571 i5 which has integrated graphics Intel - 4000 HD. I installed Call of Duty United Offensive but I get a black screen when I try to run it, followed by a message saying "buffer over
-
I have Windows mail on Vista. My email provider is BT.com mail. I questioned my problems with them, and to be honest I can access my mail via BT.com without problems. If I use Windows mail usually it connects without problems then go download 1Messag
-
HP Photosmart C5180 all-in-one: computer says magenta ink is empty, but it's not.
The computer says that the magenta ink is empty, but it's not. Black printing is only possible. When I I use the HP Solution Center and do a test print, it prints all colors with no problems. I can´t find the program that made this error.
-
Is it possible to add a badge in Blackberry?
Hello I would like to add more information (as number) on several images, which could be done easily by adding badges to it. Is it possible to add a badge on the image in Blackberry app? If not, could someone please suggest otherwise the task Kind re
-
Transition issues when rendering SOUL CC 2014?
I have a project of first Pro CC 2014. It uses transitions on still clips and everything looks good in the preview window, but when I send to SOUL mixes changes somehow, and the images seem to pop on or off and sometimes darken on the previous image