Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 maintain total pax
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

420 Posts

Posted - 04/12/2013 :  00:53:59  Show Profile  Reply with Quote
i have total pax of 5.
1 pax can buy multiple items.
how can i maintain the pax to 5?

pax item
1 A
1 B
1 C
1 D
1 E

result should be:

totalPax Item ID
5 A 111
B 111
C 111
D 111
E 111

Flowing Fount of Yak Knowledge

2242 Posts

Posted - 04/12/2013 :  01:11:23  Show Profile  Reply with Quote
FROM @pax
Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 04/12/2013 :  04:36:25  Show Profile  Reply with Quote
what happened to B,C etc? why they dont have any value for totalpax?

SQL Server MVP
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000