Stuck with - Update- help needed
Hello all and thank you for reading!
I have the following problem with update statment. Tables and data in them are as follows:
Table 1: XML_TRANSFER
create table XML_TRANSFER as
select 111111 TAX_NR, 1 TYPE, 3000 PRIJ, 3000 POBOT from dual union all
select 222222 TAX_NR, 1 TYPE, 720.7 PRIJ, 350.70 POBOT from dual union all
select 333333 TAX_NR, 1 TYPE, 2600 PRIJ, 2100 POBOT from dual;Table 2: FIR_SET
create table FIR_SET as
select 2011 LET, 7 KROG, 111111 TAX_NR, 10 STEV_FAK, 2000 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 111111 TAX_NR, 11 STEV_FAK, 400 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 111111 TAX_NR, 12 STEV_FAK, 400 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 111111 TAX_NR, 13 STEV_FAK, 200 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 222222 TAX_NR, 1 STEV_FAK, 200 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 222222 TAX_NR, 2 STEV_FAK, 20.7 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 222222 TAX_NR, 3 STEV_FAK, 100 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 222222 TAX_NR, 4 STEV_FAK, 400 VALUE_ODPR, 0 VALUE_POBOT from dual union all
select 2011 LET, 7 KROG, 333333 TAX_NR, 81 STEV_FAK, 2600 VALUE_ODPR, 0 VALUE_POBOT from dual;Ok, tables and data are set now for the "update" logic.
Lets look at the data in table XML_TRANSFER.
First row (with TAX_NR = 111111):
UPDATE statment in this case should work like: the VALUE_ODPR should be same as VALUE_POBOT in table FIR_SET.
This part i managed to do with this SQL:
PROCEDURE xml_update is
BEGIN
update fir_set an
set an.value_pobot = an.value_odpr
where let = (select distinct max(let) from fir_set)
and krog = (select max(krog) from fir_set)
and
(select sum(a.VALUE_ODPR)-b.POBOT
from fir_SET a, xml_transfer b
WHERE a.tax_nr = b.tax_nr
and an.tax_nr = a.tax_nr
group by a.tax_nr,b.POBOT) = 0;
commit;
end;Resoult is as:
LET KROG TAX_NR STEV_FAK VALUE_ODPR VALUE_POBOT
2011 7 111111 10 2000 2000
2011 7 111111 11 400 400
2011 7 111111 12 100 100
2011 7 111111 13 200 200 Ok the next example is a bit more tricky and i cant figure it out. I dont know how to explain it properly ... i will
just post the resoult and try to explain it:
LET KROG TAX_NR STEV_FAK VALUE_ODPR VALUE_POBOT
2011 7 222222 1 200 200
2011 7 222222 2 20.7 20.7
2011 7 222222 3 100 100
2011 7 222222 4 400 30 So what we need to do is we check is XML_TRANSFER.POBOT - VALUE_ODPR > 0, IF this is it then we update VALUE_POBOT with VALUE_ODPR.
In next row we check again if above statment is correct and if it is we do the same. The process will continue as long as statment
will be correct.
If statment is no longer correct we have to do this operation: XML_TRANSFER.POBOT - SUM(VALUE_ODPR) (INSIDE SAME TAX_NR!!! So group by tax_nr!!)
and update last row with given resoult. By no means we can get negative numbers.
I really do help i explained my problem so that you will understand what i want to achive. If you have any questions please feel free to ask.
Thank you for your help!
Best regards, Cain!
Hello and thank you again for taking your time!
SQL you posted is still not quite right but we are almost there ... let me show you how it should look like (i have add a little more data into tables):
Table XML_TRANSFER:
TAX_NR TYPE PRIJ POBOT
111111 1 3000 3000
222222 1 720,7 200
333333 1 2600 2100
444444 1 1000 1000
555555 1 5000 3000Those are resoults i get running your SQL .....
LET KROG TAX_NR STEV_FAK VALUE_ODPR VALUE_POBOT
2011 7 111111 10 2000 2000
2011 7 111111 11 400 400
2011 7 111111 12 400 400
2011 7 111111 13 200 200
2011 7 222222 1 200 200
2011 7 222222 2 20,7 0
2011 7 222222 3 100 0
2011 7 222222 4 400 0
2011 7 333333 81 2600 0
2011 7 444444 55 1000 1000
2011 7 555555 111 2000 0
2011 7 555555 82 1000 1000
2011 7 555555 83 1500 1500the correct resoults should be:
LET KROG TAX_NR STEV_FAK VALUE_ODPR VALUE_POBOT
2011 7 111111 10 2000 2000
2011 7 111111 11 400 400
2011 7 111111 12 400 400
2011 7 111111 13 200 200
2011 7 222222 1 200 200
2011 7 222222 2 20,7 0
2011 7 222222 3 100 0
2011 7 222222 4 400 0
2011 7 333333 81 2600 2100
2011 7 444444 55 1000 1000
2011 7 555555 111 2000 500
2011 7 555555 82 1000 1000
2011 7 555555 83 1500 1500Note at line 2011 7 333333 81 2600 2100 and at line 2011 7 555555 111 2000 500 I hope its more clear now.
PS at 2600 the correct resoult is 2100 and not 0.
Thank you
best regards!
Edited by: Cain_oracle on 24.8.2011 1:08
Similar Messages
-
Macbook pro two days old...bought logic from app store...logic has installed partly each time i open it up it wants to download rest of programme then stops half way thru and gets error message 'logic is unable to continue with download' help needed !
Hello:
I would trot back into the Apple store and have them fix the problem (or call Applecare with a warranty issue). There is no sense in you wasting your time trying to troubleshoot things on a new computer.
Barry -
Mail stuck with "updating cache directory"
I've been getting bit by Mail getting stuck with "updating cache directory" on just one of my three IMAP accounts (separate providers). Gmail and MobileMe are fine, it is just with FuseMail which uses Microsoft Exchange servers. I have finally found something that may point to the problem:
http://www.theexchangeguide.info/exchange-server-clients/2011/28/apples-mail-app -with-exchange-2007-via-imap-or-owa.html
Folks,
Azaleos has now spent 6 months working with Microsoft on this issue.
The diagnosis appears to be that significant changes were made to the IMAP protocol implementation in Exchange 2007 that significantly deteriorates the performance of MAC Mail.App clients, especially client with large mailboxes, against Exchange 2007 vs. Exchange 2003.
Although the Microsoft support team’s response has been absolutely exemplary, we have been unable to make the Exchange development team understand the significance of this takeback from Exchange 2003, nor been able to have them implement fixes in the Exchange 2007 stack to address the issue.
More significantly, we have also received absolutely no response from Apple regarding the deficiencies of the MAC Mail.App client, nor even any acknowledgement of the problem. In fact, from the complete lack of response we’ve received, Apple has an absolutely abysmal Enterprise support capability and far worse than anything we’ve experienced from Microsoft.
At this time, Azaleos does not recommend that customers who have significant MAC Mail.App implementations with sizeable mailboxes (in excess of 500MB mailboxes) upgrade from Exchange 2003 to Exchange 2007.
We are recommending to customers that they do upgrade to Exchange 2007. But, that any users of MAC Mail.App move immediately to Entourage or to an e-mail client that implements a solution that is less than 10 years out of date.
Thanks,
Keith McCall
CTO, Azaleos Corporation
I'm posting this both as a reference for others and as a question to see if there is a way to resolve this as a customer, other than dumping FuseMail for a non-Microsoft house?
Thanks!
ChipI finally had to get FuseMail to "reset the IMAP flags" on their end and everything seemed to resolve itself.
-
Stuck with updating AACS key / WinDVD 8
I have a W700 with BluRay drive. Occasionally I used it to watch BluRay movies using WinDVD 8. But when I tried this recently, WinDVD told me, that the AACS key has expired / been deacvtived and asked me, if I want to renew it. I followed all the instructions from Corel (turning off UAC, making IE the standard browser), but it is giving me an error "Server is unable to process your renewal request".
I did run ThinkVantage System Update, which updated the WinDVD version from B09.572C14.63616.00000T0000 to B09.581C14.64008.00000T0000, but still cannot renew the AACS key.
I found another update for WinDVD on Lenovo's drivers and software page: windvd88171u-a.exe. According to the description (http://support.lenovo.com/de_DE/downloads/detail.page?DocID=DS003904) it should be applicable for LOGID 64008, but the update fails saying it doesn't seem applicable.
So I'm stuck with renewing the AACS key / updating WinDVD 8. Any help is very much appreciated.
Thanks in advance.
Andy
Solved!
Go to Solution.Hi, Andy
a
I did some research and found a forum thread from Corel's site. I wasn't able to find too much, but I did find something simple that might help. A user claims to have had the same issue as you, and it would only update the AACS key if he was already logged in on the Corel site. I'm not sure if this will solve your issue, but it could be something to try.
Good luck,
Adam
Did someone help you today? Press the star on the left to thank them with a Kudo!
If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it. -
Ayttm PKGBUILD update/Help needed
The PKGBUILD in the aur is badly outdated..V0.6.2 of ayttm is out . .and the PKGBUILD in the aur was to build v0.5 ...
I have made a PKGBUILD of ayttm git over here
http://aur.pastebin.com/9sMXVMz4
Apart from that , building of ayttm fails..
Both with the stable release of Ayttm 6 and the git
Got this error here..
http://pastebin.com/vx514JTp
was wondering if anyone cud help me out..
Any help would be much appreciated
Last edited by fplolz (2010-04-22 11:11:28)With Windows, you need to disable firewall/AV/antiphishing/malware software. Once you do this, you should be able to complete the update.
-
When I try to update my 3GS, I get a window that pops up and says that my "network connection has timed out". I have been on the phone with Apple twice now and they have no idea what to tell me!!! So frustrated! Please help!
With Windows, you need to disable firewall/AV/antiphishing/malware software. Once you do this, you should be able to complete the update.
-
Please help me with updating my Ipod to Itunes. When I try it it doesnt recognize my ipod
Have you carefully worked through each and every single suggestion in this Apple support document?
iPod not recognized in 'My Computer' and in iTunes for Windows
What shows up on the iPod's display when you connect it to your PC? Does it charge?
B-rock -
I have just upgraded to the latest version of Powershell 3, but my Update-Help won't work. I am running this in an elevated Admin prompt. This is the error message I get:
PS C:\scripts> Update-Help
Update-Help : Failed to update Help for the module(s) 'Microsoft.PowerShell.Management, Microsoft.PowerShell.Utility,
CimCmdlets, ISE, Microsoft.PowerShell.Diagnostics, Microsoft.PowerShell.Host, Microsoft.PowerShell.Security,
Microsoft.WSMan.Management, PSScheduledJob, PSWorkflow, PSWorkflowUtility, Microsoft.PowerShell.Core' with UI
culture(s) {en-US} : Unable to connect to Help content. Make sure the server is available and then try the command
again.
At line:1 char:1
+ Update-Help
+ ~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Update-Help], Exception
+ FullyQualifiedErrorId : UnableToConnect,Microsoft.PowerShell.Commands.UpdateHelpCommand
Does anyone have any ideas. By the way, my culture is en-ZA, but I've tried -UICulture with this argument, as well as en-US, and I've tried using -Force.
Grant Ward, a.k.a. BigteddyHi,
When I run the update-help on a server without network connection to the internet, then I got the error message as yours, so I would like to know that whether your computer connect to the internet.
Regards,
Yan Li
TechNet Subscriber Support
If you are
TechNet Subscription
user and have any feedback on our support quality, please send your feedback
here.
Yan Li
TechNet Community Support -
Stuck with an error, need help.
Hi Gurus,
I am calling the workflow throught the function module SWW_wi_start_simple, I am throwing with an exception 'read_failed' Can any one say why this error being stated.
Secondly, I coded as below to start the work flow with the wf container. How can i use those conatiner variables in the workflow builder
I coded as below now , now can i use these variables directly in workflow builder or do i need to create again in the workflow builder.
Can any one say this please I am in need.
code
FUNCTION zhr_workflow_initiator.
""Local interface:
*" IMPORTING
*" REFERENCE(EMPLOYEENR) LIKE PA0000-PERNR
*" REFERENCE(PLANNAME) LIKE T5UCA-LTEXT
*" REFERENCE(DEPENDANCY) LIKE T5UCF-LTEXT
INCLUDE <cntn01>.
DATA: wis_obj TYPE swc_object.
DATA: task LIKE swwvpublic-wi_rh_task VALUE 'WS90000001',
WI_ID LIKE swwvpublic-wi_id.
DATA: agents LIKE swhactor OCCURS 0 WITH HEADER LINE,
wi_container LIKE swcont OCCURS 0 WITH HEADER LINE.
DATA:BEGIN OF benadjreakey,
pernr LIKE PA0001-PERNR,
subty like p0378-subty,
objps like p0378-objps,
sprps like p0378-sprps,
endda like p0378-endda,
begda like p0378-begda,
seqnr like p0378-seqnr,
END OF benadjreakey.
data: l_PLANNAME(30) TYPE c,
l_DEPENDANCY(20) TYPE c.
data: BENEFIT_PLAN like T5UCA-BPLAN,
DEPENDACY_CODE like T5UCF-DEPCV,
COMPANY_CODE like PA0001-BUKRS,
PERSONAL_AREA like PA0001-WERKS.
"Initialize" NULL_AGENTS1
CLEAR agents.
REFRESH agents.
MOVE employeenr TO benadjreakey-pernr.
move planname to l_planname.
move dependancy to l_dependancy.
**MOVE SUBTYPE to BENADJREAKEY-subty.
**MOVE LOCKINDICATOR to BENADJREAKEY-sprps.
**MOVE VALIDITYEND to BENADJREAKEY-endda.
**MOVE VALIDITYBEGIN to BENADJREAKEY-begda.
**MOVE RECORDNUMBER to BENADJREAKEY-seqnr.
CALL FUNCTION 'ZHR_BEN_WORFLOW_DATA'
EXPORTING
PLANNAME = l_planname
PERNR = benadjreakey-pernr
DEPENDANCY = l_dependancy
IMPORTING
BENEFIT_PLAN = benefit_plan
DEPENDACY_CODE = DEPENDACY_CODE
COMPANY_CODE = COMPANY_CODE
PERSONAL_AREA = PERSONAL_AREA
Get object Referance
swc_create_object wis_obj 'BENADJREAS' benadjreakey.
swc_set_element wi_container 'benefit_plan_code' BENEFIT_PLAN.
swc_set_element wi_container 'Dependancy_code' DEPENDACY_CODE.
swc_set_element wi_container 'Company_code' Company_code.
swc_set_element wi_container 'PERSONAL_AREA' PERSONAL_AREA.
swc_set_element wi_container 'ADJUSTMENTREASON' wis_obj.
swc_container_to_persistent wi_container.
CALL FUNCTION 'SWW_WI_START_SIMPLE'
EXPORTING
task = task
IMPORTING
wi_id = wi_id
TABLES
AGENTS = AGENTS
wi_container = wi_container
EXCEPTIONS
id_not_created = 1
read_failed = 2
execution_failed = 3.
MOVE wi_id TO workitem_id.
IF sy-subrc <> 0.
WRITE / 'NO_workflow_started'.
ENDIF.
ENDFUNCTION.
RaviHi Ravi,
You were able to program the function module but you are not able to find out why the exception is raised? This sounds a bit strange to me, or do you want us to give an answer in stead of searching for one yourself?
If you didn't create these container elements in the workflow you can't use them, and it could even be that that is why your exception is raised. By putting them in a container which is used when starting the workflow, they will not be automatically created in your workflow.
And to be more up to date use FM SAP_WAPI_START_WORKFLOW as Arghadip suggested.
Regards,
Martin -
Stuck with array's NEED HELP!!!
I have been working at this for two hours now and I need a someone else's opinion other than my own. I need to create a method that finds the row index of the row which contains the largest number divisible evenly by 6. and the column index of the column with the smallest sum. all in one method.
This is what I have so far.
public static int sum(int[][]arr, int numRow)
int[][] s;
s = new int[0][10];
int u = 0, largestevenindex = 0, largesteven = -99999, product = 0, sum = 0, i, j;
for(i=0;i<numRow;i++)
for(j=0;j<arr.length;j++)
if(arr[i][j]%6==0 && arr[i][j]>largesteven) //To find the the row index of the largest number divisible by 6.
largesteven = arr[i][j];
largestevenindex = i;
System.out.println(largesteven);
System.out.println(largestevenindex);
for(u=0;u<arr[i].length;u++) //I think I have to create another table and place the sums of the colums and then compare. Is there an easier way?
s[0] = s[0][u]+arr[i][j];
System.out.println(s[0][u]);
return largestevenindex;
This is the test file23 45 10 77 19 13 16
52 34 71 19 88 65 3
12 1 57 16 4 36 17
9 22 31 27 8 25 12
56 77 88 22 33 44 99
6 21 16 89 4 37 48
25 17 8 9 64 72 81
95 26 5 73 18 92 66
99 12 45 72 19 77 43
11 71 26 34 81 7 45
16 2 34 68 67 7 51
19 52 4 56 51 95 12
57 4 7 9 2 1 3
Anyone have any tips for my code, or another way to do this. Thanks.Your right flounder, I forget to add we are suppose to just find the product of the two index(smallest sum cloum index and largest row index divisible by 6)
public static int sum(int[][]arr, int numRow)
int[][] s;
s = new int[0][10];
int u = 0, largestevenindex = 0, largesteven = -99999, product = 0, sum = 0, i, j;
for(i=0;i<numRow;i++)
for(j=0;j<arr.length;j++)
if(arr[i][j]%6==0 && arr[i][j]>largesteven)
largesteven = arr[i][j];
largestevenindex = i;
return largestevenindex;
This gets the row index of the highest number divisible by 6. How do I go about finding the colum index that has the smallest sum. any hints or clues. It has to be apart of this method, though. -
Z77A-GD55: Boot stuck with flashing cursor (need help!)
When I start my computer, it says A2 in the lower left of the screen, and then B2 for quite a long time. Afterwards, it's just a white cursor flashing on a black background, and nothing else happens.
I have recently installed a third hard disk and changed my graphics card (from 2x Sapphire HD 7970 to 1x EVGA GTX 760).
What can I do to fix this problem?Quote from: badboy2k on 20-August-13, 05:16:16
A2 = IDE Detect (looking for a hard drive as you do not have a OS that could just be the issue there)
B2 = Legacy Option ROM Initialization <---- that is a problem and may indicate you have a problem with your EVGA GeForce GTX 760 as that is usually a Graphics Card issue code (check its seated and connected properly)
was the 3rd HDD clean (new with no OS on it) and what SATA port you got it attached to?
I removed the graphics card and connected the screen cables to the motherboard instead, and then started the computer. I worked fine, but of course, I can't use it how I want to without a graphics card.
I then tried to insert it again, and made sure everything was connected properly. When I then started the computer, nothing had changed, and it was still stuck at the flashing cursor.
The new hard disk was clean, yes. I previously had my three drives connected like this:
- SSD (240GB) and HDD (2000GB) connected to the two SATA 1&2 (6.0 Gb/s)
- Optical drive (Bru-Ray read/write) connected to SATA 3 (3.0 Gb/s)
When I installed the new hard disk, I connected the old 2TB to SATA 4 (3.0 Gb/s), and the new 3TB to SATA 2 (6.0 Gb/s).
The 240GB SSD is the disk with the operating system (Win7 64), and this is still, and has always been, connected to SATA 1.
Does anyone have any possible solutions for my problem from the information currently given?
I haven't been able to use my dear gaming computer for four weeks now, and it's driving me crazy... -
Ipod touch 3.1 update help needed urgently
please hepl!!!!
ive just downloaded the 3.1 update for my ipod touch , but halfway through the transfer from my computer to my i touch , i lost power to my computer , now my i touch is stuck on a screen with the apple logo and a progress bar that is empty , ive unplugged and plugged my i touch in again and it isnt even recognised
what do i do now
please help
thanks
russi have the same exact problem and i have tried all the trouble shooting steps and it still doing the same thing. any suggestions??
-
How do I fix Calendar getting stuck with updating to iOS5?
I have a 3rd generation iPod Touch. I updated to iOS5 this summer, but some programs/apps got very slow, but the biggest, consistent problem is the Calendar app. It gets stuck, it launches and the calendar is "empty" even though there are series of appt. each day. If it does launch okay and I try to touch the + to make a new appointment, it is extremely slow, but if it does work, when I tap "done" for it to make the appointment, it gets stuck on the screen and I have to leave the program by tapping the home screen.
How do I get the Calendar app to function smoothly, properly, and just work?
Here's my set up:
3rd generation iPod Touch.
iOS 5.1.1
In Settings -> Accounts:
1.****@gmail.com (which then says iCloud) with Mail "off", Contacts "on" Calendars "OFF", Bookmarks "On" Notes "Off"
2. Gmail with Mail, Calendars and Notes "ON."
(This was the set up from the days of iOS4, IMAP gmail/mail program via wifi, Calendar syncs via google calendar and syncs over to iCal on MacBook Pro, Notes sync wifi into Mail program notes.)
I have tried switching Calendar Off and on again and it doesn't help, but I can try again. I'm looking for the next level of diagnostics or means to remedy the problem.
Thanks!Try:
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Reset all settings
Go to Settings > General > Reset and tap Reset All Settings.
All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device. -
Volunteer in Uganda struggling for iTunes update, help needed!
I cannot connect my iphone 3GS to the macbook I have been issued with because the version of itunes on it is too old. When I attempt to update it I get a message saying that the server cannot be verified, I select the option to continue anyway only to then by told that the server cannot be contacted.
I am on a satelite uplink system in rural south western Uganda. There is almost no music on this macbook but I have authorised this macbook and I want to sync with it. Any advice?I think you are stuck for a bit Norman. iTunes 11.1.1 and is not working with my 3GS which can not be updated to iOS 7. You can not get iTunes 11.0.5 as a download from Apple, and it worked fine with the 3GS.
You can use PhoneView from eccam or Senti to copy the music from the iPhone to your Mac, where you should be able to play then through iTunes then.
Either is a lot smaller than an iTunes update, so should help with the satelite link. -
I have a 4 year old macbook with OS X v 10.5.8. In order to use a new iPod classic, I have to update my iTunes. In order to update my iTunes, I have to update my OS to 10.6.8. I downloaded it but got a message saying that I can't install it unless I hhave OS X v 10.6.
I can't find a 10.6 update download.
Can anyone help? This is really frustrating.Try installing iTunes 10.6.3. If that doesn't work, there isn't a download and you need to buy the upgrade on DVD.
(79853)
Maybe you are looking for
-
Error while opening Excel report using servlet
Hi I am using a servlet to open an excel report which has multiple sheets . But there is a weird problem when i try to open an excel report with two sheets having the same name . Generally when an excel with same sheet names is opened with Microsoft
-
Error ID 30610: Enter a valid username that includes three or more characters
Hi Everyone: I just got my BlackBerry Curve 9330 Smartphone from Verizon and I keep getting this error message over and over again when I try to make a UserID. Sorry if I'm repeating the question. I am using just simple letters. Not even numbers
-
How to create arched text without using envelope warp in Illustrator?
I am using Illustrator cs3 on mac os X This is a video of my problem that I sent to a fellow designer but didn't get an answer I was happy with. Can anyone help? http://www.screencast.com/t/4RePFrecwr
-
ESS source code check in error in CMS
Hi Guys, Am getting the following error when trying to check in the ESS source code in the CMS NWDI . com.sap.cms.util.exception.CMSUnexpectedException: cannot load file: /usr/sap/trans/CMS/inbox/SAPESS06_0-20000512.SCA Error: Could not extract file
-
Problems with lightning adapter?
The lightning to 30-pin adapter - bought from Apple - does not fit my iPhone 5. Surely I'm not the only one?