Viewing 15 posts - 406 through 420 (of 2,645 total)
SQL would be my first choice for cleaning data, while it's a powerful tool for querying and cleaning data, it may not be the best choice for performing complex language...
May 15, 2023 at 10:36 am
May I know the reason for this issue?
Why i am not able to create this table?
max column limit is 1024 right?
can you please clarify?
Look at the error message: It...
May 12, 2023 at 11:34 am
no not possible on productidÂ
drop table if exists #temp1;
go
SELECT * INTO #temp1
FROM(SELECT ProductID,Product, SUM(Amount ) AS TotalAmount,CONCAT_WS('__', IssueName,IssueID)[Issue]
FROM aaa_tempSalesData1
GROUP BY ProductID,Product,IssueName,IssueID) temp
PIVOT( SUM(totalAmount)
FOR [Issue]
IN...
May 12, 2023 at 11:29 am
Hi Jonathan AC Roberts and Phil Parkin,
Thanks for your reply but if i create 2 temp tables how to join in query as there is no column mapping columns...
May 12, 2023 at 10:56 am
You could create two temporary tables with fewer columns instead of one table, then just join them in a query or view.
May 12, 2023 at 10:23 am
Can't remember where I got this script from but it will generate insert statements for all the rows in a table:
To generate inserts from a table just call it something...
May 5, 2023 at 10:35 am
CREATE TABLE MyTable (
ID INT IDENTITY(1,1) PRIMARY KEY,
Value INT,
DateTimeColumn DATETIME
);
INSERT INTO MyTable (Value, DateTimeColumn)
VALUES
...
April 25, 2023 at 1:47 am
DECLARE @StartDate datetime = '20221001';
DECLARE @EndDate datetime = '20221031';
SELECT *
FROM #t1
WHERE PrgFld LIKE 'BAS%'
AND PrgVal BETWEEN CONVERT(varchar,@StartDate,112) AND CONVERT(varchar,@EndDate,112);
April 15, 2023 at 12:05 am
Try inserting the rows that need to be deleted into a temporary table then another step to delete the rows:
SELECT DEM.NUM_DEM
INTO #RESULTS_TO_DELETE
FROM...
April 12, 2023 at 2:37 pm
vsamantha35 wrote:Can anyone explain what this mean?
![]()
ChatGPT is really good at explaining things like that. Just paste the error message into it.
This isn't...
April 8, 2023 at 6:26 pm
I think the first thing to do is to try to optimise the query to make it run faster as frederico suggested.
April 8, 2023 at 6:25 pm
Can anyone explain what this mean?
ChatGPT is really good at explaining things like that. Just paste the error message into it.
April 8, 2023 at 6:15 pm
If the index doesn't already exist you need to remove DROP_EXISTING = ON
from the index creation or set it to OFF
.
April 8, 2023 at 3:41 pm
That would happen if you did not have ord.Amount wrapped in the aggregate SUM function.
It should work w/ the query listed.
It can't... there's no ORDER_ID column in the...
April 4, 2023 at 7:17 pm
Viewing 15 posts - 406 through 420 (of 2,645 total)