Details
-
Aboutdev with a sense of humor and a gallon of self-perception
-
Skillskotlin, java
-
LocationSweden,
-
Github
Joined devRant on 2/17/2017
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
!Rant .. I need some quick help and didnt know where to go.. so fellow ranters please help...
So I have created an sql trigger which is supposed to add a kill to a doctor whenever one of his patients changes state to "killed" . But I dont know how to just get the one row that is updated. As it looks now : The doctor get patientKilled ++ for every patient he ever had before as well... How can I solve this ?
USE [AD17_Hospital]
GO
/****** Object: Trigger [dbo].[PatientKilled] Script Date: 2017-10-21 19:51:32 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[PatientKilled] ON [dbo].[Patient]
AFTER UPDATE
AS
BEGIN
declare
SET NOCOUNT ON;
UPDATE Doctor set PatientsKilled+=1
FROM Doctor d
INNER JOIN inserted p
ON d.DoctorId= p.DoctorId
where p.PatientState='Killed'
END4 -
I have a pun ban on work this week, apparently I have used it all up. They are always bringing me down..
-
Hate working Mondays because I can't be any where near people or social media due to spoilers of got.....
-
It should be illegal to have a 12 year old documentation for an c++ API... even though it's my fault I suck at c++ ...
Bluesoleil , the only Bluetooth you are giving me is a rather unpleasant story.. -
Facebook.
I fucking hate Facebook now.
Adding ads to all their videos, real classy.
Especially when it can show the same ad twice in the same video...
Facebook, I AM OUT.1 -
!devrant
What the fuck is wrong with walking deads CGI??? Did they lose all their budget or something?
DEER WALKING DEAD DIE1 -
Just met an old friend for lunch, and after telling her about my new app she asked if I can make websites and stuff....
-
Throwback - don forget when CSI showed us how to protect us from being hacked!
https://youtube.com/watch/...6 -
Facebook messenger app be like:
"Something went wrong, please try again"
No shit,when you r trying too make another snapchat app...1