MS SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMS SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 26th, 2004, 01:58 AM
sirius98 sirius98 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 23 sirius98 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 37 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old December 26th, 2004, 02:09 AM
sirius98 sirius98 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 23 sirius98 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 15 m 37 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMS SQL Development > MS access SQL problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway