Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by japeconsulting

  1. japeconsulting

    Display an entry from one row on all rows within a query?

    Hi I have the following table entries Date Acc Ref Amount Type 01/02/2018 ABC001 123 100 PAY 05/01/2018 ABC001 123 200 INV 06/01/2018 ABC001 123 300 INV so - Select Date, Acc, Ref, Amount, Type from Transactions I need to write a sql server statement that results in these entries, so...
  2. japeconsulting

    Help with getting all records from a table when grouping by other tables

    I need to amend the following query so that I get ALL records from the OACT table. Because I am grouping by fields from other tables as there are no records for some of the accounts in this OACT table it is not including all of the accounts. Could someone assist as to how I can modify this...
  3. japeconsulting

    SQL command required to show the first delivery type for each customer and also a distinct count

    I need a sql command that can show the first delivery type for each customer and I have managed to achieve this with OVER PARTITION BY using ROW NUMBER 1 but I also need a distinct count for each order and apparently this is not possible with this clause. Can anyone come up with a a simple sql...
  4. japeconsulting

    need SQL Expression to convert date instead of a crystal formula so it can be used in selection

    Hi I have a field in my database which contains the day number of the year which is calculated from january 1st, so for example January 10 would just contain 10 and december 31st would contain 365. I need to work out from that the day and the month. I can write a formula in crystal syntax to...
  5. japeconsulting

    how to extract all items starting with 1 from a string array

    Hi I have a array string that contains a number of notes from a field in the database and I want to extract specific items from this string. For example the string contains: stringvar array test:=["/1ItemA","/2ItemB","/1ItemC"]; I want a new string field (not array) that contains all the...
  6. japeconsulting

    cant use record selection - to show all orders with no red products

    Hi Ian and Madwac Thanks so much for your replies. Sometimes you have to go back to basics I was making it much too complex!
  7. japeconsulting

    cant use record selection - to show all orders with no red products

    I have a report where I need to show all orders which do not contain a "red" product ordered. I cannot use the record selection to limit the report where product<>red because that will just show me the lines that are not red, eg. Order 1 contains 4 lines - red, blue, green and yellow Order 2...

Part and Inventory Search

Back
Top