Viewing 15 posts - 16 through 30 (of 102 total)
So will there be any issues in using with(NOLOCK) for sys schemas ? I had the habit of using every where in SQL Statements ..What would be the pros and...
February 24, 2015 at 3:22 pm
I need all columns if no Identity on the table as i am merging and Inserting the Columns data when Not Matched with Identity_Insert ON
for that i need to specify...
February 24, 2015 at 2:29 pm
So the solution would be like like below
SELECT CONVERT(CHAR(10),DATEADD(dd,DATEDIFF(dd,1,DATEADD(DW,-@Years,GETDATE()))/7*7,1),120)
February 5, 2015 at 8:09 am
The above script looks good 🙂 and how about not using the DATEFirst for the below code ? Thanks in advance
SELECT CONVERT(VARCHAR, DATEADD(WW,-@x,DATEADD(DD, -((@@DATEFIRST + DATEPART(DW, GETDATE()) -3)...
February 5, 2015 at 8:08 am
The Solution is as below
SELECT CONVERT(VARCHAR,DATEADD(yy, -@x, DATEADD(D, -((@@DATEFIRST + DATEPART(DW, DATEADD(yy,-@x ,GETDATE()) ) -3) % 7), GETDATE())) ,23)
February 4, 2015 at 11:07 am
To be more clear i am looking to get date of Tuesday for the x parameter year
Example:
Assume x = 1 (One Year)
-->Today is 02/04/2015 Is Wednesday
-->I need...
February 4, 2015 at 10:24 am
SO we do not have any Query for CU # ? that i can run on Server instead of looking it manually ?
Thanks in Advance
February 6, 2014 at 1:49 pm
Thank you so much .. that worked for me
October 15, 2013 at 11:47 am
Hi ,
All of the posts here work and the one i gave also works but i am looking for other ways of doing it in a simple manner and with...
October 9, 2013 at 9:54 am
here applying condition 99 is not needed as i need to delete all the rows in TableA with the same condition WHERE deleteflag is 1 for all the products
October 9, 2013 at 9:47 am
In TableA We don't have Product Column, It only in TableB
October 7, 2013 at 1:15 pm
I guess this Query will delete all rows in TableA
October 7, 2013 at 1:06 pm
my query would be as below
DELETE Table A
FROM TableA a
INNER JOIN TableB b ON b.ConsumerID = a.ConsumerID
WHERE a.ConsumerID IN
(
SELECT ConsumerID FROM TableB WHERE DeleteFlag= 1 AND ConsumerID NOT IN...
October 7, 2013 at 12:53 pm
Hi i do not want to delete consumerID 100 as deleteflag is 0 for one product
and moreover this is not a home work , but i am trying to...
October 7, 2013 at 12:39 pm
Hi I need to show % of Billable Hours in different colors like if the % of Billable Hours is >90% then Red and Billable Hours < 90% then Green...
August 28, 2013 at 7:37 am
Viewing 15 posts - 16 through 30 (of 102 total)