Click here to Skip to main content
15,928,983 members
Home / Discussions / Database
   

Database

 
AnswerRe: error with OUTPUT Pin
Not Active14-Oct-09 10:24
mentorNot Active14-Oct-09 10:24 
QuestionNew memory manager for db4o object database Pin
netquake14-Oct-09 3:45
netquake14-Oct-09 3:45 
AnswerRe: New memory manager for db4o object database Pin
_Damian S_14-Oct-09 15:36
professional_Damian S_14-Oct-09 15:36 
QuestionReal time data transfer Pin
krishnaveer14-Oct-09 3:04
krishnaveer14-Oct-09 3:04 
AnswerRe: Real time data transfer Pin
J4amieC14-Oct-09 3:57
J4amieC14-Oct-09 3:57 
AnswerRe: Real time data transfer Pin
i.j.russell14-Oct-09 4:38
i.j.russell14-Oct-09 4:38 
AnswerRe: Real time data transfer Pin
Ashfield14-Oct-09 21:01
Ashfield14-Oct-09 21:01 
QuestionUpdating an Access database based on a sub-select Pin
Kyle Wood13-Oct-09 9:38
Kyle Wood13-Oct-09 9:38 
I have an Access database which contains every date between 01/01/2009 and 21/12/2029. In a 2nd column is a char value indicating whether the date is a working day or not. I need to decide whether xmas & boxing day fall on a non-working day and if so adjust the working day column value. I have the following to calculate the adjusted dates:

SELECT  switch((DATEPART("w",FullDate,2) In (6,7)),DATEADD("d",+2,FullDate),(DATEPART("w",FullDate,2) Not In (6,7)),FullDate)
FROM UKWorkingDays
WHERE DATEPART("m",FullDate,2)=12 And DATEPART("d",FullDate,2) In (25,26);


If I wrap this in an update statement the SQL appears to execute but does nothing at all

UPDATE UKWorkingDays SET WorkingDay = "B"
WHERE FullDate in
(

SELECT  switch((DATEPART("w",FullDate,2) In (6,7)),DATEADD("d",+2,FullDate),(DATEPART("w",FullDate,2) Not In (6,7)),FullDate)
FROM UKWorkingDays
WHERE DATEPART("m",FullDate,2)=12 And DATEPART("d",FullDate,2) In (25,26)

);


Can anyone give me any assistance please ?
AnswerRe: Updating an Access database based on a sub-select Pin
Mycroft Holmes13-Oct-09 14:36
professionalMycroft Holmes13-Oct-09 14:36 
GeneralRe: Updating an Access database based on a sub-select Pin
Kyle Wood14-Oct-09 5:03
Kyle Wood14-Oct-09 5:03 
GeneralRe: Updating an Access database based on a sub-select Pin
Kyle Wood14-Oct-09 5:26
Kyle Wood14-Oct-09 5:26 
QuestionHow to Export a SQLExpress Database Pin
BoySetsFire13-Oct-09 6:54
BoySetsFire13-Oct-09 6:54 
AnswerRe: How to Export a SQLExpress Database Pin
Not Active13-Oct-09 7:08
mentorNot Active13-Oct-09 7:08 
GeneralRe: How to Export a SQLExpress Database Pin
BoySetsFire13-Oct-09 9:46
BoySetsFire13-Oct-09 9:46 
QuestionGenerate combinations for series Pin
Member 277153113-Oct-09 4:34
Member 277153113-Oct-09 4:34 
AnswerRe: Generate combinations for series Pin
Henry Minute13-Oct-09 5:44
Henry Minute13-Oct-09 5:44 
GeneralRe: Generate combinations for series Pin
PIEBALDconsult13-Oct-09 16:02
mvePIEBALDconsult13-Oct-09 16:02 
GeneralRe: Generate combinations for series Pin
Member 277153114-Oct-09 21:53
Member 277153114-Oct-09 21:53 
QuestionStored Procedure Pin
MsmVc12-Oct-09 22:20
MsmVc12-Oct-09 22:20 
AnswerRe: Stored Procedure Pin
εїзεїзεїз12-Oct-09 23:07
εїзεїзεїз12-Oct-09 23:07 
QuestionHow to detect orphaned connections? Pin
Oshtri Deka12-Oct-09 21:16
professionalOshtri Deka12-Oct-09 21:16 
QuestionTotal Newbie Question... Pin
Bomb_shell12-Oct-09 10:21
Bomb_shell12-Oct-09 10:21 
AnswerVisual Studio Pin
David Mujica12-Oct-09 10:39
David Mujica12-Oct-09 10:39 
AnswerRe: Total Newbie Question... Pin
Paul Conrad13-Oct-09 5:37
professionalPaul Conrad13-Oct-09 5:37 
QuestionHow to attached oracle Database in any other Computer? Pin
Rahad Rahman12-Oct-09 0:41
professionalRahad Rahman12-Oct-09 0:41 

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.