Click here to Skip to main content
15,897,273 members
Home / Discussions / Database
   

Database

 
Questiona basic question Pin
followait12-Sep-08 19:46
followait12-Sep-08 19:46 
AnswerRe: a basic question Pin
Mycroft Holmes12-Sep-08 23:58
professionalMycroft Holmes12-Sep-08 23:58 
Questionhow to insert data from one table to other two diferent tables using SQL query Pin
khalidd12-Sep-08 18:21
khalidd12-Sep-08 18:21 
AnswerRe: how to insert data from one table to other two diferent tables using SQL query Pin
Blue_Boy12-Sep-08 20:48
Blue_Boy12-Sep-08 20:48 
GeneralRe: how to insert data from one table to other two diferent tables using SQL query Pin
khalidd12-Sep-08 23:58
khalidd12-Sep-08 23:58 
GeneralRe: how to insert data from one table to other two diferent tables using SQL query Pin
Mycroft Holmes13-Sep-08 0:00
professionalMycroft Holmes13-Sep-08 0:00 
GeneralRe: how to insert data from one table to other two diferent tables using SQL query Pin
Blue_Boy13-Sep-08 3:27
Blue_Boy13-Sep-08 3:27 
AnswerRe: how to insert data from one table to other two diferent tables using SQL query Pin
nelsonpaixao14-Sep-08 13:31
nelsonpaixao14-Sep-08 13:31 
GeneralRe: how to insert data from one table to other two diferent tables using SQL query Pin
khalidd14-Sep-08 21:46
khalidd14-Sep-08 21:46 
QuestionSELECT COUNT returns 2 answers. Pin
Sunset Towers12-Sep-08 12:36
Sunset Towers12-Sep-08 12:36 
AnswerRe: SELECT COUNT returns 2 answers. Pin
Eslam Afifi12-Sep-08 12:58
Eslam Afifi12-Sep-08 12:58 
QuestionDupicate [modified] Pin
Bassam Saoud12-Sep-08 5:52
Bassam Saoud12-Sep-08 5:52 
GeneralRe: Dupicate Pin
Eslam Afifi13-Sep-08 4:47
Eslam Afifi13-Sep-08 4:47 
GeneralRe: Dupicate Pin
Bassam Saoud13-Sep-08 11:51
Bassam Saoud13-Sep-08 11:51 
GeneralRe: Dupicate Pin
Eslam Afifi13-Sep-08 12:54
Eslam Afifi13-Sep-08 12:54 
QuestionMore advice on a slighltly more complex select statement Pin
Steven J Jowett12-Sep-08 3:40
Steven J Jowett12-Sep-08 3:40 
AnswerRe: More advice on a slighltly more complex select statement Pin
Ashfield12-Sep-08 4:23
Ashfield12-Sep-08 4:23 
GeneralRe: More advice on a slighltly more complex select statement Pin
Steven J Jowett12-Sep-08 4:45
Steven J Jowett12-Sep-08 4:45 
GeneralRe: More advice on a slighltly more complex select statement Pin
Ashfield12-Sep-08 8:34
Ashfield12-Sep-08 8:34 
QuestionSQL Linked Server/Web Service Question Pin
dhbaer12-Sep-08 3:40
dhbaer12-Sep-08 3:40 
AnswerRe: SQL Linked Server/Web Service Question Pin
Steven J Jowett12-Sep-08 4:05
Steven J Jowett12-Sep-08 4:05 
QuestionAdvice on Select query please Pin
Steven J Jowett12-Sep-08 0:32
Steven J Jowett12-Sep-08 0:32 
I have a need to return a table of data, for a MS SQL Server 2005 Stored Procedure, based on the following :-

ID = Table1.ID
If Table1.Status = 0 Then
Name = Table1.Name
Company = NULL
Else
Name = Table2.Name
Company = Table2.Company
Where Table2.ID = Table1.ID
End


I hope this mud is clear.Confused | :confused:

My T-SQL is not bad for the run-of-mill type tasks, but I do struggle with the more complex ones. (But I am learning)

Any pointers on where I should start would be great.

Steve Jowett
-------------------------
Real programmers don't comment their code. If it was hard to write, it should be hard to read.

AnswerRe: Advice on Select query please Pin
dojohansen12-Sep-08 1:17
dojohansen12-Sep-08 1:17 
AnswerRe: Advice on Select query please Pin
Ashfield12-Sep-08 1:39
Ashfield12-Sep-08 1:39 
GeneralRe: Advice on Select query please Pin
Steven J Jowett12-Sep-08 2:18
Steven J Jowett12-Sep-08 2:18 

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.