Click here to Skip to main content
15,899,026 members
Home / Discussions / Database
   

Database

 
GeneralRe: Abnormal Behavior of SQL Server 2008 Enterprise Store Procedure Pin
Eddy Vluggen22-May-14 5:10
professionalEddy Vluggen22-May-14 5:10 
AnswerRe: Abnormal Behavior of SQL Server 2008 Enterprise Store Procedure Pin
Shameel22-May-14 3:05
professionalShameel22-May-14 3:05 
Questionhow to updat a column from start point Pin
mhd.sbt20-May-14 0:59
mhd.sbt20-May-14 0:59 
AnswerRe: how to updat a column from start point Pin
Shameel20-May-14 1:19
professionalShameel20-May-14 1:19 
GeneralRe: how to updat a column from start point Pin
mhd.sbt20-May-14 1:35
mhd.sbt20-May-14 1:35 
GeneralRe: how to updat a column from start point Pin
thatraja20-May-14 2:14
professionalthatraja20-May-14 2:14 
GeneralRe: how to updat a column from start point Pin
mhd.sbt20-May-14 7:57
mhd.sbt20-May-14 7:57 
AnswerRe: how to updat a column from start point Pin
thatraja20-May-14 8:06
professionalthatraja20-May-14 8:06 
GeneralRe: how to updat a column from start point Pin
mhd.sbt20-May-14 8:26
mhd.sbt20-May-14 8:26 
AnswerRe: how to updat a column from start point Pin
thatraja20-May-14 8:37
professionalthatraja20-May-14 8:37 
GeneralRe: how to updat a column from start point Pin
NitinDhapte16-Jun-14 3:01
NitinDhapte16-Jun-14 3:01 
AnswerRe: how to updat a column from start point Pin
PIEBALDconsult20-May-14 3:36
mvePIEBALDconsult20-May-14 3:36 
GeneralRe: how to updat a column from start point Pin
mhd.sbt20-May-14 17:47
mhd.sbt20-May-14 17:47 
GeneralRe: how to updat a column from start point Pin
Mycroft Holmes20-May-14 19:54
professionalMycroft Holmes20-May-14 19:54 
AnswerRe: how to updat a column from start point Pin
NitinDhapte16-Jun-14 3:08
NitinDhapte16-Jun-14 3:08 
QuestionUpdate DB Table based on another temp Table data Pin
Sachin k Rajput 19-May-14 4:11
Sachin k Rajput 19-May-14 4:11 
AnswerRe: Update DB Table based on another temp Table data Pin
PIEBALDconsult19-May-14 12:22
mvePIEBALDconsult19-May-14 12:22 
Questionweird scenario after executing prepared statement mysql Pin
Gilbert Consellado15-May-14 23:15
professionalGilbert Consellado15-May-14 23:15 
AnswerRe: weird scenario after executing prepared statement mysql Pin
Kornfeld Eliyahu Peter17-May-14 8:21
professionalKornfeld Eliyahu Peter17-May-14 8:21 
GeneralRe: weird scenario after executing prepared statement mysql Pin
Gilbert Consellado21-May-14 23:53
professionalGilbert Consellado21-May-14 23:53 
QuestionJoin Query returning duplicated rows Pin
devenv.exe15-May-14 23:13
professionaldevenv.exe15-May-14 23:13 
AnswerRe: Join Query returning duplicated rows Pin
Mycroft Holmes16-May-14 13:20
professionalMycroft Holmes16-May-14 13:20 
AnswerRe: Join Query returning duplicated rows Pin
NitinDhapte6-Jun-14 23:07
NitinDhapte6-Jun-14 23:07 
Dear,

It happens only when the multiple records are available with the correspondence of [Sheet1$].Id into the [Sheet2$] ([Sheet2$].Sheet2Id) Or [Sheet3$] ([Sheet3$].Sheet3Id).

Please check with the multiple records into the Both the Sheet 2 & 3.

If you dont want to remove the multiple records from those sheets then

Add distinct clause into the SELECT Query.

SQL
SELECT DISTINCT 
[Sheet1$].Sheet1DetailId,
[Sheet1$].Sheet1Id,
[Sheet2$].Sheet2Id,
LTrim(RTrim([Sheet3$].Mission)) + '-' + CStr(Format('01-' + [Sheet3$].Sheet3Date,"mm/dd/yyyy")) AS Sheet3DateColumn,
[Sheet1$].one,
[Sheet1$].two,
[Sheet1$].three,
[Sheet1$].four,
[Sheet1$].five,
[Sheet1$].six,
[Sheet1$].seven,
[Sheet1$].eight,
[Sheet1$].nine,
[Sheet1$].ten,
LTRIM(RTRIM([Sheet2$].Name)) AS Sheet2Name
FROM      (([Sheet1$])
INNER JOIN [Sheet2$] ON [Sheet1$].Id = [Sheet2$].Sheet2Id)
INNER JOIN [Sheet3$] ON [Sheet1$].Id = [Sheet3$].Sheet3Id

QuestionTranspose multiple rows into multiple columns in SQL Server Pin
Davidemazzuuu13-May-14 4:52
Davidemazzuuu13-May-14 4:52 
AnswerRe: Transpose multiple rows into multiple columns in SQL Server Pin
Corporal Agarn13-May-14 5:46
professionalCorporal Agarn13-May-14 5:46 

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.