Querying in Database help?????? (1 Viewer)

th

No.1 Asset
Joined
Sep 21, 2004
Messages
304
Location
City
Gender
Male
HSC
2005
how do u these in a query????


how do u find all people whose family name contains the letter "a"
 

goan_crazy

Hates the waiting game...
Joined
Sep 28, 2004
Messages
6,225
Location
Sydney
Gender
Male
HSC
2005
A query is a search within a databse
you go for
WHERE surname=a ;)
 
Last edited:

melsc

Premium Member
Joined
Aug 17, 2004
Messages
6,365
Location
Chasing ambulances in the Inner West...
Gender
Female
HSC
2005
or if you want the SQL statement it would be
SELECT (all the fields you want to show up...i.e. last name, first name, address etc)
FROM (name of table)
WHERE LastName="A"
ORDER BY (which field asc or dec)
 

drewgcn

postpantsism
Joined
Jun 23, 2004
Messages
337
Location
Oatley...land of oats.
Gender
Male
HSC
2006
th said:
how do u these in a query????


how do u find all people whose family name contains the letter "a"
Do you mean, what is the SQL (structured query language) used to form that query?

Or how do you create a query in say, Microsoft Access?

For the former...the above two posts have the answer.

If it is the latter, the Microsoft Paperclip is your friend :D!
 
Last edited:

Delta32

usyd junkie
Joined
Apr 2, 2003
Messages
191
Location
Sydney
Gender
Male
HSC
2003
Actually the question was contains "A". Therefore;

SELECT (fieldnames to be displayed)
FROM the relevant tables being queried - eg, customers
WHERE Lastname Like "*a*"
 

rithvikt

*Abeh-OI-*
Joined
Mar 30, 2004
Messages
101
Location
Sydney
Gender
Male
HSC
2005
th said:
how do u these in a query????


how do u find all people whose family name contains the letter "a"
jus simply use the wizard for the queries and drag in the appropriate fields....in the criteria section of the family name field put in 'a' and RUN the thing...u should end up wit the desired results
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top