Viewing 14 posts - 46 through 59 (of 59 total)
SELECT CONVERT(nvarchar(MAX), GETDATE(), 101) + ' ' + Stuff(Right(convert(nvarchar(max),DATEADD(hour, DATEDIFF(hour, 0, GETDATE()), 0),109),13),6,4,'')
Regards
Guru
February 17, 2012 at 3:43 am
Hi kshitiz,
But we have converted the date to format 103 then why its not formatted.
And also when using getdate() its formatting but when we give the date its not...
February 17, 2012 at 3:27 am
Declare @dates int
set @dates=datepart(yyyy,'10/30/1988')
print @dates
if (select count(DATEPART(yyyy,years)) from period_dim where years=@dates)>0
return
else
Insert into period_dim values(@dates)
select * from period_dim
i think u r asking this...
February 16, 2012 at 10:50 pm
Hi Jeff Moden,
Yes my post was blocked.. Its ok no problem
Regards
Guru
February 16, 2012 at 7:19 am
Declare @sum int
Select @sum=coalesce(@sum+'+','') + item_id from inventory.inventory_transaction
select @sum
I guess this will help u..
Regard
Guru
February 16, 2012 at 7:05 am
Hi Jeff Moden,
Thank you for your reply. Here is the url http://www.sqlservercentral.com/Forums/Topic1252335-391-1.aspx
Regards
Guru
February 16, 2012 at 5:58 am
Hi Gail Shaw,
Can I know the reason why my post blocked? I had reply @ "Posted Yesterday @ 10:50:20 AM"
Regards
Guru
February 15, 2012 at 11:20 pm
Hi Paul ,
You need to display the result 147 as 147:00:00 or 2:45:00
February 15, 2012 at 3:50 am
Hi Gianluca Sartori,
Thank you.. Im sure they asked for particular range of columns 11th column to nth column
Regards
GuruPrasad
February 14, 2012 at 3:55 am
Hi all,
this is the question asked in my previous interview.. How to select column 11 to nth from a table..
February 14, 2012 at 3:22 am
Hi,
I guess this can help u
select R.Rim_no ,NULL Account_no,NULL as Transactions,count(accounts) TotalAccounts,SUM(amt)TotalCharges ,COUNT(tran_name)Total_transactions from Rim R Inner Join Accounts A on R.Rim_no=A.Rim_no Inner join Atm On A.accounts=Atm.acount_no group...
February 13, 2012 at 6:29 am
Viewing 14 posts - 46 through 59 (of 59 total)