Identify the missing lines for the hierarchy
Oracle 10.2.0.1Windows XP
create table vill (identification number (5), area varchar2 (20), subarea1 varchar2 (20), subarea2 varchar2 (20), location varchar2 (20));
Insert in the vill values(1,'AREA1','SUBAREA1','SUBAREA2','AREA1');
Insert in the vill values(2,'AREA1','SUBAREA1','SUBAREA2','SUBAREA1');
Insert in the vill values(3,'AREA1','SUBAREA1','SUBAREA2','SUBAREA2');
Insert in the vill values(4,'AREA1','SUBAREA1','SUBAREA2','VILL1');
Insert in the vill values(5,'AREA1','SUBAREA1','SUBAREA2','VILL2');
Insert in the vill values(6,'AREA1','SUBAREA1','SUBAREA2','VILL3');
Insert in the vill values(7,'AREA1','SUBAREA1','SUBAREA2','VILL4');
-Before is a perfect set of lines because it has all the lines in the area, subarea1 and subarea2.
Insert in the vill values(8,'AREA2','SUBAREA1','SUBAREA2','AREA2');
Insert in the vill values(9,'AREA2','SUBAREA1','SUBAREA2','SUBAREA1');
Insert in the vill values(10,'AREA2','SUBAREA1','SUBAREA2','VILL5');
Insert in the vill values(11,'AREA2','SUBAREA1','SUBAREA2','VILL6');
Insert in the vill values(12,'AREA2','SUBAREA1','SUBAREA2','VILL7');
Insert in the vill values(13,'AREA2','SUBAREA1','SUBAREA2','VILL8');
Insert in the vill values(14,'AREA3','SUBAREA1','SUBAREA2','AREA3');
Insert in the vill values(15,'AREA3','SUBAREA1','SUBAREA2','SUBAREA2');
Insert in the vill values(16,'AREA3','SUBAREA1','SUBAREA2','VILL9');
Insert in the vill values(17,'AREA3','SUBAREA1','SUBAREA2','VILL10');
Insert in the vill values(18,'AREA3','SUBAREA1','SUBAREA2','VILL11');
Insert in the vill values(19,'AREA3','SUBAREA1','SUBAREA2','VILL12');
Insert in the vill values(20,'AREA4','SUBAREA1','SUBAREA2','SUBAREA1');
Insert in the vill values(21,'AREA4','SUBAREA1','SUBAREA2','SUBAREA2');
Insert in the vill values(22,'AREA4','SUBAREA1','SUBAREA2','VILL13');
Insert in the vill values(23,'AREA4','SUBAREA1','SUBAREA2','VILL14');
Insert in the vill values(24,'AREA4','SUBAREA1','SUBAREA2','VILL15');
Insert in the vill values(25,'AREA4','SUBAREA1','SUBAREA2','VILL16');
commit;
Select * from city;
ID AREA SUBAREA1 SUBAREA2 LOCATION
---------- -------------------- -------------------- -------------------- --------------------
1 AREA1 SUBAREA1 SUBAREA2 AREA1
2 AREA1 SUBAREA1 SUBAREA2 SUBAREA1
3 AREA1 SUBAREA1 SUBAREA2 SUBAREA2
4 AREA1 SUBAREA1 SUBAREA2 VILL1
5 AREA1 SUBAREA1 SUBAREA2 VILL2
6 AREA1 SUBAREA1 SUBAREA2 VILL3
7 AREA1 SUBAREA1 SUBAREA2 VILL4
8 AREA2 SUBAREA1 SUBAREA2 AREA2
9 AREA2 SUBAREA1 SUBAREA2 SUBAREA1
10 AREA2 SUBAREA1 SUBAREA2 VILL5
11 AREA2 SUBAREA1 SUBAREA2 VILL6
12 AREA2 SUBAREA1 SUBAREA2 VILL7
13 AREA2 SUBAREA1 SUBAREA2 VILL8
14 AREA3 SUBAREA1 SUBAREA2 AREA3
15 AREA3 SUBAREA1 SUBAREA2 SUBAREA2
16 AREA3 SUBAREA1 SUBAREA2 VILL9
17 AREA3 SUBAREA1 SUBAREA2 VILL10
18 AREA3 SUBAREA1 SUBAREA2 VILL11
19 AREA3 SUBAREA1 SUBAREA2 VILL12
20 AREA4 SUBAREA1 SUBAREA2 SUBAREA1
21 AREA4 SUBAREA1 SUBAREA2 SUBAREA2
22 AREA4 SUBAREA1 SUBAREA2 VILL13
23 AREA4 SUBAREA1 SUBAREA2 VILL14
24 AREA4 SUBAREA1 SUBAREA2 VILL15
25 AREA4 SUBAREA1 SUBAREA2 VILL16
25 rows selected.
Power required: ID AREA SUBAREA1 SUBAREA2 LOCATION
---------- -------------------- -------------------- -------------------- --------------------
26 AREA2 SUBAREA1 SUBAREA2 SUBAREA2
27 AREA3 SUBAREA1 SUBAREA2 SUBAREA1
28 AREA4 SUBAREA1 SUBAREA2 AREA4
Why?Because as I said above that rowset for the euro1 area is perfect because in the location column there are lines for the euro1, SUBAREA1 and SUBAREA2 area. is exists, whereas if we see that there are no lines for AREA2 with the value SUBAREA2 in the place, even regarding the Domain3, there is no line that has the value of the SUBAREA1 location and even for AREA4, there is no line as location = AREA4. It is a table which is having all the names of place with nested values; for example, we can see that vill7 is exist in zone2 including SUBAREA1 (COLUMN NAME) = "SUBAREA1" AND SUBAREA2 (COLUMN NAME) = "SUBAREA2", but I would like to know location = SUBAREA2 then it will say no line, I want to generate all the lines that is to have no value in the column location for said AREA/SUBAREA1/SUBAREA2 column. Table is sorted by ID. Total column lines are 45800.
SQL> select * from vill where area='AREA1' and location='SUBAREA1';
ID AREA SUBAREA1 SUBAREA2 LOCATION
---------- -------------------- -------------------- -------------------- --------------------
2 AREA1 SUBAREA1 SUBAREA2 SUBAREA1
OkSQL> select * from vill where area='AREA2' and location='SUBAREA1';
ID AREA SUBAREA1 SUBAREA2 LOCATION
---------- -------------------- -------------------- -------------------- --------------------
9 AREA2 SUBAREA1 SUBAREA2 SUBAREA1
It is also ok, but if saidSQL> select * from vill where area='AREA2' and location='SUBAREA2';
no rows selected
< <-Yes, this line I want to generate, because there should be a line whose location = "SBUAREA2" but why? Because otherwise how do I know what is the hierarchy of the SUBAREA2; While vill 5,6,7 and 8 were SUBAREA2 as "SUBAREA2".I'm not sure how I am clear in my question, please let me know if I need to provide more details.
Thank you.
user12050217 wrote:
... query should return:ID AREA SUBAREA1 SUBAREA2 LOCATION ---------- -------------------- -------------------- -------------------- -------------------- 131 my state my city my city street 2
Sorry, I don't understand that one line. Was it a mistake? I think I understand all the other lines that you want to, but I do not understand why you want the one above. Did you mean
ID AREA SUBAREA1 SUBAREA2 LOCATION ---------- -------------------- -------------------- -------------------- -------------------- 131 my state my city street 2 street 2
?
If this is not the case, why you don't want the row immediately above? Why don't you also:
` ID AREA SUBAREA1 SUBAREA2 LOCATION
---------- -------------------- -------------------- -------------------- --------------------
131 my state new city new city street 2
?
Assuming it was just a mistake, the following Gets the results you want
WITH rows_needed AS
(
SELECT area
, area AS subarea1
, area AS subarea2
, area AS location
FROM vill
WHERE area != subarea1
OR area != subarea2
OR area != location
UNION
SELECT area
, subarea1
, subarea1 AS subarea2
, subarea1 AS location
FROM vill
WHERE subarea1 != subarea2
OR subarea1 != location
UNION
SELECT area
, subarea1
, subarea2
, subarea2 AS location
FROM vill
)
SELECT (
SELECT MAX (id)
FROM vill
) + ROWNUM AS id
, area, subarea1, subarea2, location
FROM rows_needed
WHERE (area, subarea1, subarea2, location)
NOT IN (
SELECT area, subarea1, subarea2, location
FROM vill
)
;
except that it is for an indefinite period including the ID will assign to what line. I guess that doesn't matter, as long as 130 to 137 numbers are used (or 131 to 138, if that is what you really want).
When I run your code on the table he returned me the desired output, but when I run it on my actual table that is having 45800 lines, then he messed up some results, because I think that in your code, I should mention the clause ORDER BY ID somewhere... Therefore, in this example I mention different IDS while inserting the lines. Your code worked very well because it is having only 25 rows with ID Ordered, while my actual table is to have 45800 lines in the table, there is no guarantee of ID ordered... so I think that its a problem with the order by clause, ID... but I don't know where I should put this clause
What is the significance of id? Is this just a unique key? That's, I guess that each line must have an id and two rows can have the same id, but, aside from that, it doesn't matter what line has which id.
The query I posted yesterday assumes that subarea1 and subarea2 were functionally dependent on the area. as in the example of data you posted yesterday. I see your last post that's not true, and which explains erroneous results.
As I said yesterday, if you are actually setting up new lines in the table, you must use a sequence to generate identifiers.
Tags: Database
Similar Questions
-
Hello
Asked me to do in control cloud 12 c,
""Repository queries EM to get the list of targets that did not target defined properties and therefore will not be members of groups identified by the hierarchy of administration.".
and I was looking for more information on how to do it but I can't find anything on the repository tables, and I can't find how to get this cloud control options.
Thank you
Matt
Management Group page, go to the Associations tab and click the target report unassigned
-
Enabling Shared nodes: Œuvres for 1 hierarchy, not the other?
I am trying to add a Shared member in my hierarchy, but she claims that she is not enabled. I activated this function that I am authorized to do so in the other version. Is this something simple that I'm missing for this hierarchy?
Must set the property of hierarchy of nodes in sharing allow True
-
identify the State of a new line created in VO before committing
Hello world
I use jdev 11.1.1.7.0
Is it possible to identify the State of a new line created in VO before committing (I mean that we can realize that this line is new without use of isDirty())
Habib
Concerning
Ashish Awasthi blogged about this earlier. I have used this method in all my projects since I found it, and it works fine.
http://www.awasthiashish.com/2014/04/performing-partial-rollback-undo.html
This code is the interesting part for your need:
public Integer getRowStatusTrans() {}
/ * Here the rank is variable reference in the collection, this expression returns an int value if it is
2 change
0-new
1 - unmodified
initialized-1-
*/
entityState bytes = this.getEntity (0) .getEntityState ();
return new Integer (entityState);
}
-
Important, I can't find the table of the hierarchy for Sony - for a research paper
Hello
Student and a PS3 gamer.
I need a chart of the hierarchy for Sony - for a research paper
I thank.
Hi J D,
Welcome to the community of Sony!
Unfortunately, the information on research in education or reports can be provided online. I recommend the book "MADE IN JAPAN", written by Akio Morita (our founder) as an excellent resource for the history of Sony and our products. You can also visit the following Web site for a detailed presentation of the history of the company:
http://www.Sony.net/SonyInfo/CorporateInfo/history/SonyHistory/
You can also view our annual financial report to:
http://www.Sony.net/SonyInfo/IR/financial/ar/index.html
If my post answered your question, please mark it as "acceptable Solution".
Thank you for your message.
-
I only need a port of each line for the use of the PFI and want to use the rest for the digital I/o. Before you complete the design of the circuit and test it myself, I would like to check it out. I can't find the answer in the textbooks, either.
Thank you
Ben
Hello Ben,
If you use all the PFI lines you can use the rest as DI/O. PFI0, 1, 2, 3, 8, 9, 10, 11 are entered digital and PFI 4,5,6,7,12,13,14,15 outputs digital. Another technique you can use is to create a spot on the measurement and Automation Explorer, if it allows you to create it, then it is possible.
Best regards
-
Identify the official gcc (or supported) version for a given version of Labview
As far as I know, there is no web page OR identify the official (or at least, taken in charge) gcc / g ++ version for a LabVIEW given output.
By "official version", I mean one that is binary compatible with LabVIEW executable file (i.e. the binary).
NOR must provide this information (as well as The Mathworks for Matlab). Here, here's a tip for vs information:
1. the cd in your install directory local labview (i.e. the binary labview where)
2. type the following command: strings. / labview | grep GLIBCXX
3. identify the GLIBCXX version (i.e. stdlibc ++) highest in the resulting list (say GLIBCXX_3.4.9 for LabVIEW 13)
4. open your favorite web browser and visit the gcc ABI policy and guidelines page
5. search for GLIBCXX identified in step 3 (which is GLIBCXX_3.4.9 in our case)
6. you should find something like: GCC 4.2.0: GLIBCXX_3.4.9
7 pray have the corresponding version of gcc (i.e. 4.2.0 here) installed on your host computer or, at least, to have the corresponding manual available for your platform
8. If step 7 fails, be prepared either: recompile the gcc version required, upgrade your operating system, or update your copy of LabVIEW
Hello
It depends on the operating system you are using:
http://zone.NI.com/reference/en-XX/help/371361G-01/lvhowto/compiling_cin_source/
For Linux of LabVIEW, you have a list of libstdc ++ supported:
http://digital.NI.com/public.nsf/allkb/4596349739E988088625761C005B197E
LabVIEW windows, is Microsoft Visual C++:
http://www.NI.com/white-paper/3056/en/
http://digital.NI.com/public.nsf/allkb/6229347C7982CC81862576E30076A4AE?OpenDocument
If you are using GCC reaaly, there are different workaround solution, withour support:
http://forums.NI.com/T5/LabVIEW/creating-a-DLL-including-Manager-support-in-MinGW-GCC/TD-p/633123
Best regards
-
Missing lines in print Outlook calendar, but not with the PDF printer
Hello
I bought a HP Officejet 6700 Premium [H711n], but from the beginning, when I print my weekly calendar in Outlook there are missing lines in each nomination.
My system:
The system is HP Officejet 6700 Premium (all updates, driver ver: 9.0.0, usbscan.sys worm: 6.1.7600.16385, HPScanTRDrv_OJ6700.dll worm: 25.0.614.0, HPWia2_OJ6700.dll ver: 24.5.276.0), and Windows 7 SP1 32 bit (all updates), as well as Microsoft Outlook 2007 SP3 (all updates). The system is connected to the printer via USB, no WiFi or so.
My problem:
When I print my weekly Outlook calendar with my new Officejet, the upper and the bottom lines in all appointments is missing. I did a few small arrows in the photo, to show that appointments block timelines. (see scan & Outlook screenshot).
(a) when I use my printer with Outlook to create a PDF file of my calendar, the exported PDF file is perfect. If I CAN open the PDF file with my Viewer and print calendar with my Officejet page, printing looks like it should look like. (see screenshot)
(b) my old man, but broke a LEXMARK C530DN printer, print the pages of the calendar always correctly.
My settings:
Given that I bought and installed the printer a few weeks ago, I changes nothing on the HP driver settings. It is plain vanilla. The problem was there from the beginning. I tried once to solve it by changing the quality of "normal" to "optimal", but it did not help, so I put it back.
Other printing problems:
No, everything worked except the Outlook calendar printing.
According to me, these are enough detail to reproduce the issue easily.
Any idea outside workaround with my pdf printer? Maybe there something wrong with the driver HP itself? (Just an idea...)
Best regards
Michael
Hi Raysy,
Still having problems? The suggestions helped?
Kind regards
-
How can I identify the name of the invisible file for a backup file successfully to an external hard drive USB2 separate? I use Windows Vista backup program (Service Pack 2), and I need to do backups plus two from other computers on the same external hard drive. To do this, I think I would need to identify each backup file separate I know which file to specify if I need to do a restore.
How can I accomplish this? The program does not seem to give me the ability to specify a file to which to write the backup during a given session files. In addition, I do not understand why I can not see the file name in Windows Explorer - my files options are defined to be able to view hidden and system. Would be grateful for any help you can provide, tonight if possible. Best regards, Oliver for Norm
Hello
See this link:
http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions
http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-or-change-automatic-backup-settings
http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-your-programs-system-settings-and-files
-
The tools of command line for applications Android download problem
Hello
I can't download 'Tools of command line for Android applications' Web of BlackBerry site. When I click on the blue download button with label 'Tools command line for Android applications' in the Tools section, browser updates the website tools and nothing more.
ARO
Maciek
Hi again,
Problem solved. A few hours later, I downloaded tools successfully.
ARO
Maciek
-
Identify the Version of the hotfix in ACS for Windows 4.2
Hi guys,.
I need to identify the good patch Version in a customer ACS for Windows 4.2
How can I do this task?
In the page, I can't find any reference to patch
My best regards,
André Lomonaco
It will show also from my experience you PATCH version, here's another thread that said click on the Cisco logo, let me know if it works for you or not.
https://supportforums.Cisco.com/thread/1003509
Thank you
Tarik Admani
* Please note the useful messages *. -
Not able to see the members of the hierarchy replacing Smartview for database planning
Hi all
I'm not able to see the other hierarchy in smartview for the planning application which connect smartview is planning (installation is the hierarchy)
However, I was able to learn the other hierarchy via smartview with essbas connection
and I have also able to see through a web planning structure.
Help, please
Kind regards
VT
Yes, it is a known problem in Hyperion planning. If you are drilling on the grid itself, it will show however.
Mark the thread as correct if that is what you are looking for.
-
Does SOUL used in combination with the hierarchy of position for purchase requisitions
Hello
We use the hierarchy of position for purchase requisitions.
Can we use management engine approval in combination with the hierarchy of existing post for purchase requisitions for workflow routing more flexible?
Kind regards
Natalia
Hi Natalia,
Using hierarchy Position in the SOUL is supported only in R12, please refer to the following document:
Using SOUL, creating approval routing at a certain Position in the hierarchy of Position HR [ID 1501433.1]
Hope this helps,
Please, if this response has answered/solved your question/query, please mark it as correct or useful to facilitate the correct answers to the members of the community.
-
Hi Sarah!
I solved it! I had to use the original URL shorter links to create
functional hyperlinks or try to short the links using Google URL Shortener.
I don't know why it worked by doing this, but he did!
With the friendly and happy greetings!
Sonny. A
2015-11-24 9:32 GMT + 01:00 aadeshs76610910 [email protected]>:
You talked
by aadeshs76610910
https://forums.Adobe.com/people/aadeshs76610910?et=notification.mention> * in
Re: A few hyperslinks in the exported PDF file takes the Viewer to
pages "broken/missing. For example specific Hypertext to Youtube videos links
does not work, they will bring to a youtube page is missing. in Adobe
Community *-view aadeshs76610910 you reference
https://forums.Adobe.com/message/8209923?et=notification.mention#8209923>
-
Hello. I would be eternally grateful if someone can help me identify the processors will work with my system.
The HP site says that my system supports up to Pentium 4 Hyper Threading 3.8 GHz processor.
The main reason is if I install Windows7 operating system.
I bought a CPU on eBay but it does not work when it was inserted. When you turn on the PC, no light illuminates and the system does not start. When you look at the inside of the case of the processor cooling fan works, but that's all. No lights or anything else, not even the fan starts.
The processor is a Pentium 4 HT 661 SL96H 3.6 GHz 2 MB 800 MHz LGA775
My system is...
Compaq Presario SR1339uk
Serial number: {removed privacy}
System number: PS267AA
Motherboard: Asus PTGD1 - LA
Chipset: I915P Northbridge
Southbridge ICH6 Intel i/o Controller Hub 6
BIOS version: 3.28 23/01/06
Operating system: Windows XP Home Edition 32-bit
Any help much appreciated... Thank you...
Sorry for not being clear. I mentioned all processors in HT 6 series like 64-bit processors supported.
Maybe you are looking for
-
cable modem-wireless combination or not?
Hi, I'm going to switch from DSL to cable T - W (the only option in my building). I have an Airport Extreme on my TimeCapsule (it is the 500 GB disk version), that I use with my laptop. The iMac is connected to the router. I looked around at best buy
-
No update OS on Alcatel One Touch fire
The version of the OS on my Alcatel OTF is 1.1.0.0 - prerelease.If I understand the update of the OS is pushed by my phone provider (Alcatel).I have to be patient with the OS updates, or is there something wrong with the system?Can anyone give inform
-
I had my 2 Atrix in less than a month ago and there after I did the update OTA ICS. I noticed that after the updated ICS up-to-date CPU is back to his own clock speed is to say 1, 2 GHz and not speed underclocked then usual IE 1 GHz. But this had tak
-
Recovery (F11) does not
Looking to reinstall Vista on my IdeaPad Y530 and pressing F11 when restarting has no effect. Background: (1) I had installed ubuntu in dual boot, whose reading other posts can interfere with recovery (2) the product code for windows vista on the bot
-
Regarding the 8 Developer Preview window
Hello Sir, It came I used window Developer 8 in my laptop but its why not active. my friend has also install overview Developer window 8 in our laptop and his show of activated window but not activated why. can you tell me how to activate the window