Viewing 15 posts - 586 through 600 (of 2,458 total)
mjh 45389 (7/19/2016)
July 19, 2016 at 12:09 pm
I have been working from home part of, or most of the time, since 2009. First as a DBA for remote clients and since 2011 as a BI Person. I...
July 19, 2016 at 12:03 pm
Jeff Moden (7/13/2016)
Alan.B (2/25/2016)
The NTally Inline Table Valued FunctionN-I-I-I-I-C-E! Great documentation, too!
Thank you, thank you! I thought you might like that ;-).
July 19, 2016 at 11:33 am
Solomon Rutzky (7/14/2016)
CELKO (7/14/2016)
Can you explain why you think this kind of programming and systems design would result in lower cost, easier maintenance or any other advantage?-1
+1
July 14, 2016 at 11:58 am
[Quote]Jeff Moden (7/13/2016)
Alan.B (7/13/2016)
CELKO (7/13/2016)
July 13, 2016 at 8:16 pm
Note that Jeff's second solution will sort the results in the order you demonstrated in your original post. The NTILE solution would not. If you need the numbers in that...
July 13, 2016 at 10:55 am
Alternatively you can do it like this:
WITH
E(n) AS(
SELECT n FROM (VALUES(0),(0),(0),(0),(0),(0),(0),(0),(0),(0))E(n)
),
E2(n) AS(
SELECT a.n FROM E a, E b
),
E4(n) AS(
...
July 13, 2016 at 10:22 am
Start with: Querying Microsoft SQL Server 2012/2014.
Buy the exam book. Study it and practice the coding related to the subject matter one chapter at a time. Once you feel that...
July 13, 2016 at 9:41 am
CELKO (7/13/2016)
July 13, 2016 at 9:23 am
CELKO (7/12/2016)
-1 is a wonderful answer.
To what? Who are you trying to communicate with here?
Mixed systems (those with more than one language embedded in each other) are always in...
July 12, 2016 at 8:31 pm
Solomon Rutzky (7/9/2016)
Alan.B (7/7/2016)
July 12, 2016 at 8:09 pm
Ed Wagner (7/12/2016)
djj (7/12/2016)
whereisSQL? (7/12/2016)
Ed Wagner (7/12/2016)
Manic Star (7/12/2016)
TomThomson (7/12/2016)
djj (7/12/2016)
whereisSQL? (7/12/2016)
Ray K (7/12/2016)
jasona.work (7/12/2016)
crookj (7/12/2016)
Grumpy DBA (7/12/2016)
Alan.B (7/12/2016)
attackDefend
Rope-a-Dope
The Greatest
Ali
Clay
Feet
Inches
25.4 Millimeters
Distance
Travelled
Vacation
Relaxation
Taxation
July 12, 2016 at 12:50 pm
Easy one (but I still ran this in SSMS to be safe 😛 : EXECUTE('SELECT 1');)
July 12, 2016 at 12:49 pm
I'm pretty confident that what I posted would do the trick provided the OP has or can add a datetime column.
July 12, 2016 at 12:38 pm
shogunSQL (7/12/2016)
I have a table like this:
Create table Tbl_Test01
(
Name nvarchar(20),
Item nvarchar(30)
)
;
insert into Tbl_Test01
values
('Car','Honda2016'),
('Car','Honda2017'),
('Car','Honda2018'),
('Tool','Dwwalt2016'),
('Tool','Dwwalt2017'),
('Tool','Dwwalt2018'),
('Tool','Dwwalt2019')
select *
from Tbl_Test01
I'd like to have the value of the column Name show up once and the...
July 12, 2016 at 12:28 pm
Viewing 15 posts - 586 through 600 (of 2,458 total)