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...
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...
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...
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...
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 = '...
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...
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...
...so I won't post it all the bit that is the problem is a simple sum that returns a 0 instead of the correct figure:
sum((quantityreq - quantityinv) * (unitval / 100)) as value //returns 0 expected 9907.2
quantityreq = 344
quantityinv = 0
unitval = 2880
The following does work ...
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 :)
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
...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 CHCLAS)
Any other ideas how I might achieve this. I might have to do two queries then use php to do the merge but I was...
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...
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...
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...
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...
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...
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
$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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.