|
|
#1 (permalink) |
|
International Debutant
Join Date: Nov 2004
Location: Colombo,Sri Lanka
Posts: 2,199
|
SQL procedure to search a database
do any of u guys know any websites that I can get an SQL procedure script to seach a MS SQL 2000 database? It's for my Uni project.
all help appreciated.
__________________
Code:
CW CRICKET - May 2009 FC M I NO Runs Avg Ct 50s 100s HS 83 157 8 4237 28.44 79 22 4 169* O W Avg SR 45 18 18.7 27 List - A M I Runs Avg Ct 50s 100s HS 179 174 5828 37.84 67 48 3 121 OD M I Runs Avg Ct 50s 100s HS SR 27 24 716 35.80 15 6 0 71* 74.58 |
|
|
|
|
|
#2 (permalink) | |
|
International Coach
Join Date: Dec 2003
Location: office
Posts: 10,972
|
Quote:
__________________
Do not argue with an idiot. He will drag you down to his level and beat you with experience. RIP Craigos Avatar Courtesy Indian team that toured England in 2011 & GF |
|
|
|
|
|
|
#3 (permalink) | ||
|
Cricket Web: All-Time Legend
Join Date: Dec 2004
Location: Canberra
Posts: 23,218
|
Quote:
mate, if i knew what you were talking about, id try to help you
__________________
Celebrating the defining moments of CW: Quote:
Have you been tested? In memory of Fardin Qayyumi, a true legend of CW |
||
|
|
|
|
|
#5 (permalink) | |
|
Cricket Web Owner
Join Date: Oct 2001
Location: Sydney, Australia
Posts: 22,297
|
Quote:
__________________
Email - james.nixon@cricketweb.net Moderators - moderators@cricketweb.net (will go to all moderators) Skype - nixonja@hotmail.com Google Talk/Facebook - cricketweb@gmail.com |
|
|
|
|
|
|
#6 (permalink) |
|
International Debutant
Join Date: Nov 2004
Location: Colombo,Sri Lanka
Posts: 2,199
|
well, it's a database of patients in an ENT ward in a hospital. this is what I want to do:
when a patient comes the doctor must be able to seach the database to see the details of the patient using the patient ID given to him when the patient first arrived to the ward. if the patient can't remember the ID he must produce his name and address to seach the database. so the searching must be done using: 1)patient ID (if the patient has it that is all that is needed to do the search) if no patient ID use the name and address to do the searching. |
|
|
|
|
|
#8 (permalink) |
|
Cricket Web Owner
Join Date: Oct 2001
Location: Sydney, Australia
Posts: 22,297
|
I would say you're after something like:
Code:
select * from Patient where PatientID = 'PatientID that user entered' select * from Patient where Name = 'Name that user entered' and Address ='Address that user entered' |
|
|
|
|
|
#9 (permalink) |
|
International Coach
Join Date: Dec 2003
Location: office
Posts: 10,972
|
select * from Patient where Name Like 'Name that user entered%'
select * from Patient where Address Like 'Address that user entered%' select * from Patient where Name Like 'Name that user entered%' or Address Like 'Address that user entered%' this will be of help if u want to search it on your on. thats is if u dont know the exact name or address that u have entred |
|
|
|
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 2005 Database Idea Thread | Greg Blewett | General | 91 | 23-05-2005 01:16 AM |