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

Using Condition in Select

$
0
0
hi,Trying to find the below conditionIf he is shift 1 shifttype 1 then the record comes from employee tableif he is shift 2 shifttype 4 then the record comes from shiftscheduler table So consider in the SP i am giving three inputs fromdate todate and empid then according to the shift it should select the table...shift 1 means from employee table and shift 2 means from shiftscheduler table..please helpTHanks in advance

Viewing all articles
Browse latest Browse all 3145

Trending Articles