|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
MS access SQL problem
Hi,
I hope im asking this in the right place. My problem is with the following sql query. Code:
"DELETE FROM carAdds WHERE id=(SELECT a.id FROM carAdds AS a INNER JOIN carAdds AS b ON a.id<b.id WHERE a.idNum=b.idNum AND abs(a.price-b.price)=0.0)" When the inner select returns an array nothing happens. I'm using access 97 with ODBC driver. Im wondering if i can get this to work somehow, any help would be great. Thanks Pete |
|
#2
|
|||
|
|||
|
Well i found my own answer with a bit more looking . I changed where it says id=(select.... to id in (select ...
It worked fine. Hope this helps someone. |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > MS access SQL problem |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|