Viewing 15 posts - 1 through 15 (of 568 total)
Hi,
Are you try to change the data available from null to desired record, or try to change the table schema?
June 9, 2010 at 10:28 pm
But simple order by clause is not giving right output. So, how to query for this ?
declare @temp table (col1 varchar(10))
insert into @temp
select '1st' union all
select '15th' union all
select '3rd'...
June 7, 2010 at 5:02 am
how to restrict the rows having the decimal values in the columnB in the select clause of the above table?
select * from @test-2
where round(col2,0)- col2 = 0.00
June 3, 2010 at 11:07 pm
Nice approach cold coffee, a bit change in the statements. It’s should like
select dateadd(dd,N-1,@startdate)
from dbo.tally
where n <= datediff(dd,@startdate,@enddate)+1
May 26, 2010 at 12:57 am
SELECT Key1, MAX(VAL1) as MAX1, SUM(VAL2) as SUM2 ,
(case when MAX(VAL1) = 12 then 1
when MAX(VAL1) = 15 then 2
else 0 end) SOMEVALUE FROM @TableVar
GROUP...
April 26, 2010 at 1:05 am
Hi Vijay,
The concern is, unless you have any one of the column like identity, date of creating/modify, or row version (timestamp), it’s very difficult/can’t to get the last insert row...
April 26, 2010 at 1:03 am
--==To find out the all triggers in the DB==--
SELECT
OBJECT_NAME(parent_obj)TbName ,
[name] TrName,
(CASE WHEN (STATUS & 2048) = 2048 THEN 'Disabled' ELSE 'Enabled' END) Status
FROM sysobjects
WHERE xtype...
April 16, 2010 at 11:07 pm
Hi,
You find out with the help of profile, this may the customized validation in your application on the sql. Once you catch the procedure/function which is returning with the...
April 9, 2010 at 9:58 pm
Hi,
Check the DB table index is same with the second table.
Or these second tables for analysis/report purpose ie like the temp purpose than just select with order by class.
April 9, 2010 at 9:47 pm
flash.rsn (4/5/2010)
You dont need to add vairable, use veriable table and insert your input hour/minutes values to this table to use as a parameter and pass it to IN statement.
Hi,...
April 5, 2010 at 12:51 am
mahalirajesh (3/9/2010)
select * from [112.137.162.205].[CCRSVTEAM]..[dbo.tbl_SvDetails]
Hi,
Suppose you have the table permission and the table exists in the target server, then again check with select statement by,
SELECT * FROM [112.137.162.205].[CCRSVTEAM].[DBO].[TBL_SVDETAILS]
OR
SELECT *
FROM OPENQUERY([112.137.162.205],...
March 9, 2010 at 9:27 pm
GilaMonster (3/6/2010)
arun.sas (3/5/2010)
It’s better to use the Joins instead of the sub queries/Exists.Sure about that?
http://sqlinthewild.co.za/index.php/2010/01/12/in-vs-inner-join/
Hi,
I would thing yet it’s by join, but in the wild compares good result, but...
March 6, 2010 at 1:43 am
Jeff Moden (3/5/2010)
Colin-232036 (3/5/2010)
March 5, 2010 at 11:43 pm
Hi Jeff,
Very cheerful,
Credit to explain in both the versions
🙂
March 5, 2010 at 10:50 pm
Hi Jeff,
You are good,
“You are not responsible for what people think about you,
But you are responsible for what you give them to think about you” – Stanley Ferrard.
March 5, 2010 at 10:38 pm
Viewing 15 posts - 1 through 15 (of 568 total)