Hi I Can not seem to wrap my head around how to parse an Xml document and the decide if it needs inserting or updating.
I have a SQL MERGE statement that does an UPDATE if a value exists (and an INSERT if it does). I\'d like to record the last few \"historical\" values in the row when an UPDATE happens, sort of like th
I have a simple MEDIAN calculation function: IF OBJECT_ID(N\'COMPUTEMEDIAN\', N\'FN\') IS NOT NULL DROP FUNCTION dbo.COMPUTEMEDIAN;
Assuming the follo开发者_如何学Cwing query: SELECT ID, COUNT(1) AS NumRecords, SUM(Quantity) AS TotalQty
I have a query which is taking some serious time to execute on anything older than the past, say, hours worth of data.This is going to create a view which will be used for datamining, so the expectati
I have been using the following SQL to create a user, login and database. USE master; GO CREATE DATABASE TEST;
I need a Regular Expression to capture ALL comments in a block of T-SQL.The Expression will need to work with the .Net Regex Class.
Can I add a inner join or left join or right join based on parameter value. The only way right now I have is writing a dynamic query like
I am exploring a legacy database system and have very little knowledge of its internals. I would like to find all the stored procedures that invoke another stored proce开发者_开发技巧dure A.
I\'m working on a project for an academic institution and I need advice on the best way to approach this problem. It\'s been a long time since I did any traditional application development (close to f