0% found this document useful (0 votes)
10 views4 pages

Sada Sir Tcs Format Data

Uploaded by

Deepak Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views4 pages

Sada Sir Tcs Format Data

Uploaded by

Deepak Mishra
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

select

CASE

WHEN ExamShift = 1 THEN 'First Shift (07.20 A.M. - 8.30 A.M.(IST))'

WHEN ExamShift = 2 THEN 'Second Shift ( 01:20 P.M. - 02:30 P.M.(IST))'

-- ELSE 'Unknown Shift' -- Replace with a default value if needed

END AS RepotingTimeTime

CASE

WHEN ExamShift = 1 THEN 'First Shift (08.30 A.M.(IST))'

WHEN ExamShift = 2 THEN 'Second Shift ( 02:30 P.M.(IST))'

-- ELSE 'Unknown Shift' -- Replace with a default value if needed

END AS CloseTime

,a.ExamDate,a.ExamShift,

CASE

WHEN ExamShift = 1 THEN 'First Shift (09.00AM - 12.00 Noon(IST))'

WHEN ExamShift = 2 THEN 'First Shift (3:00 P.M. to


6:00 P.M.(IST))'

-- WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = ',1,0' THEN 'Second


Shift (03:00 P.M. to 06:00 P.M.)'

--WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning)


= ',0,1' THEN 'Second Shift (03:00 P.M. to 06:00 P.M.)'

--WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning)


= ',1,' THEN 'Second Shift (03:00 P.M. to 06:00 P.M.)'

--WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning)


= ',,1' THEN 'Second Shift (03:00 P.M. to 06:00 P.M.)'

--WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning)


= ',1,1'

--THEN 'Second Shift (03:00 P.M. to 06:30 P.M.)'

-- ELSE 'Unknown Shift' -- Replace with a default value if needed

--BPlanning = 1 and BArch = 1n ,,1

END AS ExamTime

,c.ID, a.RollNumber,a.ApplicationNumber,b.CandidateName,
b.FatherName,b.MotherName,b.DOB,a.GenderName,a.CategoryName,d.StateName,

CASE

WHEN b.PhysicalDisability_backup = 1 THEN 'Yes - 40% or more (benchmark


disability)'

WHEN b.PhysicalDisability_backup = 2 THEN 'Yes -


Less than 40% and having a limitation in writing under section 2(s)'

WHEN b.PhysicalDisability_backup = 3 THEN 'NO'

ELSE 'NA' -- Replace with a default value if needed

END AS PWD

CASE b.DisabilyType

WHEN 1 THEN 'Locomotor disability as specified in the Schedule of RPWD Act,


2016'

WHEN 2 THEN 'Visual impairment as specified in the Schedule of RPWD Act,


2016'

WHEN 3 THEN 'Hearing impairment as specified in the Schedule of RPWD Act, О


2016'

WHEN 4 THEN 'Speech & language disability as specified in the Schedule of


RPWD Act, 2016'

WHEN 5 THEN 'Intellectual disabilities as specified in the Schedule of RPWD


Act, 2016'

WHEN 6 THEN 'Mental illness'

WHEN 7 THEN 'Disabilities caused due to chronic neurological conditions


and blood disorder'

WHEN 8 THEN 'Multiple disabilities including deaf blindness'

ELSE 'NA'

END AS MappedDisabilityType

CASE b.NeedScribe

WHEN 1 THEN 'No - I do not need a Scribe'

WHEN 2 THEN 'Yes - I would like NTA to Provide a Scribe'

WHEN 3 THEN 'Yes - I will bring my own Scribe'

ELSE 'NA' -- Replace with a default value if needed


END AS MappedScribePreference

CONCAT(SUBSTRING(b.DOB, 4, 2), SUBSTRING(b.DOB, 1, 2), SUBSTRING(b.DOB, 7, 4)) AS


transformed_dob

,b.ApplicationNumber, CONCAT(BEBTech, ',', BArch, ',', BPlanning) AS


examSubjectId

--CASE

-- WHEN BEBTech = 1 and BPlanning = 0 and BArch = 0 THEN 'BE/BTech'

-- WHEN BArch = 1 and BEBTech = 0 and BPlanning = 0 THEN 'BArch'

--WHEN BPlanning = 1 and BEBTech = 0 and BArch = 0


THEN 'BPlanning'

--WHEN BEBTech = 0 and BPlanning = 1 and BArch = 1


THEN 'BArch,BPlanning'

--END AS ApplyFor

CASE

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = '1,1,1' THEN 'All Three:
BE/BTech, BPlanning, BArch'

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = '1,,1' THEN 'BEBTech and
BPlanning'

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = '1,1,0' THEN 'BEBTech and
BArch'

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = '1,1,' THEN


'BEBTech and BArch'

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = ',1,1' THEN 'BPlanning,


BArch'

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = '1,0,0' THEN 'BE/BTech'

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = '1,,' THEN


'BE/BTech'

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = '1,0,1' THEN


'BE/BTech, BPlanning'

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = ',1,0' THEN 'BArch'

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = ',0,1' THEN 'BPlanning'

WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = ',1,' THEN


'BArch'
WHEN CONCAT(BEBTech, ',', BArch, ',', BPlanning) = ',,1' THEN
'BPlanning'

-- ELSE 'Unknown Degree Combination or Invalid Values in BEBTech, BArch,


BPlanning'

-- ,1,

END AS ApplyFor

e.LanguageName,c.[Coustomer Code],c.[Coustomer
Code]

from CityIntemationTblAll25Jan a join CandidateTblAll b on

a.ApplicationNumber=b.ApplicationNumber

join AdminExamCenterMstAllNew c on c.[Coustomer Code]=a.CoustomerCode

left join StateMst d on d.ID=b.DomicileID

left join LanguageMst e on e.ID=b.LanguageID

left join DisabilityMst f on f.ID=b.PhysicalDisability_backup

where a.ExamDate='2024-02-01' --and RollNumber='ZZ01000015'

You might also like