Click here to Skip to main content
15,898,134 members
Home / Discussions / Database
   

Database

 
GeneralRe: Connecting to an SQL Database. Pin
Eddy Vluggen21-Jun-13 9:39
professionalEddy Vluggen21-Jun-13 9:39 
QuestionDictionary Database Requried for Android.... Pin
mAzeem229-Jun-13 8:19
mAzeem229-Jun-13 8:19 
AnswerRe: Dictionary Database Requried for Android.... Pin
Eddy Vluggen10-Jun-13 3:36
professionalEddy Vluggen10-Jun-13 3:36 
QuestionSQL Server table sizes. Pin
Septimus Hedgehog8-Jun-13 0:24
Septimus Hedgehog8-Jun-13 0:24 
AnswerRe: SQL Server table sizes. Pin
i.j.russell8-Jun-13 23:01
i.j.russell8-Jun-13 23:01 
GeneralRe: SQL Server table sizes. Pin
Septimus Hedgehog9-Jun-13 5:43
Septimus Hedgehog9-Jun-13 5:43 
Questiongetting common data Pin
Arun kumar Gautam7-Jun-13 10:58
Arun kumar Gautam7-Jun-13 10:58 
AnswerRe: getting common data Pin
Eddy Vluggen9-Jun-13 2:29
professionalEddy Vluggen9-Jun-13 2:29 
txt
Patient
Patient_id
Patient_name

Medicine
med_id
medicine_name
patient_id

attachment
attachment_id
attachment
patient_id

Let's use "Coffee" as a sample medication; if both you and me were to be medicated with coffee, the medicine would need to be inserted into the "medicine" table twice. That's a modelling error.

Arun kumar Gautam wrote:
now i want data as
patient_name medicine_name attachment
I'd suggest you first fix your database-model. You can try Normalization[^] to correct it, or hope that someone else comes up with a different design.

FWIW, it'd be best to register which patient takes which medication in a separate table. Once you have that, it's easy to join the tables and display them in a single row.

Further, I'd also recommend to change the naming-pattern of the fields. As is, the name of the table is often repeated in the fieldname, wich is redundant.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

AnswerRe: getting common data Pin
prakash.chakrala4-Jul-13 23:19
prakash.chakrala4-Jul-13 23:19 
QuestionNeed Help in SQL Server "Stored Procedure" Pin
dr_iton6-Jun-13 5:59
dr_iton6-Jun-13 5:59 
AnswerRe: Need Help in SQL Server "Stored Procedure" Pin
Corporal Agarn6-Jun-13 7:06
professionalCorporal Agarn6-Jun-13 7:06 
GeneralRe: Need Help in SQL Server "Stored Procedure" Pin
dr_iton6-Jun-13 10:42
dr_iton6-Jun-13 10:42 
QuestionRe: Need Help in SQL Server "Stored Procedure" Pin
gvprabu12-Jun-13 4:27
gvprabu12-Jun-13 4:27 
QuestionHow to Insert Error_Message() into table and return user defined Message Pin
Robymon5-Jun-13 21:33
Robymon5-Jun-13 21:33 
AnswerRe: How to Insert Error_Message() into table and return user defined Message Pin
Corporal Agarn6-Jun-13 7:09
professionalCorporal Agarn6-Jun-13 7:09 
AnswerRe: How to Insert Error_Message() into table and return user defined Message Pin
gvprabu12-Jun-13 4:35
gvprabu12-Jun-13 4:35 
AnswerRe: How to Insert Error_Message() into table and return user defined Message Pin
prakash.chakrala5-Jul-13 0:48
prakash.chakrala5-Jul-13 0:48 
QuestionBetter TSQL for searching - looking for suggestions Pin
jkirkerx4-Jun-13 8:40
professionaljkirkerx4-Jun-13 8:40 
AnswerRe: Better TSQL for searching - looking for suggestions Pin
RedDk4-Jun-13 11:18
RedDk4-Jun-13 11:18 
GeneralRe: Better TSQL for searching - looking for suggestions Pin
jkirkerx4-Jun-13 12:17
professionaljkirkerx4-Jun-13 12:17 
GeneralRe: Better TSQL for searching - looking for suggestions Pin
RedDk4-Jun-13 12:26
RedDk4-Jun-13 12:26 
GeneralRe: Better TSQL for searching - looking for suggestions Pin
jkirkerx4-Jun-13 12:58
professionaljkirkerx4-Jun-13 12:58 
QuestionEncode richtextbox1 Pin
cdpsource4-Jun-13 4:11
cdpsource4-Jun-13 4:11 
Questiondebugging a stored procedure Pin
Member 87018133-Jun-13 21:10
Member 87018133-Jun-13 21:10 
AnswerRe: debugging a stored procedure Pin
Eddy Vluggen4-Jun-13 0:31
professionalEddy Vluggen4-Jun-13 0:31 

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.