Viewing 15 posts - 3,886 through 3,900 (of 5,111 total)
Looks like your months are ordering, alphabetically. You need to set your ordering by month number, not name.
April 19, 2017 at 2:58 am
Ok, let's start with why this is failing. You're setting the SET INSERT IDENTITY ON before the table exists. This isn't going to work, as there's no table to chaneg...
April 19, 2017 at 2:37 am
I think you've missed everyone's point here. Our point is that your need isn't for answers, you need to learn, which you aren't doing.
I see someone in need...
April 18, 2017 at 9:38 am
April 18, 2017 at 9:00 am
Most likely your charindex is returning a value of 0, and thus erroring. For example, if FULLNAME contained a value of 'Thom', charindex(',', U.FULLNAME) would return a value...
April 18, 2017 at 8:38 am
Personally I found answering questions here really helpful. I'm not going to pretend I have anywhere near the level of expertise, or experience (I'm probably quite a few years younger...
April 18, 2017 at 8:18 am
I know what is happening now
If I filter on...
April 18, 2017 at 7:40 am
April 18, 2017 at 7:17 am
I believe that they honestly think they are paid to get answers from the internet, rather they learn and think for themselves... https://www.sqlservercentral.com/Forums/FindPost1871266.aspx
April 18, 2017 at 7:08 am
April 18, 2017 at 6:59 am
Perhaps:UPDATE [master]
SET checkin ='N'
OUTPUT inserted.* --You may need to adjust the * to the correct Column names if your tables do not exactly match
April 18, 2017 at 5:42 am
April 18, 2017 at 3:59 am
You do also realise that the above SQL is only going to update 1 account right? You can't assign multiple values to a variable, but that seems to be what...
April 18, 2017 at 3:13 am
paul 69259 - Thursday, April 13, 2017 9:47 AMNot sure how to post sample data....
Have a look at the link in...
April 13, 2017 at 9:50 am
Could you post some sample data which shows the problem (CREATE, INSERT, SELECT statements). Also, I can't see the column ORDERDATEANDTIME in your original query, only ORDERDATE?
On a...
April 13, 2017 at 9:37 am
Viewing 15 posts - 3,886 through 3,900 (of 5,111 total)