Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

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 ASP Free Forums Sponsor:
  #1  
Old February 15th, 2005, 04:20 PM
slglassett's Avatar
slglassett slglassett is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Pacific Grove, CA in beautiful Monterey
Posts: 200 slglassett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 28 m 49 sec
Reputation Power: 5
Send a message via AIM to slglassett
select min value

Hi,

This is my SQL code,
"SELECT MIN(TotalLeft) FROM Burn"


And this is where I ask to see the result.

Line 275 = <%response.write recordset("TotalLeft")%>

I am getting this error:
ADODB.Recordseterror '800a0cc1'


Item cannot be found in the collection corresponding to the requested name or ordinal. /Content/DLRC/DLRC_Interface/CD_DVD_log.asp, line 275

Any insight? My SQL code is correct and works in my Access Database....

Thanks!

Reply With Quote
  #2  
Old February 15th, 2005, 04:24 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
Click here for more information.
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,781 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 8 h 45 m 55 sec
Reputation Power: 470
Change your sql statement to this
Code:
SELECT MIN(TotalLeft) As TotalLeft FROM Burn"
Comments on this post
slglassett agrees: Momnoch is very helpful

Reply With Quote
  #3  
Old February 15th, 2005, 04:28 PM
slglassett's Avatar
slglassett slglassett is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Pacific Grove, CA in beautiful Monterey
Posts: 200 slglassett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 28 m 49 sec
Reputation Power: 5
Send a message via AIM to slglassett
Thanks, that was a much quicker fix than me sitting here trying to figure it out....much appreciated.



Quote:
Originally Posted by Memnoch
Change your sql statement to this
Code:
SELECT MIN(TotalLeft) As TotalLeft FROM Burn"

Reply With Quote
  #4  
Old February 15th, 2005, 04:44 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
Click here for more information.
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,781 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 8 h 45 m 55 sec
Reputation Power: 470
Read my signature regarding "Helpful Posts" and adding reputation points.

Glad, it worked for you.

Reply With Quote
  #5  
Old February 15th, 2005, 04:52 PM
slglassett's Avatar
slglassett slglassett is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Pacific Grove, CA in beautiful Monterey
Posts: 200 slglassett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 28 m 49 sec
Reputation Power: 5
Send a message via AIM to slglassett
Gottcha! One more thing....and I will do your request.

How do I do more than one min value?

I have this:

"SELECT MIN(TotalLeft) as TotalLeft AND MIN(DVDTotal) as DVDTotal FROM Burn"

and I am getting an error..........thanks, you always are very helpful.

Reply With Quote
  #6  
Old February 15th, 2005, 04:57 PM
Memnoch's Avatar
Memnoch Memnoch is offline
Unholy Moderator
Click here for more information.
 
Join Date: Oct 2003
Location: In hell, where did you think?
Posts: 11,781 Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level)Memnoch User rank is Lieutenant Colonel (40000 - 50000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 8 h 45 m 55 sec
Reputation Power: 470
try this
Code:
SELECT MIN(TotalLeft) As TotalLeft, MIN(DVDTotal) As DVDTotal FROM Burn

Reply With Quote
  #7  
Old February 15th, 2005, 05:17 PM
slglassett's Avatar
slglassett slglassett is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Pacific Grove, CA in beautiful Monterey
Posts: 200 slglassett User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 16 h 28 m 49 sec
Reputation Power: 5
Send a message via AIM to slglassett
It's weird, it is not selecting the lowest DVDTotal.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > select min value


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
Stay green...Green IT