Viewing 15 posts - 76 through 90 (of 158 total)
-- For repeating values you can remove them from the Fact and add it to a dimension/or create a Junk dimension.
-- You can go ahead with two fact tables, one...
July 7, 2023 at 4:27 am
Using ADF, you can create source, sink, and watermark datasets. You can pass a list of source table names as a parameter to the pipeline. The pipeline will then iterate...
July 7, 2023 at 3:32 am
What is your objective or purpose of collecting queries?
If you do not want to use Trace then you may use QUERYSTORE. It is a different animal altogether if that might...
July 6, 2023 at 5:53 pm
Here is another way.
DROP TABLE IF EXISTS #CustomerData;
CREATE TABLE #CustomerData(
[ID] [int] IDENTITY(1,1) NOT NULL,
[CustomerName] [varchar](500) NULL
)
GO
INSERT INTO #CustomerData...
July 5, 2023 at 11:15 pm
Just curious - but if you had to transfer PII/PCI/PHI for a conversion (for example) where the unencrypted data is required by the receiving party, how would you do...
July 5, 2023 at 10:43 am
June 28, 2023 at 1:09 pm
Try this:
Replace * with your required columns
SELECT *
FROM final_output fo
WHERE fo.[G/L Transaction Type Desc] = 'GL Posted'
and fo.[Freight Bill Number] is not null
You can add more conditions...
June 26, 2023 at 8:38 pm
check this link, try this in a test environment first:
https://en.dirceuresende.com/blog/sql-server-entendendo-as-permissoes-e-roles-do-sql-agent-sqlagentuserrole-sqlagentreaderrole-sqlagentoperatorrole/
June 1, 2023 at 1:45 pm
Is there a way export Data Classification recommendations as a pdf or text file? Thanks you.
Yes, you can export the data to Excel or PDF.
April 25, 2023 at 10:07 pm
I want tp create a scenario when I perform failover from Node1 to Node2, I want the database to get stuck in Reverting/In Recovery state on Node1 for longer...
April 25, 2023 at 9:54 pm
Try this:
SELECT
A.custnbr,
AvgLag = CASE WHEN COUNT(*)-1 <> 0 THEN CONVERT(decimal(7,2),
...
April 24, 2023 at 12:33 am
@dennis Jensen: I do not understand what is your problem?
Have you read the OP's original post? OP wants to remove Min(ShipDate). I answered to him as I understood his requirements....
April 23, 2023 at 10:33 pm
For more accuracy, you can use Record_Add_Dt = DateTime.UTCNow;
April 23, 2023 at 6:15 am
Replace Min(ShipDate) with the following LAG function to get the Previous Ship Date.
Lag(ShipDate, 1, '1/1/1900') OVER(Partition by Custnbr ORDER BY ShipDate ASC)
Your final query will be along the following lines:
April 23, 2023 at 12:54 am
I would like output to show:
Custnbr ---- (Lastest-Order date) ----(Previous Order Date) ---- Lag
Any Help?
SELECT
custnbr,
AvgLag = CASE WHEN COUNT(*) >...
April 21, 2023 at 4:35 am
Viewing 15 posts - 76 through 90 (of 158 total)