Click here to Skip to main content
15,891,033 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to get the list of Names which starts with numerics. Pin
K V Sekhar18-Dec-08 18:56
K V Sekhar18-Dec-08 18:56 
Questionsybase version 6 Pin
postonoh5-Dec-08 7:46
postonoh5-Dec-08 7:46 
AnswerRe: sybase version 6 Pin
Mycroft Holmes5-Dec-08 14:48
professionalMycroft Holmes5-Dec-08 14:48 
QuestionUsing DataTable.Select in the slickest way possible Pin
jesarg5-Dec-08 6:55
jesarg5-Dec-08 6:55 
AnswerRe: Using DataTable.Select in the slickest way possible Pin
Wendelius5-Dec-08 7:16
mentorWendelius5-Dec-08 7:16 
QuestionUgly group by problem Pin
gantww5-Dec-08 5:40
gantww5-Dec-08 5:40 
AnswerRe: Ugly group by problem Pin
Ben Fair5-Dec-08 5:54
Ben Fair5-Dec-08 5:54 
Questionretrieve from 3 table Pin
benjamin yap5-Dec-08 4:38
benjamin yap5-Dec-08 4:38 
Retrieve Data from 3 tables

Schema

symptom(ID,name,description)
visitentry(visitentryID,datevisit,weight,height,bmi,medicalNotes,patientID)
visitentrysymptom(symptonentryID, patientID, symptomID, date)

Records

symptom table
1 || fever || feeling hot in the body
2 || flu || sneezing non stop

visit entry table
1 || 03/12/2008 || 50 || 1.68 || 17 || high fever 40 degree || 12

visit entry symptom table

1 || 12 || 1 || 03/12/2008
2 || 12 || 2 || 03/12/2008


I wan to extract the data from visitentry and visitentrysymptom

i wrote this sql code but dont know how to extract both fever and flu because my visit entry symptom table shows that the same user has 2 symptom

Select * from visitentry
where patientID = @patientID
AnswerRe: retrieve from 3 table Pin
Ben Fair5-Dec-08 5:38
Ben Fair5-Dec-08 5:38 
QuestionHow can I insert a record into a table in SQLCE? Pin
JUNEYT5-Dec-08 0:10
JUNEYT5-Dec-08 0:10 
AnswerRe: How can I insert a record into a table in SQLCE? Pin
Wendelius5-Dec-08 7:38
mentorWendelius5-Dec-08 7:38 
Questionsql server 2008 Filestream Pin
lambo4-Dec-08 21:19
lambo4-Dec-08 21:19 
AnswerRe: sql server 2008 Filestream Pin
Mycroft Holmes4-Dec-08 21:32
professionalMycroft Holmes4-Dec-08 21:32 
GeneralRe: sql server 2008 Filestream Pin
Paddy Boyd5-Dec-08 0:42
Paddy Boyd5-Dec-08 0:42 
QuestionVLDB optimization Pin
sujithkumarsl4-Dec-08 20:00
sujithkumarsl4-Dec-08 20:00 
AnswerRe: VLDB optimization Pin
Ashfield4-Dec-08 21:02
Ashfield4-Dec-08 21:02 
GeneralRe: VLDB optimization Pin
sujithkumarsl4-Dec-08 21:05
sujithkumarsl4-Dec-08 21:05 
GeneralRe: VLDB optimization Pin
Ashfield5-Dec-08 1:14
Ashfield5-Dec-08 1:14 
AnswerRe: VLDB optimization Pin
Mycroft Holmes4-Dec-08 21:39
professionalMycroft Holmes4-Dec-08 21:39 
AnswerRe: VLDB optimization Pin
Wendelius5-Dec-08 7:31
mentorWendelius5-Dec-08 7:31 
GeneralRe: VLDB optimization Pin
sujithkumarsl8-Dec-08 17:29
sujithkumarsl8-Dec-08 17:29 
GeneralRe: VLDB optimization Pin
Wendelius9-Dec-08 7:40
mentorWendelius9-Dec-08 7:40 
GeneralRe: VLDB optimization Pin
sujithkumarsl9-Dec-08 16:51
sujithkumarsl9-Dec-08 16:51 
GeneralRe: VLDB optimization Pin
Wendelius10-Dec-08 4:41
mentorWendelius10-Dec-08 4:41 
QuestionHow can I optimize this SQL Query? Pin
Rafferty Uy4-Dec-08 17:52
Rafferty Uy4-Dec-08 17:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.