Click here to Skip to main content
15,925,602 members
Home / Discussions / Database
   

Database

 
AnswerRe: Datetime in sqlserver Pin
Neeraj Kr16-Jul-09 8:18
Neeraj Kr16-Jul-09 8:18 
AnswerRe: Datetime in sqlserver Pin
Ashfield16-Jul-09 21:03
Ashfield16-Jul-09 21:03 
GeneralRe: Datetime in sqlserver Pin
dan!sh 17-Jul-09 1:43
professional dan!sh 17-Jul-09 1:43 
GeneralRe: Datetime in sqlserver Pin
David Skelly17-Jul-09 2:05
David Skelly17-Jul-09 2:05 
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 
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 
What you posted as a table is not aligned well. A Join can be done this way


Table1
ID    Name         ID_Number
==============================
1     Vuyiswa      810945212121
2     nainakarri   817454212121

Table2

ID    Name         ID_Number       Date_Added
=============================================
1     Vuyiswa      810945212121    2009-09-09
2     nainakarri   867454212121    2009-09-10
2     James        847454212121    2009-09-11
2     Daniel       837454212121    2009-09-12


Now to run a Join for this two tables you do something like this


SELECT * FROM TABLE1 T1
INNER JOIN  TABLE2 T2
ON T1.ID_NUMBER = T2.ID_NUMBER 


as you can see i have used a "*" that means you have to select what ever columns you want.

Hope this Helps

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

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 

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.