Viewing 15 posts - 2,296 through 2,310 (of 3,482 total)
John,
It's a recruiter, which makes me wonder, because the number of recruiters in this town that understand and can evaluate the "goodness" of T-SQL code is less than 5. In...
September 10, 2015 at 10:16 am
That's kind of what I was thinking. Without context, the solution is somewhat meaningless. For example, in a previous job, I had to summarize data in tables that I...
September 10, 2015 at 2:51 am
Sweetbea,
Maybe you should start by reading this article:
How to post a T-SQL question on a public forum
It's impossible to answer your question as stated, because we can't see the table...
September 9, 2015 at 7:42 pm
So you need to use DATEPART() to get the time the user logged in:
SELECT LoginDate
, DATEPART(hour,LoginDate) AS LoginHour
FROM UserLogins;
Then it's just a count of Logins per LoginHour, and you're home...
September 9, 2015 at 3:56 pm
Getting really good at double-posting, so I might as well fix up this reply with something useful....
Here's how to post some sample data:
CREATE TABLE Payments(
LoanID INT
,CollectorName CHAR(3) NOT NULL
,TransactionAmount MONEY
,PaymentType...
September 9, 2015 at 12:52 pm
If I understand the question, this is trivial. You add a Row Group Total on [LoanID] or [CollectorName] (depends what you're getting totals on), and then you just use SUM([TransactionAmount])...
September 9, 2015 at 12:49 pm
What if you set TimeOut for this report to 0? (It means "do not timeout"). I would do it on a Dev server first... you don't want it hogging up...
September 9, 2015 at 12:27 pm
Not really. This assumes that nobody has a name like "Billy Joe" or a last name with spaces in it either... which is a gross simplification.
SELECT LEFT(FullName,CHARINDEX(' ',FullName)-1) AS...
September 7, 2015 at 3:14 pm
I am designing an application where multiple users can be assign to a product for review. If a user doesn't have access to the product, they are not allowed to...
September 6, 2015 at 11:32 pm
What did you try?
Did you try using CHARINDEX?
September 4, 2015 at 2:24 pm
Can you subclass the entities? Essentially, the "main" table has an autoincrement primary key, and the "child"/subclass tables just inherit that key from Main. There's a really simple...
September 3, 2015 at 2:30 pm
Are you trying to insert the entire PDF into a column in a table in your database? It's not entirely clear from your post.
September 2, 2015 at 5:44 pm
Interesting... Thanks Sean and Luis for the gentle "schooling". I'll have to add that to my SSC database (the stuff I brazenly steal from here... hey, gotta learn somehow!)
Maybe I...
September 2, 2015 at 12:39 pm
Nitin,
The short answer to your question is to use DelimitedSplit8K[/url] to split the text strings into different columns and then deal with those.
This was my first try splitting (just so...
September 1, 2015 at 11:42 pm
Viewing 15 posts - 2,296 through 2,310 (of 3,482 total)