SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL 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 ASP Free Forums Sponsor:
  #1  
Old December 24th, 2001, 07:05 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Select Query Problem

Originally posted by : Hussain ali (inboxdollarspk@yahoo.com)Please help me to solve this problem i want to select Username from Orderstable table Name = Orders with fields = order,Country,Name i want to Select Those peoplse who From Usa And Order Amount is equal to 500i am store Country Name in variable called "Con" and oder amount Save in variablecalled "amo"Please help me to create a Query Please Help Me Thanks Thanks Thanks Thanks Thanks Thanks

Reply With Quote
  #2  
Old January 7th, 2002, 03:20 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Originally posted by : TheDude (TheDude@bananateam.nl)try something like this:SELECT * FROM Orders WHERE Country = " & con & " AND Amount = " & amo regards The DudeSoftware EngineerInfopart Automatisering B.V.www.infopart.nl------------Hussain ali at 12/24/2001 5:05:40 PMPlease help me to solve this problem i want to select Username from Orderstable table Name = Orders with fields = order,Country,Name i want to Select Those peoplse who From Usa And Order Amount is equal to 500i am store Country Name in variable called "Con" and oder amount Save in variablecalled "amo"Please help me to create a Query Please Help Me Thanks Thanks Thanks Thanks Thanks Thanks

Reply With Quote
  #3  
Old May 11th, 2002, 04:19 AM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 22
Originally posted by : Manish (manish87@hotmail.com)try thisrs.open "select * from orders where country='" & 'USA' & "'and Amount='" & '500' & "'",connectionif not rs.eof thendo while not rs.eofname=rs("name")rs.movenextloopelsename="None"end ifyou will get the usernames in the variable "Name"okieManish------------TheDude at 1/7/2002 1:20:12 PMtry something like this:SELECT * FROM Orders WHERE Country = " & con & " AND Amount = " & amo regards The DudeSoftware EngineerInfopart Automatisering B.V.www.infopart.nl------------Hussain ali at 12/24/2001 5:05:40 PMPlease help me to solve this problem i want to select Username from Orderstable table Name = Orders with fields = order,Country,Name i want to Select Those peoplse who From Usa And Order Amount is equal to 500i am store Country Name in variable called "Con" and oder amount Save in variablecalled "amo"Please help me to create a Query Please Help Me Thanks Thanks Thanks Thanks Thanks Thanks

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Select Query 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 2 hosted by Hostway