The query is correct but jdbc modify it !!
my query is
SELECT o.ID_pagamento, SUM (m.valore) FROM operazioni o, movimenti_magazzino m WHERE m.ID_operazioni = o.ID AND m.quantita < 0 GROUP BY o.ID_pagamento
but jdbc automatically executes a second query:
SELECT COUNT(*), O.ID_PAGAMENTO, SUM (M.VALORE) FROM OPERAZIONI O, MOVIMENTI_MAGAZZINO M WHERE M.ID_OPERAZIONI = O.ID AND M.QUANTITA < 0
without the "GROUP BY" the query is wrong
what can I do?
(I use jdk 1.3)
huh?
So the only thing that you are doing is the first query. You are not creating the second one nor are you using a 3rd party library that creates it.
Then it has nothing to do with your first query. And so it doesn't matter whether it is wrong or not.
Now it could be that you are doing something in your java code that causes this. For example trying 'count' the number of rows returned by using 'last'. If so it suggests there is a bug in the driver.
But that doesn't matter. Obviously doing its own query. So you are saving nothing by using the last() method. So you might as well do the query yourself and do it correctly.
Similar Messages
-
Help me Please.. I can log on to the Apple website to manage my account and all the information is correct, but I get “Your Apple ID has been disabled” when I try to get something from App Store on my iPad3
I'm from poland.
Thx
BalbiContact iTunes Customer Service and request assistance...
Use this Link > Apple Support iTunes Store Contact -
I can log on to the Apple website to manage my account and all the information is correct, but I get “Your Apple ID has been disabled” when I try to get something from App Store on my iPhone.
You need to contact Apple Support, particularly iTunes Store support team. Cheers!
-
My iPad won't recognize my wifi password after 7.0.2 update. The password IS correct, but I continue to get the message that the password is incorrect. Any ideas how to fix this?
I have the same problem too on my iPad 3. One thing that sometimes works is if you go to the App Store and put your password in there after a few tries it may work.
-
I have been buying apps for a long time without a problem using my credit card on file. All of a sudden itunes is not recognizing my card which is in good standing. All the info is correct but itunes/apple says it doesn't match the bank info. Any ideas?
Answered in your Other post on this Topic...
https://discussions.apple.com/message/24053626#24053626 -
After updating to IOS 6.0.1 I cannot copy photos from the iPhoto library to the iPhone. The events appear correctly but the photo count in all the Events is 0
Same problem here, and it's not isolated.
https://discussions.apple.com/message/20228281#20228281
I believe you will find you can again sync Photos if you delete the "iPod Photo Cache", but predict that any subsequent attempt will fail. In my case, the enxt sync removes all the photos again - I've seen other reports of error messages upon sync. Mine just fails silently. :-) -
When priniting jewel case inserts, my song order is reversed. The numbering is correct, but the song titles are incorrect. This only happens on jewel case inserts. Any insight would be greatly appreciated.
Hi,
I have exactly, exactly!! thesame annoying problem you have or had. I don't know what to do and i am reallyfrustrated with the dumb limited inside the box solutions offered to me. It'slike if you have a problem with your ipod or iphone you can either restore it,uninstall/reinstall itunes and thats pretty much it. I am sorry but that isjust f***** up.
anyway, regardless to all that,i was wondering if you had any success in solving this problem (something otherthan using a different computer which oddly enough seemed to work for somereason..?? why???, weird) since April.
I am on the edge of givingup.
thank you in advance. -
Why isn't my wifi connecting over a secure network? I typed the password in correctly, but it won't seem to connect.
Tap Settings / Wi-Fi. Tap the blue circle with an arrow to the right of your network then tap: Forget This Network.
Restart the iPad. Tap Settings / Wi-Fi. Tap the network name again then type in your password.
If that didn't help, try here > Apple - Support - iPad - Wi-Fi Assistant
And try turning off your router for 5 minutes, then turn it back on. Try typing in the password again. -
I put the code in correctly but it says, "The Gift certificate or prepaid code has not been properly activated." or "The code you have entered has not been recognized as valid." Help ?
You will need to contact the iTunes Store.
-
my synced Photos on the iPhone are wrong. The Thumbnails are correct but wrong pictures appear if i open them. What can I do?
There is no list of authorized computers. Where do you see a list?
You must be talking about something other than authorization. Please clarify.
iTunes Store: About authorization and deauthorization -
My Ipad has stopped receiving emails today. It has IOS7 on it. The settings are correct but says "connection to the server failed" help!
It is the same accout that has been working find for years and just after I updated the software this has happened. My Mac is still receiving and sending via Outlook with the same account and settings. My Iphone 5C has also stopped and I tried deleting the account and adding again (via exchange as it's an exchange accout) the same way I always do and it won't even recognise it to add the settings.
So annoying. Can anyone help?iOS: Unable to send or receive email
http://support.apple.com/kb/TS3899
Can’t Send Emails on iPad – Troubleshooting Steps
http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
iPad Mail
http://www.apple.com/support/ipad/mail/
Cheers, Tom -
I answer the security questions correctly, but the answers are not accepted
I just got ISo8. i am trying to do the set-up routine. I answer the security questions correctly, but the answers are not accepted, so the process is stalled.
How do I get things moving?Forgotten security questions - https://discussions.apple.com/message/18402551
More involved forgotten question issues - https://discussions.apple.com/thread/3961813 -
need help to download the correct song...title is correct but song is not..
Contact iTunes support.
http://www.apple.com/support/itunes/contact/
B-rock -
How do I check my security answers for my ID? I'm sure I have put them in correctly but Apple says they are wrong. There seems to be no facility to check what answers Apple has and I do not have a rescue e-mail address.
Read the article you linked
-
I'm making a slideshow with Lightroom 5. I'm using a 2014 Macbook Pro. Everything works except when I play the actual slideshow the pictures are smaller than what they should be. But the preview is showing the correct photo size. Does anyone know why this is happening and how to fix it? Thanks!
Hey ronfya
Did you ever get any feedback on this? I haven't read the Technicolor link yet. I was just trying to figure out why my stuff comes out darker on Vimeo. Could this be because FCPX is displaying it to brightly?
A.T.
Maybe you are looking for
-
How to make the query in one single query? No Union please....
Hi, I have sets of around 18 queries which is finding counts in many scenarios. I wanted to have a single query for this. which diplays the result in a single row.Is there a way , I heared analytical functions are good options ,but I am new to Oracle
-
First Time Install Question...
So, I'm using Fusion to run Vista, but I find it's a bit slow, and I'd like to use BootCamp. If I run the BootCamp agent, will it format the OS X partition, or will it remain intact? Thanks!
-
Hi, Thanks in advance. I have a solaris 11 set up with SPARC(sunfire v-250). I wanted to set up a boot from san environment in Solaris 11. 1) In solaris 10 I used to do set up using ufsdump command and the further steps. Now in solaris 11 the command
-
Problem for XSL copying XML file with Error in expression '*|/'.
Hi, I am trying to convert xml file to another xml through command-line interface but failed. java oracle.xml.parser.v2.oraxsl data.xml data.xsl data_new.xml My sample xml and xsl files are: 1. XML file <employee_data> <employee_row> <employee_number
-
Business process engine, Integration engine, and Adapter engine
can you differentiate Business process engine(BPE), Integration engine (IE), and Adapter engine