Viewing 15 posts - 2,326 through 2,340 (of 4,085 total)
mcfarlandparkway (9/28/2016)
This is what the...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 28, 2016 at 2:09 pm
SELECT v.*
FROM (
VALUES
(1, 'True', 'True', 'True', 'True', 'True', 'True'),
(2, 'True', 'True', 'True', 'True', 'True', 'True'),
(3, 'True', 'True', 'True', 'True', 'True', 'True'),
(4, 'True', 'True', 'True', 'False', 'False', 'True'),
(5, 'True', 'True', 'True',...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 28, 2016 at 9:16 am
J Livingston SQL (9/27/2016)
drew.allen (9/27/2016)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 28, 2016 at 8:46 am
You're strings/dates aren't quoted. You should always try to run your query before posting it on the Internet.
Drew
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 28, 2016 at 8:39 am
Infock12 (9/28/2016)
You expert opinion is much appreciated.
I am running a report that covers the last two fiscal years. I want all the data for the last two years. The...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 28, 2016 at 8:15 am
Okay, is it just me? I've seen two different people post sample data where the datetime data is given in hex and converted to datetime. It's not like...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 27, 2016 at 3:31 pm
Ken McKelvey (9/27/2016)
One way is to expand the dates with a number/tally table and then roll them up again:
The problem with this approach is that it can be very expensive,...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 27, 2016 at 3:16 pm
dimpythewimpy (9/27/2016)
SUM(Col2) OVER(ORDER BY Col1 ROWS UNBOUNDED PRECEDING) "Rows" FROM #TMP
basically...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 27, 2016 at 11:37 am
rishakin (9/26/2016)
Problem Statement:
I have 2 tables say Table1 and Table2. They both have fields Number and type. But the numbers across the table should be reordered sequential when user clicks...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 27, 2016 at 10:18 am
ZZartin (9/27/2016)
WITH TEMP_CTE AS(SELECT NameFrequency.Name, NameFrequency.Role, RoleRankLookup.Priority, SUM(NameFrequency.Count) AS TOTAL, RANK() OVER(PARTITION BY NameFrequency.Name ORDER BY SUM(NameFrequency.Count) DESC, RoleRankLookup.Priority ASC) AS RN
FROM (VALUES('Jack', 'Student', 3),
('Jack', 'Teacher', 5),
('Jack', 'Admin', 2),
('Jack', 'Student',...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 27, 2016 at 9:48 am
Jacob Wilkins (9/27/2016)
The Dixie Flatline (9/26/2016)
you should specify the window frame (generally ROWS UNBOUNDED PRECEDING), because the default is RANGE UNBOUNDED PRECEDING, and which is much slower than specifying...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 27, 2016 at 9:10 am
Luis Cazares (9/26/2016)
I, however, can see a lack of understanding of SQL....
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 26, 2016 at 3:49 pm
pietlinden (9/26/2016)
SUM( <column to be summed> )...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 26, 2016 at 3:27 pm
dimpythewimpy (9/26/2016)
begin
case
when (condition1 and condition...
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 26, 2016 at 3:25 pm
Luis Cazares (9/26/2016)
drew.allen (9/26/2016)
xr280xr (9/26/2016)
J. Drew Allen
Business Intelligence Analyst
Philadelphia, PA
September 26, 2016 at 2:56 pm
Viewing 15 posts - 2,326 through 2,340 (of 4,085 total)