Click here to Skip to main content
15,887,135 members
Home / Discussions / Database
   

Database

 
GeneralRe: FInd Sundays only Pin
J4amieC23-Mar-11 23:13
J4amieC23-Mar-11 23:13 
GeneralRe: FInd Sundays only Pin
Wendelius23-Mar-11 23:27
mentorWendelius23-Mar-11 23:27 
GeneralRe: FInd Sundays only [modified] Pin
J4amieC23-Mar-11 23:38
J4amieC23-Mar-11 23:38 
GeneralRe: FInd Sundays only Pin
Wendelius24-Mar-11 0:09
mentorWendelius24-Mar-11 0:09 
GeneralRe: FInd Sundays only Pin
rakeshs31224-Mar-11 0:22
rakeshs31224-Mar-11 0:22 
GeneralRe: FInd Sundays only Pin
Wendelius24-Mar-11 4:05
mentorWendelius24-Mar-11 4:05 
AnswerRe: FInd Sundays only Pin
J4amieC23-Mar-11 23:12
J4amieC23-Mar-11 23:12 
QuestionNeed help with updating columns Pin
Slow Learner23-Mar-11 3:15
Slow Learner23-Mar-11 3:15 
Hi, I have two int columns in a table that have a sample data as below
and I need to update these columns with

1).If ColA has a non negative number then update ColB with 0 (zero).
2).If ColA has a negative number then update ColB with the same value
that ColA has.


Can some please help me with sql?


Thanks in advance.
L


-------------------------
ColA | ColB
-----------|------------
-1 -1
-1 -1
-3 -1
4 -1
-1 -1
7 -1
3 -1
73 -1
-3 -1
39 -1
32 -1
35 -1
3 -1
31 -1
3 -1
397 -1
400 -1
403 -1
406 -1
-1 -1
412 -1
436 -1
421 -1
421 -1
424 -1
-1 -1
430 -1
433 -1
-1 -1
415 -1
442 -1
445 -1
-1 -1
-3 -1
487 -1
523 -1
568 -1
472 -1
475 -1
478 -1
-3 -1
490 -1
493 -1
496 -1
502 -1
505 -1
511 -1
514 -1
517 -1
520 -1
-1 -1
526 -1
538 -1
541 -1
544 -1
556 -1
559 -1
550 -1
457 -1
574 -1
-1 -1
580 -1
583 -1
586 -1
589 -1
595 -1
625 -1
604 -1
625 -1
610 -1
-1 -1
622 -1
625 -1
-1 -1
-1 -1
637 -1
-1 -1
649 -1
652 -1
655 -1
658 -1
661 -1
664 -1
667 -1
670 -1
673 -1
-1 -1
685 -1
688 -1
691 -1
697 -1
700 -1
703 -1
709 -1
712 -1
715 -1
718 -1
721 -1
-1 -1
-3 -1
-1 -1
-1 -1
-1 -1
-1 -1
AnswerRe: Need help with updating columns Pin
David Mujica23-Mar-11 3:34
David Mujica23-Mar-11 3:34 
GeneralRe: Need help with updating columns Pin
musefan23-Mar-11 6:09
musefan23-Mar-11 6:09 
AnswerRe: Need help with updating columns [modified] Pin
Wendelius23-Mar-11 3:37
mentorWendelius23-Mar-11 3:37 
GeneralRe: Need help with updating columns Pin
musefan23-Mar-11 6:10
musefan23-Mar-11 6:10 
GeneralRe: Need help with updating columns Pin
Wendelius23-Mar-11 6:15
mentorWendelius23-Mar-11 6:15 
AnswerRe: Need help with updating columns Pin
Klaus-Werner Konrad25-Mar-11 7:23
Klaus-Werner Konrad25-Mar-11 7:23 
QuestionCapture error return by MS Sql Pin
Hum Dum22-Mar-11 20:28
Hum Dum22-Mar-11 20:28 
AnswerRe: Capture error return by MS Sql Pin
Wendelius22-Mar-11 21:11
mentorWendelius22-Mar-11 21:11 
GeneralRe: Capture error return by MS Sql Pin
Hum Dum22-Mar-11 21:29
Hum Dum22-Mar-11 21:29 
GeneralRe: Capture error return by MS Sql Pin
Wendelius22-Mar-11 21:45
mentorWendelius22-Mar-11 21:45 
GeneralRe: Capture error return by MS Sql Pin
Hum Dum22-Mar-11 22:51
Hum Dum22-Mar-11 22:51 
GeneralRe: Capture error return by MS Sql Pin
Wendelius22-Mar-11 23:19
mentorWendelius22-Mar-11 23:19 
QuestionHow to implement a dialog for updating DB with a Cancel (rollback) option Pin
crypto_rsa22-Mar-11 0:47
crypto_rsa22-Mar-11 0:47 
AnswerRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
Johan Hakkesteegt22-Mar-11 1:01
Johan Hakkesteegt22-Mar-11 1:01 
GeneralRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
crypto_rsa22-Mar-11 1:15
crypto_rsa22-Mar-11 1:15 
GeneralRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
Johan Hakkesteegt22-Mar-11 1:38
Johan Hakkesteegt22-Mar-11 1:38 
GeneralRe: How to implement a dialog for updating DB with a Cancel (rollback) option Pin
crypto_rsa22-Mar-11 1:59
crypto_rsa22-Mar-11 1:59 

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.