Viewing 15 posts - 16 through 30 (of 38 total)
Dear Neetu,
You need to make very small change in your table B, Add one primary key ProId as follow
CREATE TABLE B (
ProID int IDENTITY (1, 1) NOT NULL ,
RefNo int...
November 8, 2005 at 11:59 pm
Try this:
Select count(1)
From dbname..tablename
Where sdate=CONVERT(varchar, GETDATE()-1, 101)
October 26, 2005 at 8:10 am
SELECT SUBSTRING('20050910',7,2)+'/'+SUBSTRING('20050910',5,2)+'/'+SUBSTRING('20050910',1,4)
October 17, 2005 at 4:52 am
I give you full 100 out of 100. Thank you.
Vivek
August 26, 2005 at 2:30 am
Hunting has been done long back - 2 years before. If you don't mind, kindly provide the link if already posted.
Well, hunt me if you can..?
Vivek - HUB of...
August 25, 2005 at 5:54 am
hi,
after 3 days of pain, i have got the job done. thanks others for their time to look into the problem....
We need people in action to accomplish impossible to possible.
Vivek
August 24, 2005 at 12:13 am
I am not satisfied, as this is not working. Users can login and access the application
Vivek
August 23, 2005 at 2:22 am
Join is generally performancce degrader. Select Case is faster and executes in less time compared to JOIN. For faster execution, avoid join. Better table design is something I appreciate but
your query...
August 18, 2005 at 2:37 am
--Hi,
--Following SCRIPT will serve your purpose.
DECLARE @ID int
SELECT @ID = Max(ID) From Sheet
--SELECT @ID
WHILE @ID <> 0
BEGIN
UPDATE Sheet Set
FromStatus
= (
SELECT
CASE IsNull(EndDate,1)
WHEN 1 THEN 'NULL'
ELSE ToStatus
END
FROM
Sheet
WHERE...
August 16, 2005 at 10:35 pm
Ur nos are creating win win mysterious scenario...hope u hv understood my doubt...explain in det...
Cheers,
Vivek
August 12, 2005 at 5:55 am
CREATE FUNCTION ReturnAll (@msgID VARCHAR(8000) )
RETURNS VARCHAR(8000)
AS
BEGIN
DECLARE @Result varchar(8000)
,@i int
,@one varchar(100)
,@two varchar(100)
,@three varchar(255)
SET @one = ''
SET @two = ''
SET @three = ''
SET @result = ''
SELECT @i = Count(*) FROM t_Attachments WHERE msgID =...
August 12, 2005 at 5:38 am
ALTER FUNCTION ReturnAll (@msgID VARCHAR(8000) )
RETURNS VARCHAR(8000)
AS
BEGIN
DECLARE @Result varchar(8000)
,@i int
,@one varchar(100)
,@two varchar(100)
,@three varchar(255)
SET @one = ''
SET @two = ''
SET @three = ''
SET @result = ''
SELECT @i = Count(*) FROM t_Attachments WHERE msgID =...
August 12, 2005 at 5:37 am
Query 1 - >
SELECT DrawID,DrawDate,WinningNumbers FROM [Result Table] WHERE
DrawID IN (SELECT Max(DRAWID) From [Result Table])
Query 2 - >
SELECT DrawID,DrawDate,WinningNumbers FROM [Result Table] WHERE
DRAWID IN (SELECT Max(DRAWID) FROM [Result...
August 12, 2005 at 12:30 am
Viewing 15 posts - 16 through 30 (of 38 total)