Viewing 15 posts - 46 through 60 (of 141 total)
Sorry, here is the script
SELECT COUNT(DISTINCT ClientName) AS NoClients, COUNT(desc) AS NumMtrInv, desc, SUM(sales) AS Fees, AVG(Fee) AS Avgsales
FROM ...
April 20, 2012 at 2:00 am
Just to let you know I found the solution as shown below. Thanks for everyones help
/*display the amount of problems that have been open today*/
SELECT count(*)
FROM WorkOrder_Threaded wot INNER JOIN...
April 22, 2010 at 3:58 am
I only require the current date so 20/04/2010. I don't need the time or seconds at all. Ultimately the result of the query is just a number. So...
April 19, 2010 at 7:44 pm
ok. I'm trying to get the current date. Any jobs closed today etc it changes day to day.
April 19, 2010 at 9:25 am
That looks great. Thanks. How would I put that in my script? Sorry to be so simple
April 19, 2010 at 8:46 am
This is the date when done on the 19th April 2010 at 17:29pm
wo.COMPLETEDTIME <= 1271685599935
Hope this helps
April 19, 2010 at 1:31 am
I'm now getting that incorrect syntax near the keyword 'GROUP' again.
April 19, 2010 at 12:08 am
The data type is bigint and does go down to the seconds. I've run that script and I now get no results.
Sorry to be such a pain but I'm...
April 18, 2010 at 11:08 pm
Hi,
I've made those changes to the script and now it says there is a syntax error with keyword 'GROUP'. I've pasted below so you can see what I've done.
/*display...
April 18, 2010 at 4:21 pm
Thanks for that, but I hate to be a pain but can you put it in the script as a whole script so I don't make a mess of it...
April 15, 2010 at 4:31 am
This is how the date is in the db
ID User CreatedDate completedDate
119 695 1266183000929 ...
April 15, 2010 at 3:16 am
The problem I have is the "completedtime" column. It's in bigint datatype. So when you run the script in the app it just knows the date format. But I need...
April 15, 2010 at 1:16 am
omg. I didn't even notice der. Thanks for your help. Worked perfectly
December 13, 2009 at 5:24 pm
Thanks for that Lynn, that worked a treat. I only had to make one small adjustment but the select and the update statement did exactly what I wanted. ...
August 3, 2009 at 9:34 pm
Where the partnerid = 11 I want to change it to 26 assuming all the other conditions in the where statement are true as well.
August 2, 2009 at 9:36 pm
Viewing 15 posts - 46 through 60 (of 141 total)