Viewing 15 posts - 10,621 through 10,635 (of 15,374 total)
Mark-101232 (9/24/2012)
Rather than a trigger, can you change the table so that Full_Name is a calculated column?
+1
A calculated column is far better here than a trigger for a number of...
September 24, 2012 at 8:22 am
karthikeyan-444867 (9/24/2012)
I have recently read Jeff Moden's Multiple space into one space article and i saw M's reply on this topic.
He gave the below solution to resolve the same issue.
set...
September 24, 2012 at 8:20 am
I like the approach that G2 took using apply. Didn't think about repeating strings get removed.
This exercise is a good example of why data should be stored differently. If...
September 24, 2012 at 8:18 am
Hi and welcome to SSC. It is difficult to answer your question because there is not a lot of detail in the question. From your description I am pretty sure...
September 24, 2012 at 8:14 am
F8R (9/22/2012)
Create Table Orders
(
OrderID BigInt Identity(1,1) Not Null,
CustomerID BigInt Not Null,
Constraint [PK_Orders] Primary Key(OrderID)
)
go
Create Table Customers
(
CustomerID BigInt Not Null Identity(1,1),
...
September 22, 2012 at 10:32 am
Luis is absolutely correct. Use the delimited splitter he linked and then a cross tab.
BTW, nice job posting ddl and sample data. You are new around here but obviously understand...
September 21, 2012 at 3:31 pm
Really what you are talking about is formatting. This can be subject to personal preference. There is a free site http://poorsql.com/%5B/url%5D that goes a pretty decent job.
Here are the results...
September 21, 2012 at 3:11 pm
Lynn Pettis (9/21/2012)
Sean Lange (9/21/2012)
You have been trying to work on this for over a month with various half-hearted attempts strewn all over this site. You need to realize...
September 21, 2012 at 2:37 pm
/vent begin
You have been trying to work on this for over a month with various half-hearted attempts strewn all over this site. You need to realize that we are volunteers...
September 21, 2012 at 12:59 pm
Joe's reply is somewhat echoing what I have stated but he knows the actual terms for these things. 🙂
I would not however recommend that you use his primary key idea...
September 21, 2012 at 10:36 am
Eugene Elutin (9/21/2012)
Sean Lange (9/21/2012)
September 21, 2012 at 9:27 am
It may have let your query run but I don't think it solved your issue. The problem is that the order by specifies a case sensitive sort order but the...
September 21, 2012 at 9:26 am
This is one of the reasons it is generally considered best practice to always include schema when referring to any object. And if the schema is not in dbo it...
September 21, 2012 at 9:21 am
I am not exactly sure I understand your question but the SUM function takes only 1 parameter and you are passing it two. If you can post some ddl(create table...
September 21, 2012 at 9:18 am
I still say you are asking for nothing but trouble trying to keep this stuff stored like this but if you are insistent on doing it then I would make...
September 21, 2012 at 8:59 am
Viewing 15 posts - 10,621 through 10,635 (of 15,374 total)