Viewing 15 posts - 196 through 210 (of 670 total)
Luis,
with over 6100 points, you've been around awhile. You know we need DDL and data with expected results to help.
November 17, 2018 at 8:37 am
Can you provide what you are expecting for results? Also, how do the tables relate?
November 14, 2018 at 9:13 am
try this
October 29, 2018 at 2:26 pm
It would be nice if you supplied some meaningful data and expected results. What you provided is missing amounts for all records expect the last one. You're expected results are...
October 29, 2018 at 1:57 pm
have you tried anything or just looking for someone to give you the solution?
October 29, 2018 at 1:41 pm
First of all, why????
secondly, you'd need to set identity insert on before inserting to the second table (I assume there is an identity column on it, but it's...
October 2, 2018 at 12:56 pm
Try Rank
select * from (
select EName, UnitsSold, Category,
Rank() over (partition by category order by UnitsSold desc) Ranking
from #t) t
...
October 2, 2018 at 12:52 pm
Steve is right. This is only selecting one record. declare @calendarID VARCHAR (8000) = (SELECT schoolID from dbo.school)
You would need something like this to get all the values
October 2, 2018 at 8:36 am
You can use a dynamic pivot. I have a table function called Tally that I use to generate the numbers. You pass in where you want to start and end. ...
October 2, 2018 at 8:04 am
I setup a very similar process using RowVersion datatypes. Then kept track of last RowVersion for each table. I go the largest RowVersion > previous and then retrieved all records...
October 2, 2018 at 7:35 am
would be nice to have DDL so we could help
October 2, 2018 at 7:23 am
Wow!! this kinda got ugly. Lynn was trying to explain how %ROWTYPE% works. I think the OP is used to using Oracle and was just asking if there was a...
October 1, 2018 at 9:32 am
you can also setup a maintenance plan to rebuild/reorg indexes automatically at night. I agree with Steve that this should not be an app that allows users to do this...
October 1, 2018 at 8:32 am
Please provide DDL and some sample data. Based on what you are asking for results, does this work for you?
October 1, 2018 at 7:20 am
check out some of the solutions in this post. It's very similar to what you are asking
September 29, 2018 at 5:28 pm
Viewing 15 posts - 196 through 210 (of 670 total)