I HAVE A QUESTION
I HAVE CREATED 3 FIELDS CALLED U_ZCONSO, U_ZCONSO2, U_ZCONSO3 ALL ARE ALPHANUMERIC FIELDS BECAUSE NUMERIC IS LIMITED TO 11 DIGITS AND THE FIELDS ARE MORE SO I NEED 18 DIGITS.
I HAVE A QUERY FOR U_ZCONSO AND U_ZCONSO 2 WHICH MUST GIVE ME A NUMBER
1 WHEN ZCONSO3 IS EMPTY
I HAVE MADE THE FOLOWING QUERY I DO NOT HAVE ANY ERROR MESSAGE BUT THE RESULT IS NOT WHAT I WANT BECUASE IT SI EMPTY
IF $[ORDR.U_ZCONSO3] IS NULL
SELECT SUM(T0.Balance) from OCRD T0 Where T0.U_SCONSO=$[ORDR.U_ZCONSO3]
2 WHEN ZCONSO3 IS NOT EMPTY I NEED TO COMPARE ZCONSO AND ZCONSO2 AND MAKE THEM NUMERIC VALUE THE ISSUE IS THE NUMERIC VALUE COMES WITH COMA IN THE FELDS AND THE QUERY DOES NOT CONVERT THE NVARCHAR INTO A NUMERIC FORMAT
THE QUERY IS BELOW
DECLARE @CRED AS numeric(19,6)
DECLARE @FACT AS numeric(19,6)
SELECT DISTINCT 'TRUE' WHERE @CRED<@FACT
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.