Click here to Skip to main content
15,888,802 members
Home / Discussions / Database
   

Database

 
GeneralRe: it is givi ng me syntax error Pin
ToddHileHoffer9-Mar-05 8:32
ToddHileHoffer9-Mar-05 8:32 
GeneralRe: it is givi ng me syntax error Pin
feeha9-Mar-05 9:26
feeha9-Mar-05 9:26 
GeneralQuestion on UNION syntax Pin
KreativeKai9-Mar-05 6:06
professionalKreativeKai9-Mar-05 6:06 
GeneralRe: Question on UNION syntax Pin
ToddHileHoffer9-Mar-05 8:35
ToddHileHoffer9-Mar-05 8:35 
GeneralRe: Question on UNION syntax Pin
Edbert P9-Mar-05 13:11
Edbert P9-Mar-05 13:11 
GeneralRe: Question on UNION syntax Pin
KreativeKai10-Mar-05 4:25
professionalKreativeKai10-Mar-05 4:25 
GeneralRe: Question on UNION syntax Pin
Edbert P10-Mar-05 15:36
Edbert P10-Mar-05 15:36 
GeneralRe: Question on UNION syntax Pin
KreativeKai11-Mar-05 3:15
professionalKreativeKai11-Mar-05 3:15 
I'm going to go with the second statement. It is logically correct and I believe more readable and it is faster.

I can't take out the first part of the select. Table 1 is our payroll table which has 4158 records with around 1400 active employees. Table 2 contains our retirees, COBRA participants and 2 agencies who have health insurance, but are not on our payroll. Table 2 has 606 records. 9 of the records on table 2 are retirees who have come back as active contractual employees. If I just use the second portion of the select statment, the result list is 597 which contains all the health insurance records with the exception of the 9 duplicates. The first portion of the select pulls back all the active employees including the 9 retirees who should be golfing, but their working contractually.

With everyone's feedback, I believe I have a good piece of code for this lookup. I took a SQL course about a year and a half ago, and now I'm finally getting into my first ADO project. Thanks for the feedback! I really appreciate everyone's help. Big Grin | :-D

Lost in the vast sea of .NET

<a href="http://www.komputing.com/Pricelist.html">Visit my website at www.komputing.com</a>

GeneralTrancation Replication Problems Pin
tyaramis9-Mar-05 0:19
tyaramis9-Mar-05 0:19 
GeneralDBF Export from SQL server Pin
davethiss9-Mar-05 0:06
davethiss9-Mar-05 0:06 
GeneralHow Pin
Yulianto.8-Mar-05 17:46
Yulianto.8-Mar-05 17:46 
GeneralRe: How Pin
Yulianto.8-Mar-05 18:07
Yulianto.8-Mar-05 18:07 
GeneralRe: How Pin
ToddHileHoffer9-Mar-05 8:38
ToddHileHoffer9-Mar-05 8:38 
Questionhow to create a view in sql Pin
feeha8-Mar-05 9:10
feeha8-Mar-05 9:10 
AnswerRe: how to create a view in sql Pin
Chris Meech8-Mar-05 9:34
Chris Meech8-Mar-05 9:34 
AnswerRe: how to create a view in sql Pin
Anonymous10-Mar-05 0:26
Anonymous10-Mar-05 0:26 
Questionhow to save pic Pin
javad_20058-Mar-05 7:05
javad_20058-Mar-05 7:05 
AnswerRe: how to save pic Pin
ToddHileHoffer8-Mar-05 7:28
ToddHileHoffer8-Mar-05 7:28 
GeneralNeed a Help Pin
Anonymous8-Mar-05 5:42
Anonymous8-Mar-05 5:42 
GeneralRe: Need a Help Pin
Chris Meech8-Mar-05 5:51
Chris Meech8-Mar-05 5:51 
GeneralRe: Need a Help Pin
Anonymous8-Mar-05 11:57
Anonymous8-Mar-05 11:57 
GeneralRe: Need a Help Pin
Shawn200014-Mar-05 4:45
Shawn200014-Mar-05 4:45 
GeneralCopy recordsets Pin
Seraphin7-Mar-05 23:24
Seraphin7-Mar-05 23:24 
GeneralRe: Copy recordsets Pin
-Dr_X-19-Mar-05 16:36
-Dr_X-19-Mar-05 16:36 
GeneralDataBinding Pin
WDI7-Mar-05 10:47
WDI7-Mar-05 10:47 

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.