Ok, so im not sure if this is the best place to put this... so if its not, mods can move as they see fit.
I have this (and many many others) report that I use several times a day depending and need some help.
DISCLAIMERS: 1) I'm no SQL expert (more of a newb) 2) this was created by someone else before me 3) i have limited access to the system/db that this is pulling from
Ok so real quick: We have several clients who have several more 'jobs' that we produce. Each job had a Catalog # of which stock that job requires. here is the existing report that i've been using (but noticed a problem)
what this will do is it will show all jobs for for specified client that call for specified Cat#. Here's the problem... this will only show the 'activities' for each jobs that fit the criteria. so if a job has 2 activities that contain the specified Cat# only those will get pulled in. what i need it to do is pull in ALL activities for each job that uses that Cat#! not just the parts of each job. does that make sense?!
Much thanks in advnace!! also, i'll try to answer any questsion you may have, but due to my limited ability, i make no promises how helpful i may be.
I have this (and many many others) report that I use several times a day depending and need some help.
DISCLAIMERS: 1) I'm no SQL expert (more of a newb) 2) this was created by someone else before me 3) i have limited access to the system/db that this is pulling from
Ok so real quick: We have several clients who have several more 'jobs' that we produce. Each job had a Catalog # of which stock that job requires. here is the existing report that i've been using (but noticed a problem)
Select
Job_Path.Dept_Name,
Job_List.JobName,
Job_List.Form,
Job_List.Description,
Job_List.Active as Status,
Job_List.WT_DEPT_NAME,
Job_Path.Step_ID,
BOM.Cat_No,
BOM.Item_Type,
BOM.Description,
Activities.Activity_Name,
Generic_Qualities.Generic_Quality_ID,
Generic_Qualities.Quality_Note,
Qualities.Quality_ID,
Qualities.Quality_Note,
Change_Control.Control_Note,
Change_Control.Begin_Date,
Change_Control.End_Date,
Job_Path.Pref_Equip_No,
Setups.Setup_Type,
Setups.Setup_Parameter
From Job_List join Job_Path on Job_List.Job_List_Code = Job_Path.Job_List_Code
left JOIN Setups ON Job_Path.Job_Path_Code = Setups.Job_Path_Code
left join Activities on Job_Path.Activity_Name = Activities.Activity_Name and Job_Path.Dept_Name = Activities.Dept_Name
left join BOM on Job_Path.Job_Path_Code = BOM.Job_Path_Code
left join Generic_Qualities on Activities.Activity_Code = Generic_Qualities.Activity_Code
left join Qualities on Job_Path.Job_Path_Code = Qualities.Job_Path_Code
left join Change_Control on Job_Path.Job_Path_Code = Change_Control.Job_Path_Code
Where Job_List.Active not like 'Obsolete%' and
Job_List.Client_No = '_______' and
BOM.Cat_No = '______________'
Order by Active, JobName, Step_ID, Begin_Date, End_Date, Activity_ID, Quality_ID, Generic_Quality_ID
what this will do is it will show all jobs for for specified client that call for specified Cat#. Here's the problem... this will only show the 'activities' for each jobs that fit the criteria. so if a job has 2 activities that contain the specified Cat# only those will get pulled in. what i need it to do is pull in ALL activities for each job that uses that Cat#! not just the parts of each job. does that make sense?!
Much thanks in advnace!! also, i'll try to answer any questsion you may have, but due to my limited ability, i make no promises how helpful i may be.