Query based recovering on the previous and after lines... pls help
CREATE TABLE "POP"."RP06"
( "NUM" NUMBER(7,0),
"SEQ_LINE" NUMBER(7,0),
"CHMP" VARCHAR2(4000 BYTE)
)
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,1,'( ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,2,'ORACLE IS GREAT');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,3,'AND ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,4,'ORACLE IS GREAT');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,5,'OR ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,6,'ORACLE IS GREAT');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,7,'AND /*4*/ ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,8,'ORACLE IS GREAT');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,9,'OR ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,10,'ORACLE IS GREAT');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,11,'AND ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,12,'ORACLE IS GREAT');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,13,'OR ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,14,'ORACLE IS GREAT');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,15,'OR ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,16,'ORACLE IS GREAT');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,17,'AND ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,18,'ORACLE IS GREAT');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,19,') ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,20,'AND /*10*/ ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,21,'ORACLE IS GREAT');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,22,'AND /*11*/ ');
Insert into RP06 (NUM,SEQ_LINE,CHMP) values (100,23,'ORACLE IS GREAT');
After inserting the lines I want to extract the lines as follows1 Select the chmp which satisfies the condition if the chmp has previous row is 'AND' * and rank according to 'OR' * example: chmp with seq_line 4 that has precedent 'AND' seq_line 'GOLD' in seq_line and 3 5. then retrieve the 4th seq_line chmp.
(CHMP WITH 8,12 SEQ_LINE ARE other EXAMPLES)
(2) select the chmp which satisfies the condition if the chmp has previous row is * "GOLD" and the next row "AND."
example: chmp with 10 seq_line who has previous "OR" in seq_line 9 and 'AND' in seq_line 11. then retrieve the 10th seq_line chmp.
(CHMP WITH 6.16 SEQ_LINE ARE other EXAMPLES)
Kindly help
S
OK, this is # 1:
select num, seq_line, chmp
from (
select num, seq_line, chmp,
lag(chmp) over (partition by num order by seq_line) prevchmp,
lead(chmp) over (partition by num order by seq_line) nextchmp
from rp06
where num=100
)
where prevchmp like 'AND %'
and nextchmp like 'OR %';
NUM SEQ_LINE CHMP
---------- ---------- --------------------
100 4 ORACLE IS GREAT
100 8 ORACLE IS GREAT
100 12 ORACLE IS GREAT
and for #2:
select num, seq_line, chmp
from (
select num, seq_line, chmp,
lag(chmp) over (partition by num order by seq_line) prevchmp,
lead(chmp) over (partition by num order by seq_line) nextchmp
from rp06
where num=100
)
where prevchmp like 'OR %'
and nextchmp like 'AND %';
NUM SEQ_LINE CHMP
---------- ---------- --------------------
100 6 ORACLE IS GREAT
100 10 ORACLE IS GREAT
100 16 ORACLE IS GREAT
------
[edit]
Seeing how many answers you all of a sudden, you realize how to order the issues in the case.
;)
Tags: Database
Similar Questions
-
Dear Adobe, I've updated my account, my payment charged 2 times 1 EUR and still I can't access the PS and LR! Pls help me to find a contact in the customer service! Much thanks! Rita Frei
Go to Adobe Creative Cloud
Hi Rita,.
For 1 EUR costs please see Adobe Store | Order FAQ and your online payment
You will need to contact support by calling/chat for this request.
* Be sure to stay connected with your Adobe ID before accessing the link above *.
Kind regards
Sheena
-
When I close my laptop running 2 files and when I do the closing and after that I open the screen is white... what I need to do?
Hello
Let us try these methods and check if that helps.
Method 1.
You can try the last good known Configuration and check if that helps.
Using the last good known Configuration: http://windows.microsoft.com/en-in/windows7/using-last-known-good-configuration
Method 2.
You can use the restore points for Windows 7 to return to a previous state, when your computer was working properly.
System Restore: http://windows.microsoft.com/en-us/windows7/products/features/system-restore
Important: System Restore will return all system files not as documents, email, music, etc., to a previous state. These files of types are completely affected by the restoration of the system. If it was your intention with this tool to recover a deleted file to non-system, try using a file instead of system restore recovery program.
Let us know if you need assistance with any Windows problem. We will be happy to help you.
-
How to stop Firefox 18 to restore the previous Session after a Crash
Firefox 18.0.1 running on Windows 7
When Firefox crashes, the next time it opens it tries to restore the previous session. I don't want Firefox to restore the previous session after a crash. How can I stop Firefox restore the previous session after an accident?
Please note:
1 - my homepage is set to 'white page '.
2. I configured Firefox does NOT remember my browsing history, download history, form fields, and passwords.
3 - even in Safe Mode (with all disabled add-ons), Firefox ALWAYS restores the previous session after a crash.Thanks a lot for your help. I hope that my vote immerses you in the category "TOP 9".
-
Hello I have a macbook pro 2011 and in a few days I had my swelling of the battery and after that I ordered a new and only for a day, it uses my new battery began to swell again, what could be the problem? Help me, I am a student that I can't do it by new
is it because of power problems?
Take it back to the Apple Store and ask them to check it out. It should be under warranty. Bring the MBP along too. It sounds like there might be a problem with it.
-
Which is the best graphic card (fromNvidia) for the first and after?
Hello, that is the question.
Which is the best graphic card (fromNvidia) for the first and after? In order to improve the performance of preview and rendering time.
It's the Gtx 970 good enough? or do I have to go to the 980ti?
Is there any other better Nvidia in both these needs?
I have these specs and I work in Full HD:
I7 4900, 32 GB of ddr3 memory, ssd.
Thank you in advance.
I don't know about these two maps first, but AE the GPU makes very little difference at all.
The current version of AE uses the GPU to very little. The ray-traced rendering engine is the only great thing that AE uses the GPU and this feature is now considered obsolete.
That being said, if you are using third-party plugins for AE using the GPU (as, for example), it's a different story. For the element, I heard that the 970 GTX is the best bang for your buck; the 980-up would not be worth the price difference.
-
Hello, I tried to update Acrobat version, he told me to unistal previous, I did, I also rebooted my mac etc and still the message said to uninstall the previous version, thanks for your help as soon as possible!
Hi AtomAtelier,
Please send us the screenshot of the exact error message that appears.
Also, please tell me which version of reader that you want to install and on which operating system.
Please try to install Adobe Reader from the link below:
http://get.Adobe.com/reader/Enterprise/
Let me know how it goes.
Kind regards
Ana Maria
-
Since El Capitan update that I can't use my secondary monitor as a full screen preview on the first and after the effect CC 2015
I also have this problem. I was told that it is a bug, they work.
-
Keyboard shortcut for "next" and "previous image", or the previous and following layers
Hello
I host and I like drawing with Photoshop paint tools, but to animate I need to "flip" - which is just quickly move from one drawing to the next, as you would with sheets of paper size: hunting and clicking the arrows is not feasible.
Shortcut keys, or assignable buttons for previous and next images in the animation - or, more simple, for the previous and following layers function keys - would solve this problem completely. This improvement could make Photoshop a viable animation program, in competition with paper plastic and Flipbook Animation.
Is there at least a way I can download an add-on that would do this?
Thank you
Joe
Do you mean something like:
http://help.Adobe.com/en_US/Photoshop/CS/using/WSF7DD9B60-7866-4F01-915e-DE39F672E418a.htm l
http://help.Adobe.com/en_US/Photoshop/11.0/WSF7DD9B60-7866-4F01-915e-DE39F672E418a.html
-
At the opening of the library of photos, each photo turn the black thumbnail and so that to open it. Preview also does not have photos properly. I tried to repair the library and this did not help. Could this be a problem with the RAM? Help, please!
Check, if pictures can access the original files of your pictures, or if the originals are missing.
You can test to try to edit a photo or trying to export it with "file > export > export original file..."
Photos can be edited or exported?
Shooting Raw or JPEG? Where your photo library is stored? On an external disk or in your pictures folder?
-
I don't have the basic games that windows comes with and also miss me the contacts and calendar. Please help someone. I had windows 7 through my school, which is outside the MSDN program.
Programs like Contacts and calendar are available in Windows Live Mail through Windows Live Essentials (http://download.live.com)
In regards to the games, I assume that you are running Windows 7 Professional.
Click Start, type: features on or off Windows activate
Develop games
Select the games you want. Andre Da Costa http://adacosta.spaces.live.com http://www.activewin.com -
I posted a question can not find the question and or response. Help, please
I posted a question can not find the question and or response. Help, please
AFAIK, you can't share a catalog like this.
The only recommended method is to store your images and catalogue on an external drive, you can alternatively plug in both computers.
With today the external USB drives, the speed is still correct, and many users are satisfied with this solution.
-
I work with InDesign CS6, Windows 7.
Is it possible, using nets of paragraph, to create a heading with shading behind the text and fine lines above and below the text?
I would like to create headers that resemble these:
Thank you!
A way to create a style of stoke (Stripe type) with a small percentage of height up and downstairs dedicated to scratches, then apply the color out in the dialog whn would you apply the contour to your net of paragraph style. The downside to this is that the 'weight' of the two lines can vary when you change the weight of the actual race.
To avoid this and still be able to ge the fill to expand the width of column, you can use a 1-cell table, or you could use rules above and below and underscore cutom for filling and key line with a tabulation of withdrawal right. If you need space on the left, as shown in the illustration, you would probably need a tab on the left as well, instead of a dash.
-
Crash when export - I tried to export my sequence first and SOUL and it crashes - Pls help.
Crashing during export - I tried to export my sequence containing several first clips and SOUL and it crashes - Pls help.
Need someone to help... more information please click below and provide the requested information
-Premiere Pro video Editing information FAQ http://forums.adobe.com/message/4200840
-
Windows 7 Image Backup - where can I find the previous image after new backup?
My previous hard drive died, and I replaced it.
Good news: I did a backup of the system before the death of completed HDD. The image is under "WindowsImageBackup" folder on my external drive.
Then I replaced the HARD drive, picked up at the factory reset.
Before restoring the image backup, I took a step extra stupid: I thought that I should save its current state before as I have restore the previous state in case any thing wrong, so I started to sign--> system and security--> backup and restore--> backup now
Bad news: the new backup image sub-folder of "WindowsImageBackup" even erased my previous image! They have different timestamps, so different names, but the previous image has disappeared after a new creation. In fact, I killed the new backup process immediately after that I was disappearing from the previous image. He has not finished, but I can't find my previous image!
BTW, there is a lot of space on my drive. It is only 20% used!
Are there ways I can retrieve my previous image?
BTW, I use Windows 7 Home Premium. By default, all parameters are as I do factory reset.
Suggestions and help is very appreciated!
Hello
With the publication of the description, I understand that you have accidentally deleted the system image backup file. I've certainly you will help answer your query.
I wish to inform you that there is no way to get the previous system back image - which has already been replaced however, you can try a few steps to get the old image to the top, although there is no guarantee that it will work but still, you can try and see if it helps.
First of all, I suggest you to rename the WindowsImageBackup to WindowsImageBackup. Old then follow the screenshot and select the option highlighted in yellow color select another backup to restore files of.
Hope that this help, please write us back for any further assistance on this point, we will be happy to help you further.
Maybe you are looking for
-
Error and warning before and after the POST - Satellite M40X 129
Hello I use a Satellite M40X-129, bought in 2005.After you have reinstalled Windows and all the necessary drivers (after more than 3 years, which was the longest time I used a windows ;-)) installation this afternoon, I meet the following situation w
-
HP EliteBook 8440p: memory modules RAM that actually work for HP EliteBook 8440p?
Hi everyone again. I scoured these forums and others and can't find a definitive answer to the upgrade of my RAM memory. My system: HP EliteBook 8440p 2.8 GHz Intel Core i7 M640 Professional Win7 64 bit 133 MHz bus clock BIOS: HP 68ccu, worm. F.11 (2
-
My windows firewall is missing, how can I get another?
I use essentials security on an old PC with XP - SP3, I was informed that "for some unknown reason windows cannot open the file of firewall", a search for 'Windows Firewall' pulled up an empty folder and when searching for "firewall" there are severa
-
I need to add more memory on my c of the portion partitioned drive.
After partitioning my hard drive into different portions how can I urechi an amount of memory for different players.
-
VEM download link missing in ucsm 2.1
where is download link for cisco vem he software? It used to be on the 2.0 ucsm. but after the upgrade, I no longer see which are available on the page ucsm.