Advertisement

06.29.2008 at 06:23AM PDT, ID: 23524917
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.0

how to update sql table from temperary table

Asked by ammartahir1978 in MS SQL Server, SQL Query Syntax, SQL Server 2005

Tags: , ,

okay the below query in snapcode gives me result1 attached spread sheet and this result is from the original database, then i have result2 which is a temperary table exported in to sql through DTS.

now i want to update the traget_qty and minimum_qty from temperary table

how this explain
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
select  
bgm.group_id,
BGG.GROUP_REFERENCE,
 b.branch_code,
            b.branch_desc,
            pm.prod_code,
            pm.alt_code1,
            pm.[description],
            c.colour_code,
            c.colour_desc,
            s.sizes_code,
            s.sizes_desc,
            rptd.target_qty,
           rptd.minimum_qty
 
	    
from replenishment_product_targets_detail as rptd
inner join replenishment_product_targets_master as rptm
            on rptm.rpl_prod_tgt_id = rptd.rpl_prod_tgt_id
inner join product_detail as pd
            on pd.sku_id = rptd.sku_id
inner join product_master as pm
            on pm.prod_id = pd.product_id
inner join colour as c
            on c.colour_id = pd.colour_id
inner join sizes as s
            on s.sizes_id = pd.sizes_id
inner join branch_group_members as bgm
            on bgm.group_id = rptm.branch_group_id
            and bgm.member_code = rptd.branch_group_member_code
    --and bgm.group_id = 14
INNER JOIN BRANCH_GROUP_MASTER BGG
ON BGG.ID = BGM.GROUP_ID
inner join branch as b
            on b.branch_id = bgm.branch_id
 
 
 
 
	    
order by b.branch_code, pm.prod_code, c.colour_code, s.sizes_code
Attachments:
 
results
 
[+][-]06.29.2008 at 08:22PM PDT, ID: 21896435

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.30.2008 at 01:42AM PDT, ID: 21897530

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.30.2008 at 02:49AM PDT, ID: 21897762

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL Server, SQL Query Syntax, SQL Server 2005
Tags: MIcrosoft, SQL Server, 2000
Sign Up Now!
Solution Provided By: ammartahir1978
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080924-EE-VQP-39 / EE_QW_2_20070628