Viewing 15 posts - 211 through 225 (of 1,193 total)
To add a couple things to Gail's good points:
Unless there's a very good reason you're not doing it (say, nearly all the data is changed every day), I'd...
June 22, 2017 at 4:54 pm
Thought I'd throw my hat into the ring. Might as well make the functionality...
June 22, 2017 at 9:07 am
On the 2 d.p., I'm assuming 'two decimal places' is the intent.
For that, you'll just need to do an appropriate CAST/CONVERT to a DECIMAL with a scale of...
June 21, 2017 at 3:35 pm
First, some housekeeping 🙂
I see you updated your question and script instead of posting a reply. I'd recommend not doing that for a couple reasons.
1) it...
June 21, 2017 at 3:25 pm
Unless there's more to what you're running than you're showing us, that error shouldn't occur with that query.
You WOULD get an error saying that item_name is invalid in...
June 20, 2017 at 1:02 pm
Small hint: Between the DECLARE of @cnt and your check to see if it's >0, what all do you do to that variable? 🙂
Cheers!
June 19, 2017 at 4:55 pm
That is a CLR table-valued function, so you'd need to look at the assembly it references.
See https://docs.microsoft.com/en-us/sql/relational-databases/clr-integration-database-objects-user-defined-functions/clr-table-valued-functions for a little bit of explanation about this.
Cheers!
June 18, 2017 at 7:22 pm
The query you posted as your answer does not do what you verbally described as your requirement.
It will only return rows where AdmFormData.FieldName is either 'NAFTA' or NULL.
June 15, 2017 at 10:02 pm
No, BETWEEN @FromDate and @ToDate is equivalent to >=@FromDate and <=@ToDate.
You'll want to do >=@FromDate and <@ToDate with the variables set as suggested.
The nice thing about...
June 15, 2017 at 1:01 pm
June 15, 2017 at 11:04 am
June 15, 2017 at 11:01 am
June 15, 2017 at 10:36 am
Just to pile on, using the DDL you provided, both queries show 24 rows for the VeritVRU tool on April 30 when I run them.
If you're missing rows,...
June 15, 2017 at 9:48 am
June 15, 2017 at 9:30 am
Viewing 15 posts - 211 through 225 (of 1,193 total)