Getting the latest row from a batch - ping challenge Aaron

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Getting the latest row from a batch - ping challenge Aaron

    Hi All

    This is a belter that my little brain can't handle.

    Basically I have 1 SQL table that contains the following fields:

    Stock Code
    Stock Desc
    Reference
    Transaction Date
    Qty
    Cost Price

    Basically this table stores all the transaction lines of when a user
    books stock items into stock so that they can look at a journal of
    this goods in as and when they please.

    My task is that the user wants a list of all the stock items with the
    last cost price that they were booked in at.

    So I think I have to find the last transaction date used for each
    stock code and then bring this back as 1 row per stock code with the
    above fields of data.

    How the whats-its can I do this? Is it acutally possible?

    Any help you can give is much appreciated.

    Rgds

    Laphan
    Robbie Guest

  2. Similar Questions and Discussions

    1. ping
      Hi all, How can i do a simple ping with asp.net, returning only the time of the ping??? Thanks in advance, Fabio
    2. Batch Processing, not quite batch
      Did anyone come up with a solution or at least an explination for this? I am having the same issue trying to batch convert TIFF files to PDF.
    3. Simple but complex report - ping Bob/Aaron
      Dear Bob Sorry for the delay in getting back to you. My PC has been out of action this festive period due to a nagging wife!!! In answer to...
    4. Alphabet Paging Menu - ping Aaron :0)
      Hi Guys Wonder if anybody has found a way round this one. First show a menu linking system as follows: 0 - 9 A B C D E F G H I J .......
    5. can't ping lan
      Hi I'm trying to set up IP masquerading. I had it set up under a previous install, but I can't get it going now. The problem seems to be related...
  3. #2

    Default Re: Getting the latest row from a batch - ping challenge Aaron

    "Robbie" <google@astraaccounts.co.uk> wrote in message
    news:f588d13a.0312081049.2da74923@posting.google.c om...
    > Hi All
    >
    > This is a belter that my little brain can't handle.
    Arrgh! Please don't multi-post!!! I already answered this in another
    group.

    --
    Aaron Bertrand
    SQL Server MVP
    [url]http://www.aspfaq.com/[/url]


    Aaron Bertrand - MVP Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139