Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Application and Web Development > Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...)
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 12-13-2006, 07:00 AM   #1 (permalink)
daraptor
Recruit
 
Join Date: Dec 2006
Posts: 14
daraptor is on a distinguished road
help with query

hey guyz...am a newbie to sql....
i got this table in MS access which has got all the airport codes.........
the name of the table is Airport_codes...
the column names in the table are.....Airport_code, Airport_name, State, Country......so my problem is what would be the query to get any airport code.....for example
when i type cmh in the search box it should bring up port columbus intl airport .....
like this i should be able to bring up any airport code jss by typin the code in the search box....i hope u got my point....i know this is a dumb question...but am a newbie...am quite confused...hope someone will help me out with this.....thanx guyz......
__________________
daraptor is offline   Reply With Quote
Old 12-15-2006, 05:16 PM   #2 (permalink)
technobard
Centurion Nova Prime
 
technobard's Avatar
 
Join Date: May 2002
Location: Oak Park, IL (USA)
Posts: 284
technobard is on a distinguished road
I'm not 100% sure what you're asking. If you're using the QBE (Query by Example) screen, you literally just type in the code you're talking about. You have to include any columns you want to see in your output on the QBE form. If you're talking about SQL, that's a different story. Try creating a query using the wizard and then go into design view.
__________________
It takes 2 points to draw a straight line, but at least 3 points to draw a conclusion.
technobard is offline   Reply With Quote
Old 03-18-2007, 01:40 AM   #3 (permalink)
defiantphantom
Recruit
 
Join Date: Mar 2007
Location: Pasig, Phil
Posts: 5
defiantphantom is on a distinguished road
Send a message via ICQ to defiantphantom
H there daraptor,

I know ireplied to you very late
As to my understanding this is the sql statement you are looking for :

SELECT Airport_name FROM Airport_codes WHERE Airport_code = 'cmh'

Just replace chm with the txtbox name.


Hope that helps!
__________________
defiantphantom is offline   Reply With Quote
Reply


Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
socket based CS server query Redline PHP 11 06-18-2006 05:20 PM
Need help optimizing a query Belisarius Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 3 12-23-2005 06:33 AM
Inserting the results of a select query into seperate tables Ste_Boro PHP 1 02-17-2005 05:05 AM
a query type of questiton sde Program Design and Methods 6 08-21-2003 04:55 PM
foreach() while() for() or new mysql query? nemesis PHP 6 06-10-2003 06:57 PM


All times are GMT -8. The time now is 10:02 PM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle