Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

need to group values

$
0
0
my table stucture likedate HourType hours HourValue statusday1 m 1 1 y day1 m 2 1 yday1 m 3 1 yday1 a 4 0 nday1 a 5 0 nday1 a 6 0 nday2 m 1 1 yday2 m 2 1 yday2 m 3 1 yday2 a 4 0 yday2 a 5 1 yday2 a 6 1 ymy day1 afternoon all hours 0, and day2 4th hour only 0,i need to status column that must be 'N' when all afternoon hours or morning hours is 0, if only one hour 0 means that must 'Y',how do set a status column like above.... can anyone help...

Viewing all articles
Browse latest Browse all 3145

Trending Articles