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 SkipVought 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. 999Dom999

    How to restore emails with DOAS enabled?

    The answer: Procedure - leaving the Live DB in place 1: Restore the database to a separate location (no under the domino server data location) without including any NLO files. 2: Log on to a local admin client and turn off replication in the database replication settings 3: Place the data in...
  2. 999Dom999

    How to restore emails with DOAS enabled?

    My usual way of restoring emails was: Restore mail file to a different location, rename it. Open current and renamed mail files in Domino Admin Copy and paste the emails that were needed. Now I have DOAS, I have to do the same as above but copy it into the mail folder of the domino server due...
  3. 999Dom999

    Weird string problem

    Thanks as my post above I figured it out, it was my mistake [sadeyes]
  4. 999Dom999

    Weird string problem

    AHHHHH!!!!! Had nothing to do with the string. I was running a loop with an array holding database values, when it returned no results the array still held the info from the previous result set. If I hard coded the date I would always get the result I expected! D'oh so silly!!! That mind...
  5. 999Dom999

    Weird string problem

    I'm creating a query its long so I won't post it all but this part in question. $first = date('Y-m-d', mktime(0, 0, 0, 10, 1, $y)); $last = date('Y-m-t', mktime(0, 0, 0, 10, 1, $y)); $dateQuery = " ITRAN.IT_DUE >= { d '$first'} AND ITRAN.IT_DUE <= { d '$last'} AND "; So $dateQuery outputs...
  6. 999Dom999

    Combine 2 queries

    I'm simplifying my actual queries, but hope this gets across what I'm trying to do, here goes: QUERY 1 SELECT SA_MODEL,SALES_QTY FROM SALES RESULT MODEL SALES QTY ABC123 5 ABC124 5 QUERY 2 SELECT OUT_MODEL,OUT_SALES_QTY FROM TRANS WHERE IT_STATUS = 'A' AND IH_CREDIT = ' AND IH_STKSAVE = '...
  7. 999Dom999

    Summing problem

    Thanks Olaf for pointing me in the right direction!!!! By playing around with CAST I managed to get the first line working then I got the exchange rate line working. I think I can shorten it further but below was my final statement. My sore head has now gone! One more question is there a way...
  8. 999Dom999

    Summing problem

    Hi Olaf Thanks for your suggestions, both return 0 (Actually I just noticed it doesn't return a zero it returns nothing) if I remove the division it works. I can multiply it by 0.01 but then on the next line I need to divide by an exchange rate from the database. This line also returns...
  9. 999Dom999

    Summing problem

    Hi Mike Yes there is a GROUP BY and HAVING clause in the statement. In the ODBC version I just had just one column in the GROUP BY statement when using OLE DB I had to enter all non summed columns. I just read that this was changed in VFP8 http://support.microsoft.com/kb/813361 My statement...
  10. 999Dom999

    Summing problem

    I'm creating a web reporting app using PHP and connect to our VFP9 database with MS OLE DB Provider for VFP9. I was previously using ODBC but it couldn't do embedded select statements so switched to OLE DB which has more functionality but I'm getting problems with the exact same query that...
  11. 999Dom999

    Combining 2 table results

    It is VFP9 but I was using ODBC to connect and ODBC-SQL is limited, I found out I can use OLE DB to connect instead this supports derived tables. I used Ian's example it needed a comma after charname and an Alias name after the close bracket and works perfectly! Thanks so much :)
  12. 999Dom999

    Combining 2 table results

    I know its foxpro but I'm using sql queries they are just a bit limited with functionality offered by odbc sql, I really need an odbc sql forum but this is the closest I found. I tried with the AliasName but it still threw a syntax error. Thanks
  13. 999Dom999

    Combining 2 table results

    Thanks Ian, I'm sure that would work but I'm using odbc SQL via PHP to a Foxpro Database and unfortunately its a bit limited in functionality. If I try to do a select statement inside a select statement it throws a Syntax error, even this simple test didn't work - Select * from (SELECT * FROM...
  14. 999Dom999

    Combining 2 table results

    I have 2 tables with identical columns names. I have model numbers in each that I want return and if they are in both tables I want them to sum. I tried to use union but it just added the same model number twice. Any ideas how to achieve this below: Table 1 --------------- Model quantity...
  15. 999Dom999

    Need to Order By SUM'd value

    Thanks for all your replies. First suggestion I couldn't get to work. Using the order by column no. worked a treat. The last one didn't work for me I had previously tried it but I'm using ODBC SQL in php to connect to foxpro db not sure if it fully supports everything. The final way was that...
  16. 999Dom999

    Need to Order By SUM'd value

    Here is my statement SELECT SNAME.SN_TERRTRY, SLOOK.LK_DESC, SUM(SANAL.SA_QTY),SUM(SANAL.SA_COST),SUM(SANAL.SA_TRVALUE) FROM SANAL INNER JOIN SNAME ON SANAL.SA_ACCOUNT = SNAME.SN_ACCOUNT JOIN SLOOK ON SLOOK.LK_CODE = SNAME.SN_TERRTRY GROUP BY SNAME.SN_TERRTRY ORDER BY ???? I want the sort...
  17. 999Dom999

    Remote desktop over vpn behaves different to over LAN

    I can't quite get my head around this. The problem is poor connectivity between servers when using remote desktop over a VPN but fine when over a LAN. This has only just started happening. I have a terminal server windows 2003, on this we run a Pegasus Opera client from another 2003 server both...
  18. 999Dom999

    Need to replicate mail files between servers

    We have one main mail server, then a blackberry server and a new remote office server. All 8.5.1. I moved the mail file from the main mail server to the new remote office server. All working great. One user has a blackberry this syncs his address book within his mail file (inotes) with the...
  19. 999Dom999

    return the last ten entries, in decending order

    Just the ticket!! Thanks so much!! I was getting a bald patch from head scratching! I used this and works perfectly: SELECT * FROM ( SELECT id,date,title FROM en_news LIMIT $row_count,10 ) AS x ORDER BY id DESC
  20. 999Dom999

    return the last ten entries, in decending order

    $row_count = mysql_num_rows(mysql_query("SELECT id FROM en_news"))-10; $query= "SELECT id,date,title FROM en_news LIMIT $row_count ,10"; Above is the solution of the first part of the question but I want the last entry to display first. I tried: $query= "SELECT id,date,title FROM en_news...

Part and Inventory Search

Back
Top