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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. rafeman

    Replace carriage returns

    Brilliant, worked a treat. Thanks to you both
  2. rafeman

    Replace carriage returns

    Hi All, I have an address field with data such as Sheldruck House : Billericay : Essex I want to replace the ':' with carriage returns. I'm sure this is simple but how do I do it? I've tried update PL_ACCOUNTS set SUADDRESS = REPLACE(':',char(10),CHAR(13)) But its not correct. Thanks
  3. rafeman

    Selecting Top 1 based on primary key

    Hi George, Sorry I haven't replied sooner, been busy. Thanks very much, that appears to work after a minor tweak below; SELECT PT_PRIMARY 'InvoiceID', PT_HEADER_REF, PT_NETT, PT_VAT, PT_GROSS, isnull(SU_USRCHAR1,'') Approver1, isnull(SU_USRCHAR2,'') Approver2, isnull(SU_USRCHAR5,'')...
  4. rafeman

    Selecting Top 1 based on primary key

    Hi all, I have a query below which returns a list of invoices from the PL_TRANSATIONS table. This was fine but I now need a field from the detail line tavle SL_PL_NL_DETAIL. I've added this in but I onviously now get mutiple rows where the invoice is multi lined. I need to amend the query so it...
  5. rafeman

    Query issue

    Thanks guys, the follwoing gave me what I needed; with MyData as (select ROW_NUMBER() OVER(PARTITION BY DHH_ORDER_NO ORDER BY DHH_DELIVERYNOTE_NO DESC) AS 'RowNum' ,CAST(DHH_ORDER_NO AS float) AS DHH_ORDER_NO , DHH_DELIVERYNOTE_NO from SYS_DEL_HISTORY_HEADER where DHH_ORIGIN in ('SOO') and...
  6. rafeman

    Query issue

    I have the following SQL query that gives me the data I need. However, I need to transpose the rows into columns. Ie. Instead of using union to put them all together I need each query as a separate column. One row per order number. select * from ( select ROW_NUMBER() OVER(PARTITION BY...
  7. rafeman

    Shared Variables - Sub Report

    Hi All, I'm probably missing something simple here... My report has a column Product Trend Maximum Values Product trend is a sub report for reasons I won't bore you with. Maximum values is a formula using data in product trend. I have created a shared variable called Total in the...
  8. rafeman

    Windows 7 and Sub Reports

    Hi All, I was wondering if any of you have any issues running Crystal reports which contain subreports on Windows 7. One of my users has intermittent problems with the report crashing but it only occurs on Windows 7 and reports with subreport. I've not experienced this with Crystal 2008...
  9. rafeman

    Data Issue

    thanks for your replies. Will try adding a table
  10. rafeman

    Data Issue

    Hi, I have a report that is needed which gives the summary of sales for each month. In crystal you can do this by grouping by the date field then tick 'The section will be printed for each month'. My issue is the report needs to also show the months where there is no sales. The transaction...
  11. rafeman

    Date and value problem

    thank you both. Will take a look ASAP
  12. rafeman

    Date and value problem

    Hi, hopefully I can explain this correctly. I have a transaction table that stores budgets such as below; 01/07/10 - £1500 01/08/10 - £800 The user runs the report and has a parameter called 'SelectWeekEndDate'. Their weeks always start with the last Sunday of the week. So if they select a...
  13. rafeman

    Date Parameter Mask

    Hi, I know you cannot mask dates in parameters but can put a start / end date in for a range of values. I need the user to only be able to select the last sunday of every week. Is this possible or do I have to put a warning on the report if this isn't selected? Thanks
  14. rafeman

    Simple Query

    Hi there, can somebody show me how to get the data and explain the technique to do the following; I have one table Table A PRIMARY PARENT_PRIMARY NAME 1 0 Sales 2 1 Food Sales 3 0 Cost of Sales 4 1...
  15. rafeman

    Simple Trigger Query

    In fact, just tried it and it works! Thank you again
  16. rafeman

    Simple Trigger Query

    It does, thanks very much. Will try tomorrow
  17. rafeman

    Simple Trigger Query

    Hi, I have the following trigger set up. All its designed to do is after an insert into the PL_TRANSACTION table it copys data from the PT_BATCH_REF field into PT_INTERNAL_REF. However my issue is at present it updates all rows with this information. I want to to only effect the inserted row. I...
  18. rafeman

    Sum items based on dates

    Hi, I have the following table PRIMARY DATE GROUP 1 10/08/08 Residential 2 12/08/08 Self Build 3 10/08/08 Self Build 4 11/08/08 Domestic 5 09/08/08 Residential The user wants a report as following; Parameter (Date) Qty Tasks Qty...
  19. rafeman

    Sum of Group average

    Hi, I have the following table PRIMARY DATE GROUP 1 10/08/08 Residential 2 12/08/08 Self Build 3 10/08/08 Self Build 4 11/08/08 Domestic 5 09/08/08 Residential The user wants a report as following; Parameter (Date) Qty Tasks Qty...
  20. rafeman

    New to SQL Triggers

    thanks very much for your help and advice all. I will have a play with this and see what I come up with! Thanks again

Part and Inventory Search

Back
Top