Click here to Skip to main content
16,004,901 members
Home / Discussions / Database
   

Database

 
GeneralRe: Datetime in sqlserver Pin
Ashfield17-Jul-09 8:34
Ashfield17-Jul-09 8:34 
QuestionConverting rows into columns (PIVOT for string values) Pin
Leo Smith16-Jul-09 5:55
Leo Smith16-Jul-09 5:55 
AnswerRe: Converting rows into columns (PIVOT for string values) Pin
Mycroft Holmes17-Jul-09 16:19
professionalMycroft Holmes17-Jul-09 16:19 
QuestionHow to capture sql commands in oracle like sqlprofiler ? Pin
hdv21216-Jul-09 4:18
hdv21216-Jul-09 4:18 
AnswerRe: How to capture sql commands in oracle like sqlprofiler ? Pin
dan!sh 16-Jul-09 4:31
professional dan!sh 16-Jul-09 4:31 
Questionget from a number its real character value Pin
kKamel16-Jul-09 1:50
kKamel16-Jul-09 1:50 
AnswerRe: get from a number its real character value Pin
dan!sh 16-Jul-09 3:59
professional dan!sh 16-Jul-09 3:59 
QuestionProblem in joining 2 tables Pin
nainakarri15-Jul-09 23:30
nainakarri15-Jul-09 23:30 
Hi
I have 2 tables Table1 and Table2 as below

Table1 Table2
col1 col2 col1 col21 col31 col22 col32
1 xx 1 A 0 AA null
2 yy 1 B 0 BB null
3 zz 1 C 0 CC null
1 0 X null XX
1 0 Y null YY

now on joining 2 tables, i want the output as below

Table1.Col1 Table1.col2 Table2.col21 Table2.col31 Table2.col22 Table2.col32
1 xx A X AA XX
1 XX B Y BB YY
1 XX C null CC null

Am not sure whether join is to be used or what? Is there any way i can get the output like this. Table2 will have many other rows takking the col1 of Table1 as primary key.

Regards
Naina
AnswerRe: Problem in joining 2 tables Pin
Blue_Boy15-Jul-09 23:36
Blue_Boy15-Jul-09 23:36 
GeneralRe: Problem in joining 2 tables Pin
nainakarri16-Jul-09 0:30
nainakarri16-Jul-09 0:30 
AnswerRe: Problem in joining 2 tables Pin
Vimalsoft(Pty) Ltd15-Jul-09 23:40
professionalVimalsoft(Pty) Ltd15-Jul-09 23:40 
AnswerRe: Problem in joining 2 tables Pin
ScottM115-Jul-09 23:42
ScottM115-Jul-09 23:42 
QuestionConverted sql Query to Oracle Pin
sandhya1415-Jul-09 18:50
sandhya1415-Jul-09 18:50 
AnswerRe: Converted sql Query to Oracle Pin
Vimalsoft(Pty) Ltd15-Jul-09 20:53
professionalVimalsoft(Pty) Ltd15-Jul-09 20:53 
GeneralRe: Converted sql Query to Oracle Pin
sandhya1415-Jul-09 21:00
sandhya1415-Jul-09 21:00 
GeneralRe: Converted sql Query to Oracle Pin
Vimalsoft(Pty) Ltd15-Jul-09 21:01
professionalVimalsoft(Pty) Ltd15-Jul-09 21:01 
GeneralRe: Converted sql Query to Oracle Pin
sandhya1415-Jul-09 21:07
sandhya1415-Jul-09 21:07 
GeneralRe: Converted sql Query to Oracle Pin
Vimalsoft(Pty) Ltd15-Jul-09 21:15
professionalVimalsoft(Pty) Ltd15-Jul-09 21:15 
GeneralRe: Converted sql Query to Oracle Pin
Vimalsoft(Pty) Ltd15-Jul-09 21:24
professionalVimalsoft(Pty) Ltd15-Jul-09 21:24 
GeneralRe: Converted sql Query to Oracle Pin
sandhya1415-Jul-09 21:27
sandhya1415-Jul-09 21:27 
GeneralRe: Converted sql Query to Oracle Pin
Vimalsoft(Pty) Ltd15-Jul-09 21:28
professionalVimalsoft(Pty) Ltd15-Jul-09 21:28 
GeneralRe: Converted sql Query to Oracle Pin
sandhya1415-Jul-09 21:32
sandhya1415-Jul-09 21:32 
GeneralRe: Converted sql Query to Oracle Pin
Vimalsoft(Pty) Ltd15-Jul-09 21:34
professionalVimalsoft(Pty) Ltd15-Jul-09 21:34 
GeneralRe: Converted sql Query to Oracle Pin
sandhya1415-Jul-09 21:39
sandhya1415-Jul-09 21:39 
GeneralRe: Converted sql Query to Oracle Pin
Vimalsoft(Pty) Ltd15-Jul-09 21:47
professionalVimalsoft(Pty) Ltd15-Jul-09 21:47 

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.