Click here to Skip to main content
15,884,629 members
Home / Discussions / C#
   

C#

 
GeneralRe: Object reference not set to an instance of an object Pin
Jassim Rahma16-May-12 5:59
Jassim Rahma16-May-12 5:59 
Questionfinding unmatched record/data in two sql tables Pin
James_201214-May-12 6:25
James_201214-May-12 6:25 
AnswerRe: finding unmatched record/data in two sql tables Pin
Dave Kreskowiak14-May-12 7:08
mveDave Kreskowiak14-May-12 7:08 
GeneralRe: finding unmatched record/data in two sql tables Pin
PIEBALDconsult14-May-12 7:47
mvePIEBALDconsult14-May-12 7:47 
AnswerRe: finding unmatched record/data in two sql tables Pin
Sentenryu14-May-12 8:47
Sentenryu14-May-12 8:47 
GeneralRe: finding unmatched record/data in two sql tables Pin
James_201214-May-12 9:56
James_201214-May-12 9:56 
GeneralRe: finding unmatched record/data in two sql tables Pin
James_201214-May-12 10:00
James_201214-May-12 10:00 
AnswerRe: finding unmatched record/data in two sql tables Pin
Sentenryu15-May-12 1:31
Sentenryu15-May-12 1:31 
(i'm from Brazil, so MT and ET aren't so familiar to me, but I've searched...)

between ET and MT there are 2 hours of difference, so, you can add 2 hours to your time in ET to convert it to time in MT (if this is really necessary, please, verify) so, you can use the following select to get only the records that didn't match:

SQL
SELECT A.*, B.* --please, replace with the fields you really need...
FROM A
INNER JOIN B
ON A.A = B.A
WHERE (A.B <> B.B 
        OR A.C <> B.C 
        OR DATEADD(hour, 2, A.D) <> B.D --adding two hours to hour in ET converts it to hour in MT
        OR A.E <> B.E) --replace with checks for the fields that you care about


as you can see, it's very simple, but i'm making a lot of assumptions here, i'm assuming that your tables have a relation (foreign key constraint), that the field "A" on the two tables is the id of the transaction, that table B uses time in MT and that you care about any differences

also, about times in different time zones, watch daylight saving time, this depends on the state that the time is saved, as a general warning, would be much better if your date and time were stored in UTC(so you don't need to care about time zones and DST) and in yyyy-MM-dd format.

if this didn't solve your problem, please, let me know, so i can try to help you again.
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)

GeneralRe: finding unmatched record/data in two sql tables Pin
James_201215-May-12 6:08
James_201215-May-12 6:08 
GeneralRe: finding unmatched record/data in two sql tables Pin
James_201215-May-12 7:36
James_201215-May-12 7:36 
GeneralRe: finding unmatched record/data in two sql tables Pin
Sentenryu15-May-12 7:55
Sentenryu15-May-12 7:55 
GeneralRe: finding unmatched record/data in two sql tables Pin
James_201215-May-12 9:08
James_201215-May-12 9:08 
GeneralRe: finding unmatched record/data in two sql tables Pin
ArchimaX16-May-12 4:52
ArchimaX16-May-12 4:52 
GeneralRe: finding unmatched record/data in two sql tables Pin
Sentenryu16-May-12 5:55
Sentenryu16-May-12 5:55 
Answer[Solved] C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Matt U.14-May-12 5:37
Matt U.14-May-12 5:37 
AnswerRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Pete O'Hanlon14-May-12 6:12
mvePete O'Hanlon14-May-12 6:12 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Matt U.14-May-12 6:54
Matt U.14-May-12 6:54 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Pete O'Hanlon14-May-12 7:18
mvePete O'Hanlon14-May-12 7:18 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Matt U.14-May-12 7:21
Matt U.14-May-12 7:21 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Matt U.14-May-12 7:24
Matt U.14-May-12 7:24 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Pete O'Hanlon14-May-12 8:32
mvePete O'Hanlon14-May-12 8:32 
GeneralRe: C#/WinForms :: Hosting A Design Surface and IDesignerEventService Pin
Matt U.14-May-12 8:39
Matt U.14-May-12 8:39 
Questionusing log4net with custom database logger Pin
SASS_Shooter14-May-12 5:08
SASS_Shooter14-May-12 5:08 
Questioncall a jar file from .net clr Pin
nextaxtion13-May-12 21:40
nextaxtion13-May-12 21:40 
AnswerRe: call a jar file from .net clr Pin
Pete O'Hanlon14-May-12 1:09
mvePete O'Hanlon14-May-12 1:09 

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.