Showing posts with the label
tsql
Issue From what I've read it should be possible to edit data described by a view if the data be…
Issue With T-SQL (I cannot use C# or any other scripting language due to application limitations) I…
Issue Please help me write a Transact-SQL script. There is a table with conditional columns PK_ID …
Issue SELECT logcount, logUserID, maxlogtm , DATEDIFF(day, maxlogtm, GETDATE()) AS daysdiff FROM…
Issue I have a table with an identity field. What the best SQL query to get the Ids of all the dele…
Issue Imagine the following table (called TestTable ): id somedate somevalue -- -------…
Issue I want to group multiple rows into one based on the value of a column. Given this data: SEL…
Issue I have a set of integer value which can be either a single digit to 6 digit number. Now I wan…
Issue In this one stored procedure being called by an API to update a record, there's lots of i…
Issue There appears to be at least two ways to add a default constraint using straight T-SQL. Am I …
Issue I have two strings, I want to get difference between contents of two strings in SQL ?? for …
Issue Not able to word the question properly, so couldn't search what I want. All I need is a d…
Issue Sometimes I saw the following code snippet. When is the if @@trancount > 0 necessary with…
Issue There is a table with three columns: CREATE TABLE #t1 ( Id INT ,VisitDate…
Issue This is my query: SELECT DISTINCT 'wk ' + TRIM(CONVERT(varchar(max), DATEADD(Wee…
Issue I have a query in which multiple joins and select from various tables are used. One table str…
Issue I have a SQL table like below class="s-table"> GroupID CountryName CityNam…
Issue Which one: datetime href="https://msdn.microsoft.com/en-us/library/bb677335.aspx&quo…
Issue I just ran into a strange thing...there is some code on our site that is taking a giant SQL s…
Issue I currently have a dataset that contains transactional information, including dates, an amoun…