Viewing 15 posts - 1,831 through 1,845 (of 2,643 total)
one question tho.
I'm trying to add in all...
January 10, 2019 at 4:18 am
Two different people can have the same first and last names. So you need to give these different UserNames, Using email as the unique identifier is often used.DROP...
January 9, 2019 at 9:32 am
The where in query 3 is applied to this query:select a.id_a, b.id_b, b.fname
from tmp_1 a
left join tmp_2 b on a.id_a = b.id_b
which returns these...
January 9, 2019 at 4:50 am
January 8, 2019 at 4:11 pm
You need to create a table with the same format columns as the stored procedure returns, then just insert into it from the EXEC:INSERT INTO myTable(col1 ,col2,...)
January 8, 2019 at 10:27 am
SQL Server seems to treat these special characters oddly.
The reverse conversion doesn't seem go back to the original character
select ascii('😀'), nchar(ascii('😀'))DECLARE @a nchar(1)=N'😀'
select N'😀' [N'😀'],
'😀'...
January 8, 2019 at 8:43 am
Thanks for your help.
Jonathan - Yes, mailingtype is a primarykey on the mailingpreferencetable
Michael...
January 8, 2019 at 8:09 am
Is column mailingtype part of the primary key for table mailingpreference?
January 8, 2019 at 7:46 am
January 8, 2019 at 3:43 am
January 7, 2019 at 10:39 am
January 7, 2019 at 9:47 am
or instead of MAX you could use TOP(1) with an ORDER BY:SELECT TOP(1) *
FROM dbo.Widgets
ORDER BY ColumnThatIncreasesWithInsert DESC
Ideally the ColumnThatIncreasesWithInsert will be indexed...
January 7, 2019 at 7:13 am
;
With START_POINT as
(
Select
BeneficiaryID, PCP,
(CAST( EligYear as VARCHAR) + RIGHT( ('0' + CAST(EligMonth as VARCHAR)),2) ) as MON
FROM #t
)
January 4, 2019 at 12:40 pm
As PROD.cost is a float, I think all values in the expression will be converted to float to do the calculation.
January 4, 2019 at 10:04 am
Worth reading this as you are using SQL Server 2016: https://docs.microsoft.com/en-us/sql/relational-databases/databases/tempdb-database?view=sql-server-2017
January 4, 2019 at 8:55 am
Viewing 15 posts - 1,831 through 1,845 (of 2,643 total)