Click here to Skip to main content
15,886,963 members
Home / Discussions / Database
   

Database

 
GeneralRe: database log file configuration.. Pin
Eddy Vluggen27-Nov-17 7:55
professionalEddy Vluggen27-Nov-17 7:55 
GeneralRe: database log file configuration.. Pin
Member 1353603027-Nov-17 8:12
Member 1353603027-Nov-17 8:12 
GeneralRe: database log file configuration.. Pin
Eddy Vluggen27-Nov-17 9:54
professionalEddy Vluggen27-Nov-17 9:54 
AnswerRe: database log file configuration.. Pin
jschell27-Nov-17 10:10
jschell27-Nov-17 10:10 
QuestionEntity Framework VS Linq To SQL Pin
Kevin Marois15-Nov-17 12:29
professionalKevin Marois15-Nov-17 12:29 
AnswerRe: Entity Framework VS Linq To SQL Pin
Richard Deeming28-Nov-17 7:17
mveRichard Deeming28-Nov-17 7:17 
AnswerRe: Entity Framework VS Linq To SQL Pin
Nathan Minier28-Nov-17 8:58
professionalNathan Minier28-Nov-17 8:58 
QuestionChange old store to new store Pin
Member 1333807514-Nov-17 18:13
Member 1333807514-Nov-17 18:13 
I want to change the old store to new store by using the query in MSSQL. For example,

Staff_Id Name Transaction_Date New_Store Old_Store 
--------------------------------------------------
1        AA   1.1.2017         1

1        AA   1.2.2017         2

1        AA   1.3.2017         3

1        AA   1.4.2017         1

1        AA   1.5.2017         4

I want to change the table to following like that 
Staff_Id Name Transaction_Date New_Store Old_Store
--------------------------------------------------
1        AA   1.1.2017         1         NULL

1        AA   1.2.2017         2         1

1        AA   1.3.2017         3         2

1        AA   1.4.2017         1         3

I wrote the query like that, but it's not true, it's output randomly

SQL
Update EC1 SET EC1.Old_Store=EC.New_Store
 From Employee_Change EC , Employee_Change EC1 
WHERE EC.Staff_Id=EC1.Staff_Id 
AND EC.Transaction_Date>=EC1.Transaction_Date


AnswerRe: Change old store to new store Pin
Richard Deeming15-Nov-17 2:47
mveRichard Deeming15-Nov-17 2:47 
AnswerRe: Change old store to new store Pin
CHill6015-Nov-17 10:23
mveCHill6015-Nov-17 10:23 
QuestionSSIS throwing error as: Did not read byte array properly Pin
indian1438-Nov-17 8:14
indian1438-Nov-17 8:14 
AnswerRe: SSIS throwing error as: Did not read byte array properly Pin
CHill6011-Nov-17 3:38
mveCHill6011-Nov-17 3:38 
GeneralRe: SSIS throwing error as: Did not read byte array properly Pin
indian14312-Nov-17 20:24
indian14312-Nov-17 20:24 
AnswerRe: SSIS throwing error as: Did not read byte array properly Pin
jschell15-Nov-17 7:52
jschell15-Nov-17 7:52 
QuestionManaging Database Changes Pin
Kevin Marois8-Nov-17 5:04
professionalKevin Marois8-Nov-17 5:04 
AnswerRe: Managing Database Changes Pin
David Mujica8-Nov-17 5:53
David Mujica8-Nov-17 5:53 
AnswerRe: Managing Database Changes Pin
jschell8-Nov-17 7:33
jschell8-Nov-17 7:33 
AnswerRe: Managing Database Changes Pin
Mycroft Holmes8-Nov-17 14:10
professionalMycroft Holmes8-Nov-17 14:10 
AnswerRe: Managing Database Changes Pin
kmoorevs11-Nov-17 9:58
kmoorevs11-Nov-17 9:58 
GeneralRe: Managing Database Changes Pin
Richard Deeming13-Nov-17 1:49
mveRichard Deeming13-Nov-17 1:49 
GeneralRe: Managing Database Changes Pin
kmoorevs13-Nov-17 8:29
kmoorevs13-Nov-17 8:29 
QuestionGet specific records from DB Pin
_Flaviu28-Oct-17 23:08
_Flaviu28-Oct-17 23:08 
AnswerRe: Get specific records from DB Pin
A_Griffin28-Oct-17 23:48
A_Griffin28-Oct-17 23:48 
AnswerRe: Get specific records from DB Pin
Mycroft Holmes28-Oct-17 23:54
professionalMycroft Holmes28-Oct-17 23:54 
QuestionA question about the behavior of Jet and Ace drivers Pin
indian14324-Oct-17 7:58
indian14324-Oct-17 7:58 

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.