By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,027 Members | 1,313 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,027 IT Pros & Developers. It's quick & easy.

Problem With Right Join

P: 1
I am attempting to determine which of the following Program Cods(A) below are [U]not[/u] contained within the Program Tranlation Code Table (B) using the follwing SQL query:

SELECT DISTINCT [Untranslated Programs].[Untranslated Programs]
FROM Program_Translation RIGHT JOIN [Untranslated Programs] ON Program_Translation.ID = [Untranslated Programs].ID
WHERE ((([Untranslated Programs].[Untranslated Programs])<>"CC-P"));

The output of the query is listed below (C).
I used basically the same query for determining Product Lines(A1) not contained within an productline tranlation table(B1) and was successfull getting the correct output (C1). Please inform me wht I am not able to get the SQL uery to work for the program codes. Thank you for your assistance.
Viru

(A) Program Codes
00001WA000
0000GIS000
4002101
0008002671-fdavis
0133KA0H0A
0133KA0H1A
01M1140K1A
01MKTF0L0A
1L001L0000
5140514000
5180518000
5200526821
5230523000
7E223E2000
7SA0NSA000
CK10JK1000
DEB2DEB000
FE20FE2000
KE21CE2000
NEB0MEB000
NSA0MSA000


(B)Program Translation Code Table
00001WA000
0000GIS000
5006151
8001681
8002671
0008002671-fdavis
8003671
8005671
8005681
8006671
8008671
8008681
8100671
8100681
8200671
000PP10100
000PP10200
000PP10400
000PP10600
000PP10800
000PP20100
000PP40100
000PP40200
000PP40400
000PP50200
000PP51100
000PP60200
0080A3A32A
0080IR022A
0080IR032A
0106AN0M1A
0130TV0H0A
0133EN0H0A
0133KA0H0A
0133KA0H1A
01C7014P0C
01MKTF0L0A
01T1QM621A
4400440000
5000100100
5000100201
5000100203
5000200100
5000300100
5000400100
5000500100
5001200100
5001400100
5001500100
5001600100
5002200100
5002400100
5002500100
5002600100
5003200100
5003400100
5003500100
5003600100
5004200100
5004400100
5004500100
5004600100
5005200100
5005400100
5005500100
5100100100
5140514000
5200525821
5230523000
6200621741
6200621761
6200629841
7E223E2000
7SA0NSA000
CK10JK1000
CP20JP2000
DEB2DEB000
FE20FE2000
KE21CE2000
NEB0MEB000
NSA0MSA000

(C)Programs Never Translated
00001WA000
0000GIS000
4002101
0008002671-fdavis
0133KA0H0A
0133KA0H1A
01M1140K1A
01MKTF0L0A
1L001L0000
5140514000
5180518000
5200526821
5230523000
7E223E2000
7SA0NSA000
CK10JK1000
DEB2DEB000
FE20FE2000
KE21CE2000
NEB0MEB000
NSA0MSA000

(A1)Product Lines
Architeture Dsn Engr
Asset Mgmt Del Assur
Blank
CIVIL GROUP
Federal Srv Delivery
FIN & ADMINISTRATION
Global Solution & Technol
Managed Desktop Services

(B1)Product Line Translation Table
Asset Mgmt. & Delivery As
Asset Mgmt. & Delivery As
Asset Mgmt. & Delivery As
Fin & Bus Management
Fin & Bus Management
Fin & Bus Management
Glb Operations
Glb Operations
Glb Operations
Global Solution & Technol
Managed Comp Service
Managed Comp Service
Managed Comp Service
Managed Network Serv
Managed Network Serv
Managed Network Serv
New Bus Serv-Global
New Bus Serv-Global
New Bus Serv-Global
Service Delivery - US Fed
Service Delivery - US Fed
Service Delivery - US Fed
Srv Delivery America
Srv Delivery America
Srv Delivery America

(C1) Product Lines
Architeture Dsn Engr
Asset Mgmt Del Assur
Blank
CIVIL GROUP
Federal Srv Delivery
FIN & ADMINISTRATION
Global Solution & Technol
Managed Desktop Services
Oct 8 '06 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.