Viewing 15 posts - 6,121 through 6,135 (of 26,490 total)
KoldCoffee (8/7/2014)
I do this:select 18/94
and got 0!
answer is supposed to be .19. I tried
select convert(decimal(5,2), 18.94)
and still got 0.00.
I don't understand!
How to do simple division?
You got zero (0) because...
August 7, 2014 at 10:00 am
Eric M Russell (8/6/2014)
Try the following:RANK() OVER (ORDER BY Col1, Col2, Col3)
Notice it's using rank() instead of row_number() and no partition by.
May actually want to use DENSE_RANK() instead.
August 6, 2014 at 11:36 am
Matt Miller (#4) (8/5/2014)
As in:
Select *
From CampServ.dbo.SampleFakeCustomerData
//This...
August 5, 2014 at 1:32 pm
rohitnegi09 (8/5/2014)
i am doing search through Date Range but didn't get correct result.
For Example if i created a Task on 5/8/2014 and when i have take Date Range from...
August 5, 2014 at 1:29 pm
Well, that's good. Too bad there is nothing there to indicate order of rows.
Really need to start at step one, which is to read the first article I link...
August 5, 2014 at 1:20 pm
et2brutuss (8/5/2014)
I'm afraid I don't know what you are asking me for.
DDL (Data Definition Language), in this case the CREATE TABLE statement(s) for the table(s) involved in your query. ...
August 5, 2014 at 12:11 pm
P74 (8/5/2014)
Wow! thanks for the help Lynn, Jeff.just going through the code now... what is the use of (n) after the cte name or after a table name?
e1(n) <<...
August 5, 2014 at 11:41 am
New_2SQL (8/4/2014)
Thanks for your help and sincere efforts. The view is working as desired.
I have gone through your Forum Etiquette and understood it well. My future postings will...
August 5, 2014 at 6:29 am
Greg Edwards-268690 (8/4/2014)
SQLRNNR (8/4/2014)
Lynn Pettis (8/4/2014)
August 4, 2014 at 8:17 pm
All it takes is some converting (and perseverance) and you can convert an itvf into nested derived tables. Glad this is a SQL Server 2008 forum as it did...
August 4, 2014 at 8:13 pm
Don't you just love people that ask for help but tell you it can't be a certain way, especially when the way the say it can't be done is the...
August 4, 2014 at 6:53 pm
Using a function, your solution is this simple:
CREATE TABLE #Test
(MyName varchar(10), MyCommaData varchar(50));
INSERT INTO #Test
SELECT 'Tom', '10,20,30,40' UNION ALL
SELECT 'Ed', '11,21,31' UNION ALL
SELECT 'Sue', '10' UNION ALL
SELECT 'Jill', '';
go
select
...
August 4, 2014 at 6:51 pm
Please explain why you can't use a function? That requirement makes no sense unless this is a homework assignment.
August 4, 2014 at 6:46 pm
suresh0534 (8/4/2014)
My problem is solved.I changed the Collation of Database.
It's working Perfectly.
Thanks
From what to what?
August 4, 2014 at 5:39 pm
Whom ever has the Great Mystical Crystal Ball, you are needed here.
August 4, 2014 at 1:15 pm
Viewing 15 posts - 6,121 through 6,135 (of 26,490 total)