Click here to Skip to main content
15,919,479 members
Home / Discussions / Database
   

Database

 
GeneralRe: Help with cursor Pin
allende16-Apr-07 2:53
allende16-Apr-07 2:53 
GeneralRe: Help with cursor Pin
Pete O'Hanlon16-Apr-07 5:12
mvePete O'Hanlon16-Apr-07 5:12 
GeneralRe: Help with cursor Pin
allende16-Apr-07 5:43
allende16-Apr-07 5:43 
GeneralRe: Help with cursor Pin
Pete O'Hanlon16-Apr-07 22:50
mvePete O'Hanlon16-Apr-07 22:50 
Questionsql query Pin
Shuaib wasif khan16-Apr-07 1:25
Shuaib wasif khan16-Apr-07 1:25 
AnswerRe: sql query Pin
Christian Graus16-Apr-07 1:43
protectorChristian Graus16-Apr-07 1:43 
QuestionJoin table Pin
AnhTin15-Apr-07 20:33
AnhTin15-Apr-07 20:33 
AnswerRe: Join table Pin
Colin Angus Mackay15-Apr-07 21:08
Colin Angus Mackay15-Apr-07 21:08 
Well, you've broken the first normal form by storing two pieces of information inside one column. You need to split out the province's code from district's code in the district table. You can also duplicate the province's code in the district.

You can then join on the common province codes in each table. Once that is done, you can then write a statement like this:
SELECT province.name, district.* FROM district
INNER JOIN province ON province.code = district.province_code



Upcoming events:
* Glasgow: Introduction to AJAX (2nd May), SQL Server 2005 - XML and XML Query Plans, Mock Objects, SQL Server Reporting Services...

Never write for other people. Write for yourself, because you have a passion for it. -- Marc Clifton


My website

QuestionSQL Cursor Pin
playout15-Apr-07 20:09
playout15-Apr-07 20:09 
AnswerRe: SQL Cursor Pin
Christian Graus15-Apr-07 20:32
protectorChristian Graus15-Apr-07 20:32 
QuestionHelp Me Pin
Mkanchha15-Apr-07 20:00
Mkanchha15-Apr-07 20:00 
AnswerRe: Help Me Pin
_mubashir15-Apr-07 20:10
_mubashir15-Apr-07 20:10 
GeneralRe: Help Me Pin
Mkanchha15-Apr-07 20:25
Mkanchha15-Apr-07 20:25 
QuestionHelp Me soon Pin
Mkanchha15-Apr-07 19:41
Mkanchha15-Apr-07 19:41 
AnswerRe: Help Me soon Pin
_mubashir15-Apr-07 19:59
_mubashir15-Apr-07 19:59 
GeneralRe: Help Me soon Pin
Mkanchha15-Apr-07 20:02
Mkanchha15-Apr-07 20:02 
Questionwhat is the differenece these two statements Pin
shabonaa15-Apr-07 10:58
shabonaa15-Apr-07 10:58 
AnswerRe: what is the differenece these two statements Pin
kubben15-Apr-07 14:51
kubben15-Apr-07 14:51 
QuestionBook in Stored Procedures [modified] Pin
silvioribeiro15-Apr-07 5:16
silvioribeiro15-Apr-07 5:16 
Questiondatagridview failed to insert record into database Pin
Tony_KT_Lau15-Apr-07 0:59
Tony_KT_Lau15-Apr-07 0:59 
QuestionImporting DataTable In SQL SERVER 2000 Pin
microuser_200014-Apr-07 11:07
microuser_200014-Apr-07 11:07 
AnswerRe: Importing DataTable In SQL SERVER 2000 Pin
Jerry Hammond15-Apr-07 4:46
Jerry Hammond15-Apr-07 4:46 
GeneralRe: Importing DataTable In SQL SERVER 2000 Pin
microuser_200015-Apr-07 8:55
microuser_200015-Apr-07 8:55 
Questionproblems in joining 2 tables together [modified] Pin
aren37214-Apr-07 2:00
aren37214-Apr-07 2:00 
AnswerRe: problems in joining 2 tables together Pin
kubben14-Apr-07 2:26
kubben14-Apr-07 2:26 

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.