Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Hi, I am new to table pivot and would like to know how to go about converting the following query in Access to SQL Server 2005:
TRANSFORM First(tbl_Proj_Budget.BUGDET_LINE_BURDENED_COST) AS FirstOfBUGDET_LINE_BURDENED_COST SELECT tbl_Proj_Budget.PROJ_ID, First(tbl_Proj_Budget.BUGDET_LINE_BURDENED_COST) AS [Total Of BUGDET_LINE_BURDENED_COST] FROM tbl_Proj_Budget GROUP BY tbl_Proj_Budget.PROJ_ID PIVOT tbl_Proj_Budget.RESOURCE_LIST_ALIAS;
For instance, what does the 1st line mean?
TRANSFORM First(tbl_Proj_Budget.BUGDET_LINE_BURDENED_COST) AS FirstOfBUGDET_LINE_BURDENED_COST
Thanks Sachin for your reply.I have a follow up question. When I clicked the link, your response had a "u" and a "v" in your query. What does the "u" and "v" imply?
GROUP BY qry_DateTemp.Date)u
for qry_DateTemp.RoomNumber In (201,202,203,204,205,206,207,208,209,210))v