Viewing 15 posts - 4,171 through 4,185 (of 59,067 total)
Heh... mine has started off with a bit of a "well that sucks" factor. Whole new time-keeping system where they want me to categorize virtually every aspect of what I...
December 17, 2021 at 3:47 pm
How's everybody? Wishing a good 2022
Doing good, Jo. Thanks for asking.
Same to you and yours.
December 17, 2021 at 3:35 pm
BUT even if you DO get it on your screen, there are a LOT of typos in it which makes it impossible to copy-paste into SSMS UNLESS...
December 17, 2021 at 3:32 pm
You are selecting from [@IND_ORLS] & joining [@IND_RLS1], but there are no table-valued-parameters w/ those names and no table types of those names declared & populated in the procedure. ...
December 17, 2021 at 3:32 pm
How i can resolve it
Thanks
Your findings don't appear to match your code where you say...
SET @Where = @Where + ' T0.U_DATE BETWEEN ''2021-03-01'' and ''2021-03-31'' '
I...
December 17, 2021 at 2:16 am
So, do you see anything at all in the printed SQL that could be causing a problem? Like maybe in the FROM clause? and the JOIN table that follows that?
December 17, 2021 at 1:23 am
Once you assign an alias to a table, that alias is the only valid way to reference that table. That's not a matter of preference or opinion. It's a...
December 17, 2021 at 12:36 am
There is no question in my mind that the form of updating an alias and having a FROM clause is easier in a lot of respects. I even said that...
December 16, 2021 at 10:34 pm
You have to understand... I don't actually care what the question was. This isn't stack overflow. I was teaching about the proper forms and you don't need a FROM clause...
December 16, 2021 at 8:39 pm
There is no need for the FROM clause in the first example.
I also prefer the second example because it's easy to change it to a SELECT to see...
December 16, 2021 at 8:11 pm
Thank you for the help....
Here is what I finally came up with
DECLARE @startDate DATETIME;
DECLARE @endDate DATETIME;
--DECLARE @dateDiff INT;
SET @startDate = '2018-08-12';
SET @endDate = '2018-08-14';
SELECT TOP 10 [Last Name] AS...
December 16, 2021 at 7:22 pm
There's also something crazy going on with this forum. The timestamp on the original post is for today at 8:15 PM, which hasn't happened here yet. I thought these things...
December 16, 2021 at 7:01 pm
There is no need for the FROM clause in the first example.
I also prefer the second example because it's easy to change it to a SELECT to see what it's...
December 16, 2021 at 6:57 pm
ALter PROCEDURE [dbo].[test] @frDate date, @toDate date, @VCode nvarchar(15) = null, @VName nvarchar(100) = null, @CCode nvarchar(15) = null, @CName nvarchar(100) = null, @CGroup nvarchar(15) = null as begin...
December 16, 2021 at 6:37 pm
It's been a looooong time since I've had to ask for sql help...lol. I've added an attachement with some sample data. Sorry about that and thank you for taking...
December 16, 2021 at 6:22 pm
Viewing 15 posts - 4,171 through 4,185 (of 59,067 total)