Viewing 15 posts - 1,081 through 1,095 (of 1,419 total)
I think this is horrible advice. The customer number is an identifier for a customer (I assume), and not a magnitude or quantity of some attribute. Therefore, according to...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 11, 2020 at 11:18 am
Something like this maybe
;with
SiteInfo(SiteId, SiteName, JobId, Grade) as (
select 1, 'aaa', 1, 'a'
union all
select 1,...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 10, 2020 at 7:30 pm
To see more about what Jonathan's suggesting maybe have a look at this page:
It could be looked at like there're 2 ways to "include" columns in an index: 1) as...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 10, 2020 at 3:04 pm
drop table if exists #tblRecorddetails;
go
create table #tblRecorddetails(
Recordid int,
Userid ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 9, 2020 at 3:29 pm
drop table if exists #temp;
go
create table #temp (
userid int , rid varchar(10), value varchar(100));
insert #temp(userid,rid,value) values
(1,'D01','3'),
(1,'D01','4'),
(2,'C01','hey'),
(2,'C01','1');
with t_cte(userid,rid,value) as (
select
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 8, 2020 at 11:36 pm
Maybe this could work too
select
coalesce(ph.username, (select Message from itrm_itbf.temp.security))
from
ITRM_ITBF.[PMD].[PMD_HR] ph
join
ITRM_ITBF.[Dflt].[MANUAL_LSV_PERMISSIONS] mlp on ph.username=mlp.username
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 8, 2020 at 4:36 pm
Instead of returning the SSN (which is being sent to the procedure already) could you return COUNT(*)? Count always returns a value.
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 8, 2020 at 4:21 pm
It's data obfuscation project, thus no strict rules what value should be, rather it should be random. Each row should have its own value. When we are out of...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 6, 2020 at 7:45 pm
It randomly picks one of the words
;with data_cte(which_word) as (
select 'some' union all select 'word' union all select 'here')
select top(1)
which_word
from
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 6, 2020 at 6:13 pm
This is a beginning and it might get the OP past the id assignment issue.
drop table if exists #src_data;
go
create table #src_data(
EmpId ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 6, 2020 at 3:58 pm
Now while i was trying to implement merge, problem is how to assign new identifier value for new record (it should be max value +1 , and this column...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 6, 2020 at 1:30 pm
Right there with you. I wouldn't bother on that other thread, though. That subject keeps cropping up over and over and over and some of the participants do too. ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 4, 2020 at 8:57 pm
Jeff are the results reversed? It lists FORMAT d14 method as 802ms. Maybe copy/paste gone off?
And, please... for the love of your servers and your customers, stop all the...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 4, 2020 at 6:01 pm
@scdecade - your solution will not work for the OP. The trim function is not available on SQL Server 2016 and would need to be replaced with a rtrim(ltrim(...)). ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 4, 2020 at 5:39 pm
If using nested replace then this could be done in the select list. What if the list of replacements is variable?
select
ltrim(rtrim(replace(replace(replace(replace(replace(Employee, '<td><br>', '||'), '<td>',...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 4, 2020 at 5:28 pm
Viewing 15 posts - 1,081 through 1,095 (of 1,419 total)