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

Database

 
AnswerRe: Help me with the query strings. Pin
ahsan sarfraz8-Sep-08 4:45
ahsan sarfraz8-Sep-08 4:45 
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 
SELECT * FROM CITY_POPULATION;

CITY_ID       CITY_POPULATION
-------           ---------------
1                 100
2                 200
3                 300



SELECT * FROM CITY_INFO;

CITY_ID      CITY_NAME
-------          ---------
1                 FIRST CITY
2                 SECOND CITY
3                 THIRD CITY

How can I have some sort of union query that would have the city id, name and population in one output where the id columns from the two tables match, I mean, the city names from the second table should be picked up to match their id number from the other table showing how much population is in that country id with it's name.. something like:

ID, Country Name, Population

Many thanks guys!

modified on Wednesday, September 3, 2008 3:30 PM

AnswerRe: Union query.. I guess:) Pin
TheFM2343-Sep-08 9:32
TheFM2343-Sep-08 9:32 
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 

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.