Thursday, 10 October 2013

4. Display the details of all orders in the following format. (Use the AdventureWorks database)



select * from Sales.SalesOrderHeader
select 'Order Number'= salesOrderID,'Total Due'=TotalDue,'Day of order'=DATEPART(DD,OrderDate),'Week day'=DATEPART(DW,orderDate) from Sales.SalesOrderHeader

No comments:

Post a Comment