Viewing 15 posts - 91 through 105 (of 166 total)
Hi Luis,
That's awesome and thanks for your time on this. It works perfect. having one final question,
on the below sample
DECLARE @val int = 3;
WITH Months AS(
SELECT...
February 4, 2014 at 7:37 pm
Hi Luis, Thanks for coming back,
Here is the scenario,
for example :
declare @val int
if @val = 2 then below should be constructed
WITH Months AS(
SELECT UPPER(convert(varchar(3),datename(month,...
February 4, 2014 at 2:22 pm
Hi Luis,
got into tricky situation on this logic, Is it possible to make the below line as dynamic
FROM (VALUES (6),(5),(4),(3),(2),(1)) x(N)
for example i have one more column called "RecordCreationDate" and...
February 4, 2014 at 11:43 am
Hi Jeff,
Yes, it really easy and straight forward solution. Good learning for me today. Thank you so munch for mentoring me.
February 3, 2014 at 6:11 am
This is how i achieved now.
with Marks as(
select 20 as score
union all
select 30 as score
union all
select 70...
February 2, 2014 at 8:12 pm
Great and here is the final version of working query. even i did rounded the amount to nearest values.
WITH Months AS(
SELECT LEFT( DATENAME(MONTH, DATEADD(MM, DATEDIFF( MM, 0, GETDATE()) -...
January 29, 2014 at 12:57 pm
to remove the current month data i tweaked the logix and it works fine
SELECT right(CONVERT(CHAR(11),DATEADD(MM, DATEDIFF( MM, 0, GETDATE()) - N, 0), 6),8) month_name,
DATEADD(MM, DATEDIFF( MM, 0, GETDATE()) -...
January 29, 2014 at 12:39 pm
Thank you Genius. Really it helped me a lot. trying to understand the query and having tiny doubt that how the year is getting displayed along with the month name....
January 29, 2014 at 12:19 pm
Opps My bad, i din't watch the Luis reply.
Hi Luis, Apologize for my mistake. below is the query which i tweaked from yours.
select convert(varchar(3),datename(month, Visiteddate)) as validdate , --Will...
January 29, 2014 at 11:16 am
Hi Luis,
Could you please tell me what do you mean by "I just love being ignored". Does it mean that ignoring this thread.........
January 29, 2014 at 10:59 am
hi Torpkev,
thanks for your reply. actually the avg gives in terms of decimal. i just rounded and shown as result.
But on your query where is the condition to get...
January 29, 2014 at 10:41 am
Hi Scott,
You solution works fine now and thanks a lot.
Hi Luis,
Thanks for your reply too and as i said just thought of doing it in single query other then using...
January 13, 2014 at 1:55 pm
Yes, I tried your query and it gives wrong result.
pass the idEmployee as 2
It should give the result as 'Address2' only only time. But your query produces the two times.
The...
January 13, 2014 at 1:25 pm
Viewing 15 posts - 91 through 105 (of 166 total)