Viewing 15 posts - 1 through 15 (of 52 total)
Dear Phil, It works,
Select twenty, Route_Name = iif(twenty = '220', 'Antony',Null), Route_Name = iif(twenty = '20', 'Bony',null)
FROM [d].[dbo].[t4]
But i want to show it one line(Virtual Column)...
July 24, 2018 at 3:21 pm
Hello Steve,
Seems yours code is ok .
SELECT *
FROM (
SELECT ROW_NUMBER()
OVER(PARTITION BY name
ORDER BY name DESC) AS StRank, *
FROM [d].[dbo].[t4]) n
February 28, 2018 at 12:10 pm
Hi sgmunson...thanks for your feedback. ..is it possible to share any codings which is PARTITION BY OVER clause would be great...
February 28, 2018 at 11:47 am
experts, Thanks for your feedback.
Actually, I am trying to develop DML for cashier with drivers shipment cash entry. Each day driver might have multiple shipments i mean delivery loads....
February 28, 2018 at 3:48 am
January 25, 2017 at 11:47 pm
January 25, 2017 at 2:48 pm
Hello sgmunson,
Thanks for trying to come out the quality answer. And thanks to chris who is continuously replied my query's without any hesitation.
I had 4 different requirement for which i...
November 5, 2016 at 5:28 am
Hello Sgmugson,
Thanks for your effort to provide quality answers where no matter how my question is good or bad:) .
No remote workers taking part in this calculation. Secondly i had...
November 5, 2016 at 5:19 am
Hello Chris,
Thanks i am able see the result . thinking & applied same your logic,
Added in select (cast(government_num as decimal(10,0))) as dutyhours and further added in subquery cast(sum(dutyhours) as int)...
November 2, 2016 at 3:47 pm
hi here OT is computed from dutyhours vs hoursworked.
i am not looking t OT instead my issue is with dutyhours incorrect computation.
Checking again to see where went wrong with what,
November 2, 2016 at 1:54 pm
Hi,
i am using following query to bring the following result,
;WITH Prep AS
(
SELECT
preffered_name as Department ,email_address1 as subdepartment,friday,saturday,government_num as dutyhours,ci.person_num, ci.event_name, CAST(DATEADD(hour,1,dbo.UtcToLocal(ci.creation_date)) AS DATE) AS event_date,DATEname(weekday,dbo.UtcToLocal(co.creation_date)) AS Day,
CAST(dbo.UtcToLocal(ci.creation_date) AS...
November 2, 2016 at 1:10 pm
here you go with DDL & DML,
DDL
CREATE TABLE action (
action_id int NOT NULL,
creation_date datetime,
PRIMARY KEY (action_id)
);
CREATE TABLE action_history (
action_id int NOT NULL,
person_id nvarchar(15),
person_num nvarchar(40),
...
November 2, 2016 at 11:33 am
Viewing 15 posts - 1 through 15 (of 52 total)