Mar 22, 2004 #1 Gatorajc MIS Mar 1, 2002 423 US I have a table that looks something like this. OrderID Product Seq CustID 1 xyz 16 a494 2 fji 17 a494 3 ere 18 a494 I want to get next number in Seq. I have seen something with NoCount but have no clue how to use it. AJ Do you feel lucky?
I have a table that looks something like this. OrderID Product Seq CustID 1 xyz 16 a494 2 fji 17 a494 3 ere 18 a494 I want to get next number in Seq. I have seen something with NoCount but have no clue how to use it. AJ Do you feel lucky?
Mar 22, 2004 #2 sunila7 Technical User Apr 11, 2001 1,087 US I am not really sure of wht u r looking for but if u want the next Seq No for a particular custID then u can use this query select max(seq) +1 from TBL where custid = 'a494' Sunil Upvote 0 Downvote
I am not really sure of wht u r looking for but if u want the next Seq No for a particular custID then u can use this query select max(seq) +1 from TBL where custid = 'a494' Sunil
Mar 22, 2004 Thread starter #3 Gatorajc MIS Mar 1, 2002 423 US Sorry Sunil didnt thing about where I was posting this. It is a pervasive DB and the +1 sytax does not work. AJ Do you feel lucky? Upvote 0 Downvote
Sorry Sunil didnt thing about where I was posting this. It is a pervasive DB and the +1 sytax does not work. AJ Do you feel lucky?
Mar 22, 2004 Thread starter #4 Gatorajc MIS Mar 1, 2002 423 US Thanks for the help though. AJ Do you feel lucky? Upvote 0 Downvote