troubleshooting Question

Sql query

Avatar of svs1919
svs1919 asked on
Microsoft SQL Server 2005
3 Comments1 Solution224 ViewsLast Modified:
hi
i am extracting data from diffarent tables for eg
---------------------------------
OrdNum  OrderItem  Qty  PK
123       Bike      2   100
-------------------------------
OrdNum  keynum
123     abc1000
123     abc1001

when i join this this tables with ordenum i am getting

OrdNum  OrderItem  PK  keynum
123       Bike     100 abc1000
123       Bike     100 abc1001

so can i get some thing like this
OrdNum  OrderItem  PK   keynum
123       Bike     1001 abc1000
123       Bike     1002 abc1001

so depending on the quantity PK no should incriment
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros