Viewing 15 posts - 3,736 through 3,750 (of 5,103 total)
The views of views can be very disadvantageous when you perform a lot of operations that may no be needed on the higher level ones and sometimes you may learn the...
* Noel
May 11, 2005 at 3:48 pm
Well,
I GOOFED!
my count(*) > 1 was count(*) > 11
then I copied an pasted the SAME query twice to change only the columns
* Noel
May 9, 2005 at 2:19 pm
In my opinion
>>SELECT MIN(autoID) AS autoID, Email
FROM dbo.customer
GROUP BY Email
HAVING COUNT(*) > 1 <<<
will return ALWAYS 0 records affected ! ![]()
* Noel
May 9, 2005 at 1:12 pm
USE MESSAGE 18264 to create the alert!
ex:
IF (EXISTS (SELECT name FROM msdb.dbo.sysalerts WHERE name = N'Some body run a BACKUP successfuly'))
---- Delete the alert with the same name.
EXECUTE msdb.dbo.sp_delete_alert...
* Noel
May 5, 2005 at 2:03 pm
Vichka,
There is no such a thing as the record number conceptually in SQL. There is no implicit order on how those are stored.
You cal always write something like
create table #T1(i int identity(1,1),...
* Noel
May 5, 2005 at 1:17 pm
mrwid LIKE 'R[0-9]%' OR mrwid = 'R' -- That will bring what you don't want
If you are able to describe what you want in terms of positive patterns use that,...
* Noel
May 5, 2005 at 1:04 pm
I don't really understand how you want to group them but:
Ist this what you are after ?
SELECT LEFT(YourColumn,Len(YourColumn)-1) AS Code, Count(*) AS Records
FROM dbo.YourTable
GROUP BY LEFT(YourColumn,Len(YourColumn)-1)
[Edit:] Credit To...
* Noel
May 5, 2005 at 11:09 am
??
Select Count(*) from Yourtable where YourColumn like 'D0004%'
* Noel
May 5, 2005 at 10:58 am
>> The result of the update cannot be determined. The value of the column will depend upon either order of insertion, (if there are no clustered indexes present), or on...
* Noel
May 5, 2005 at 10:02 am
And...
They are computed on the fly (not saved). But if you need a complex expression you may want to create an index on it and then you would have effectively...
* Noel
May 5, 2005 at 9:13 am
>>Unfortunately I cannot make use of Triggers in this situation.<<
You have to use either Triggers or third party tools
* Noel
May 4, 2005 at 8:30 am
Viewing 15 posts - 3,736 through 3,750 (of 5,103 total)