« first day (2651 days earlier)      last day (1667 days later) » 

4:09 AM
In a table emp_bonus, which contains emp_name and bonus, had some entries. Now, I have added a new column salary. How I can add salary for the previously stored data?
I'm working in Oracle SQL server
 
4:20 AM
I know that we can update the column with same value using update emp_bonus set salary = 15000; but, I want to add different salary for different employees. Is it possible?
 
 
2 hours later…
6:46 AM
morning
@Quark you need a condition WHERE condition =
 
7:29 AM
Morn o/
 
@Shaneis hey man
 
S'up
 
@Shaneis coding, managing, dealing with english team
usual stuff
 
Did you get your english greeting?
All I could think of is "Oi Guv'nor"
 
@Shaneis lmao
@Shaneis yeah, it went fine
 
7:39 AM
Good to hear
 
 
3 hours later…
Sly
10:12 AM
@Andrew question please
 
 
2 hours later…
Sly
12:02 PM
Good morning or afternoon all
 
12:16 PM
evening
 
12:31 PM
@ARr0w hey man
 
@AndyK o/
 
Sly
team, i have an oracle view that i am trying to modify to add a new derived column, have modified it but my results set doesnt seem to be working on all my test cases.
anyone with a moment to offer me some suggestions? i can share my script if need be
 
@ARr0w sup?
 
12:54 PM
@AndyK two projects, one i'm solely developing and managing (based on abstract factory), second is about parsing, abstract factory and method factory concepts of design pattern is deeply implemented
so bumped. How about you?
 
@ARr0w dealing with new remote team in London
and trying to understand the code
 
@AndyK same here regarding the second project, trying to understand the implemented logic. Well good luck with managing the team bro
stable version until now ^
 
@ARr0w cheers mate
 
1:35 PM
@Sly - you don't but don't worry about it
 
2:02 PM
@AndyK Thanks :)
 
anyone familiar with MySql and generated columns?
if I try
CREATE TABLE triangle (
  sidea DOUBLE,
  sideb DOUBLE,
  sidec DOUBLE AS (SQRT(sidea * sidea + sideb * sideb))
);
then I get a syntax error
> You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AS (SQRT(sidea * sidea + sideb * sideb)) )' at line 4
I also tried using quoted identifiers and using generated always as but neither worked
CREATE TABLE `triangle` (
  `sidea` DOUBLE,
  `sideb` DOUBLE,
  `sidec` DOUBLE generated always AS (SQRT(`sidea` * `sidea` + `sideb` * `sideb`))
);
still error on the generated column
I dont understand why this happens
 
While using ALTER, why we specify TABLE? is there anything else we can alter? In case of UPDATE we don't use TABLE.
 
@Wietlol : dbfiddle.uk/… - it works
in terms of table creation, it parses
 
hmm... it appears to be an issue in 5.6
 
2:11 PM
@Quark - the ansi standard will say alter object no doubt, because you could alter other things, depending on the db
 
> 5.6.10a
guess I will have to find a workaround
 
@Quark - ALTER VIEW for example though, to give you a specific example outside of a table
 
 
1 hour later…
3:33 PM
HI Team, db_dataReader access to the user is stopping access to function to perform select statement
Any suggestions ?
 
4:16 PM
Any db role I can provide to view the function ?
 
4:41 PM
Is there any way to step through a trigger in debug mode?
I have 17.9.1
 
5:06 PM
I implemented logic with

WHERE (@vinsStr IS NULL OR @vinsStr <> '' OR VehicleId IN (SELECT VehicleId FROM #VehicleIds))

But sql is still implementing the following part even though @vinsStr is empty or null

VehicleId IN (SELECT VehicleId FROM #VehicleIds)
 

« first day (2651 days earlier)      last day (1667 days later) »