Viewing 15 posts - 1,711 through 1,725 (of 13,838 total)
First, note that your CASE expressions do not filter any data out. To do that requires a WHERE clause.
Let's be more specific and focus on DailycheckHome, for example.
First of all,...
November 23, 2021 at 3:27 pm
Thanks, Phil for kind words. In my query I have been trying to filter following options but I know the query does not filter when I use a.TRNyear=2022 or...
November 23, 2021 at 12:29 pm
I have created a query but not filtering properly. for example and I like to show it on the report where I have struggles it so far.
What is your question?...
November 23, 2021 at 10:41 am
Those are not INTs!! Change the target datatype to DECIMAL and you should have more success.
November 22, 2021 at 4:59 pm
CSV files are not Excel files. Open it in Notepad to see the unadulterated data.
November 22, 2021 at 3:58 pm
The field only has two values 5 and NULL. I think INT is big enough to store it. I'll try the VARCHAR approach...thx for the idea
Apologies for checking the...
November 22, 2021 at 3:42 pm
My mistake. Try these:
declare @id numeric(19,6) = '123.456'
select @id, up = ROUND(@id,2,0), down = ROUND(@id,2,1)
November 22, 2021 at 2:30 pm
Change your precision to make the query work as you intend:
declare @id numeric(19,6) = '123.456'
select @id, ROUND(@id,2)
November 22, 2021 at 2:16 pm
apologies ,cut and paste error , example value 2859 i.e theyre all 4 digit numbers.
Would that be quicker do you think even with having to recreate the nonclustered (&...
November 22, 2021 at 1:58 pm
As you are presenting the data grouped only by LOC, what function do you think joining on those other columns performs?
November 22, 2021 at 12:54 pm
Another option: copy the rows you wish to keep to a copy of the current table, then swap that table with the current one.
Also, how did you get J22 into...
November 22, 2021 at 12:50 pm
Sorry, how do I go about Jeff's method of using BULK INSERT. Is it an SQL query ?
I was playing around with the ForEach loop container to try and...
November 22, 2021 at 9:58 am
Thanks Jeff
I haven't heard of ACE driver. Is it a tool ? if so, can you share a link please. I am not sure how to use bulk insert...
November 22, 2021 at 9:37 am
Here is another version – obviously untested, but does not rely on a JOIN:
WITH Totals
AS (SELECT LOC
,Tab...
November 21, 2021 at 8:02 pm
Before I attempt to explain, can you try running this version please?
WITH ACTUALS
AS (SELECT LOC
,Actuals = SUM(HistoryQuantity)
...
November 21, 2021 at 7:52 pm
Viewing 15 posts - 1,711 through 1,725 (of 13,838 total)