Forum: MS SQL Jul 15th, 2009 |
| Replies: 2 Views: 518 hi friend,
the above query is useful for only sql server 2005 but not for sqlserver 2000.
i have solution for that
select top 12 * from orders where orderid not in(select top 3 orderid from... |
Forum: MS SQL Jul 14th, 2009 |
| Replies: 2 Views: 1,276 hi friend,
followind queries will help u,
update table1 set column1=b.column1 from table1 a,table2 b
where a.column2=b.column2
or
update table1 set column1='ap' where dist in(select dist... |
Forum: MS SQL Jul 14th, 2009 |
| Replies: 5 Views: 1,164 hi friend,
to disable trigger :
DISABLE TRIGGER trigger_create
to enable trigger:
enable TRIGGER trigger_create
regards,
rathnakar |
Forum: MS SQL Jul 14th, 2009 |
| Replies: 4 Views: 1,830 hi friend,
this query selects 4th max record from the table .
select top 1 * from vehicles where sno in(select top 4 sno from vehicles )order by sno desc
regards,
rathnakar |
Forum: MS SQL Jul 14th, 2009 |
| Replies: 2 Views: 898 hi friend ,
use following query in your code(sql command)
select case when date1 is null then 'date is not found' else convert(nvarchar,date1,105) end as date1 from datetest
regards,... |