Viewing 15 posts - 1 through 15 (of 152 total)
Jeff, your simple one line of code made it happen. This was a great learning exp for me, I kept making this thing way harder than it was.
Thanks again to...
October 23, 2024 at 8:50 pm
Thank you to everyone. And to Phil, you're right, but its been a good while since I posted. I will follow your lead in the future.
Again, thanks for all the...
September 17, 2024 at 3:57 pm
Eh, I figured it out...now to get the '#Sold' in ASC order by INT..its currently treating 1 then 11 then 12 then 2....so its reading an 11 as the successor...
July 25, 2018 at 9:31 am
July 25, 2018 at 9:08 am
First, your table script is messed up. I suggest you update it.
Second, ROLLUP has a...
July 24, 2018 at 2:41 pm
SELECT
[iv].[ItemNum]
,[ii].[DiffItemName]
,CONVERT(VARCHAR(8), SUM(CAST([ii].[Quantity] AS INT))) AS [#Sold]
,'$' + CONVERT(VARCHAR(9), SUM(CAST([ii].[Quantity] * [ii].[PricePer] AS MONEY))) AS [Total_Sales]
--MyTarget.[ListPrice],
--MyTarget.[Discount],
FROM
Invoice_Itemized as [ii]
JOIN Invoice_Totals...
July 24, 2018 at 2:27 pm
February 20, 2018 at 4:27 pm
DECLARE @Yesterday DATETIME = DATEADD(DAY,-1,CAST(GETDATE() AS DATE));
DECLARE @PeriodStart DATETIME = DATEADD(DAY,-6,@Yesterday),
@PeriodEnd DATETIME = CAST(GETDATE() AS DATE),
@MonthStart DATETIME =DATEADD(MONTH,DATEDIFF(MONTH,0,GETDATE()),0);
SET NOCOUNT ON;
February 20, 2018 at 2:02 pm
January 30, 2018 at 10:09 pm
January 30, 2018 at 2:13 pm
January 30, 2018 at 12:02 pm
January 30, 2018 at 11:25 am
January 30, 2018 at 9:46 am
ChrisM@Work - Tuesday, January 30, 2018 9:25 AM<<Scratches head>>
There are three queries...
Tehe, you are correct, I updated the code. The query I...
January 30, 2018 at 9:34 am
Viewing 15 posts - 1 through 15 (of 152 total)