Viewing 15 posts - 31 through 45 (of 46 total)
Hi Gila,
I dont know how to put a execution plan in SQL. I have created in Doc and attached.
Regarding UNION ALL, I was advised that Since both Changes and Changes_DupCK...
January 7, 2015 at 3:48 am
Hi Gila,
Please check the attached doc containing the table definition and indexes for all the three tables
and advise.
The table "changes" will have millions of data and so is "Changes_DupCk" ....
January 7, 2015 at 3:03 am
I have written this query for checking duplicates by matching request no . But its not checking the third inner join for Duplicates, It only checks the first inner join...
January 7, 2015 at 12:54 am
Hi Kapil,
Common data means Duplicate Data or Unique data . please explain How to set Flag over it.
Could you please provide an example on this scenario.
January 7, 2015 at 12:28 am
Hi Gila,
Thanks VeryMuch,
It works perfectly as expected. Sorry I am very new to SQL (Fresher) . Thats y asked silly questions.
Thanks Very Much 🙂
January 6, 2015 at 5:53 am
Sorry for updating again, I didnt see the second page, I thought my post is not updated.
January 6, 2015 at 5:44 am
Hi Gila,
Thanks , I found the mistake and its working now
CREATE PROCEDURE sp5
AS
INSERT INTO AccountMock (Accountno,mode,value,customer,contact)
SELECT Accountno,mode,value,customer,contact FROM AccountTemp at
WHERE EXISTS (SELECT 1 FROM AccountMock am where at.Accountno = am.Accountno...
January 6, 2015 at 5:42 am
Hi Gila,
Thanks, I have found the mistake, Sorry im troubling for small syntax errors too.
This works fine .
CREATE PROCEDURE sp4
AS
INSERT INTO AccountMock (Accountno,mode,value,customer,contact)
SELECT Accountno,mode,value,customer,contact FROM AccountTemp at
WHERE EXISTS (SELECT 1...
January 6, 2015 at 5:21 am
Hi Gila,
Could you please throw some light on this and make this query workable.
Please advise where im making the mistake.
CREATE PROCEDURE sp3
AS
INSERT INTO AccountMock (Accountno,mode,value,customer,contact)
SELECT (Accountno,mode,value,customer,contact) FROM AccountTemp at
WHERE...
January 6, 2015 at 4:44 am
Hi Gila,
Im sorry, I am new to SQl that's why posted wrongly.
Here is my Table Creation
CREATE TABLE [dbo].[Account](
[Accountno] [nchar](10) NOT NULL,
[mode] [nchar](25) NULL,
[value] [nchar](25) NULL,
[customer] [nchar](15) NULL,
[contact]...
January 6, 2015 at 4:21 am
Hi Gila,
please find the below things,
ex.
Accounttemp
Accountno mode value customer contact
950017 011 ...
January 6, 2015 at 3:13 am
Hi Gila,
Please suggest where to put condition in my stored procedure,
Entire Record from AccountTemp has to go into one of the two tables Account and AccountMock based on one condition,...
January 6, 2015 at 2:03 am
Hi Jeff,
Sorry for late reply,
Yes. "ChangesFunction_maintabletable" and "ChangesFunction_temptable" will not have duplicate records.
Only "ChangesFuntction_duplicatecheck " table may have duplicates which means that record is already present in either ChangesFunction_maintabletable...
January 5, 2015 at 9:31 pm
Hi Jeff,
Thanks Very much !!! . I found it, From your query itself I can find the count 🙂
Once again Thanks for you support 😀
January 5, 2015 at 3:07 am
Hi Jeff,
Thanks Very Much !
It worked correctly. Please care to explain one last thing. This duplicate check will happen everyweek.
The reason for doing this activity is , to insert...
January 5, 2015 at 2:15 am
Viewing 15 posts - 31 through 45 (of 46 total)