DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   MS SQL (http://www.daniweb.com/forums/forum127.html)
-   -   about comparison operators, LIKE operator (http://www.daniweb.com/forums/thread56418.html)

ramy2622 Sep 28th, 2006 6:43 am
about comparison operators, LIKE operator
 
Can anybody ttell me the query for the question below, plz?

(a) Output the names of students and their addresses for those students who are living in Hunghom.

thx a lot~~~

Inanna Sep 30th, 2006 9:28 pm
Re: about comparison operators, LIKE operator
 
The details depend on how you've set up your table, but something like this:
select name, address from MyTable where city = 'Hunghorn'
Or if you need to pick Hunghorn from the address itself:
select name, address from MyTable where address like '%Hunghorn%'


All times are GMT -4. The time now is 11:00 am.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC