User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MS SQL section within the Web Development category of DaniWeb, a massive community of 427,119 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,092 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MS SQL advertiser: Programming Forums
Views: 4940 | Replies: 1
Reply
Join Date: Sep 2006
Posts: 2
Reputation: ramy2622 is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
ramy2622 ramy2622 is offline Offline
Newbie Poster

Help about comparison operators, LIKE operator

  #1  
Sep 28th, 2006
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~~~
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2006
Posts: 90
Reputation: Inanna is on a distinguished road 
Rep Power: 3
Solved Threads: 6
Inanna's Avatar
Inanna Inanna is offline Offline
Junior Poster in Training

Re: about comparison operators, LIKE operator

  #2  
Sep 30th, 2006
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%'
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MS SQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MS SQL Forum

All times are GMT -4. The time now is 6:16 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC