Viewing 15 posts - 91 through 105 (of 122 total)
User DATEADD(datepart, number, date) function for this operation.
Regards,
Nitin
January 8, 2009 at 9:55 am
Put take trace while running your procedure. There might be some trigger... or some other procedure or so, which might be deleting the records.
You will get clear picture in trace.
Regards,
Nitin
January 8, 2009 at 9:52 am
There are few thing you need to keep in mind
-How you query the database? Means which fields do you use in WHERE clause and which fields do you use in...
Regards,
Nitin
January 6, 2009 at 2:44 am
I am sure this is interview question. But merge and hash join are Oracle terminology. It is not good idea to ask this question here.
Any way here is the link...
Regards,
Nitin
January 6, 2009 at 2:34 am
is it some interview question or you have some problem in JOIN query?
By the way sql server uses nested loops and index
nested loops join.
Regards,
Nitin
January 6, 2009 at 2:04 am
Hi
You can use this script.
============
DECLARE @handle VARBINARY(64), @connection_id UNIQUEIDENTIFIER, @session_id INT
DECLARE @maxCnt INT, @cnt INT
CREATE TABLE #tmp(id INT IDENTITY(1,1), session_id INT, connection_id UNIQUEIDENTIFIER, handle VARBINARY(64))
INSERT INTO #tmp(session_id, connection_id, handle)
SELECT...
Regards,
Nitin
January 5, 2009 at 7:00 am
There is no other place then default log location.
Regards,
Nitin
January 5, 2009 at 6:16 am
coolpul (1/2/2009)
what was the answer when you executed?
It gave me result as INT, DECIMAL and MONEY. Result was correct but my interpretation was wrong.
Regards,
Nitin
January 2, 2009 at 9:50 am
I have also executed the query and tick the wrong answer. 😛
Regards,
Nitin
January 2, 2009 at 2:24 am
Are you using the SSMS GUI or executing query for removing the FK.
If using the GUI then, some time it drops and recreate the tables. So first see...
Regards,
Nitin
December 30, 2008 at 3:03 am
Jeff Moden (12/30/2008)
Regards,
Nitin
December 30, 2008 at 2:51 am
Hi,
you can write your condition in JOIN statement instead of WHERE statment.
table1 LEFT OUTER JOIN table2 ON table1.DATE = table2.DATE and table2.emp = '123'
This way it will select all records...
Regards,
Nitin
December 30, 2008 at 2:14 am
Merry Christmas to all. See you in new year!.
Regards,
Nitin
December 24, 2008 at 6:48 am
Viewing 15 posts - 91 through 105 (of 122 total)