@@ identity

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • siddu57
    New Member
    • Feb 2008
    • 5

    @@ identity

    I got two tables

    one table has the fields ie table1

    orderid ofd orderdate customername

    where order id is autonumber

    the other table2

    orderid ofd product id productname


    the problem here is that
    if customer purchases 3 product at a time all the 3 products get the same ofd number ........and any 2 customers can have the same ofd number......... ....... now i have to pull the order ID value from table 1 to table 2............ can somebody help with this i am the front end is asp.net amd the database is done on SQL server management studio
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    You simply select the orderid from table1 where ofd equals x and customer equals y, then insert into table 2. HTH.

    Comment

    Working...