Viewing 11 posts - 91 through 101 (of 101 total)
Hi,
I have written the following query using the temp table #calls. Just change it to the name of your table and check the column names are correct. Basically...
November 19, 2008 at 3:51 pm
Hi terickso,
This query (some column names will differ) gives the basic info you are after...
select #project.projectnum, #WorkCalendar.q, count(#WorkCalendar.dt) as days
from #project inner join #WorkCalendar on #project.startdate = #WorkCalendar.dt
where #WorkCalendar.isWeekDay=1...
November 19, 2008 at 2:13 pm
Something a bit like this....
select model.startdate, model.enddate, WorkCalendar.q, count(WorkCalendar.dt)
from model inner join WorkCalendar on model.startdate = WorkCalendar.dt
where WorkCalendar.isWeekDay=1 and WorkCalendar.isHoliday=0
group by model.startdate, model.enddate, WorkCalendar.q
November 18, 2008 at 2:22 pm
Can you tell me the structure of the table (table name, column names) and I can show you the query...
November 18, 2008 at 1:38 pm
Hi.
There are a few scripts on the net that could serve as a good basis for what you need. Eg
http://stackoverflow.com/questions/252519?sort=votes
You could then write another function that calls...
November 18, 2008 at 1:11 pm
Jason is right.... Why didn't I see the obvious?!?!
B
November 17, 2008 at 4:11 pm
Hi.
My first thought is to put your result set into a common table expression and select what you want from that.
The following code is untested but should put...
November 17, 2008 at 3:54 pm
hi,
One way to get those dates is:
select dateadd(dd,-(6+datepart(dw, getdate())),getdate())
select dateadd(dd,-datepart(dw, getdate()),getdate())
Of course that will give you the time as well which could cause problems. To format it differently you...
November 16, 2008 at 9:00 pm
Hi John,
Ideally you need to redesign so that the skills , and SkillsPerPerson are stored in separate tables...
Person
--------
PersonID
PersonName....
Skills
-----
SkillID
SkillName....
PersonSkills
----------
PersonID
SkillID
Designing the tables in this way will mean the database design will not...
November 16, 2008 at 8:16 pm
Hi,
It's hard to say exactly what the person is after without more details. You will probably need to speak to the person who made the request and ask for...
November 16, 2008 at 4:03 pm
Hi,
I would suggest using functions like soundex and difference.
Here is an example:
create table #temporaryNames ( names varchar(128) null)
insert #temporaryNames
select 'Ltd.'
union select 'Limited'
union select 'Leemited'
union select 'Limeeted'
union select 'Limitted'
union select...
November 16, 2008 at 2:44 pm
Viewing 11 posts - 91 through 101 (of 101 total)