Results 1 to 10 of 10

Thread: Quantity to Row

Threaded View

  1. #9

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2004
    Location
    Jakarta, Indonesia
    Posts
    818

    Re: Quantity to Row

    thanks sz


    sorry for late reply,

    yes it works..but i just realized about it that the ItemNum got child records for the Barcode things

    so it required new table
    Code:
    Declare @Details Table (ItemNum varchar(10), Barcode varchar(10), Quantity int)
    Insert into @Details values ('AAA', 'A1', 1)
    Insert into @Details values ('AAA', 'A2', 1)
    Insert into @Details values ('AAA', 'A3', 1)
    Insert into @Details values ('BBB', 'B1', 1)
    Insert into @Details values ('CCC', 'C1', 1)
    it need to select the Barcode in ASC Order, the quantity for the barcode is always 1

    thanks
    Last edited by erickwidya; May 15th, 2008 at 10:34 PM.

    1st NF - a table should not contain repeating groups.
    2nd NF - any fields that do not depend fully on the primary key should be moved to another table.
    3rd NF - there should be no dependency between non key fields in same table.
    - E. Petroutsos -


    eRiCk

    A collection of "Laku-abis" Ebook, Permanent Residence

    Access Reserved Words, a Classic Form Bug, Access Limitation, Know run Process and the Lock they hold in, Logging User Activity in MSSQL,
    Kill Database Processes

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width