Requesting help with pivot in Oracle 10 g
Hey all,.I have this table, call the table GRID that has the following columns:
OBJECT_KEY DATE_KEY SEGMENT_ID COLUMN_NAME COMMITTEDVIRTUALMEMORYSIZE_AVG
---------------------- ---------------------- ---------------------- ----------- ------------------------------
619 3371 1 M1100 593589862.4
619 3371 1 M1105 593611434.67
620 3371 1 M1100 592354508.8
620 3371 1 M1105 592376263.11
621 3371 1 M1100 731433369.6
621 3371 1 M1105 731455943.11
What would take to rotate the names of column ("M1100", "M1105") with the value metric volumn: "COMMITTEDVIRTUALMEMORYSIZE_AVG", so that this query would yield a result like this:OBJECT_KEY DATE_KEY SEGMENT_ID M1100 M1105
---------------------- ---------------------- ---------------------- ----- ------
619 3371 1 593589862.4 593611434.67
620 3371 1 592354508.8 592376263.11
621 3371 1 731433369.6 731455943.11
Any help would be appreciated!Again, Oracle 10 g, 11g not so I don't have the PIVOT function to work with.
Kind regards
TimS
Tags: Database
Similar Questions
-
Hello
First of all, let me apologize if this is in the wrong forum.
I need assistance with pivot control in Oracle. Here's what I'm trying to accomplish:
Select persongroup , status , count(status) as tot
de WorkOrder
où status in ('WSCH','WPLAN','WMATL','PLAN','APPR')
et persongroup in ('K3P-GEN','K3P-ELEC','K3P-INST','K3P-MECH')
Group of persongroup,State
order by 1
Results:
K3P-ELEC APPROX. 12
10 PLAN K3P-ELEC
K3P-ELEC WMATL 10
K3P-ELEC LEVELS 109
K3P-ELEC WSCH 18
K3P - GEN APPROX. 17
PLAN OF K3P - GEN 59
K3P - GEN WMATL 10
K3P - GEN LEVELS 188
K3P - GEN WSCH 22
K3P-INST APPROX. 18
K3P-INST PLAN 27
K3P-INST WMATL 17
K3P-INST LEVELS 60
K3P-INST WSCH 40
K3P-MECH APPROX. 4
K3P-MECH 47 PLAN
K3P-MECH WMATL 14
K3P-MECH LEVELS 20
K3P-MECH WSCH 52
I want to see is:
APPR WMATL LEVELS WSCH TOTAL PLAN
K3P-ELEC 12 10 10 109 18 159
K3P - GEN 17 59 10 188 22 296
......
Using the above query I tried, but this is incorrect;
Select * from (
Select persongroup , status , count(status) as tot
de workorder
où status in ('WSCH','WPLAN','WMATL','PLAN','APPR')
et persongroup in ('K3P-GEN','K3P-ELEC','K3P-INST','K3P-MECH')
Group of persongroup,State
order by 1
sum(3)
for status in ('WSCH','WPLAN','WMATL','PLAN','APPR')
order by 1
Any help appreciated.
Thank you
Cameron
You missed the "PIVOT" option, try this:
SELECT *.
FROM (SELECT Tot Persongroup, status, COUNTY (status)
FROM Workorder
WHERE Status IN ('WSCH', 'LEVELS', 'WMATL', 'PLAN', 'POPULAR')
AND Persongroup IN ('K3P-ELEC","K3P-INST","K3P - GEN","K3P-MECH")
Persongroup, status)
PIVOT (SUM (Tot) for registered IN ('WSCH', 'LEVELS', 'WMATL', 'PLAN', 'POPULAR'))
ORDER BY 1
/
-
Hi all
I have these sample data:
create table mySample( myID number, fy number, idType varchar2(1), idCount number ); insert into mySample(myID, fy, idType, idCount) values (1, 2010, 'A', 1); insert into mySample(myID, fy, idType, idCount) values (1, 2010, 'B', 0); insert into mySample(myID, fy, idType, idCount) values (1, 2010, 'B', 1); insert into mySample(myID, fy, idType, idCount) values (1, 2011, 'A', 1); insert into mySample(myID, fy, idType, idCount) values (1, 2011, 'A', 1); insert into mySample(myID, fy, idType, idCount) values (1, 2011, 'B', 1); insert into mySample(myID, fy, idType, idCount) values (1, 2011, 'A', 0); select * from ( select myID, fy, idType from mySample ) pivot (count(*) for idType in ('A' as A_count, 'B' as B_count) ) order by myID, fy
My result of pivot is:
MYID FY A_COUNT B_COUNT 1 2010 1 2
1 2011 3 1
How can I get the total number of calls the idType and the total of idCount in the pivot?
MYID FY A_COUNT B_COUNT TOTAL_COUNT TOTAL_ID_COUNT 1 2010 1 2 3 2
1 2011 3 1 4 3
With the help of Oracle 11 g Release 11.2.0.4.0
Thank you
Hello
Here's one way:
Select myid, fy, a_count, b_count
a_count + b_count AS total_count
a_id_count + b_id_count AS total_id_count
of mySample
Pivot (count (*) AS count
the sum (idCount) AS id_count
for idType in (a, 'B' b 'A')
)
order by myID, fy
;
Now that all the columns in the table play a certain role in the pivot, you need more online reviews. You can select directly from mySample.
Output:
MYID FY A_COUNT TOTAL_COUNT TOTAL_ID_COUNT B_COUNT
---------- ---------- ---------- ---------- ----------- --------------
1 2010 1 2 3 2
1 2011 3 1 4 3
-
Windows xp-request help with my sound
You can't vote on your own post
0I have a problem with my sound...
I cleaned up my laptop with like scan disk, tune up and defragmentation, and others as spyeraser
I also checked the drivers or hardware updates I've installed
all up to date.
but my sound still does not work for windows as a start up or stop, but it sounds market for games such as card games or 3d games.
audio files for windows are here but do not playin, updated the codec and Media Player...
can anyone help?
Thanks in advance.
Darren Pude
PS please don't tell goto this page :---> http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.windowsxp.general
as the page no longer exists
I just need help. being not redirected everywere
Hi darkdaz,Could be that the user account has been corrupted. If this is the case, you can transfer all the data and settings in the new user account from the old user account.See this link for more information: -
Request help with files of mystery on my drive C:\
I have these files two mystery in my C:\ drive, and I would like to know what they are and if they are essential to my system. If this isn't the case, I want to delete them. I will list below and hope someone has an idea what they are, because if I had known what they were I would be more comfortable with having them on here if they are essential and happier if I could delete them if they can be removed without harming my computer.
9e8efda7fe4f5c4fd90c036feaab10. it's the one with two subfolders,amd64 and i386. The files inside each of these folders are named: filterpipelineprintproc.dll; msxpsdrv (with a type of "security catalog"); msxpsdrv (with a type of "Setup information"); msxpsinc. GPD; msxpsinc.PPD; mxdwdrv.dll; and xpssvcs.dll.
c837e3c9854c3379c2. It's the one with something in it, a file named'%temp% dd_msxml_retMSI'.
I came across a similar post in another form, you can see if that helps you at all.
http://www.eggheadcafe.com/software/ASPNET/33144378/leftover-folders-after-MI.aspx
-
Need Urgent help with trigger in Oracle 10 g
Hello Dr.
I'm working on my DBMS project in VB 6.0, which is toll management system
I have to insert a trigger for my project, so I decided to insert the trigger at that time.
I have total 3 table UserLogin, vehicle and Vehicle_Data
3rd vehicle data table contains the following fields
Vehicle_Type, Vehicle_No, Tax_Time, Source, Destination and taxes
Now, I did coding for the tax when you select the vehicle Type, Source and Destination tax will automatically be fillup and all data will be stored in the Oracle table but now my problem is I want to create the trigger for Tax_Time column when new data inserted at the present time will be stored in this column
I create one, but it gives an error
create times to trigger after insert on vehicle_Data
for each line
Start
insert into Vehicle_Data (Tax_Time) values (to_char (sysdate, 'HH:MI:SSAM DD_MON_YYYY'));
end;
*/*
Note: I use VB 6.0 and Oracle 10 g Express EditionAssuming that tax_time is a DATE data type, then
create trigger tax_time_trg before insert on vehicle_Data for each row begin :new.Tax_Time := sysdate; end;
should work.
-
Metadata boolean index - requesting help with query
For a "document.dbxml" container, I have the following index defined on a named metadata node "indexed":
I am wanting to query the container to find the ID of the document that contains the value of the indexed = false. This is the query:Index: node-metadata-equality-boolean for node {}:Indexed
Here's the query plan:collection('document.dbxml')/*[not(xs:boolean(dbxml:metadata('Indexed')))]/DocumentID/text()
It doesn't seem to be using the index - is there a correct way to write the query to use the index? I'm guessing this has something to do with the line:<XQuery> <QueryPlanToAST> <StepQP axis="child" uri="*" name="*" nodeType="text"> <ChildJoinQP> <PredicateFilterQP> <LevelFilterQP> <SequentialScanQP container="document.dbxml" nodeType="element"/> </LevelFilterQP> <Function name="{http://www.w3.org/2005/xpath-functions}:not"> <EffectiveBooleanValue> <CastAs> <Function name="{http://www.sleepycat.com/2002/dbxml}:metadata"> <Literal value="Indexed" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/> </Function> <SequenceType type="xs:boolean?"/> </CastAs> </EffectiveBooleanValue> </Function> </PredicateFilterQP> <PresenceQP container="document.dbxml" index="unique-edge-element-equality-string" operation="prefix" child="DocumentID"/> </ChildJoinQP> </StepQP> </QueryPlanToAST> </XQuery>
Since the typename must be Boolean I... Also, when I add/set the value for "Indexed", he is still using a XmlValue with BOOLEAN type.<Literal value="Indexed" typeuri="http://www.w3.org/2001/XMLSchema" typename="string"/>
Published by: user12992401 on April 15, 2010 19:32Hello
the query as
collection('document.dbxml')/*[dbxml:metadata('Indexed')=false()]/DocumentID/text()
will use the index you mentioned
PS while it does not change the result (not sure the performance impact), it seems to me more natural to apply metadata descriptor to document - node () (before ' *'):
collection('document.dbxml')[dbxml:metadata('Indexed')=false()]/*/DocumentID/text()
Vyacheslav
-
Hi all
I need help with regexp_like.
Oracle version: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
create table test_regexp (str varchar2 (100));
insert into test_regexp values ('123');
insert into test_regexp values ('456A');
insert into test_regexp values ('987654");
insert into test_regexp values ('A12 34 ZZZ');
insert into test_regexp values ('743');
insert into test_regexp values ('ABC');
Expected results
****************
STR
****
123
987654
743
The search string must be only numbers and spaces, spaces can be anywhere (beginning, middle or end of string), search string must not have anty characters or special characters.
Thanks in advance
RambeauHello
Try the following:Select *.
of test_regexp
where regexp_like (CBC,'^ [0-9] + ([0-9] +) $');or
Select *.
of test_regexp
where regexp_like (CBC,'^ ([[: digit:]] |)) [[: white:]] | [[: digit :]])]] +$');Published by: jojo on December 2, 2010 12:09
Published by: jojo on December 2, 2010 12:11
-
How to set the simultaneous request completed with warning?
Hi all:
How to set the simultaneous request completed with warning in oracle 11.5.9?
For example:
I completed an application with "Completed" 'Normal '.
After I put a condition similar to when xxx > 0 then
It will complete a request indicates 'Complete' 'warning '.
My environment is: oracle 11.5.9 and operating system is Linux Redhat 4.0
Concerning
TerryTerry,
You can use 'FND_CONCURRENT. Function SET_COMPLETION_STATUS.
Note: 866194.1 - is there a method to return a 'Warning' to host Language simultaneous program status?
The Oracle Applications Developer's Guide
http://download-West.Oracle.com/docs/CD/B11454_01/11.5.9/Acrobat/115devg.PDFFND_CONCURRENT. SET_COMPLETION_STATUS
http://forums.Oracle.com/forums/search.jspa?threadID=&q=FND_CONCURRENT.SET_COMPLETION_STATUS&objid=C3&DateRange=all&userid=&NumResults=15&rankBy=10001Thank you
Hussein -
help with this thread using oracle 7.3
Dear expert;
On this thread, I am using
but I'll need help more with additional information in this regard. see examples of data below
Hello experts.
I use oracle 7.3. Therefore, I have the sample data below
create the table table_one
(
req_week varchar (1000).
Username varchar (1000).
sale number (30),
place varchar (1000).
break_sales number (30)
);
insert into table_one values ("week 1", 'John', 100, "NY", 2 ").
insert into table_one values (' week 1', 'Chris', 20, "TX", 3 ')
insert into table_one values ("week 1", "Melissa", 80, 'GOES', 4 ')
insert into table_one values (' week 2', 'Katy', 40 'SC', 1 ")
insert into table_one values (' week 2', 'Angle', 10, 'NC', 2 ')
insert into table_one values (' week 2', "Vick", 30, 'CA', 3 ')
insert into table_one values (' week 3', 'Zack', 60 'CA', 1 ")
insert into table_one values (' week 3', 'Deb', 60 'NM', 2 ')
insert into table_one values (' week 3', 'Antoine,"60,"TX", 3 ')
necessary results
I need the top 2 sales in a place a week
expected results
req_week username place sales
Week1 John 100 NY
Week1 Melissa 80'S
Semaine2 Katy 40 SC
Semaine2 Vick 30 CA
Semaine3 Zack 60 TX
Semaine3 Deb 60 NM
Note, in this particular case, if there is equality in sales, then use the break_sales column as a case. The break_sales was never a tie... it is so far the query and it does not work as expected
SELECT d.req_week, d.username, d.sales, d.place FROM nikeus_report.dbo.table_one d , nikeus_report.dbo.table_one o WHERE d.req_week = o.req_week AND d.sales <= o.sales GROUP BY d.req_week, d.username, d.sales, d.place HAVING COUNT (*) <= 2 ;
Any help is appreciated. Thank you
Hello
It seems that your existing query is very good, he's going; Just add the conditions for breaking in the WHERE clause:
SELECT d.req_week
d.username
d.sales
d.place
FROM table_one d
table_one o
WHERE d.req_week = o.req_week
AND (d.sales< > >
OR (d.sales = o.sales
AND d.break_sales > = o.break_sales
)
)
GROUP BY d.req_week
d.username
d.sales
d.place
HAVING COUNT (*)<=>=>
ORDER BY d.req_week
COUNT (*)
;
Thanks for posting the CREATE TABLE and INSERT statements; that really helps.
-
Help with query Oracle?
Take a look at the query
Select channel_desc, sum (unit_cost), AVG (Unit_price) of channels C, cost S
where C.channel_id = S.channel_id
Group 1,2,3
the first time the error is "channel_desc not a group by expression"-desc is a varchar type there are 6 channels
II remove the group by clause and then pops up an error "" not only - group expression to group "".
All the ideas!Select channel_desc, sum (unit_cost), AVG (Unit_price) of channels C, cost S
where C.channel_id = S.channel_id
Channel_desc group -
help with a lazy slow macbook pro
Hi, I was wondering if someone with a good understanding of the EtreCheck might be able to help me with my old powerbook, rusty.
Here is the report copied and pasted from the EtreCheck diagnosis that I just ran (lots of red type):
Thank you!
EtreCheck version: 2.9.13 (267)
Report generated 2016-07-30 19:29
Download EtreCheck from https://etrecheck.com
Time 09:23
Performance: Below average
Click the [Support] links to help with non-Apple products.
Click [details] for more information on this line.
Verify the signatures of Apple: enabled
Problem: Beachballing
MacBook Pro (15-inch, mid 2009)
[Data sheet] - [User Guide] - [warranty & Service]
MacBook Pro - model: MacBookPro5, 3
1 3.06 GHz Intel Core 2 Duo CPU: 2 strands
8 GB of RAM expandable - [Instructions]
BANK 0/DIMM0
OK 4 GB DDR3 1067 MHz
BANK 1/DIMM0
OK 4 GB DDR3 1067 MHz
Bluetooth: Old - transfer/Airdrop2 not supported
Wireless: en1: 802.11 a/b/g/n
Battery: Health = Normal - Cycle count = 342
NVIDIA GeForce 9400M - VRAM: 256 MB
Color LCD 1440 x 900
Cinema HD Display 1920 x 1200
NVIDIA GeForce 9600M GT - VRAM: 512 MB
OS X El Capitan 10.11.6 15G (31) - since the start time: about 3 days
ST9500420ASG disk0: (500,11 GB) (rotation)
EFI (disk0s1) < not mounted >: 210 MB
ShiftySeven II (disk0s2) /: 499,25 GB (56,75 GB free)
Recovery HD (disk0s3) < not mounted > [recovery]: 650 MB
MATSHITADVD-R UJ-868)
Built-in ISight from Apple Inc..
Hub keyboard Apple, Inc.
Apple, Inc. Apple Keyboard
Card reader Apple
Apple Inc. Apple keyboard / Trackpad
Computer, Inc. Apple IR receiver.
Apple Inc. BRCM2046 hub.
Apple Inc. Bluetooth USB host controller.
Mac App Store and identified developers
/Applications/AirParrot.app
com.squirrels.airparrot.framebuffer [no charge] (1.4 - SDK 10.8 - 2014-04-19) [Support]
/ Applications/Caplio Mounter.app
[no charge] jp.co.ricoh.kext.caplio - 10.3 (4.0 - 2008-11-21) [Support]
[no charge] jp.co.ricoh.kext.caplio - 10.4 (4.0 - 2008-11-21) [Support]
DiskWarrior.app
com.alsoft.Preview [no charge] (4.1 - 2007-12-31) [Support]
/ Service.app incompatible software/Parallels
com.parallels.kext.prl_hid_hook [no charge] (4.0 3844.408728 - 2012-12-27) [Support]
com.parallels.kext.prl_hypervisor [no charge] (4.0 3844.408728 - 2012-12-27) [Support]
com.parallels.kext.prl_netbridge [no charge] (4.0 3844.408728 - 2012-12-27) [Support]
com.parallels.kext.prl_usb_connect [no charge] (4.0 3844.408728 - 2012-12-27) [Support]
com.parallels.kext.prl_vnic [no charge] (4.0 3844.408728 - 2012-12-27) [Support]
/ Library/Application Support/Avast/components/fileshield/not signed
[loading] com.avast.AvastFileShield (3.0.0 - SDK 10.10 - 2016-07-21) [Support]
/ Library/Application Support/Avast/components/proxy/not signed
[loading] com.avast.PacketForwarder (2.1 - SDK 10.10 - 2016-07-21) [Support]
/ Library/Extensions
[loading] com.squirrels.driver.AirParrotSpeakers (1.8 - SDK 10.8 - 2016-07-26) [Support]
[loading] net.telestream.driver.TelestreamAudio (1.1.1 - SDK 10.8 - 2016-07-26) [Support]
/ System/Library/Extensions
[no charge] com.beceem.BeceemAppleWiMAXAdapter (5.2.56d16 - 2016-07-26) [Support]
com.devguru.driver.DIFMCDFree [no charge] (1.1.0 - 2016-07-26) [Support]
com.devguru.driver.DIFMSerial [no charge] (1.1.0 - 2016-07-26) [Support]
com.fklt.driver [no charge] (1.8.0 - 2016-07-26) [Support]
[no charge] com.novatelwireless.driver.3G (v2.2.8 (3)-2016-07-26) [Support]
com.novatelwireless.driver.DisableAutoInstall [no charge] (1.2 - 2016-07-26) [Support]
[no charge] com.sierrawireless.driver.SierraDevSupport (2.0.6.0 - 2016-07-26) [Support]
[no charge] com.sierrawireless.driver.SierraFSCSupport (2.0.6.0 - 2016-07-26) [Support]
/System/Library/Extensions/NovatelWireless3G.kext/contents/plugins
[no charge] com.novatelwireless.driver.3GData (v2.2.8 (3)-2011-11-05) [Support]
ParallelsDesktopTransporter: Path: / Library/StartupItems/ParallelsDesktopTransporter
Startup items are obsolete in OS X Yosemite
[operation] com.apple.Finder.plist (2016-02-19) -invalid signature!
[loading] com.apple.FollowUpUI.plist (2016-02-11) -invalid signature!
[loading] com.apple.ScreenReaderUIServer.plist (2016-02-16) -invalid signature!
[loading] com.apple.powerchime.plist (2016-02-22) -invalid signature!
[loading] com.apple.quicklook.32bit.plist (2016-02-04) -invalid signature!
[operation] com.apple.quicklook.plist (2016-02-04) -invalid signature!
[loading] com.apple.quicklook.ui.helper.plist (2016-02-04) -invalid signature!
[loaded] 9 tasks Apple
[loading] 149 tasks Apple
[operation] 64 tasks Apple
[killed] 16 tasks Apple
16 killed processes lack of RAM
[loaded] 45 tasks Apple
[loading] 153 tasks Apple
[operation] 78 tasks Apple
[killed] 14 tasks Apple
14 killed process lack of RAM
[no charge] com.adobe.AAM.Updater - 1.0.plist (2016-06-14) [Support]
[failure] com.adobe.ARMDCHelper.cc24aef4a1b90ed56a... plist (2016-07-13) [Support]
[failure] com.adobe.AdobeCreativeCloud.plist (2016-04-27) [Support]
[loading] com.adobe.CS5ServiceManager.plist (2010-06-17) [Support]
[operation] com.avast.secureline.update - agent.plist (2016-06-29) [Support]
[loading] com.avast.secureline.userinit.plist (2016-06-29) [Support]
[operation] com.avast.update - agent.plist (2016-07-22) [Support]
[loading] com.avast.userinit.plist (2016-07-22) [Support]
[operation] com.brother.LOGINserver.plist (2013-10-06) [Support]
[no charge] com.oracle.java.Java - Updater.plist [Support]
com.TeamViewer.TeamViewer.plist [no charge] (2016-02-14) [Support]
com.TeamViewer.teamviewer_desktop.plist [no charge] (2016-02-14) [Support]
[loading] com.adobe.ARMDC.Communicator.plist (2016-07-13) [Support]
[loading] com.adobe.ARMDC.SMJobBlessHelper.plist (2016-07-13) [Support]
[loading] com.adobe.SwitchBoard.plist (2011-12-14) [Support]
[loading] com.adobe.agsservice.plist (2015-11-02) [Support]
[failure] com.adobe.fpsaud.plist (2016-05-09) [Support]
com.adobe.versioncueCS3.plist [loading] (2008-06-22) [Support]
[loading] com.avast.init.plist (2016-07-22) [Support]
[loading] com.avast.secureline.init.plist (2016-06-29) [Support]
[loading] com.avast.secureline.uninstall.plist (2016-06-29) [Support]
[loading] com.avast.secureline.update.plist (2016-06-29) [Support]
[loading] com.avast.uninstall.plist (2016-07-22) [Support]
[loading] com.avast.update.plist (2016-07-22) [Support]
[loading] com.microsoft.office.licensing.helper.plist (2011-03-10) [Support]
[loading] com.oracle.JavaInstallHelper.plist (2016-04-21) [Support]
[no charge] com.oracle.java.Helper - Tool.plist [Support]
[loading] com.roamingclient.cell.mac.roamingclient.plist (2011-11-05) [Support]
[loading] com.rogueamoeba.instanton - agent.plist (2016-06-23) [Support]
[operation] com.sierrawireless.SWoCMon.plist (2010-05-20) [Support]
com.sierrawireless.SierraReset.plist [no charge] (2010-05-20) [Support]
[loading] com.teamviewer.Helper.plist (2015-09-29) [Support]
com.TeamViewer.teamviewer_service.plist [no charge] (2016-02-14) [Support]
[loading] com.adobe.AAM.Updater - 1.0.plist (2010-06-28) [Support]
[failure] com.adobe.ARM. [...]. plist (2010-06-22) [Support]
[failure] com.adobe.ARM. [...]. plist (2009-10-26) [Support]
[failure] com.adobe.ARM. [...]. plist (2011-12-15) [Support]
[operation] com.amazon.music.plist (2014-10-18) [Support]
[failure] com.apple.MobileMeSyncClientAgent.plist (2011-06-14) -/System/Library/PrivateFrameworks/DotMacSyncManager.framework/Resources/mobilem esyncclient: Executable not found!
[failure] com.apple.SafariBookmarksSyncer.plist (2009-09-14) -/Applications/Safari.app/Contents/SafariSyncClient.app/Contents/MacOS/SafariSyn customer: Executable not found!
[loading] com.avast.home.userinit.plist (2016-07-22) [Support]
[loading] com.avast.secureline.home.userinit.plist (2016-06-29) [Support]
[loading] com.google.keystone.agent.plist (2016-07-11) [Support]
[operation] com.spotify.webhelper.plist (2015-05-30) [Support]
info.lokiware.attachmenttamer.cleanup.plist [no charge] (2013-01-07) [Support]
[failure] info.lokiware.attachmenttamer.setupagent.plist (06-01-2013) [Support]
iTunesHelper Application (/ Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
Dropbox application (/ Applications/Dropbox.app)
Application of Google Reader (Google Drive.app/Applications /)
Hidden AdobeResourceSynchronizer Application (/ Applications/Adobe Acrobat DC/Adobe Acrobat.app/Contents/Helpers/AdobeResourceSynchronizer.app)
Garmin Express Service application (/ Applications/Garmin Express.app/Contents/Library/LoginItems/Garmin Express Service.app)
Request for EvernoteHelper (/ Applications/Evernote.app/Contents/Library/LoginItems/EvernoteHelper.app)
[ongoing] com.adobe.CCLibrary.166112
com.apple.BKAgentService [killed]
com.apple.MailServiceAgent [loading]
com.Apple.mail.80352 [loading]
com.avast.account [loading]
[ongoing] com.avast.daemon
[ongoing] com.avast.FileShield
[ongoing] com.avast.helper
[ongoing] com.avast.proxy
com.avast.secureline.Burger [loading]
[ongoing] com.avast.secureline.service
[ongoing] com.avast.service
[ongoing] com.brother.utility.NETserver.157792
[ongoing] com.brother.utility.USBserver.137312
[ongoing] com.evernote.EvernoteHelper.66912
[ongoing] com.Garmin.Renu.service.3552
[ongoing] com.getdropbox.dropbox.134752
[loading] 421 tasks Apple
[operation] 184 tasks Apple
[killed] 33 tasks Apple
DirectorShockwave: 11.6.6r636 (2012-08-09) [Support]
Unity Web Player: UnityPlayer version 4.1.3f3 (2013-05-30) [Support]
Default browser: 601 - SDK 10.11 (2016-07-26)
Flip4Mac WMV Plugin: 2.3.8.1 (2011-01-13) [Support]
AdobeAAMDetect: 3.0.0.0 - SDK 10.9 (2016-04-27) [Support]
FlashPlayer - 10.6: 21.0.0.242 - SDK 10.6 (2016-05-13) [Support]
AdobePDFViewerNPAPI: 15.017.20050 - SDK 10.11 (2016-07-13) [Support]
Silverlight: 5.1.50428.0 - SDK 10.6 (2016-07-10) [Support]
QuickTime Plugin: 7.7.3 (2016-07-26)
Flash Player: 21.0.0.242 - SDK 10.6 (2016-05-13) obsolete! Update
iPhotoPhotocast: 7.0 - 10.8 SDK (2013-04-30)
NP_2020Player_IKEA: 5.0.93.0 - SDK 10.6 (2011-10-03) [Support]
AdobePDFViewer: 15.017.20050 - SDK 10.11 (2016-07-13) [Support]
GarminGpsControl: 4.0.2.6 Beta - SDK 10.6 (2012-09-11) [Support]
SharePointBrowserPlugin: 14.6.6 - SDK 10.6 (2016-07-25) [Support]
JavaAppletPlugin: 15.0.1 - 10.7 (2016-05-04) check the version of the SDK
WebEx: 1.0 (2010-04-06) [Support]
AdBlock - BetaFish, Inc. - https://getadblock.com (2016-07-30)
DuckDuckGo - DuckDuckGo - http://duckduckgo.com (2015-07-11)
Save on Pocket - Read It Later, Inc. - http://getpocket.com/ (2015-11-07)
Adobe Version Cue CS3 (2008-06-22) [Support]
Flash Player (2016-05-09) [Support]
Flip4Mac WMV (2011-01-13) [Support]
Growl (2013-12-20) [Support]
MacFUSE (2008-12-19) [Support]
Skip system files: No.
Automatic backup: YES
Volumes to back up:
ShiftySeven II: Disc size: 499,25 GB disc used: 442,50 GB
Destinations:
Toshiba Time Machine [Local]
Total size: 999,86 GB
Total number of backups: 40
An older backup: 23/04/15, 16:45
Last backup: 25/07/16, 20:34
Backup disk size: too small
Backup size GB 999,86 < (disc 442,50 GB X 3)
11% NotificationCenter
iTunes 11%
5% WindowServer
5% coreaudiod
3% kernel_task
Top of page process of memory: ⓘ
919 MB kernel_task
688 MB com.apple.WebKit.WebContent (4)
Mdworker (13) 238 MB
Safari of 205 MB
Mds_stores 156 MB
131 MB free RAM
8.12 used GB RAM (4.05 GB being cached)
176 MB used Swap
July 30, 2016, 18:49:37 ~/Library/Logs/DiagnosticReports/Install_2016-07-30-184937_[redacted].crash
com.adobe.Install - Applications/Utilities/Adobe Creative Cloud / * / Creative Installer.app/Contents/MacOS/Install Cloud
July 27, 2016, 16:21:32 /Library/Logs/DiagnosticReports/Kernel_2016-07-27-162132_[redacted].panic [details]
July 27, 2016, 16:18:59 /Library/Logs/DiagnosticReports/Kernel_2016-07-27-161859_[redacted].panic [details]
Uninstall Avast. It's a worthless scam that don't do anything useful. The only thing it does is a lot more then what it claims, that he you will protect from.
-
Need help with the query (transpose)
Hello experts, please help here - 11 g Oracle, attribute APA APB are fixed values and can be hard coded in query
Need to transpose these data. Max(decode.. perd les données en sortie à cause de la condition de Max.)
Entry:
Name | Attribute | Value
A1 APP 10
A1 PDB 11
A1 APA 20
A1 PDB 21
A2 BPA 13
A2 BPB 14
Expected results:
Name AttVal1 AttVal2
A1 10 11
13 14 A2
20 21 A1
Hello
Here's one way:
WITH relevant_columns AS
(
SELECT name
value
CASE
WHEN the attribute ("APA", "BPA") THEN 1
WHEN the attribute ("PDB", "BPB") THEN 2
END AS c_num
ROW_NUMBER () (PARTITION BY NAME, attirbute
Value of ORDER BY
) AS r_num
FROM table_x
)
SELECT name, attval1, attval2
OF relevant_columns
PIVOT (MAX (value)
FOR c_num IN (1 AS attval1
2 UNDER attval2
)
)
ORDER BY r_num, name
;
If you would care to post CREATE TABLE and INSERT statements for your sample data, and then I could test this.
Why do you want to
NAME ATTVAL1 ATTVAL2
---- ------- -------
A1 10 11
20 21 A1
in the results, rather than
NAME ATTVAL1 ATTVAL2
---- ------- -------
10 21 A1
20 11-A1
? You would be satisfied to one or the other?
Depending on your answer, you may need to modify the analytical ORDER BY clause in the ROW_NUMBER function.
-
Need help with a query complex for the production database
Hello again,
I need your help once again, for a query how to show me how long each stage of production is by order.
See examples of data and what I expect.
Thank you all for your help.
We use Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
Here the example data tables:
And here's what I expect of my request:CREATE TABLE TABLE_2 ( "ORDER_NR" VARCHAR2 (12) , "PRIORITY" VARCHAR2 (2) , "WO_STEP" VARCHAR2 (1) , "STEP_DATE" DATE ); CREATE TABLE TABLE_1 ( "ORDER_NR" VARCHAR2 (12) PRIMARY KEY , "PRIORITY" VARCHAR2 (2) , "CREATE_DATE" DATE , "ACT_STEP" VARCHAR2 (2) , "STEP_DATE" DATE , "EMPLOYEE" VARCHAR2 (5) , "DESCRIPTION" VARCHAR2 (20) ); INSERT INTO TABLE_1 (ORDER_NR, PRIORITY, CREATE_DATE, ACT_STEP, STEP_DATE, EMPLOYEE, DESCRIPTION) VALUES ('1KKA1T205634', '12', TO_DATE('10-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS'), 'U', TO_DATE('28-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS'), 'W0010', 'CLEAN HOUSE'); INSERT INTO TABLE_1 (ORDER_NR, PRIORITY, CREATE_DATE, ACT_STEP, STEP_DATE, EMPLOYEE, DESCRIPTION) VALUES ('1KKA1Z300612', '12', TO_DATE('08-FEB-13 14:00:00','DD-MON-RR HH24:MI:SS'), 'F', TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS'), 'K0052', 'REPAIR CAR'); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'A', TO_DATE('12-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', '5', TO_DATE('13-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'K', TO_DATE('13-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', '5', TO_DATE('13-FEB-13 11:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'K', TO_DATE('13-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', '5', TO_DATE('13-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'C', TO_DATE('14-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'B', TO_DATE('14-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'E', TO_DATE('18-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'F', TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'S', TO_DATE('21-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'R', TO_DATE('21-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1T205634', '12', 'U', TO_DATE('28-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'A', TO_DATE('12-FEB-13 13:52:42','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', '5', TO_DATE('13-FEB-13 09:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'K', TO_DATE('13-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', '5', TO_DATE('13-FEB-13 11:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'K', TO_DATE('13-FEB-13 12:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', '5', TO_DATE('13-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'C', TO_DATE('14-FEB-13 08:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'B', TO_DATE('14-FEB-13 10:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'E', TO_DATE('18-FEB-13 13:00:00','DD-MON-RR HH24:MI:SS')); INSERT INTO TABLE_2 (ORDER_NR, PRIORITY, WO_STEP, STEP_DATE) VALUES ('1KKA1Z300612', '12', 'F', TO_DATE('20-FEB-13 16:00:00','DD-MON-RR HH24:MI:SS')); COMMIT;
And now the explanation for the result of the query:SYSDATE 28.Feb.13 14:00 ORDER_NR PRIORITYCREATE_DATE STATUS STATUS_DATE DESCRIPTION AGE_1 AGE_2 WAITNG STEP_A STEP_B STEP_C STEP_5 STEP_K STEP_E STEP_F STEP_S STEP_R 1KKA1T205634 12 10.Feb.13 10:00 U 28.Feb.13 12:00 CLEAN HOUSE 18,083 8,833 2,125 0,833 4,125 0,083 0,750 0,208 2,125 0,666 0,042 7,125 1KKA1Z300612 12 08.Feb.13 14:00 F 20.Feb.13 16:00 REPAIR CAR 20,000 16,042 2,125 0,833 4,125 0,083 0,750 0,208 2,125 0,666
The AGE_1 is the difference in days between the "CREATE_DATE" and if EXSIST L'ETAPE 'U' then STEP_DATE or if the STEP 'U' is not found in TABLE_2 then it should show the difference in days between the "CREATE_DATE' and the 'SYSDATE.
The AGE_2 is the difference in days between the STEP "A" STEP_DATE and IF EXSIST L'ETAPE 'R' then STEP_DATE or if the STEP 'R' is not in TABLE_2 then it should show the difference in days between the "CREATE_DATE' and the 'SYSDATE.
The EXPECTATION is the difference in days between CREATE_DATE and STEP 'A' STEP_DATE
The following columns indicate the days, how long the ORDER_NR remains in these TIMES, if an ORDER_NR comes in the same STEP should be calculated together more than once.
If the ORDER_NR jump a step, it should show a zero in the specific field.
I hope that my explanation is good enough, my English skills are far from good.
Thank you for all your help.
Hosts Reinhard W.Solomon Yakobson says:
Just add the amounts:In fact, you could edit all CASES:
with t2 as ( select t.*, lead(step_date) over(partition by order_nr order by step_date) next_step_date from table_2 t ) select t1.*, nvl( max( case t2.wo_step when 'U' then t2.step_date end ), sysdate ) - t1.create_date age_1, nvl( max( case t2.wo_step when 'R' then t2.step_date end ), sysdate ) - t1.create_date age_2, sum( case when t2.wo_step in ('B','5') then t2.next_step_date - t2.step_date end ) step_b_5, sum( case t2.wo_step when 'C' then t2.next_step_date - t2.step_date end ) step_c, sum( case t2.wo_step when 'K' then t2.next_step_date - t2.step_date end ) step_k, sum( case t2.wo_step when 'E' then t2.next_step_date - t2.step_date end ) step_e, sum( case t2.wo_step when 'F' then t2.next_step_date - t2.step_date end ) step_f, sum( case t2.wo_step when 'S' then t2.next_step_date - t2.step_date end ) step_s, sum( case t2.wo_step when 'R' then t2.next_step_date - t2.step_date end ) step_r from table_1 t1, t2 where t2.order_nr = t1.order_nr group by t1.order_nr, t1.priority, t1.create_date, t1.act_step, t1.step_date, t1.employee, t1.description / ORDER_NR PR CREATE_DA AC STEP_DATE EMPLO DESCRIPTION AGE_1 AGE_2 STEP_B_5 STEP_C STEP_K STEP_E STEP_F STEP_S STEP_R ------------ -- --------- -- --------- ----- ----------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- 1KKA1T205634 12 10-FEB-13 U 28-FEB-13 W0010 CLEAN HOUSE 18.0833333 10.9583333 4.875 .083333333 .208333333 2.125 .666666667 .041666667 7.125 1KKA1Z300612 12 08-FEB-13 F 20-FEB-13 K0052 REPAIR CAR 44.252338 44.252338 4.875 .083333333 .208333333 2.125 SQL>
SY.
-
I'm suddenly needing help with my browser Firefox (6.0.2)
Hello
I'm suddenly needing help with my browser Firefox (6.0.2)(OS: I use Windows XP).
When I open the browser, I don't see is a totally white screen of white, with all the toolbars at the top.
I know that my physical connections are very good: I have tested the modem, turned the pc market etc and I can also receive/send emails.
This problem started today, September 8, 2011 and has never happened before.
Is it a coincidence that Firefox itself to day before I disconnected yesterday evening? Could this be something to do with this particular new update?
I also noticed that just before I "opened" Firefox, I now get a small box indicating:
[JAVASCRIPT APPLICATION]
Handl exc in Ev: TypeError: this oRoot.enable is not a functionThis never appeared before - I hope that it offers a clue has what is wrong.
The browser not be stuck in Mode safe, said by the way.
Of course, I can't find solutions to the problem on the internet, I don't physically see all Web sites!
(A friend sends this request in my name from their pc)Any light you can throw on this problem of confusion would be much appreciated. I'd rather not have to uninstall and reinstall Firefox if possible.
If the only option is to uninstall Firefox and reinstall from your site, I'm also in trouble (I can not see the internet or download).
In this case, would you be able to send the .exe file as an attachment to my e-mail address? In the affirmative, please let me know and I'll give you more details.Thanks in advance.
One possible cause is security software (firewall) that blocks or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.
Delete all rules for Firefox in the list of permissions in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.
See:
Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions of the origin of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
Maybe you are looking for
-
How can I remove "Open all in tabs" of my favorites?
How can I remove "Open all in tabs" of my favorites? It is very annoying when you click on it by mistake. I downgraded from 29 to 28 due to the various bookmark questions I had. I never had this problem with the previous version of FF, why did have t
-
Subject: search in white response
Often when I search in Safari using Google or Yahoo, I get a response for the site I was looking for but then when I click on the result of the search, he responds with "subject: vacuum" and nothing comes. What is the problem? If I switch and use the
-
Satellite P205 Bluetooth Stack Installation-How long does it take?
My Satellite P205 does not have an internal Bluetooth, but it is able to Bluetooth. I plugged a Broadcom USB and it worked at first. Now, I get an error message "Unable to load the Bluetooth Stack". I downloaded Toshiba Bluetooth and run the installa
-
App Builder: How to evaluate the destination path?
I need to add individual *.ini files to a LabVIEW application program, but must always use the same generation (volume Installer) more this individual *.ini file. This is necessary for the individual customer parameters that must be automatically cop
-
need help to move a rear window on the screen
rather than reduce a window I was drag to the side of my desktop and accidentally moved completely out of sight. now when I click on the button in the task bar the only options I have are to close the window or move it. When I click on 'move' I get t