Hi All, I have trapped with below problem, which am facing this issue from last 4 days, below is my table: CSATEQID Revis FileName Jobcode Jobqal Material1 1 Mick 1 A 101 1 Mick 2 B 201 1 Mick 3 C 301 1 Mick 4 C 401 1 Mick 5 D 501 2 Frank 1 A 601 2 Frank 2 B 701 2 Frank 6 D 80I need to get the Output as below table.EQID JOBCODE JOBQUAL MATERIAL MATERIAL1 1 A 10 601 2 B 20 701 3 C 30 NULL1 4 C 40 NULL1 5 D 50 NULL1 6 D NULL 80I tried the below queries but helpless. Please help and correct my queries.SELECT c.Revis,c2.Revis,c.eqid,c.jobcode,c.jobqal,c.material,c2.materialfrom CSAT c join CSAT c2 on c.EQID = c2.EQID where c.Revis=1 and c2.Revis=2and c.Jobcode = c2.Jobcodeand c.Jobqal = c2.Jobqal
↧