Viewing 15 posts - 16 through 30 (of 45 total)
Eric M Russell (8/24/2015)
maxlezious (8/24/2015)
Eric M Russell (8/24/2015)
maxlezious (8/24/2015)
I currently have a job setup which runs the stored procedure every week and inserts the usage figures in...
August 24, 2015 at 8:25 am
Luis Cazares (8/24/2015)
And if you don't need the time, just use the date datatype instead of a datetime.
Thank you, will change to 'date' datatype as wont be needing time.
August 24, 2015 at 8:14 am
Eric M Russell (8/24/2015)
maxlezious (8/24/2015)
I currently have a job setup which runs the stored procedure every week and inserts the usage figures in a table. All i...
August 24, 2015 at 8:13 am
Thanks for your reply!
I currently have a job setup which runs the stored procedure every week and inserts the usage figures in a table. All i am looking for is...
August 24, 2015 at 7:50 am
I have the Microsoft SQL Server 2014 Query Tuning & Optimization and I will lookup on the other books you mentioned - thank you
I have been a silent reader of...
August 20, 2015 at 5:44 am
Really hope I become as good as you soon. Would you recommend me any t-sql books or just practicing on daily basis?
August 20, 2015 at 5:19 am
Chris, I am sorry to bother you again. I am trying to fiddle with the query you gave me to sum up the ajars and motions in same row
For example:
In...
August 20, 2015 at 4:26 am
Thank you so much for the updated query Chris. That's is exactly what I was after, really appreciate your time and help with the query.
August 18, 2015 at 10:39 am
ChrisM@Work (8/18/2015)
SELECT
a.*,
x.[hours],
Points = COUNT(*) OVER(PARTITION BY a.ActType, x.[hours]) * x.points
FROM #tblActivities a
CROSS APPLY (
SELECT
[hours] = CASE
WHEN a.ActType = 'Motion' THEN DATEPART(HOUR, a.isoTimeStamp)...
August 18, 2015 at 9:22 am
ChrisM@Work (8/18/2015)
Excellent job on putting together sample data. Can you post up what you expect your output to look like? Cheers.
Hi, Thank you for your reply. I am expecting the...
August 18, 2015 at 8:47 am
Thats exactly what i needed. Thank you so much! 🙂
October 29, 2014 at 7:23 am
Thank you for your great advice Lynn, I will create a new stored procedure like you adviced.
May 3, 2013 at 7:52 am
Is this correct way to do it
DECLARE @clientname VARCHAR (60)
SELECT DISTINCT @clientname = ClientName
FROM tblClient
WHERE ClientNumber
IN
(SELECT ClientNumber FROM tblSystem WHERE SystemNum = @systemID)
SELECT CASE
...
May 3, 2013 at 7:43 am
Thanks for your reply Lynn.
We have this working php code and i am trying to convert this into sql
$db_name = "DB_admin1" ;
$conn = mssql_select_db($db_name) or die('Connection to the Database failed!
')...
May 3, 2013 at 7:35 am
Viewing 15 posts - 16 through 30 (of 45 total)