Click here to Skip to main content
15,900,616 members
Home / Discussions / Database
   

Database

 
GeneralRe: Abnormal Behavior of SQL Server 2008 Enterprise Store Procedure Pin
Tim Carmichael22-May-14 3:41
Tim Carmichael22-May-14 3:41 
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 
SQL
SELECT 
[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


In SSIS 2005 Excel source, i have set the data access mode to SQL command and typed in the above query to get data from 3 Microsoft excel sheets(sheet1, sheet2, sheet3).

The intention is to get all rows in sheet1 with their corresponding reference values in sheets 2 & 3 but for some strange reason, every row in sheet1 is being returned twice.

I can't seem to figure out what i am doing wrong in query?
"Coming soon"



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 
QuestionTranspose multiple rows into multiple columns in SQL Server Pin
Davidemazzuuu13-May-14 4:52
Davidemazzuuu13-May-14 4:52 

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.