Viewing 15 posts - 1,081 through 1,095 (of 3,507 total)
Are you talking about NTILE()?SELECT BusinessEntityID
, JobTitle
, NTILE(4) OVER(ORDER BY BusinessEntityID) AS Quartile
,NTILE(2) OVER (ORDER BY BusinessEntityID) AS Half
FROM HumanResources.Employee;
February 1, 2019 at 6:51 pm
Right-click on the RowGroup, then select the Sorting tab from the Group Properties window, and select the field you want to sort by and set it to Descending?
January 31, 2019 at 9:26 pm
Since you never really explained what you're trying to accomplish, I have no idea.
If you want an answer, please read this article and follow the directions :
January 31, 2019 at 9:21 pm
When I ran your query, it said it couldn't find the table...
And you never defined what you mean by Margin. Without TotalCost, how do you define Margin?
January 31, 2019 at 9:12 pm
Okay, Can you post some sample data and expected output? I'm still not clear on what you're trying to do.
January 31, 2019 at 8:56 pm
January 31, 2019 at 8:29 pm
Umm... that post you're adding to is SEVENTEEN YEARS old.
How about...
https://sqlwithmanoj.com/tag/bcp-queryout/
January 31, 2019 at 6:12 pm
Using the above Cross Apply where we have 3 rows coming back, is there a way to tell it to only send only one row instead of three based on...
January 30, 2019 at 9:09 pm
Is this an Access question or a SQL Server question? I'm asking because SQL Server uses single quotes to delimit text strings and Access uses double quotes. If you're writing...
January 30, 2019 at 1:21 pm
(Shows how much I understand about FOR XML... is there a good book on the bare necessities you need to understand about XML in SQL Server?)
January 30, 2019 at 9:36 am
But you could create a table and write the values from the DMV into it... Then you could look at it over time. Not sure it's worth doing, but that's...
January 30, 2019 at 9:35 am
Use a TVF like DelimitedSplit8K to break out the pieces, sort them then reassemble using STUFF.
January 30, 2019 at 8:25 am
step 1: find all the names that are not null
step 2: union them together.
insert the result from step 2 into your final table.
return results from final table....
January 29, 2019 at 7:31 pm
How about
CREATE TABLE Meeting (
MeetingID INT IDENTITY PRIMARY KEY,
MeetingType VARCHAR(20) NOT NULL,
StartDateTime DATETIME,
EndDateTime DATETIME...)
And then...
January 29, 2019 at 9:49 am
A little normalization goes a long way. If a single record describes ONE meeting, then this is trivial.
January 29, 2019 at 8:19 am
Viewing 15 posts - 1,081 through 1,095 (of 3,507 total)