Viewing 15 posts - 3,421 through 3,435 (of 7,609 total)
Don't have a lot of time, but this should be real close at least:
SELECT *,
CASE WHEN EndDayNumber >= StartDayNumber THEN EndDayNumber - StartDayNumber
ELSE...
May 1, 2018 at 9:19 am
and will make it harder in the recovering process.
I don't understand why you'd say that. The main reason I could see for continuing to do backups of...
May 1, 2018 at 9:10 am
April 30, 2018 at 11:56 am
April 30, 2018 at 11:38 am
As noted, the datetime is stored in a numeric format.
It's likely that whatever interface is displaying the date to you is putting it in this format:
Apr 19...
April 30, 2018 at 10:48 am
SELECT *,
CASE WHEN string2 LIKE '%[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]%'
THEN SUBSTRING(string2, PATINDEX('%[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]%', string2), 10)
ELSE NULL END AS...
April 27, 2018 at 10:31 am
Don't use functions on any column unless you have absolutely no choice. In other words, keep the condition sargable if at all possible
--If you...
April 27, 2018 at 9:34 am
You could make the restriction 100% or less. The main thing is not overfill it, right? That would allow changes, you would just have to remove/reduce something before adding something...
April 26, 2018 at 11:10 am
April 26, 2018 at 8:20 am
SELECT *
FROM PeopleDetail PD
WHERE PD.Name IN (
SELECT Name
FROM People
)
April 25, 2018 at 11:11 am
April 25, 2018 at 9:49 am
April 24, 2018 at 2:57 pm
April 24, 2018 at 12:12 pm
Standard CROSS JOIN:
SELECT StudentName, RoomName
FROM Students
CROSS JOIN ( VALUES('room1'),('room2'),('room3') ) AS Rooms(RoomName)
April 24, 2018 at 11:09 am
April 24, 2018 at 8:23 am
Viewing 15 posts - 3,421 through 3,435 (of 7,609 total)