Viewing 15 posts - 721 through 735 (of 5,111 total)
The answer depends on the data type of dbo.SalesHeader.OrderDate. If it's a datetime or similar then the answer is 6 as given. But if it's a varchar column then...
October 25, 2019 at 10:47 am
Even prior to SQL Server 2014 I would have recommended a Cross tab (Like I have done above). PIVOT is quite restrictive and unflexible. A Cross Tab is by far...
October 24, 2019 at 3:32 pm
Pivoting is a form of aggregation though; you can't pivot you're data without aggregating it somehow. That might be using SUM, or count, but it would also be by using...
October 24, 2019 at 3:22 pm
I want to know how I will do it directly via Query so that it shows me the contents of the entire table where I can modify the...
October 24, 2019 at 10:18 am
You can't put leading zeros on a numerical datatype, but you can on a (n)varchar. One method is using RIGHT:
RIGHT(REPLICATE('0',7) + CONVERT(varchar(7),YourNumericalColumn),7)This assumes all values are positive.
October 24, 2019 at 9:56 am
Visual Studiom and SSMS, only being 32bit really confuses me. it honestly makes no sense. Especially when their "younger brother" VSCode and ADS are only available as 64bit applications.
October 23, 2019 at 2:36 pm
SSMS supports all version of SQL Server that were supported at the time of it's release, and sometimes is given compatibility for newer versions in patches (if a new client...
October 23, 2019 at 1:00 pm
I thought they got rid of everything that was 32 bit (tongue in cheek on that comment).
Unfortunately, the problem is more related to the fact that people don't check...
October 23, 2019 at 12:06 pm
Also, as a result the the behaviour, the QOTD I want to send is literally impossible to write, as the question becomes entire malformed.
I have, however, attempted to guess it'll...
October 23, 2019 at 11:58 am
looks like it might be that the web control is trying to protect against HTML injection and forcing you to double escape the backslash
it's fairly common
very similar to the...
October 23, 2019 at 11:54 am
To add context, I'm trying to submit a QOTD about Backslash (Line Continuation) behaviour and I can't, as the question content becomes "malformed" due to the Backslash (Line Continuation) characters...
October 23, 2019 at 10:38 am
Appears this "feature" only occurs in Code Snippets, however, note that the \ is missing from the line outside of the code snippet.
Will test using \\ now:
October 23, 2019 at 10:27 am
Well, this is interesting. I'm trying to submit a new QOTD, and it *appears* that the very feature I'm trying to describe actually causes the question to become malformed when...
October 23, 2019 at 9:30 am
Here is an article:
https://www.si.com/nfl/audibles/2014/06/09/super-bowl-2018-requirements-minnesota-vikings
Some of those are, um... unique "requirements". O.o
October 22, 2019 at 3:03 pm
Also, the Browns … haven't even hosted a Superbowl. That's just sad.
London has been cited several times for possible Superbowl and the new Tottenham Hotspur stadium was lauded for...
October 22, 2019 at 2:32 pm
Viewing 15 posts - 721 through 735 (of 5,111 total)