Connect by - assign to group the Address_id or company Ein
Hello members, can you please help identify groups,.
We can put a record in a particular group if it is bound by address_id or Ein. Please see the explanation below with example.
Oracle Version Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
WITH Tmp
AS (SELECT Person_id 100,
16-0743187' EIN,
Address_id 74155194
OF THE DOUBLE
UNION ALL
SELECT Person_id 100,
16-0743187' EIN,
Address_id 74890031
OF THE DOUBLE
UNION ALL
SELECT Person_id 100,
23-7339397' EIN,
Address_id 74155194
OF THE DOUBLE
UNION ALL
SELECT Person_id 100,
36-4392671' EIN,
Address_id 74890031
OF THE DOUBLE
UNION ALL
SELECT Person_id 100,
23-7339397' EIN,
Address_id 174211535
OF THE DOUBLE
UNION ALL
SELECT Person_id 100,
36-4392671' EIN,
Address_id 174211536
OF THE DOUBLE
UNION ALL
SELECT Person_id 100, 23-7339600' EIN, Address_id 999
OF THE DOUBLE
UNION ALL
SELECT Person_id 100, 36-7339601' EIN, Address_id 999
THE DOUBLE)
SELECT DISTINCT a.*, LEVEL
OF tmp one
CONNECT NOCYCLE Person_id = Person_id PRIOR
AND (EIN = EIN PREREQUISITE OR Address_id = Address_id PREREQUISITE);
Since the lower results
Record 1 and 2 are connected by the ADDRESS_ID, and it has no other connection to other records based on address_id or Ein, so they are assigned to a group (random number)
File 3 and 4 are connected by EIN.
Form 5 is related to folder using Address_id 3
Form 6 is related to the record 4 using Ein
Form 7 is linked to the plug 6 using Address_id
Form 8 is related to the 7 using Ein folder
so the Chronogram of 3-8 is assigned to a group (random number)
Required results
PERSON_ID EIN ADDRESS_ID GROUP
100 999 36 - 7339601 1
100 999 23 - 7339600 1
100-23 - 7339397 74155194 2
100-23 - 7339397 174211535 2
100 16 - 0743187 74155194 2
100 16 - 0743187 74890031 2
100 74890031 36 - 4392671 2
100 174211536 36 - 4392671 2
Hello
Here's one way:
SELECT person_id, ein, address_id
DENSE_RANK () OVER (ORDER BY person_id
MIN (CONNECT_BY_ROOT address_id)
) AS the grp
OF the tmp
Person_id CONNECT BY NOCYCLE = person_id PRIOR
AND (ein = ein PRIOR
Address_id = address_id PREREQUISITE OR
)
GROUP BY person_id, ein, address_id
ORDER BY grp
;
This query uses CONNECT_BY_ROOT to find all the rows that are associated with other lines.
MIN lowest of the related address_ids gets, so the combination of the lowest unique address_id and person_id identifies each group.
DENSE_RANK converts these identifiers of single group consecutive whole nice.
Tags: Database
Similar Questions
-
Windows Xp node fails to connect to another computer on the Working Group, but individually can connect another computer.
I checked the file & sharing options of printer being checked on the general tab.Hello
1. did you of recent changes on your system prior to this problem?
2. where you able to connect to other computers through the front working group?
3. do you get an error message?I suggest you try the procedure described in the below mentioned link and check if it helps.
You cannot access shared files and folders or browse computers in the workgroup with Windows XP:
http://support.Microsoft.com/kb/318030Hope this information is useful.
-
When I'm connected to my home group, so I could share a printer. Everything was wonderful, but I get a flashing message indicating 'bidirectional support is disabled. It is in the printer properties, or perhaps something that should be changed also? I checked everywhere I know to turn it on, but I'm starting to think that I am interested in this problem the wrong way. Can anyone help? Oh, the printer is a Kodiak 9200 and connected via usb.
Thank you
RavenThe following can help (note also the Note at the bottom that says you need to do from computer connected via USB): http://support.en.kodak.com/app/answers/detail/a_id/1294/selected/true
-
Hi, I try to connect to hotmail and received the following message ' sorry, there's a problem with Hotmail right now Hotmail was not able to complete this application. Microsoft may contact you about any matter that you declare "what steps should I take as I have urgent e-mail to check." THX
Hello
Looks like a temporary problem.
Answers is a peer group supported and unfortunately has no real influence on Hotmail.
HotMail has its own Forums, so you can ask your questions there.
Windows Live Solution Center - HotMail - HotMail Forums Solutions
http://windowslivehelp.com/Hotmail - Forums
http://windowslivehelp.com/forums.aspx?ProductID=1Hotmail - Solutions
http://windowslivehelp.com/solutions.aspx?ProductID=1How to contact Windows Live Hotmail Support
http://email.about.com/od/hotmailtips/Qt/et_hotmail_supp.htmWindows Live Hotmail Top issues and Support information
http://support.Microsoft.com/kb/316659/en-usError message "your account has been locked" when trying to connect
http://windowslivehelp.com/thread.aspx?ThreadId=77be7d82-a0e9-49c7-b46d-040ec654a9e2Compromised account - access unauthorized account - how to recover your account
http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41Hotmail hacked? Take these steps
http://blogs.msdn.com/b/securitytipstalk/archive/2010/07/07/Hotmail-hacked-take-these-steps.aspxI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
Error number: 0x80072EFF (unable to connect?) Impossible to update the SP
Hello
OK where to start! should start by saying that I was (not so) recently hit with a fake 'antivirus' Trojan horse who seems to have caused the effects of training on my pc. no doubt I've caused problems myself while trying to remove it!
in any case, I am currently not able to be updated to SP 3. automatic updates (even if enabled) is not working and when I try an update manually via the ms site I get the above error. I understand that this error means could not connect to server - Yes?
If Yes, this is symptomatic of a problem persisting, I have with IE doesn't work usually does not as it should - connection problems show that other browsers can connect without a problem. the same problem also keeps me update of IE.
can you please help?
brand
You see the effects of a hijackware infection, probably one of long date since you do NOT have a functional application of the antivirus installed (and you apparently disabled the automatic updates).
See...
Cleaning a compromised system
http://TechNet.Microsoft.com/en-us/library/cc700813.aspxPersonal data backup (which none should be considered 100% reliable at this point) then format the HARD disk and do a clean install of Windows. Please note that a repair installation (upgrade AKA on-site) will NOT fix it!
HOW to do a clean install of Windows XP: see method 1 and http://michaelstevenstech.com/cleanxpinstall.html#steps in http://support.microsoft.com/kb/978307
After the new installation, you will have the equivalent of a "new computer" in order to take care of EVERYTHING on the next page before connecting the machine to the internet or one local network (i.e. other computers) AND BEFORE to plug in a flash, SD card, or any other external drive to the computer otherwise:
4 steps to help protect your new computer before going online
http://www.Microsoft.com/security/pypc.aspxOther useful references include:
HOW to get a computer that is running Windows XP Gold (no Service Pack) fully patched (after a clean install)
http://groups.Google.com/group/Microsoft.public.windowsupdate/MSG/3f5afa8ed33e121cHOW TO get a computer that is running Windows XP SP1 (a) or SP2 fully patched (after a clean install)
http://groups.Google.com/group/Microsoft.public.WindowsXP.General/MSG/a066ae41add7dd2bTip: After completing the computer fully patched, download/install KB971029 manually before connecting any player external to the computer:http://support.microsoft.com/kb/971029
NB: No matter what Norton or McAfee free trial which is preinstalled on the computer when you bought will be reinstalled (but invalid) when Windows is reinstalled. You MUST uninstall the trial for free AND download/run the removal tool appropriate prior to installing the updates, Windows Service Packs or IE upgrades AND BEFORE installing your new anti-virus application (which will require WinXP SP3 must be installed).
Norton Removal Tool
FTP://ftp.Symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exeMcAfee Consumer product removal tool
http://download.McAfee.com/Products/Licensed/cust_support_patches/MCPR.exeSee also:
Risks & benefits of P2P file sharing
http://www.Microsoft.com/protect/data/downloadfileshare/filesharing.aspx
http://blogs.technet.com/MMPC/archive/2008/10/06/the-cost-of-free-software.aspxMeasures to help prevent spyware
http://www.Microsoft.com/security/spyware/prevent.aspxMeasures to help prevent computer worms
http://www.Microsoft.com/security/worms/prevent.aspxAvoid fake security software!
http://www.Microsoft.com/security/antivirus/rogue.aspxIf you need additional assistance with the clean install, please start a new thread in this forum: http://social.answers.microsoft.com/Forums/en-US/xprepair/threads
If these procedures look too complex - and there is no shame in admitting this isn't your cup of tea - take the machine to a local, good reputation and stand-alone computer (that is, not BigBoxStoreUSA or Geek Squad) repair facility.
Wish I had better news for you. Good luck!
~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft
-
XP key wep changes for new router linksys after the connection. you need to reinstall the WEP every time you start from the top.
Hello
Let us perform the steps below and check out them.
a. click "Start," "Control Panel", then "Add or Remove Programs". In the box "Currently installed programs", find the name of your wireless router. Click on the name of the software, and then click 'remove '. Click 'Yes' when prompted to confirm.
b. click "Start" then "run". Type "Services.msc" and click "OK". Select 'Wireless Zero Configuration'. Click on 'start '.
c. click 'Action', 'properties '. In the drop-down menu "Startup Type", click on the arrow and select 'Automatic' to assign the commissioning of automatic Wireless Auto Configuration. Click on 'OK '.
d. restart your computer.
e. right click on "Wireless connections" icon Select "View available wireless connections." Click on "change the order of preferred networks. Select the name of your network, and then click "Properties". Erase the old key and enter a new. Click the checkbox next to "Automatically use that key." Click on 'OK '.I hope this helps.
Thank you, and in what concerns:
Shekhar S - Microsoft technical support.Visit our Microsoft answers feedback Forum and let us know what you think.
If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly. -
Rick2425
When I try to start the Remote Access Connection Manager in services.msc, the service will not start. I get the same error: "Windows could not start the service of connection manager on the local computer remote access: Error 1068: the dependency service or group could start." Also, I can not restore the system to come and let me run it.
It is a Dell PP31L, which belongs to a friend who does not connect to the internet because of these error messages.
Hello Rick2425
See the thread below and let me know if it helps thanks.
http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-networking/error-1068-remote-access-connection-manager/b5155a8a-671e-4d11-8a99-deadc7aee8a1
-
Original title: printer is offline
using Windows 7 and 8.1 of Windows via a shared house group the WF-2540 Epson printer is off line. This printer uses with two PCs using Windows 7 and a PC using Windows 8 with no problems. Today it usually just printing using 1 PC with 7-1 8. It is connected to the PC works well. This isn't wired wireless we have wireless at the office. Use this way for years with no problems, then suddenly this morning its all stopped. I read so much information on it with no satisfactory response. Epson will not know that it is not connected via radio or directly with a PC, so I'll through in circles.
I reinstalled the PC on Windows 8 PC nothing works. Any suggestions as to what I can try next as business has ground to stand without the printer!
Thank you
Hello
Thank you for visiting Microsoft Community.
I suggest you to post your query on our TechNet Forums social as this question right here.
Please refer to the reference to the link below to send your request:
https://social.technet.Microsoft.com/forums/Windows/en-us/home?Forum=w7itpronetworking
Sincerely,
Ankit Rajput
-
Windows 7 64 bit Pro connects to SQL Server on the Windows Server 2008 R2 Standard domain
I put upgraded to Windows 7 Professional computers to Windows XP Professional, but I have a problem with getting one of software programs management of stock that allows us to connect to our SQL Server 2008 R2 Standard Windows on new Windows 7 computers.
Our computers are connected to a domain, and therefore SQL Server. Computers Windows XP allows each user to standard domain to connect and to connect to SQL Server via the stock management software.
But on the standard domain of Windows 7 Pro computer users unable to connect to SQL Server, but administrator accounts of area on the same Windows 7 Pro computers can connect to SQL Server through the inventory control program.
I have set up the alias of the server, the server name and port number via the SQL Server Client Network utility (
cliconfg.exe
) so I know this isn't the problem because it works when I'm logged on as a domain administrator.There seems to be something to do with permissions of user domain and Windows 7 Pro. There seems to be a change from Windows XP Pro to Windows 7 Pro that does not allow standard domain users to connect to a SQL Server. But I can't find anything about and cannot practice how to solve this problem, except to make all users, domain administrators that is obviously not a good thing to do. So basically I think I need to create a group policy that allows users to connect to SQL Server, but I have no experience in doing this and don't know where to start.
Thank you for all that you guys help and I hope someone can give me the solution to this problem.
This issue is beyond the scope of this site and must be placed on Technet or MSDN
-
Can wireless and wired network connections to co-exist on the same pc?
My new desktop pc of Windows 7 has a Wireless N adapter, but given that the router is located next to I prefer to use a wired connection. When I enabled both, I noticed that the pc was connected wireless, so I disabled the wireless card and connected via wired LAN.
I was wondering if there is any way to keep active both and put in place for the wired connection is a priority, and the wireless connection is used automatically when there is no wired connection?
When more than one network connection is available, Windows uses the one with the lowest metric value. By default, it automatically assigns a metric value based on the rated speed of the network connection. For more details, please see an explanation of the routes Internet Protocol Automatic Metric feature .
To force Windows to use a specific network connection, assign a metric value to each of them, giving the lowest value to the desired connection:
- Press the Windows key + R , type ncpa.cpl in the box, and then click OK .
- Right click on the desired connection.
- Click on Properties > Protocol Version 4 (TCP/IPv4) Internet .
- Click on Properties > advanced .
- Uncheck Automatic metric .
- Enter a number between 1 and 9999 for the Interface metric .
-
If anyone has experience with this, I would appreciate the help. I have tried everything I can find for three days, and it still does not. I think I have a problem of local authentication on the Agent of the view. The user is included in the Remote Desktop user group and the view group Agent direct connection to users. There is no errors in the event logs, but there are errors in the logs VDM. The suspect is the user 'WIN7B\user' unauthorized (non-local admin). I can't find a solution to solve this error. The firewall is disabled.
Symptoms: Horizon View Client makes the initial connection logon sound, black screen, time-out. User is logged on to the remote computer after failure of connection of Horizon view, then part of the logon process ends.
Capture of logs on the Agent computer:
2015-12 - T 11, 14: 21:16.102 - 06:00 DEBUG (04DC-0E10) < MessageFrameWorkDispatch > [MessageFrameWork] added worker MessageFrameWork, Name = PCoIPVChan-APP (3608), Description = PCoIPVChan, channel = 0000000003F0E960
2015-12 - T 11, 14: 21:16.102 - 06:00 DEBUG (0E18-0A3C) < 2620 > [TPAutoConnect] pcoip_vchan_plugin_app_init2(): loan on the session 1
2015-12 - T 11, 14: 21:16.102 - 06:00 DEBUG (04DC - 0 C 84) < MessageChannel ReceiveThread > [MessageFrameWork] 'WIN7B\user' unauthorized (non-local admin) user, tail = PCoIPVChan-SVR (1) tip = MESSAGE_IPC
2015-12 - T 11, 14: 21:16.102 - 06:00 DEBUG (04DC - 0 C 84) < MessageChannel ReceiveThread > [MessageFrameWork] 'WIN7B\user' unauthorized (non-local admin) user, tail = PCoIPVChan-SVR (1) tip = MESSAGE_IPC
2015-12 - T 11, 14: 21:16.102 - 06:00 DEBUG (04DC - 0 C 84) < MessageChannel ReceiveThread > [MessageFrameWork] 'WIN7B\user' unauthorized (non-local admin) user, tail = PCoIPVChan-SVR (1) tip = MESSAGE_IPC
2015-12 - T 11, 14: 21:16.102 - 06:00 DEBUG (0E18 - 110 C) < VChanConnectionMonitor > [TPAutoConnect] VChanConnectionMonitor(): failed to get the ID of process PCoIP (err = IPC_ERROR)
2015-12 - T 11, 14: 21:16.102 - 06:00 DEBUG (04DC - 0 C 84) < MessageChannel ReceiveThread > [MessageFrameWork] 'WIN7B\user' unauthorized (non-local admin) user, tail = PCoIPVChan-SVR (1) tip = MESSAGE_IPC
What works:
RDP by Horizon View Client and RDP Windows Client connections.
Installed on the server:
ESXi 6.0
Windows 7 64 bit
And the following VMWare products:
Installed on the Client:
Office Window 8.1
What I'm trying to demonstrate:
Portscan on Agent computer:
PORT STATE SERVICE 135/tcp open msrpc
139/tcp open netbios-ssn
443/tcp open https
445/tcp open microsoft-ds
554/tcp open rtsp
2869/tcp open icslap
3389/tcp open ms-wbt-server
4000/tcp open remoteanything
5357/tcp open wsdapi
9427/tcp open unknown
10243/tcp open unknown
22443/tcp open unknown
32111/tcp open unknown
MAC address: 00: 0C: 29:92:C9:CF (VMware)
The full debug log file is attached.
It certainly works in other environments, so it must be something to do with your specific configuration.
I know that in the beginning, it has not been enough video RAM configured and certainly causes a PCoIP black screen.
2015-12 - 10T 14: 29:07.819 - 06:00 INFO (1074-041 C)
[wsnm_xmlapi] video driver name = VMware SVGA 3D 2015-12 - 10T 14: 29:07.819 - 06:00 INFO (1074-041 C)
[wsnm_xmlapi] Version of the video driver = 8.15.1.32 2015-12 - 10T 14: 29:07.819 - 06:00 INFO (1074-041 C)
[wsnm_xmlapi] video = 8 MB RAM It seems that this problem has been corrected, because later we see:
2015-12 - 10T 14: 56:55.626 - 06:00 INFO (04DC - 09C 4)
[wsnm_xmlapi] video = 128 MB RAM I also see that the modified host name:
2015-12 - 10T 15: 03:27.050 - 06:00 WARN (04 B 0-0858)
[wsnm_xmlapi] default SSL server certificate is not for this host name. The name may have changed. VADC itself automatically corrects the server SSL certificate, but maybe it's the other parts of the Agent posed problems that we see:
2015-12 - 11T 09: 16:15.351 - 06:00 WARN (04EC-0CB4)
authentication ticket error [MessageFrameWork] 2015-12 - 11T 09: 16:15.351 - 06:00 WARN (04EC-0CB4)
[MessageFrameWork] unable to accept the connection, authentication failed This does not refer to the authentication of the user customer Horizon (which is successful). This authentication is internal within the messaging system.
Given previous problems with this Setup, I can only suggest you uninstall VADC and Agent, restart, and then reinstall the Agent and the VADC. Don't change video RAM or change the name of host/computer name.
Let us know if that fixes it.
-
CONNECT IN a loop in the user data
Could someone help me because I can not find a solution.
I want to build a tree of 3 tables (parent-> children-> detail)
Everything works fine with 2 tables, but when I add the third table I get always an error ORA: ORA-01436: CONNECT BY a loop in the user data
CREATE TABLE nineham (organisatie_id NUMBER
(, naam VARCHAR2 (50));
--
CREATE TABLE seizoenen (seizoen_id NUMBER
organisatie_id NUMBER
(, naam VARCHAR2 (50));
--
CREATE TABLE competities (competitie_id NUMBER
seizoen_id NUMBER
(, naam VARCHAR2 (50));
--
INSERT INTO nineham (organisatie_id, name) VALUES (1, 'ORGANISATIE_1');
INSERT INTO nineham (organisatie_id, name) VALUES (2, 'ORGANISATIE_2');
--
INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (1, 1, 'SEIZOEN_1');
INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (2, 1, 'SEIZOEN_2');
INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (1, 2, 'SEIZOEN_3');
INSERT INTO seizoenen (seizoen_id, organisatie_id, naam) VALUES (2, 2, 'SEIZOEN_4');
--
INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (1, 1, 'COMPETITIE_1');
INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (2, 1, 'COMPETITIE_2');
INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (3, 2, 'COMPETITIE_3');
INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (4, 2, "COMPETITIE_4");
INSERT INTO competities (competitie_id, seizoen_id, naam) VALUES (5, 2, "COMPETITIE_5");
--
--
--
SELECT LPAD (' ', LEVEL * 2, ' ') | Naam AS display
LEVEL AS lvl
DE)
SELECT NULL AS parent
child organisatie_id
naam
To nineham
UNION ALL
SELECT organisatie_id AS parent
child seizoen_id
naam
OF seizoenen
UNION ALL
Seizoen_id SELECT parent
Child AS NULL
naam
OF competities
)
START WITH parent IS NULL
CONNECT BY PRIOR child = parent
;
Hello
When you perform a CONNECT BY query, you must have an identifier unique to each child. You use numbers that are unique to each table, but are no longer unique when you UNION the paintings together. When the query finds children 1, the fact that average organisatie_id = 1, or does that mean seizoen_id = 1, or does this mean competetite_id = 1?
Etbin suggested you change data. Which can be difficult; It might not even be possible. In addition, you must make sure that the new IDS are unique. When you assign advent = 10 to a node, for example, you must be sure that 10 is not an organisatie_id.
Here is another solution that is guarranted to generate unique IDS, without changing the actual tables:
SELECT LPAD (' ', LEVEL * 2, ' ') | Naam AS display
LEVEL AS lvl
DE)
SELECT NULL AS parent
organisatie_id AS child
, 1 AS the level of
naam
To nineham
UNION ALL
SELECT organisatie_id AS parent
seizoen_id AS child
, 2 AS the level of
naam
OF seizoenen
UNION ALL
SELECT seizoen_id AS parent
Child AS NULL
, 3 AS the level of
naam
OF competities
)
START WITH parent IS NULL
AND level = 1
CONNECT BY PRIOR child = parent
AND layer = FIRST + 1
;
The composite key formed by your original ID, and the new level number is unique.
Note that the query above is exactly what you have posted, with the addition of the lines that refer to level.
-
Need to edit a presentation published when downloading connect I can not locate the powerpoint file
I'm editing a published previously adobe connect presentation. I downloaded the hardware connection, but cannot locate the PowerPoint slides set to change.
Where would it be?
If the person who has published the presentation (with presenter I guess) on the server has not chosen to also download the source files, then it is no PPT (X) and the presenter on the server source files zip to download. You need to check if the source files are stored elsewhere or start from scratch.
The output call you refferenced is used to download an object on the Connect Server, mainly of records of meeting.
You mentioned that you tried to change the SCO_ID, but that should be something that assigns a Connect. What are you trying to do this would require allows you to change the SCO_ID?
-
Several physical NIC cards connected to vSwitch / Port Group
Hello
I have several physical NETWORK adapter on a host connected to a single vSwitch / port group, does this mean that the speed of the network is shared by all of the physical NIC, or I have to do something special to enable this feature?
Please see attached .jpg
Thanks in advance.
If all of your network adapters is active in the nic teaming configuration, you must have a physical switch that supports the aggregation of links and you must configure it. The ESX itself does not have this kind of work.
Actually is a bad idea to let all NICs connected without having to configure the nic teaming (1 active and others waiting for failover) or without going through the aggregation of links.
Marcelo Soares
VMWare Certified Professional 310/410
Technical Support Engineer
Chief Executive Officer of the Linux server
-
How to group the values according to the weeks of the year?
Hello
I have a table with dates and values (I'm simplifying the need for this question)
I want to group the values (and adding the) according to the 52 weeks of the year. I mean week of consolidation for the week.
Here the date of each weeks generated during a year, it gives every Monday of each week of the year:
Select trunc (trunc (sysdate, 'year'), 'iw') +(rownum*7)-7 n of object where rownum < = 53
What I want to do is to summarize the values in my table and group together them in every week, in that respect. The date of these weeks are generated by the above query.
For example all values fall into the 1st week of the year will be grouped into this date, all values fall in the 2nd wek will be grouped in this date and so on. If no value is found for a week, then a value of 0 is generated in iorder have a 52 weeks-lines. It's basically a kind of select with "date between... and...". "and group values and that affect the number of the wee, they are relevant.
Examples of Monday, June 30, 2008, 07/07/2008, 07/14/2008
Example of values and dates in my table:
Date value
30/06/08 9
07/01/08 9
07/02/08 9
07/03/08 9
07/03/08 9
07/04/08 6
07/04/08 6
07/04/08 9
07/07/08 9
07/08/08 9
29/07/08 9
29/07/08 6
30/07/08 9
07/31/08 9
07/31/08 9
07/31/08 9
08/01/08 9
08/04/08 5.5
08/04/08 9
08/07/08 9
08/07/08 9
08/08/08 9
14/08/08 9
14/08/08 9
18/08/08 9
22/08/08 9
22/08/08 9
25/08/08 9
25/08/08 9
26/08/08 9
29/08/08 9
29/08/08 9
09/01/08 9
09/01/08 9
09/04/08 9
09/04/08 9
09/05/08 9
09/05/08 9
09/05/08 9
09/05/08 9
17/09/08 9
Result should be something like this:
Number of the week Date value
47/1 12/31/2008
94/2 07/12/2008
2008-01-14 3, 23
and so on...
.....
73/52 12/22/2008
60/53 29/12/2008
I hope I am clear. Thank you for your kind replies.Something like that, maybe:
select trunc(trunc(sysdate,'year'),'iw') +((level-1)*7) n from dual connect by level<=53
(I changed it to sysdate so that the next years will take care of them!)
Maybe you are looking for
-
Qosmio X 300 - 13O does support quad-core?
Well title says it all; does the X 300 - 13O support quad and is it possible to upgrade the processor? Found this processor that uses the same socket as the current CPU.http://bit.LY/iqVZim (I know it's QS) ConcerningAlex
-
Can an iPod touch 6th gem catch a virus?
So I was on a website & it redirect me to another one & he said that the iOS device had a virus & I need to call a number immediately, I closed the application & stopped, I restarted the application & it was fine, but now I'm just a little worried. I
-
Order the dish/stacked sequence excecutes
Normally, a flat structure to sequence in a loop for if Execute from left to the right until it reaches the end and then repeat the left right code as many times as the loop he tells too much. I want to be able to change the order / discreet in which
-
Startscipt die nicht Anwendervariablen systems
Hallo, ICH habe ein kleines problem. ICH möchte das DIAdem 10.2 sofort beim Start mein geschriebenes Script opens. Uber die Einstellungen habe ich're als angegeben Startscript too. Dieses auch correctly works. Aber ist mein problem, are FDA nicht die
-
I have windows xp to install on the pc, but the program windows vista here is a trial version and it is out of time. I can't even start to show even a menu. I try Ctrl-alt-del and it does nothing. Please help me I don't know what to do. I want to ins