Click here to Skip to main content
15,908,909 members
Home / Discussions / Database
   

Database

 
GeneralRe: How I can get a particular row in view for sql 2000? Pin
balaponnuswamy13-Aug-08 3:30
balaponnuswamy13-Aug-08 3:30 
GeneralRe: How I can get a particular row in view for sql 2000? Pin
Blue_Boy13-Aug-08 3:31
Blue_Boy13-Aug-08 3:31 
GeneralRe: How I can get a particular row in view for sql 2000? Pin
balaponnuswamy13-Aug-08 3:35
balaponnuswamy13-Aug-08 3:35 
GeneralRe: How I can get a particular row in view for sql 2000? Pin
Blue_Boy13-Aug-08 3:53
Blue_Boy13-Aug-08 3:53 
AnswerRe: How I can get a particular row in view for sql 2000? Pin
Tim Carmichael13-Aug-08 5:48
Tim Carmichael13-Aug-08 5:48 
AnswerRe: How I can get a particular row in view for sql 2000? Pin
Wendelius13-Aug-08 8:22
mentorWendelius13-Aug-08 8:22 
GeneralRe: How I can get a particular row in view for sql 2000? Pin
Tripathi Swati18-Aug-08 23:00
Tripathi Swati18-Aug-08 23:00 
QuestionHow can I get match with any one of Table2 Pin
azusakt12-Aug-08 23:06
azusakt12-Aug-08 23:06 
Dear All,

I have a question about joining 2 table.

e.g. table1 contains
user---inv---amount---data2
a --- 001--- 1000 --- dfsdf
st --- 001--- 1200 --- sdfs
b --- 002--- 1300 --- sdf
c --- 004--- 1400 --- sdf


e.g. table2 contains
cid--- data--- FromCountry
001--- acd--- USA
001--- efg --- USA
001--- okk --- USA
002--- cce --- CHI
003--- eer --- UK
003--- err --- UK
004--- edr --- VOC

I would like to construct a table base on table1, and include the field "FromCountry" from table2.

I use
select table1.user, table1.inv, table2.FromCountry
From table1, table2,
Where table1.inv = table2.cid

when joining 2 table, I found there are duplicated records generated...
How can I just get the "FromCountry" from any one of "cid" record in table2? The perfer result on new table is:

user --- inv --- FromCountry
a --- 001 --- USA
st --- 001 --- USA
b --- 002 --- CHI
c --- 004 --- VOC

PLEASE HELP
AnswerRe: How can I get match with any one of Table2 [modified] Pin
Blue_Boy13-Aug-08 1:19
Blue_Boy13-Aug-08 1:19 
QuestionRetrieve duplicate and non duplicate query Pin
sujtha12-Aug-08 20:35
sujtha12-Aug-08 20:35 
AnswerRe: Retrieve duplicate and non duplicate query Pin
soni uma12-Aug-08 20:51
soni uma12-Aug-08 20:51 
GeneralRe: Retrieve duplicate and non duplicate query Pin
Blue_Boy12-Aug-08 21:23
Blue_Boy12-Aug-08 21:23 
AnswerRe: Retrieve duplicate and non duplicate query Pin
Blue_Boy12-Aug-08 21:22
Blue_Boy12-Aug-08 21:22 
GeneralRe: Retrieve duplicate and non duplicate query Pin
sujtha12-Aug-08 23:12
sujtha12-Aug-08 23:12 
GeneralRe: Retrieve duplicate and non duplicate query Pin
Blue_Boy13-Aug-08 2:01
Blue_Boy13-Aug-08 2:01 
GeneralRe: Retrieve duplicate and non duplicate query Pin
sujtha13-Aug-08 2:15
sujtha13-Aug-08 2:15 
GeneralRe: Retrieve duplicate and non duplicate query Pin
Blue_Boy13-Aug-08 2:18
Blue_Boy13-Aug-08 2:18 
QuestionError while executing the Stored Procedure Pin
K V Sekhar12-Aug-08 20:04
K V Sekhar12-Aug-08 20:04 
AnswerRe: Error while executing the Stored Procedure Pin
SleepingHades12-Aug-08 20:40
SleepingHades12-Aug-08 20:40 
GeneralRe: Error while executing the Stored Procedure Pin
K V Sekhar12-Aug-08 20:45
K V Sekhar12-Aug-08 20:45 
GeneralRe: Error while executing the Stored Procedure Pin
SleepingHades12-Aug-08 21:03
SleepingHades12-Aug-08 21:03 
GeneralRe: Error while executing the Stored Procedure Pin
K V Sekhar12-Aug-08 21:30
K V Sekhar12-Aug-08 21:30 
GeneralRe: Error while executing the Stored Procedure [modified] Pin
SleepingHades12-Aug-08 21:39
SleepingHades12-Aug-08 21:39 
GeneralRe: Error while executing the Stored Procedure Pin
K V Sekhar12-Aug-08 21:57
K V Sekhar12-Aug-08 21:57 
QuestionDeadlocks Pin
DotNetMan12-Aug-08 15:22
DotNetMan12-Aug-08 15:22 

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.