Viewing 15 posts - 8,671 through 8,685 (of 9,644 total)
Don't see anything mentioned above. Please put your problem in the post so we can see it and so we can quote it if need be.
Thanks,
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 7, 2008 at 7:37 am
Been there many times.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 7, 2008 at 7:35 am
Okay, first you did not give complete information in your original post, so I could only offer a solution based on what you gave. Your original post mentions nothing...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 7, 2008 at 7:34 am
I think this code will do what you need:
[font="Courier New"];WITH cteInvalidRecords AS
(
SELECT
UniqueName,
ParentRef,
MIN(ModifiedUTC) AS ModfiedUTC
FROM
dbo.CmsContent
GROUP BY
UniqueName,
ParentREF
HAVING
COUNT(OID) > 1
...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 7, 2008 at 7:27 am
You have a typo in your query. Check out the BOLD and CAPITALIZED stuff:
UPDATE dbo.tblClmsRx
SET dbo.tblClmsRx.RxPrescriberLName = LTRIM(RTRIM(dbo.tblPharmacyCLAIMSTemp.LastName))
FROM dbo.tblClmsRx
INNER JOIN dbo.tblPharmacyCLAIMTemp ON (dbo.tblClmsRx.RxClaimNum = dbo.tblPharmacyClaimTemp.RxClaimNum)
Claim is...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 7, 2008 at 7:15 am
Check out the RAND function in BOL.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 7, 2008 at 7:11 am
Sreemati,
I rewrote your query using a LEFT OUTER JOIN because I understand them better. The order is get the deceased patients for your practice and then go out and...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 7, 2008 at 7:10 am
Nice explanation Grant.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 7, 2008 at 6:44 am
Nomvula,
Based on the information you provided it does not appear that you need 2 tables. You could do the report with 1 table with a group on Batch Number....
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 7, 2008 at 6:25 am
Nice article. I also would be interested in the any difference in restore times. I am not working with VLDB'd or even LDB's so backup time is not...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 5, 2008 at 7:24 am
You do not have an id column in the inserted table because you do not have an id column in your base table. Your code should be:
[font="Courier New"]CREATE PROC [dbo].[getSelectCertNumber]
AS
DECLARE...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 2, 2008 at 2:50 pm
There is a multi-part column at database journal called SQL Credit that walks you through the whole process from design to re-factoring.
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 2, 2008 at 2:15 pm
How about this:
[font="Courier New"]SELECT
RTRIM(LTRIM(CAST(CONTACT.ID AS VARCHAR(20))))+'--'+CAST(SALESCONTRACT.CONTRACTID AS VARCHAR(20)),
CONTACT.FNAME +' '+CONTACT.LNAME,
SUM(CASE
WHEN MDTRANS.TRANSDATE > DATEADD(DAY, -10, GETDATE()) AND MDTRANS.AMOUNT > 0, MDTRANS.AMOUNT
WHEN MDTRANS.TRANSDATE <= DATEADD(DAY, -10,...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 2, 2008 at 2:12 pm
Here's something similar to what I suggested in this thread:
[font="Courier New"]CREATE TABLE #MyTable (GroupCode CHAR(1), Num INT)
GO
INSERT INTO #MyTable
SELECT 'A',1
UNION SELECT 'A',2
UNION SELECT 'A',3
UNION SELECT 'B',1
UNION SELECT 'B',2
UNION SELECT 'B',3
UNION SELECT...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 2, 2008 at 1:59 pm
I don't know why it would rollback all unless it considered them all being nested within a a larger transaction which then rolled back when you killed one. I...
Jack Corbett
Consultant - Straight Path Solutions
Check out these links on how to get faster and more accurate answers:
Forum Etiquette: How to post data/code on a forum to get the best help
Need an Answer? Actually, No ... You Need a Question
May 2, 2008 at 12:27 pm
Viewing 15 posts - 8,671 through 8,685 (of 9,644 total)