Kill_Switch
Go Easy I'm New
- Local time
 - Today, 00:22
 
- Joined
 - Apr 23, 2009
 
- Messages
 - 58
 
Hello AWF, been a while, but still been lurking. 
I've been down so many combinations that I've lost where and what I did.
I have a master list of employee positions. Not all positions are filled by the employees. I wish to count the number of blank positions where an employee is not in to.
The Left Join query pulls correctly, I just want to count the number of blank HRMS (not filled positions). I'll later expand the query to blank positions by their respective trade, mechanic, electrician, etc.
Basically I was a percentage of filled positions. Caveman math below of 2 counts I'm trying to achieve.
Sum = count #of blanks in [HRMS]/sum of [POSITION] *100
Sum = count # of blanks in [HRMS] where [TRADE]="Electrical"/count of [POSITION], where [TRADE]="electrical"
I have 2 tables (relationship below)
- tbl_AER
- tbl_MBR_MASTER
		
		
	
	
		
	
	
	
	
		
		
	
Kindest of Regards,
 I've been down so many combinations that I've lost where and what I did.
I have a master list of employee positions. Not all positions are filled by the employees. I wish to count the number of blank positions where an employee is not in to.
The Left Join query pulls correctly, I just want to count the number of blank HRMS (not filled positions). I'll later expand the query to blank positions by their respective trade, mechanic, electrician, etc.
Basically I was a percentage of filled positions. Caveman math below of 2 counts I'm trying to achieve.
Sum = count #of blanks in [HRMS]/sum of [POSITION] *100
Sum = count # of blanks in [HRMS] where [TRADE]="Electrical"/count of [POSITION], where [TRADE]="electrical"
I have 2 tables (relationship below)
- tbl_AER
- tbl_MBR_MASTER
		Code:
	
	
	SELECT tbl_AER.POSITION, tbl_MBR_MASTER.HRMS, tbl_AER.JOB_TITLE, , tbl_AER.TRADE
FROM tbl_AER
LEFT JOIN tbl_MBR_MASTER ON tbl_AER.POSITION = tbl_MBR_MASTER.HRMS;
	Kindest of Regards,