Viewing 15 posts - 61 through 75 (of 196 total)
Great question! That's a neat little trick I need to remember. Never have seen that before and I'm sure it will come in useful.
July 27, 2016 at 2:45 am
This is how I would do it, but I may not have understood your data fully.
SELECT Torque.Product, Torque.MetricValue [Torque], BHP.MetricValue [BHP]
FROM TBL_metrics Torque
JOIN TBL_metrics BHP ON Torque.Product = BHP.Product
WHERE Torque.Metric...
May 10, 2016 at 7:50 am
Sean Lange (5/6/2016)
tripleAxe (5/6/2016)
Ed Wagner (5/6/2016)
Yes, we all know this by now and it was a simple mistake.
I agree. I don't undertand why some peoples get so upset...
May 6, 2016 at 7:56 am
Ed Wagner (5/6/2016)
Yes, we all know this by now and it was a simple mistake.
I agree. I don't undertand why some peoples get so upset and frustrated by...
May 6, 2016 at 7:11 am
Toni-256719 (5/6/2016)
I agree with all the other replies.This returns 65 not 97!
Another frustrating QOTD with a wrong answer.
Or was it the wrong question?
May 6, 2016 at 6:58 am
George Vobr (5/6/2016)
I am sorry. Note above I wanted send to Mr. tripleAxe.
Thank you George. 🙂
May 6, 2016 at 6:52 am
A thousand apologies my friend, but I am not understanding what your problem is.
May 6, 2016 at 3:30 am
If you also have a integer value for the date part then you could use the agent_datetime function to convert the int to a datetime in your dataset and then...
May 6, 2016 at 3:22 am
If you are doing it in T-SQL you could prefix with a leading 0 and then use the RIGHT function to get the right most 6 characters and then use...
May 6, 2016 at 2:44 am
upper case / lower case confusion?
SELECT UNICODE(N'a'); ---returns 97
SELECT UNICODE(N'A'); --returns 65
May 6, 2016 at 2:39 am
Stuff it! I got it wrong again!
Well.. that one got me double-checking and triple checking and actually running the code in 3 different versions of SQL server. Maybe...
May 6, 2016 at 2:00 am
No stuff! Even did a search just in case my eyes weren't working.
I have used this type of query many times so knew what stuff would be used...
May 4, 2016 at 4:58 am
has anyone run DBCC FREEPROCCACHE ?
April 27, 2016 at 6:52 am
It's also worth the effort to stop users using the database whilst you are making the changes if you can.
If you do have to restore using the backup...
April 26, 2016 at 3:21 am
Is the table a heap or is there a clustered index on it? Same clustered index on your copy table? Is the copy table on the same server?
April 26, 2016 at 3:15 am
Viewing 15 posts - 61 through 75 (of 196 total)