[AccessD] Trigger help

Elam, Debbie DElam at jenkens.com
Fri Nov 11 13:27:06 CST 2005


Perhaps the remainder could give you the result you needed.  It is called a
modulo in SQL.  If the remainder of the identity divided by 10 is less than
5, then use the record for the second process.

Debbie

-----Original Message-----
From: Hale, Jim [mailto:Jim.Hale at fleetpride.com] 
Sent: Friday, November 11, 2005 1:10 PM
To: 'Accessd (E-mail)
Subject: [AccessD] Trigger help


Assume a large SQL Server database where actions by many employees can be
captured. Assume you only want to capture (ie write to the datasbase) 60% of
the events. Of course you don't know the total number of events that will
occur during the day so the best thing to do is write the first 6 of every
ten. I've not used SQL server so I'm not sure the proper way to count the
hits (candidate records) and write six and discard four. What is the
efficient way to do this in SQL server? TIA

Jim Hale

***********************************************************************
The information transmitted is intended solely for the individual or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of or taking action in reliance upon this information by
persons or entities other than the intended recipient is prohibited.
If you have received this email in error please contact the sender and
delete the material from any computer. As a recipient of this email,
you are responsible for screening its contents and the contents of any
attachments for the presence of viruses. No liability is accepted for
any damages caused by any virus transmitted by this email.
-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com
- JENKENS & GILCHRIST E-MAIL NOTICE - This transmission may be: (1) subject
to the Attorney-Client Privilege, (2) an attorney work product, or (3)
strictly confidential. If you are not the intended recipient of this
message, you may not disclose, print, copy or disseminate this information.
If you have received this in error, please reply and notify the sender
(only) and delete the message. Unauthorized interception of this e-mail is a
violation of federal criminal law. 
This communication does not reflect an intention by the sender or the
sender's client or principal to conduct a transaction or make any agreement
by electronic means.  Nothing contained in this message or in any attachment
shall satisfy the requirements for a writing, and nothing contained herein
shall constitute a contract or electronic signature under the Electronic
Signatures in Global and National Commerce Act, any version of the Uniform
Electronic Transactions Act or any other statute governing electronic
transactions.



More information about the AccessD mailing list