Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

select 'MHRNo','MHR for','Uploaded By','Status'

union
select cast( newmhr.mhrno as varchar(20)),newmhr.mhrfor,users.uname, case when
(newmhr.finalapproval = 1) then 'Approved' else 'Not Approved' end from newmhr
inner join users on newmhr.uploadedby = users.uid where newmhr.mhrno in (1025
,1076,1084,1094,1098,1101,1118,1124,1129,1131,1132,1133,1141,1152,1153,1155,1157
,1160,1165,1166,1168,1171,1172,1173,1174,1175,1180,1181,1182,1183,1185,1186,1190
,1191,1192,1197,1198,1200,1201,1203,1204,1205,1206,1210,1211,1212,1213,1214,1215
,1216,1219,1220,1221,1222,1223,1224,1225,1226,1230,1233,1234,1236,1237,1240,1241
,1242,1244,1245,1246,1247,1248,1249,1250,1252,1253,1255,1257)

You might also like