Viewing 15 posts - 1 through 15 (of 444 total)
I would mention two more points when describing key PostgreSQL / SQL Server trigger differences: PostgreSQL supports Row level triggers and Before triggers.
August 30, 2022 at 10:13 am
Hi serg-52, just asking if you could point me in the right direction with the...
June 21, 2017 at 2:33 pm
Most probablydeclare @start date = '2016-02-11';
declare @end date = '2016-03-11';
select i.ID, coalesce(sum(datediff(day
,case when r.[ReportedDate] < @start then @start else r.[ReportedDate] end...
March 13, 2017 at 2:16 am
You may force generation XML elements for NULL values with the XSINIL parameter https://msdn.microsoft.com/en-us/library/ms178079.aspx
WITH XMLNAMESPACES('http://www.w3.org/2001/XMLSchema-instance' as xsi)
SELECT a,z
FROM ( -- sample data
SELECT 1 AS a, NULL AS z
UNION ALL
SELECT...
June 23, 2016 at 1:53 am
Headers should be created manually.
WITH t AS ( -- sample data
SELECT 1 AS a
, 2 AS b
, ...
June 20, 2016 at 3:51 am
To be clear:
Both CTE and subqeury work in MSSQL, ORACLE, SAP HANA, Firebird and Derby.
I don't have experience with other engines, but I suppose it should work everywhere.
ORACLE still hasn't...
June 20, 2016 at 2:33 am
March 2, 2016 at 6:39 am
A possibility exists that ERP's decimal(9) date representation is for example, 20080304? for 03/04/2008. That is 10000*y+1000*m+10*d + ? where ? is day of week or something.
To ensure WHERE predicates...
January 25, 2016 at 2:08 am
You may wish to opt for a iTVF or APPLY instead of scalar function for better performance.
January 21, 2016 at 5:04 am
No way to avoid explicitly mentioning the parameter name you want to reset in the context of the procedure. So Sp_executesql doesn't help too.
You need explicitly refactor procedures, possibly by...
January 15, 2016 at 2:57 am
Can your requirements be stated in terms of entities, their attributes and relationships? It's still quite unclear, to which object admins can add fields and what is the field definition.
January 15, 2016 at 2:08 am
sqlnewbie17 (1/14/2016)
Should I do this logic in...
January 15, 2016 at 1:36 am
Sergiy (1/14/2016)
How do you deal with concurrent updates?
If 2 or more users edit the same record in their independent instances of C++ application - which version of the...
January 15, 2016 at 12:17 am
Suppose a Weather table has a Temperature column and it's always measured in Fahrenheit. Now someone adds an option to enter Celsius temperature and adds a UnitOfMeasure column ,...
January 14, 2016 at 10:30 am
Stijn977 (1/14/2016)
January 14, 2016 at 6:04 am
Viewing 15 posts - 1 through 15 (of 444 total)