Click here to Skip to main content
15,912,205 members
Home / Discussions / Database
   

Database

 
AnswerRe: Complex SQL View Pin
albCode27-Sep-06 2:18
albCode27-Sep-06 2:18 
GeneralRe: Complex SQL View Pin
Dayekh27-Sep-06 3:06
Dayekh27-Sep-06 3:06 
GeneralRe: Complex SQL View Pin
albCode27-Sep-06 3:10
albCode27-Sep-06 3:10 
GeneralRe: Complex SQL View Pin
Dayekh27-Sep-06 3:15
Dayekh27-Sep-06 3:15 
GeneralRe: Complex SQL View Pin
albCode27-Sep-06 3:30
albCode27-Sep-06 3:30 
GeneralRe: Complex SQL View Pin
Dayekh27-Sep-06 3:48
Dayekh27-Sep-06 3:48 
GeneralRe: Complex SQL View Pin
albCode27-Sep-06 3:58
albCode27-Sep-06 3:58 
QuestionInsert Record in Tables Pin
shapper27-Sep-06 1:18
shapper27-Sep-06 1:18 
Hello,

I have two tables with the following fields:

1. Table "web_Content"

Fields: [ContentId] > Primary Key;
[ContentName];
[ContentPage].

2. Table "web_ContentLocalized"

Fields: [Content_LocalizedId] > Primary Key
[ContentId] > Joined to ContentId in table "web_Content"
[ContentCulture]
[ContentHtml]

I want to INSERT a new record in both databases.
What I mean is that a new record will add values to [ContentName];
[ContentPage]; [ContentCulture] and [ContentHtml].

[ContentId] and [Content_LocalizedId] are autonumbers.

[ContentId] in table "web_ContentLocalized" should be the same as in
[ContentId] of "web_Content" table.

Anyway, I tried but until now I was able to make this work.

This is what I have:

INSERT INTO web_Content ( ContentPage, ContentName )
SELECT web_Content.ContentPage, web_Content.ContentName
FROM web_Content INNER JOIN web_ContentLocalized ON
web_Content.ContentId = web_ContentLocalized.ContentId;

Thanks,
Miguel
AnswerRe: Insert Record in Tables Pin
Mike Dimmick27-Sep-06 2:13
Mike Dimmick27-Sep-06 2:13 
QuestionHow to search a dataset Pin
Rip Kirby27-Sep-06 0:11
Rip Kirby27-Sep-06 0:11 
AnswerRe: How to search a dataset Pin
Kschuler27-Sep-06 8:41
Kschuler27-Sep-06 8:41 
GeneralRe: How to search a dataset Pin
Rip Kirby27-Sep-06 23:48
Rip Kirby27-Sep-06 23:48 
GeneralRe: How to search a dataset Pin
Kschuler28-Sep-06 3:05
Kschuler28-Sep-06 3:05 
GeneralRe: How to search a dataset Pin
Rip Kirby28-Sep-06 9:25
Rip Kirby28-Sep-06 9:25 
QuestionGetting Maximum number: Pin
Shahzad.Aslam26-Sep-06 23:55
Shahzad.Aslam26-Sep-06 23:55 
AnswerRe: Getting Maximum number: Pin
albCode27-Sep-06 1:02
albCode27-Sep-06 1:02 
AnswerRe: Getting Maximum number: Pin
Rob Graham27-Sep-06 2:27
Rob Graham27-Sep-06 2:27 
AnswerRe: Getting Maximum number: Pin
Eric Dahlvang27-Sep-06 3:40
Eric Dahlvang27-Sep-06 3:40 
QuestionEncrypt in Dotnet and Decrypt in SQL 2000 Pin
Prash.26-Sep-06 21:54
Prash.26-Sep-06 21:54 
QuestionHow to write if i have 3 condition for WHERE? Pin
cheeken2u26-Sep-06 20:21
cheeken2u26-Sep-06 20:21 
AnswerRe: How to write if i have 3 condition for WHERE? Pin
albCode27-Sep-06 4:05
albCode27-Sep-06 4:05 
QuestionIDENT_CURRENT Pin
Polymorpher26-Sep-06 19:15
Polymorpher26-Sep-06 19:15 
QuestionHow to excute parameterized storeprocedure in LinkedServer Pin
Rickey_Me26-Sep-06 18:55
Rickey_Me26-Sep-06 18:55 
QuestionProblem with SELECT query using ADO.NET and C# Pin
Baz26-Sep-06 10:06
Baz26-Sep-06 10:06 
AnswerRe: Problem with SELECT query using ADO.NET and C# Pin
indianet26-Sep-06 10:40
indianet26-Sep-06 10:40 

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.