Viewing 8 posts - 1 through 8 (of 8 total)
select
t1.id, t1.name
from your_table t1
where t1.id in (select min(t2.id) from your_table t2 where upper(t2.name) = upper(t1.name))
CVM.
October 8, 2003 at 9:53 am
Not sure about the false positives. The way I read :
SELECT *
FROM carrier
WHERE CHARINDEX("'" + CARRIER + "'", @a) > 0
the single quotes (to the left...
October 8, 2003 at 2:59 am
quote:
Hope this will solve your problemTry this
CREATE TABLE mytable
(
AccId numeric IDENTITY(1,1),
...
October 7, 2003 at 12:45 am
Hi Frank,
I've been reading the thread about 100 times, and I'm still not sure. I think what Manie wants is to know if there is some kind of sp/xp that...
September 11, 2003 at 4:13 am
Hi there.
The COUNT() function eliminates null values if you specify the column name. Check out BOL !!
Example :
SELECT COUNT(*), COUNT(TITLE), COUNT(TITLEOFCOURTESY) from northwind.employees
will return
first column : number of rows in...
September 11, 2003 at 2:15 am
Hello to you,
It's not the first time that I read something about allowing columns to take NULL values not begin recommended.
To my point of view, there is a valid opposite...
September 8, 2003 at 6:17 am
Dear,
Yes, indeed, there is a default setting at database level (ANSI_NULLS, not to be confused with ANSI_NULL_DEFAULT)
If you do :
sp_dboption @dbname = 'your_db1', @optname = 'ANSI_NULLS'
sp_dboption @dbname = 'your_db2', @optname...
September 4, 2003 at 4:07 am
Viewing 8 posts - 1 through 8 (of 8 total)