How to upgrade are the value of the column and the new column value created
Hi all
create the table xxc_temp
as
Select donnees_1 'AB103', 'AAA' data_2 data_3 '123', 'RED' data_4, NULL status in all the double union
Select donnees_1 'AB105', 'BBB' data_2, '222' data_3, data_4 'BLUE', NULL status in all the double union
Select donnees_1 'AB106', 'CCC' data_2, '333' data_3, data_4 'BLUE', the double NULL status
create the table xxc_base
as
Select donnees_1 'AB103', 'AAA' data_2, '123' data_3 data_4 'RED', 'Inactive' status of Union double all the
Select donnees_1 'AB105', 'BBB' data_2, '222' data_3 data_4 'BLUE' status 'Active' of all the double union
Select donnees_1 'AB106', 'CCC' data_2, '333' data_3, data_4 'BLUE', 'Inactive' status of double
I need to update the status column xxc_temp with xxc_base value of the status column and also if the user tries to insert new values/lines in the xxc_temp
So how can I update the status column? I mean automatically set to day and also new values/lines
I need to update only that are Inactive then these lines should be updated in the temporary table
We can do this by using the stored function, but I need to update the new status of lines also
Please help me
Here's another way to do it, using VIRTUAL function column as expression to get the status of the other table
CREATE or REPLACE FUNCTION GET_STATUS (pDATA_1 IN TANK) RETURN VARCHAR2 DETERMINISTIC
AS
vstatus VARCHAR2 (8);
BEGIN
SELECT status in vstatus FROM xxc_base WHERE donnees_1 = pDATA_1;
RETURN vstatus;
END;
/
DROP TABLE 'XXC_TEMP ';
CREATE TABLE 'XXC_TEMP '.
('DONNEES_1' CHAR (5),
"DATA_2" TANK (3).
"DATA_3" TANK (3).
"DATA_4' VARCHAR2 (4).
'STATUS' VARCHAR2 (8) GENERATED ALWAYS AS (SUBSTR (GET_STATUS (DATA_1), 1, 8)) VIRTUAL
) ;
INSERT INTO 'XXC_TEMP' (data_3, donnees_1, data_2, data_4))
Select "AB103' donnees_1, data_2 'AAA', '123' data_3, 'RED' data_4 of any double union
Select donnees_1 'AB105', 'BBB' data_2, '222' data_3 data_4 'BLUE' of all the double union
Select donnees_1 'AB106', 'CCC' data_2 data_3 '333', 'BLUE' double data_4);
Tags: Database
Similar Questions
-
MY DELL LATITUDE D610 HOW CAN I UPGRADE TO THE NEW VERSION OF WINDOWS? NOW IT IS WINDOWS 7, WHAT VERSION IS SUPPORT FOR USE WELL ON MY DEVICE? PLEASE HELP ME
Read this: upgrade Windows 10 Dell Latitude D610
Take a look at my answer, complete instructions.
Basically speaking, Dell officially supports Windows 2000 and Windows XP on Dell Latitude D610 (and other models of Dx10).
However it can really run Windows Vista and 7 at least, as long as you max out the RAM (2 GB, 2 x 1 GB, can be purchased at a great price in eBay) and install the drivers, in particular graphics drivers, look in Device Manager and see what drivers are needed manually.
If you're lucky to have a D610 with ATi graphics card then you can even run Windows 8 and 10 with all drivers available, and I can tell you that it won't be slow dog not unlike a lot of people say, I don't have something similar (a HP Compaq nx8220) in common use. Keep as lean as possible (not bloatwares, anti-virus etc.) system, and it will serve you well.
-
I have upgraded to the new operating system, El Capitan 10.11.4, and now my MacBook Pro is in trouble. Should I uninstall the new system and if so how?
Restore the backup that you did when you replaced the old system
-
Satellite L650 - 1 k 2 - How many watts are the speakers?
I got the l650 1 k 2 with "Toshiba Bass Enhanced Sound System puts Dolby® Audio advanced" but how many watts are the speakers?
Hi mate
There is no details about watt speaker.
I found just the notice that it's stereo speakers -
I recently downloaded the Lightroom upgrade but the old version remains the default Lightroom Application on my laptop and I can only access the new version through the Adobe icon at the top of the screen. How can I get the new version of 'replace' the old?
Try to uninstall the old version - it is not necessary. An upgrade is a product independent and fully functional.
-
As we pretty much all know any new updates to the Adobe programs has been released.
I downloaded the updates on my desktop, but on my computer laptop Creative Cloud not gives me the opportunity to update and says that all programs are "up to date".
How can I download the new updates on my laptop?
Hello
Please, try the following steps:
- Uninstall Adobe CC (Creative Cloud help |) Uninstall the creative Office Cloud app)
- Reboot the computer.
- Install the latest Adobe Creative cloud version from the link: CC help | Creative cloud desktop
Kind regards
Sheena
-
I am entitled to an upgrade, as I have CS3 I want to buy a new mac and install the upgrade on the new computer. How can I do this?
If you get two new machines and the CS3 allows you to get the price reduced for a year then you should certainly pursue it. However, I always recommend people to try before you buy. When you get the new machines install the trial version and make sure that it works for you correctly. Once you have confirmed it correct functions, then you can purchase the subscription.
-
HP 990 cm print is no longer the color since the upgrade to the new iMac with Mountain Lion
Have an older CV (990c, m series) which worked fine on my iMac Leopard PPC (X.5.8) running.
Since the upgrade to the new Intel iMac running Mountain Lion (the most recent software upgrades / w X.8.2) this printer will print only in black and white, despite having new color and cartridges inkjet black installed - even the test pattern that prints automatically when I changed the print cartridges only in B & W.
The detailed print dialog box that appears when I try to print a color page does not include the usual option to print in color.
I think that HP is no longer provides this older printer drivers but guess they are in the software updates in Mac OS.
Someone has an idea how I can fix it, or is it just time to recycle this printer and buy a new one?
TIA
Caroline
Hello
The most recent is available in the following link:
http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?cc=us&LC=en&DLC=en&product=61686
Probably time to buy a new printer.
-
Install Windows 7 upgrade on the new hard drive?
I have the Windows 7 upgrade version that I installed last September, but a few days ago my hard drive died. How do we install the version 7 upgrade on the new hard drive without using a previous version of windows on it?
In order to install the Windows 7 upgrade version, you must have a system of eligible operating Windows installed and activated. You cannot install a version upgrade of Windows 7 on a drive blank. The installation procedure you do not insert a Windows disk in the drive for verification, eligible operating system must be installed.
If you do not have a qualification system of operating Windows installed with an activated genuine license, then you can not use the version upgrade of Windows 7 - you would need a license of Windows 7 "full version".
In summary:
1. a Windows operating system to eligible address must be installed.
2. the Windows operating system to eligible address must have a genuine license (product key) and it must be enabled.
3. to upgrade, boot on the eligible Windows desktop, insert the Windows 7 upgrade disc in the DVD player.
4. when the menu appears, select custom (advanced option) to a clean install procedure.You should be able to repair the installation, if your installation one fall. I suggest create you a System Image (backup) of your installation of Windows 7 after installation of Windows 7 in order to spare you the trouble if your computer one fall in the future.
You can work around this two ways, I would suggest that you create a System Image (backup) of your installation of Windows 7 after installation of Windows 7 in order to save you the trouble if your computer loses the system failure or instability. Since you are in possession of a valid license of Windows Vista for this computer, you can use the following method to do a clean install with upgrade support:
http://www.winsupersite.com/Win7/clean_install_upgrade_media.asp
Releasing it's easy: with Windows | ActiveWin | Laptops | Microsoft MVP -
I tried the upgrade to the new version of JAVA kept b/c getting reminders... uninstall the older versions (2)... réessayées... got the following error code: "Error 1606. Could not access network location % APPDATA%\ ». I tried of looking for help on the Java site. and I tried a few suggestions listed... no luck! CAN SOMEONE PLEASE?
Thank you!
gasweetpeach54
The usual reason for this error message, it's that some of the registry entries mentioned in the following items are damaged.
http://support.Microsoft.com/kb/886549
http://support.Microsoft.com/kb/2258121
If you are unable to fix it by using these methods, try to create a new user account, give administrator privileges and use it to install Java.
http://Windows.Microsoft.com/en-us/Windows-Vista/create-a-user-account
http://Windows.Microsoft.com/en-us/Windows-Vista/change-a-users-account-type
-
What are the new features of PS cloud available six
What are the new features of Photoshop 6 available clouds
Check if your PS CS6 is upgraded 13.1.2 help-> on PS. If this isn't the case, then you need to update. Click on help-> updates. Once PS CS6 is updated 13.1.2 you will get the news of the cloud PS CS6 version
If you mean the PS CC updates, it will be available next month.
-
What are the new products by apple
What are the new features that are available on the market designed by apple. Other than the products of hardware its iPhone, the smartphone and the Tablet I want to know about the software of the computer and online services.
Here you can find official information on the new products http://www.apple.com/newsroom/
-
I have macBook build 10K 549 and I want to upgrade to the new OS system available while one will work on my device
It is impossible to tell from this information. Choose about this Mac from the Apple menu, click more information and search the model identifier.
If it's MacBook1, 1, 10.6.8.
If it is MacBook2, 1-MacBook4, 1, 10.7.5.
If it's MacBook5, 1 or MacBook5, 2, 10.11.6.
If it's MacBook6, 1 or greater, 10.12.
(144865)
-
How can I install the new version of Firefox?
I had Firefox and then tried to upgrade to the new version. The Green install bar happens at about 80% and then finally message said: it has been discontinued. Now don't have any so, using the Firefox browser.
Try this:
- Download the installer of Firefox and save the file to the desktop
https://www.Mozilla.org/en-us/Firefox/all/ - Start the installation by double-clicking on the desktop icon
It is possible that antivirus software is causing problems.
Try disabling the anti-virus temporarily to see if that makes a difference. - Download the installer of Firefox and save the file to the desktop
-
How can I use the new experience of the tablet in ICS?
I have a Galaxy Tab improved to Ice Cream Sandwich and installed Firefox, but it shows the normal vertical-fashion-oriented user interface.
How can I get the new interface of Tablet based on your a promoted?To test the tablet interface, you can either get the beta version from here:
https://play.Google.com/store/apps/details?ID=org.Mozilla.firefox_beta
or download the nightly build here Tablet:
https://wiki.Mozilla.org/mobile/platforms/Android#Tablet_Users
Maybe you are looking for
-
TEMPRO alerts - do I need?
As the hand says I need these? I have 5 wait, a few downloads of drivers etc... I don't really understand them!
-
I get from the people IM not in the contacts list
Hello How can I stop people IM not in my contacts list when my options are settled on "people"in my list of contacts only "?
-
Remote assistance from an XP machine on a Windows 7 computer does not work.
Remote assistance from an XP machine on a Windows 7 computer does not work. The connection expires whenever I try to connect. Any suggestions?
-
How to return to the factory settings obtained so much waste on my laptop I want to start
Have a lot of garbage on my laptop is so slow, but I have Virgin broadband, so I want to erase everything and start over.
-
How to add commands to the context menu for the types of files (add associations)?
I would like to download anime and re - encode standard dvd (mpeg2) format before you burn it to a DVD for better quality. I have a program suite that supports the grunt work, but to do a contextual menu command that calls the original batch file th