SELECT *
FROM AdminUnitTemplates
aut
WHERE ID = COALESCE(@ID, ID)
AND TempName = COALESCE(@TempName, TempName)
AND Title = COALESCE(@Title, Title)
AND AdminUnitID = COALESCE(@AdminUnitID, AdminUnitID)
SELECT *
FROM AdminUnitTemplates
aut
WHERE ID = COALESCE(@ID, ID)
AND TempName = COALESCE(@TempName, TempName)
AND Title = COALESCE(@Title, Title)
AND AdminUnitID = COALESCE(@AdminUnitID, AdminUnitID)
1. Go to the slideshare and inspect the source and get the link and use the following code in python
Convert the images to pdf using the following code
1. Mean: This is a simple arithmetic average, which is computed by taking the aggregated sum of values divided by a count of those values. The mean is sensitive to outliers in the data. An outlier is the value of a set or column that is highly deviant from the many other values in the same data; it usually has very high or low values.
2. Median: This is the midpoint of the data, and is calculated by either arranging it in ascending or descending order. If there are N observations.
3. Mode: This is the most repetitive data point in the data
To run the following code you have to import the required js and css files
HTML
import numpy as np
import pandas as pd
Declare @UserID nvarchar(256)
Declare @MsgType
int
set @UserID = userID
set @MsgType =
3
CREATE TABLE
#tmpBus3
(
AdminUnitID int,
AdminUnitName nvarchar(256),
CategoryName nvarchar(256),
CategoryID int,
CategoryLevelID int,
ParentID int,
IsMainAdminUnit bit,
PersonID int,
Name nvarchar(256),
UserID nvarchar(256),
level int,
LevelName nvarchar(256)
)
INSERT INTO
#tmpBus3
Exec
[Archv].Cust_GetContactsbyUserID @UserID,@MsgType;
DECLARE
@tmpTable3 AS nvarchar(max);
SELECT
@tmpTable3 = CONCAT(COALESCE(@tmpTable3
+ '] nvarchar(255), [','['),CONCAT('Col', ROW_NUMBER() OVER(ORDER BY
LevelName ASC)))
from
#tmpBus3
set
@tmpTable3='CREATE TABLE #tmpTable3 ( '+@tmpTable3+'] nvarchar(255) )'
DECLARE
@levels AS nvarchar(max);
SELECT @levels = CONCAT(COALESCE(+@levels
+ ''',N''',''),
AdminUnitName)
from
#tmpBus3
set
@levels=''''+@levels+''''
DECLARE
@SqlStatement1 NVARCHAR(MAX)
SET
@SqlStatement1 = N''+@tmpTable3+' insert into #tmpTable3
values ('+@levels+') select * from
#tmpTable3';
print
@SqlStatement1
EXEC(@SqlStatement1)
Drop Table #tmpBus3
The result will be as in the following screenshot