Question : two case statements in one SQL view

I have two case statements that I need to put in one SQL view.  The two statements are...
ASE WHEN datediff(d, [assigned time], [closed#time]) = 0 THEN 'Same Day' WHEN datediff(d, [assigned time], [closed#time])
                      = 1 THEN '1 Day' WHEN datediff(d, [assigned time], [closed#time]) = 2 THEN '2 Days' WHEN datediff(d, [assigned time], [closed#time])
                      = 3 THEN '3 Days' WHEN datediff(d, [assigned time], [closed#time]) BETWEEN 4 AND 999 THEN 'Too much' END AS diff, DATA_VALUE,
                      [Assigned Team], Closed#Time, [Assigned Time]

and....

CASE WHEN [SCHEMA] = 'ISD' AND [assigned team] = 'Workstation Engineering' THEN 'Store Workstation' WHEN [SCHEMA] = 'ISD' AND
                      [assigned team] = 'Windows Server Engineering' THEN 'Store Server' WHEN [SCHEMA] = 'HOSupport' AND
                      [assigned team] = 'Workstation Engineering' THEN 'HO Workstation' WHEN [SCHEMA] = 'Unix-Operations' AND
                      [assigned team] = 'Windows Server Engineering' THEN 'HO/DC Server' WHEN [SCHEMA] = 'Unix-Operations' AND
                      [assigned team] = 'Compucom Hardware Support' THEN 'HO/DC Server' END AS functionalteam, *

the data is from the same table.  Is it possible to have two case statements?  If so, how?

Answer : two case statements in one SQL view

No reason you can't do multiple CASE statements in SQL Server.  Attached is a rough idea if I read what you supplied right, if not let me know.  Here's a ref to the Microsoft docs on CASE.

http://msdn.microsoft.com/en-us/library/ms181765.aspx

~bp
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
SELECT diff = CASE
                WHEN Datediff(d,[assigned time],[closed#time]) = 0
                THEN 'Same Day'
                WHEN Datediff(d,[assigned time],[closed#time]) = 1
                THEN '1 Day'
                WHEN Datediff(d,[assigned time],[closed#time]) = 2
                THEN '2 Days'
                WHEN Datediff(d,[assigned time],[closed#time]) = 3
                THEN '3 Days'
                WHEN Datediff(d,[assigned time],[closed#time]) BETWEEN 4 AND 999
                THEN 'Too much'
              END,
       data_value,
       [Assigned Team],
       closed#time,
       [Assigned Time],
       functionalteam = CASE
                          WHEN [SCHEMA] = 'ISD'
                               AND [assigned team] = 'Workstation Engineering'
                          THEN 'Store Workstation'
                          WHEN [SCHEMA] = 'ISD'
                               AND [assigned team] = 'Windows Server Engineering'
                          THEN 'Store Server'
                          WHEN [SCHEMA] = 'HOSupport'
                               AND [assigned team] = 'Workstation Engineering'
                          THEN 'HO Workstation'
                          WHEN [SCHEMA] = 'Unix-Operations'
                               AND [assigned team] = 'Windows Server Engineering'
                          THEN 'HO/DC Server'
                          WHEN [SCHEMA] = 'Unix-Operations'
                               AND [assigned team] = 'Compucom Hardware Support'
                          THEN 'HO/DC Server'
                        END,
       *
Random Solutions  
 
programming4us programming4us