Viewing 15 posts - 4,171 through 4,185 (of 15,381 total)
Marcus Farrugia (7/10/2014)
Conversion failed when converting date and/or time from character string
DECLARE @DAYFROM DATETIME
DECLARE @DAYTO DATETIME
DECLARE @sql VARCHAR(1000)
SET @DAYFROM = CAST ( ((GETDATE()...
July 10, 2014 at 2:01 pm
kpwimberger (7/10/2014)
I have not worked with CTEs and partitions, so I'll have to do some research on those....
July 10, 2014 at 1:10 pm
kpwimberger (7/10/2014)
tblPerson - holds basic person data.
tblPersonHistorical - holds a dated snapshot of the fkPersonId, fkInstitutionId, and fkDepartmentId
tblWebUsers...
July 10, 2014 at 12:56 pm
Grant Fritchey (7/10/2014)
July 10, 2014 at 7:57 am
GilaMonster (7/9/2014)
WHERE Coalesce(NotNullableColumn,-1) = 0and CategoryID = @CategoryID
Group By CategoryID
......
I ran across one earlier today that was like this:
coalesce(count(*), 1, 0)
Really had to scratch my head trying to figure out...
July 9, 2014 at 10:07 am
Ed Wagner (7/9/2014)
SQLRNNR (7/9/2014)
gefilteFish (yuck)
haggis
July 9, 2014 at 10:05 am
Ed Wagner (7/9/2014)
SQLRNNR (7/9/2014)
Ed Wagner (7/9/2014)
BWFC (7/9/2014)
Stuart Davies (7/9/2014)
TomThomson (7/8/2014)
SQLRNNR (7/8/2014)
onionring
Bell
End
Begin
Circle
Square
Rhombus
July 9, 2014 at 7:57 am
You're welcome. Glad that worked for you.
July 8, 2014 at 3:19 pm
susmitha117 (7/8/2014)
Thank you but i am getting an error saying that "the multi-part identifier could not be bound"
As posted the query I wrote will work.
create table employee1(firstname varchar(5), lastname varchar(5))
create...
July 8, 2014 at 3:11 pm
This awfully brittle as Steve already said but this should do it.
update e1
set firstname = e2.firstname
from Employee1 e1
join employee2 e2 on e2.lastname = e1.lastname
July 8, 2014 at 2:50 pm
Ratheesh.K.Nair (7/8/2014)
Thanks Sean,The table name is put just for name sake and will be changed.
No problem there.
CreatedBy
ModifiedBy are referring to other tables where they are PKEY and data...
July 8, 2014 at 8:17 am
Lynn Pettis (7/8/2014)
Sean, saw that and asking to use this thread for replies. I am also asking that this thread be moved to a SQL Server 2008 forum.
heh the...
July 8, 2014 at 8:11 am
This was also posted in the 2008 forum. http://www.sqlservercentral.com/Forums/Topic1590347-1292-1.aspx
Please don't cross post. It only causes fragmentation in your answers.
July 8, 2014 at 7:46 am
Lavery (7/8/2014)
July 8, 2014 at 7:44 am
Ratheesh.K.Nair (7/8/2014)
Below are the original design and modifications recommended by us. Do i need to add anything or did i miss anything?
--Original Table design
CREATE TABLE ASC
(
[ASCID] UNIQUEIDENTIFIER NOT NULL,
[MuthalID]...
July 8, 2014 at 7:39 am
Viewing 15 posts - 4,171 through 4,185 (of 15,381 total)