Viewing 15 posts - 1,216 through 1,230 (of 2,648 total)
how did you resolve your problem i have the same with my program too!
Can you post your problem?
January 4, 2020 at 9:58 pm
You would normally write the left join as:
;WITH cte_A AS ( SELECT * FROM (VALUES(1, 'A', 10),(2, 'B', 20), (3, 'C', 30)) AS data(key_col, col1, col2)
), cte_B...
January 3, 2020 at 4:02 pm
As the OP is using SQL 2017 there is an even easier way to get the results:
;with cte as
(
select *
...
January 3, 2020 at 3:54 pm
Hey Jon,
I troll these forums looking at other peoples issues so I can have a better understanding when I run into issues of my own.. That being said I'm...
January 3, 2020 at 3:20 pm
;with cte as
(
select *
from (values ('1230000045'),
...
January 3, 2020 at 1:43 pm
with cte as
(
select *
from (values ('1230000045'),
...
January 3, 2020 at 12:00 pm
They all produce the same results. There are usually many ways to get the same results from different queries, for example, all of these will also produce the same results:
January 1, 2020 at 3:56 pm
You also have two commas in a row:
T1.ItemCode,
,Coalesce
December 31, 2019 at 12:08 pm
Notepad++ is quite good for this.
You can open multiple files and perform a replace on all files in one go.
December 30, 2019 at 12:57 pm
A table doesn't store data in order. You can only guarantee getting data back in a particular order if you use an ORDER BY clause.
Is there another column that you...
December 29, 2019 at 11:19 pm
<table_source> ::=
{
table_or_view_name [ [ AS ] table_alias ] [ <tablesample_clause> ]
[ WITH (...
December 29, 2019 at 2:03 am
You should use a windowed SUM:
select pt.CategoryName,
pt.AgentDepartmentName,
pt.TicketsOpened,
...
December 28, 2019 at 12:04 am
DECLARE abc CURSOR FOR
SELECT ROUTINE_NAME
FROM INFORMATION_SCHEMA.routines
WHERE ROUTINE_TYPE = 'PROCEDURE'
and right(ROUTINE_NAME,4)='Bulk'
and ROUTINE_NAME !='usp_Integration_CONTRAT_EMISSION_Bulk'
order by case ROUTINE_NAME...
December 27, 2019 at 2:49 pm
When you say Page File usage is up to 200% of the memory, what you are talking about is the size of the page-file not the page file actually being...
December 27, 2019 at 11:34 am
Insert into #TempInvoice (Tkey,Status,Amount)
SELECT TOP(1) Tkey,'First',Amount FROM #TempInvoice
December 25, 2019 at 8:22 am
Viewing 15 posts - 1,216 through 1,230 (of 2,648 total)