Click here to Skip to main content
15,896,606 members
Home / Discussions / Database
   

Database

 
QuestionInserting data from an XML string in a table Pin
ONeil Tomlinson4-Sep-08 1:37
ONeil Tomlinson4-Sep-08 1:37 
AnswerRe: Inserting data from an XML string in a table Pin
Wendelius4-Sep-08 8:29
mentorWendelius4-Sep-08 8:29 
QuestionBcp error Pin
si_694-Sep-08 0:29
si_694-Sep-08 0:29 
AnswerRe: Bcp error Pin
Wendelius4-Sep-08 8:26
mentorWendelius4-Sep-08 8:26 
QuestionReg: Handling Text Column in Trigger implementation Pin
Member 40084923-Sep-08 23:38
Member 40084923-Sep-08 23:38 
AnswerRe: Reg: Handling Text Column in Trigger implementation Pin
Wendelius4-Sep-08 8:17
mentorWendelius4-Sep-08 8:17 
QuestionUnion query.. I guess:) Pin
Muammar©3-Sep-08 9:19
Muammar©3-Sep-08 9:19 
AnswerRe: Union query.. I guess:) Pin
TheFM2343-Sep-08 9:32
TheFM2343-Sep-08 9:32 
You would use a join for this.

Select *
From City_Info i
Inner Join City_Population p on
p.City_Id = i.City_Id

The output should be similar to:
City_Id   City_Name     City_Id    City_Population 
------    ------        -------    ------------
1         First City    1          100
2         Second City   2          200
3         Third City    3          300


You probably wouldn't want City_Id two times, so you would need to specify the columns that you want in the select list. Be sure to qualify the column names so you don't get an ambiguous column error (ex: i.City_id, i.City_Name, p.City_Population).
GeneralRe: Union query.. I guess:) Pin
Muammar©3-Sep-08 9:51
Muammar©3-Sep-08 9:51 
GeneralRe: Union query.. I guess:) Pin
Muammar©3-Sep-08 10:33
Muammar©3-Sep-08 10:33 
AnswerRe: Union query.. I guess:) Pin
Wendelius3-Sep-08 9:35
mentorWendelius3-Sep-08 9:35 
GeneralRe: Union query.. I guess:) Pin
Muammar©3-Sep-08 9:56
Muammar©3-Sep-08 9:56 
GeneralRe: Union query.. I guess:) Pin
Wendelius3-Sep-08 10:01
mentorWendelius3-Sep-08 10:01 
QuestionProblems with connecting with ODBC source Pin
Deques3-Sep-08 8:00
Deques3-Sep-08 8:00 
AnswerRe: Problems with connecting with ODBC source Pin
Wendelius3-Sep-08 11:11
mentorWendelius3-Sep-08 11:11 
GeneralRe: Problems with connecting with ODBC source Pin
Deques3-Sep-08 20:56
Deques3-Sep-08 20:56 
GeneralRe: Problems with connecting with ODBC source Pin
Wendelius4-Sep-08 8:56
mentorWendelius4-Sep-08 8:56 
Question[Message Deleted] Pin
TheMandolinMan3-Sep-08 7:58
TheMandolinMan3-Sep-08 7:58 
AnswerRe: Using Parameterized queries in OLEDB Pin
Wendelius3-Sep-08 8:21
mentorWendelius3-Sep-08 8:21 
GeneralRe: Using Parameterized queries in OLEDB Pin
Muammar©3-Sep-08 10:40
Muammar©3-Sep-08 10:40 
JokeRe: Using Parameterized queries in OLEDB Pin
Wendelius3-Sep-08 10:51
mentorWendelius3-Sep-08 10:51 
GeneralRe: Using Parameterized queries in OLEDB Pin
TheMandolinMan4-Sep-08 11:56
TheMandolinMan4-Sep-08 11:56 
GeneralRe: Using Parameterized queries in OLEDB [modified] Pin
Wendelius4-Sep-08 12:17
mentorWendelius4-Sep-08 12:17 
QuestionHelp in Query?? [modified] Pin
geekfromindia3-Sep-08 5:11
geekfromindia3-Sep-08 5:11 
AnswerRe: Help in Query?? Pin
Blue_Boy3-Sep-08 5:20
Blue_Boy3-Sep-08 5:20 

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.