Viewing 15 posts - 1,171 through 1,185 (of 15,381 total)
Are you even using sql server? Your insert statements look like mysql.
What do you expect for output based on your sample data? The business rules here are pretty vague and...
October 17, 2016 at 3:13 pm
Nicely done. I assume you can handle it from here?
October 17, 2016 at 11:03 am
To learn more about APPLY take a look at the two articles in my signature. Paul White's explanation on this is the best one I have seen.
October 15, 2016 at 2:56 pm
marc.corbeel (10/14/2016)
This gives me a list of all days, not the rates on 2016-10-3
I thought you wanted each days information. I am guessing as to what you want for output...
October 14, 2016 at 2:26 pm
marc.corbeel (10/14/2016)
Sean Lange (10/14/2016)
marc.corbeel (10/14/2016)
I paste a peace of code text with a double space in it, in the topic reply text box, and once saved,...
October 14, 2016 at 2:08 pm
You can leverage a tally table for this sort of thing. I keep one in a view on my systems.
create View [dbo].[cteTally] as
WITH
E1(N) AS (select 1 from (values (1),(1),(1),(1),(1),(1),(1),(1),(1),(1))dt(n)),
E2(N) AS...
October 14, 2016 at 2:07 pm
swarun999 (10/14/2016)
Thank you all.I tried this It also works.
select Id, ltrim((isnull(Firstname,'') + ' ' + isnull(Middlename,'') + ' ' + isnull(Lastname,''))) as FullName from EmployeeName
This captures most of it but...
October 14, 2016 at 2:02 pm
marc.corbeel (10/14/2016)
I paste a peace of code text with a double space in it, in the topic reply text box, and once saved, the double space...
October 14, 2016 at 1:59 pm
marc.corbeel (10/14/2016)
Sean Lange (10/14/2016)
marc.corbeel (10/14/2016)
here is how I do thisreplace(coalesce(FirstName,'')+' '+coalesce(MiddleName,'')+' '+coalesce(LastName,''), ' ', ' ')
What is the point of the replace here? You are replacing all single spaces...
October 14, 2016 at 1:51 pm
marc.corbeel (10/14/2016)
here is how I do thisreplace(coalesce(FirstName,'')+' '+coalesce(MiddleName,'')+' '+coalesce(LastName,''), ' ', ' ')
What is the point of the replace here? You are replacing all single spaces with a single...
October 14, 2016 at 1:40 pm
marc.corbeel (10/14/2016)
October 14, 2016 at 1:31 pm
You will need to make your rows contain all the data for the row. Something like this in a select statement.
'<tr><tr bgcolor=#E6E6FA><b>Data Nota</b></td>' + CONVERT(VARCHAR(10), N.DATEMI, 120) + '</td></tr>'
October 14, 2016 at 12:26 pm
adrhohmann (10/14/2016)
Ok!Tks again
I really not could do it them I resorted this forum
But.. I will keep trying ;-);-)
Show us some work. So far all you have shown is code you...
October 14, 2016 at 10:47 am
adrhohmann (10/14/2016)
I'm a little familiar with HTML but not so much.
I get this code from the web and changed to my data. so I got the first...
October 14, 2016 at 9:06 am
adrhohmann (10/14/2016)
Tks!!I copyed this from the web
You can post a E.G ?
You have an example. Are you familiar with HTML? I get that you copied this from somewhere else but...
October 14, 2016 at 8:17 am
Viewing 15 posts - 1,171 through 1,185 (of 15,381 total)