Click here to Skip to main content
15,901,283 members
Home / Discussions / Database
   

Database

 
AnswerRe: command to find specific value in select Pin
Ashfield21-Jul-09 2:08
Ashfield21-Jul-09 2:08 
GeneralRe: command to find specific value in select Pin
dabuskol21-Jul-09 2:20
dabuskol21-Jul-09 2:20 
GeneralRe: command to find specific value in select Pin
Ashfield21-Jul-09 4:48
Ashfield21-Jul-09 4:48 
QuestionLink Directory Submitter (3016) Pin
maliksp20-Jul-09 23:47
maliksp20-Jul-09 23:47 
RantRe: Link Directory Submitter (3016) Pin
Ashfield21-Jul-09 2:11
Ashfield21-Jul-09 2:11 
QuestionStored Procedure logic Pin
LucBite20-Jul-09 23:40
LucBite20-Jul-09 23:40 
AnswerRe: Stored Procedure logic Pin
J4amieC21-Jul-09 0:10
J4amieC21-Jul-09 0:10 
QuestionAvoining duplicates while joining tables Pin
nainakarri20-Jul-09 23:19
nainakarri20-Jul-09 23:19 
Hi

I have 2 tables, one is with primary key and the other is foreign key. There is one to many relation between the two tables.

i have written query by joining them as below.

But as the 2nd table has more than 1 row, duplicates are coming in the output.

Hence i want to query in such a way that no duplicates should come. Is there any way for this?

Is it possible to write as below....

select table1.col1, (loop through all the rows in table2 and form a srting of the values) as col2 from table1

Thanks in Advance

Regards
Naina
AnswerRe: Avoining duplicates while joining tables Pin
Blue_Boy20-Jul-09 23:31
Blue_Boy20-Jul-09 23:31 
GeneralRe: Avoining duplicates while joining tables Pin
nainakarri21-Jul-09 2:02
nainakarri21-Jul-09 2:02 
AnswerRe: Avoining duplicates while joining tables Pin
Ashfield21-Jul-09 2:14
Ashfield21-Jul-09 2:14 
GeneralRe: Avoining duplicates while joining tables Pin
nainakarri21-Jul-09 2:35
nainakarri21-Jul-09 2:35 
GeneralRe: Avoining duplicates while joining tables Pin
Ashfield21-Jul-09 4:43
Ashfield21-Jul-09 4:43 
QuestionApproach for CRUD transactions of a dynamic form Pin
Member 288307020-Jul-09 23:04
Member 288307020-Jul-09 23:04 
QuestionInsert Query Pin
sachees12320-Jul-09 22:07
sachees12320-Jul-09 22:07 
AnswerRe: Insert Query Pin
DoctorMick21-Jul-09 0:23
DoctorMick21-Jul-09 0:23 
AnswerRe: Insert Query Pin
Ashfield21-Jul-09 2:01
Ashfield21-Jul-09 2:01 
AnswerRe: Insert Query Pin
PIEBALDconsult21-Jul-09 5:18
mvePIEBALDconsult21-Jul-09 5:18 
QuestionSQL server 2005 Reporting Services Pin
Aman786Singh20-Jul-09 21:10
Aman786Singh20-Jul-09 21:10 
QuestionUPSERT implementation Pin
PIEBALDconsult20-Jul-09 10:36
mvePIEBALDconsult20-Jul-09 10:36 
AnswerRe: UPSERT implementation Pin
--CELKO--20-Jul-09 14:28
--CELKO--20-Jul-09 14:28 
GeneralRe: UPSERT implementation Pin
David Skelly21-Jul-09 2:19
David Skelly21-Jul-09 2:19 
GeneralRe: UPSERT implementation Pin
PIEBALDconsult21-Jul-09 5:07
mvePIEBALDconsult21-Jul-09 5:07 
QuestionIs there an SQL Formatter based on Celko's SQL PROGRAMMING STYLE? Pin
--CELKO--20-Jul-09 7:27
--CELKO--20-Jul-09 7:27 
AnswerRe: Is there an SQL Formatter based on Celko's SQL PROGRAMMING STYLE? Pin
PIEBALDconsult20-Jul-09 10:38
mvePIEBALDconsult20-Jul-09 10:38 

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.