Viewing 15 posts - 1,246 through 1,260 (of 2,645 total)
An alternative solution
;WITH cte AS
(
SELECT s.Teams, s.Category, SUM(s.Sales) Sales
FROM dbo.Sales s
...
December 18, 2019 at 7:45 pm
An alternative solution
;WITH cte AS
(
SELECT s.Teams, s.Category, SUM(s.Sales) Sales
FROM dbo.Sales s
GROUP BY...
December 18, 2019 at 4:07 pm
There are CRM services that you only pay for how much you use and are accessed via a web-services, so there is nothing to install or write and you can...
December 17, 2019 at 12:23 pm
You have:
where d.SalesOrg_CustomerWS_ID = f.Retailing_Dealer_ID
in the WHERE clause which is comparing the left joined column d.SalesOrg_CustomerWS_ID to a column.
So it is the same as having an INNER...
December 16, 2019 at 5:15 pm
Is the scope of this work as follows?
December 16, 2019 at 4:10 pm
For your example you would be much better off, in terms of performance, by having an update followed by an insert:
UPDATE p
...
December 15, 2019 at 11:36 pm
For your example you would be much better off, in terms of performance, by having an update followed by an insert:
UPDATE p
SET p.rate...
December 15, 2019 at 8:54 pm
Have you looked at what objects are using the disk space or how much free space there is on the datafile?
If you right click on the database in the explorer...
December 12, 2019 at 11:27 pm
SELECT dest.TEXT AS [Query],
deqs.execution_count [Count],
deqs.last_execution_time AS [Time]
FROM sys.dm_exec_query_stats AS deqs
CROSS APPLY sys.dm_exec_sql_text(deqs.sql_handle) AS dest
ORDER BY deqs.last_execution_time DESC
December 12, 2019 at 9:52 pm
Maybe some of those AND's should be OR's?
December 12, 2019 at 9:48 pm
Thom A wrote:I don't understand what you're asking here. PST is a column already.
Sorry. PST row become column
Do you mean you want to have all the PST values for each...
December 12, 2019 at 7:15 pm
You will find you get much better performance if you split the merge into two separate statements (an update followed by an insert).
Performance Tip: The conditional behavior described for the MERGE...
December 12, 2019 at 7:07 pm
Empty file by migrating the data to other files in the same filegroup
Migrate all data from the specified file. This option allows the file to be dropped using the ALTER...
December 12, 2019 at 2:03 pm
If you are worried about shrinking the datafile then the standard advice is to create a new datafile and migrate the data into it.
December 12, 2019 at 1:51 pm
It looks like the entire program could be changed to be a single SQL statement. If you are using SQL Server 2012 or higher you could use the LAG function....
December 12, 2019 at 12:00 pm
Viewing 15 posts - 1,246 through 1,260 (of 2,645 total)