Could someone show me some TSQL to use to query an xml file as if it were a table? The file is on the server, \"C:\\xmlfile.xml\"
I have a dynamic sql st开发者_运维百科ring in a existing procedure. What does the char(10) do?
I am trying to write a query that returns values with a unique person id, place id, and only the first occurrance of the visit within 60 minutes.
I am using SSMS 2008 and I need to use a subquery to return the count of unique records / client. How do I do this? Currently I am getting the error:
I am trying to set a parameter in the select statement and then pass it to a user defined func开发者_如何学运维tion in the same statement. Is this possible? If yes, where is my mistake? If no, then I
I\'ve got a SQL table (Email_Campaigns) with a master list of campaigns we\'ve run: NameDateSent Campaign0101/01/2011
I have a SELECT statement with UNPIVOT SELECT dycd_acnam, dycd_dynam, dycd_value FROM GCATT.dbo.tblDaycode UNPIVOT (
I am using SSMS 2008 and I need to use a subquery to return the count of unique records / client.How do I do this?Currently I am returning all unique records over the whole dataset and not per client.
This is the code: Select BCPP.* from ViewPBCPPBCPP inner join ( Select MBC.PCPC ,MRT.NameCT ,Max(dbo.CalcDatefromUTC(MBC.CreatedDate)) as LRDate
I have a single table of on/off events for different assets.I need to get a list o开发者_运维知识库f start & stop event times without using a cursor.