Viewing 15 posts - 1 through 15 (of 18 total)
Thank you Hugo Kornelis and Jeff Moden for the feedback.
April 25, 2016 at 9:47 am
Try this...
SELECT
PERNR,SUBTY,MIN(BEGDA) AS BEGDA,MAX(ENDDA) AS ENDDA
FROM table_name
GROUP BY PERNR,SUBTY
November 5, 2015 at 1:15 pm
Drew,
No i didn't get any actual (or concrete) reason on why we want it this way (big surprise there :-D).
I conveyed my approach and also did a proof of...
October 27, 2015 at 11:47 am
Phil,
Thank you for the link. i had read on it before. That is not an option for me. Basically i have to insert a dummy row in the excel to...
October 27, 2015 at 10:01 am
Try this...
Select Firstname, Lastname, isnull(Region,'')
From Employees
WHERE Region = ''
September 14, 2015 at 2:57 pm
--Keep your query as simple as possible
SELECT DISTINCT DateYear ,
DateMonth , Nbr , Nbr1 , Nbr2 , Datafield1 , Datafield2, ID
FROM [dbo].[TableName]
WHERE [ID] > 0
If possible, try...
August 7, 2015 at 8:03 am
Glad I could be a help!
But I think I am Mr. SolveSQL!
Grasshopper is what SQL central assigned my level to be ??
July 30, 2015 at 4:39 pm
--Try this
SELECT
x.patID ,
x.Mdt
FROM
( SELECT
patID ,
...
July 30, 2015 at 11:52 am
Apart from your syntax error (which i have not checked)
what's the purpose of comparing same column from same table?
..."WHERE Loss_state = #tmpTotals.Loss_State"
July 14, 2015 at 12:23 pm
seems like that's what is asked.
June 18, 2015 at 2:00 pm
Try using this...
DECLARE @totalcnt int
DECLARE @cnt1 int
DECLARE @cnt2 INT
SET @cnt1 = (SELECT COUNT(*) FROM [database].[schema].table1)
SET @cnt2 = (SELECT COUNT(*) FROM [database].[schema].table2)
SET @totalcnt = @cnt1 + @cnt2
INSERT INTO [database].[schema].table3
SELECT @totalcnt
June 18, 2015 at 1:55 pm
it just came full circle for me. Thank you SQL experts.
June 17, 2015 at 7:53 am
Thank you Lynn Pettis.
can you explain this...
DECLARE @name varchar(30)
SET @name = NULL
SELECT ISNULL(CONVERT(DATE,@name),'') as col1,CASE WHEN @name IS NULL THEN '' ELSE CONVERT(DATE,@name) END as col2, CONVERT(DATE,@name) as col3
col1: 1900-01-01...
June 16, 2015 at 1:50 pm
Viewing 15 posts - 1 through 15 (of 18 total)