Viewing 15 posts - 9,181 through 9,195 (of 15,381 total)
Jeff Moden (3/4/2013)
Sean Lange (3/4/2013)
Ed Wagner (3/4/2013)
March 5, 2013 at 7:21 am
asm1212 (3/4/2013)
Ok nevermind again...I was counting the wrong account number from a different table...I have it now and it is correct...Thank you for your input, it is greatly appreciated!
You are...
March 4, 2013 at 3:30 pm
You will have to move your where condition to the join also. I have to say that your tables look like they could use some normalization.
Something like this is maybe...
March 4, 2013 at 3:17 pm
Well obviously your sample and your query don't quite match up. 😉
But you still have an inner join in here.
SELECT rc.ResultCode,
COUNT(a.AccountNumber)
FROM dbo.ResultCodes rc
LEFT OUTER JOIN dbo.Accounts a ON rc.ResultCode =...
March 4, 2013 at 3:14 pm
asm1212 (3/4/2013)
I have these result codes from one table...There are like 12 distinct ones...When I join to the another table to get how many accounts were associated with each...
March 4, 2013 at 2:59 pm
eboucicaut (3/4/2013)
hello ,i need some help plase
how i can get the login who excute a query on my serversql 2005
thank u in advance
Are you trying to figure out after the...
March 4, 2013 at 1:43 pm
Excellent job setting up the problem. This is certainly possible using a tally table.
;with DateVals as
(
select SchoolID, min(CalendarDate) as StartDate, max(CalendarDate) as EndDate, datediff(day, min(CalendarDate), max(CalendarDate)) as TotalDays
from #x1
group by...
March 4, 2013 at 1:33 pm
Looks like Lynn beat me to the punchline. 😀
March 4, 2013 at 12:28 pm
sunder.mekala (3/4/2013)
I have a requirement where i have to write a Sql for :
basically i have 2 columns 'startdate_SK' and 'enddate_SK' columns in table 'A'
'startdate_SK' is a integer...
March 4, 2013 at 12:26 pm
Just a rambling here...you seem to be somewhat concerned with storage space. You also have obviously realized the challenges of using a unique identifier as your PK. You have ended...
March 4, 2013 at 12:10 pm
dhananjay.nagarkar (3/4/2013)
Im new to TSql -
I have requirement to display date as 7/31/2013 but currently I'm getting it from DB as 2013-03-01 18:40:24.000.
any help on this will he...
March 4, 2013 at 12:05 pm
It is very unclear what is going on here. Is your query working but the results are too slow? Is the query not working as expected? If it is a...
March 4, 2013 at 10:55 am
Ed Wagner (3/4/2013)
March 4, 2013 at 10:16 am
This should work based on your description.
declare @WeekOfYear int = datepart(week, getdate()) --10
declare @Year int = datepart(year, getdate()) --2013
declare @DayNumber int = datepart(weekday, getdate()) --2
declare @BaseDate datetime = cast(@Year as...
March 4, 2013 at 10:07 am
Hi and welcome to SSC. You seem to have a challenge you are dealing with. Unfortunately you haven't posted anywhere near enough information for anybody to be able to provide...
March 4, 2013 at 9:38 am
Viewing 15 posts - 9,181 through 9,195 (of 15,381 total)