Instruction stringlengths 460 3.71k | Output stringlengths 29 1.3k |
|---|---|
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select Religion, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.Religion is not null and e.status=1 group by Religion |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select Religion, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.Religion is not null and e.status=1 group by Religion |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select Religion, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.Religion is not null and e.status=1 group by Religion |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select Religion, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.Religion is not null and e.status=1 group by Religion |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DesignationName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DesignationName is not null group by DesignationName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DesignationName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DesignationName is not null group by DesignationName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DesignationName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DesignationName is not null group by DesignationName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DesignationName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DesignationName is not null group by DesignationName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DesignationName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DesignationName is not null group by DesignationName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DesignationName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DesignationName is not null group by DesignationName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DesignationName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DesignationName is not null group by DesignationName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DesignationName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DesignationName is not null group by DesignationName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DesignationName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DesignationName is not null group by DesignationName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DesignationName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DesignationName is not null group by DesignationName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select DeptName, count(distinct EmployeeId) as employeecount FROM employeeDetails e where e.status=1 and e.DeptName is not null group by DeptName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MIN(CTC),0) as varchar(50)) as MinimumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MIN(CTC),0) as varchar(50)) as MinimumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MIN(CTC),0) as varchar(50)) as MinimumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MIN(CTC),0) as varchar(50)) as MinimumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MIN(CTC),0) as varchar(50)) as MinimumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MIN(CTC),0) as varchar(50)) as MinimumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MIN(CTC),0) as varchar(50)) as MinimumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MIN(CTC),0) as varchar(50)) as MinimumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MIN(CTC),0) as varchar(50)) as MinimumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MAX(CTC),0) as varchar(50)) as MaximumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MAX(CTC),0) as varchar(50)) as MaximumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MAX(CTC),0) as varchar(50)) as MaximumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MAX(CTC),0) as varchar(50)) as MaximumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MAX(CTC),0) as varchar(50)) as MaximumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MIN(CTC),0) as varchar(50)) as MinimumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MAX(CTC),0) as varchar(50)) as MaximumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MAX(CTC),0) as varchar(50)) as MaximumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MAX(CTC),0) as varchar(50)) as MaximumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select BranchName, cast(isnull(MAX(CTC),0) as varchar(50)) as MaximumCTC FROM employeeDetails e where e.BranchName is not NULL group by BranchName order by 1 |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select ManufacturerName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join employeedetails e on vw.empcode=e.empcode WHERE ManufacturerName IS NOT NULL GROUP BY ManufacturerName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select ManufacturerName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join employeedetails e on vw.empcode=e.empcode WHERE ManufacturerName IS NOT NULL GROUP BY ManufacturerName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select ManufacturerName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join employeedetails e on vw.empcode=e.empcode WHERE ManufacturerName IS NOT NULL GROUP BY ManufacturerName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select ManufacturerName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join employeedetails e on vw.empcode=e.empcode WHERE ManufacturerName IS NOT NULL GROUP BY ManufacturerName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select EmployeeName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join Employeedetails e on vw.empcode=e.empcode WHERE EmployeeName IS NOT NULL GROUP BY EmployeeName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select EmployeeName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join Employeedetails e on vw.empcode=e.empcode WHERE EmployeeName IS NOT NULL GROUP BY EmployeeName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select EmployeeName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join Employeedetails e on vw.empcode=e.empcode WHERE EmployeeName IS NOT NULL GROUP BY EmployeeName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select EmployeeName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join Employeedetails e on vw.empcode=e.empcode WHERE EmployeeName IS NOT NULL GROUP BY EmployeeName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select EmployeeName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join Employeedetails e on vw.empcode=e.empcode WHERE EmployeeName IS NOT NULL GROUP BY EmployeeName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join Employeedetails e on vw.empcode=e.empcode WHERE AssetName IS NOT NULL GROUP BY AssetName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join Employeedetails e on vw.empcode=e.empcode WHERE AssetName IS NOT NULL GROUP BY AssetName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join Employeedetails e on vw.empcode=e.empcode WHERE AssetName IS NOT NULL GROUP BY AssetName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join Employeedetails e on vw.empcode=e.empcode WHERE AssetName IS NOT NULL GROUP BY AssetName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_asset vw inner join Employeedetails e on vw.empcode=e.empcode WHERE AssetName IS NOT NULL GROUP BY AssetName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select vw.BranchName, vw.AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_BranchAsset vw inner join Employeedetails e ON vw.BranchName = e.BranchName WHERE vw.AssetName IS NOT NULL GROUP BY vw.BranchName, vw.AssetName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select vw.BranchName, vw.AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_BranchAsset vw inner join Employeedetails e ON vw.BranchName = e.BranchName WHERE vw.AssetName IS NOT NULL GROUP BY vw.BranchName, vw.AssetName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select vw.BranchName, vw.AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_BranchAsset vw inner join Employeedetails e ON vw.BranchName = e.BranchName WHERE vw.AssetName IS NOT NULL GROUP BY vw.BranchName, vw.AssetName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select vw.BranchName, vw.AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_BranchAsset vw inner join Employeedetails e ON vw.BranchName = e.BranchName WHERE vw.AssetName IS NOT NULL GROUP BY vw.BranchName, vw.AssetName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select vw.BranchName, vw.AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_BranchAsset vw inner join Employeedetails e ON vw.BranchName = e.BranchName WHERE vw.AssetName IS NOT NULL GROUP BY vw.BranchName, vw.AssetName |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select vw.BranchName, vw.AssetName, count(distinct vw.SerialNumber) as AssetCount FROM vw_BranchAsset vw inner join Employeedetails e ON vw.BranchName = e.BranchName WHERE vw.AssetName IS NOT NULL GROUP BY vw.BranchName, vw.AssetName |
CREATE TABLE EmployeeAttendanceLogs ( EmpAttendanceLogId INT, AttendanceDate DATE, DayName NVARCHAR, EmployeeId INT, AttendanceRuleId INT, ShiftId INT, ShiftName NVARCHAR, MinHrForFullDay INT, MinHrForHalfDay INT, IsNightShift BIT, ShiftEndTime_Minutes_NightShift INT, ShiftStartDateTime DATETIME, ShiftEndDateTime DATET... | select count(*)as EmployeeCount FROM [dbo].[EmployeeAttendanceLogs] inner join employee e on e.EmployeeId=[EmployeeAttendanceLogs].EmployeeId where FinalStatus like '%P%' and convert(date,AttendanceDate,101)=convert(date,getdate(),101) |
CREATE TABLE EmployeeAttendanceLogs ( EmpAttendanceLogId INT, AttendanceDate DATE, DayName NVARCHAR, EmployeeId INT, AttendanceRuleId INT, ShiftId INT, ShiftName NVARCHAR, MinHrForFullDay INT, MinHrForHalfDay INT, IsNightShift BIT, ShiftEndTime_Minutes_NightShift INT, ShiftStartDateTime DATETIME, ShiftEndDateTime DATET... | select count(*)as EmployeeCount FROM [dbo].[EmployeeAttendanceLogs] inner join employee e on e.EmployeeId=[EmployeeAttendanceLogs].EmployeeId where FinalStatus like '%P%' and convert(date,AttendanceDate,101)=convert(date,getdate(),101) |
CREATE TABLE EmployeeAttendanceLogs ( EmpAttendanceLogId INT, AttendanceDate DATE, DayName NVARCHAR, EmployeeId INT, AttendanceRuleId INT, ShiftId INT, ShiftName NVARCHAR, MinHrForFullDay INT, MinHrForHalfDay INT, IsNightShift BIT, ShiftEndTime_Minutes_NightShift INT, ShiftStartDateTime DATETIME, ShiftEndDateTime DATET... | select count(*)as EmployeeCount FROM [dbo].[EmployeeAttendanceLogs] inner join employee e on e.EmployeeId=[EmployeeAttendanceLogs].EmployeeId where FinalStatus like '%P%' and convert(date,AttendanceDate,101)=convert(date,getdate(),101) |
CREATE TABLE EmployeeAttendanceLogs ( EmpAttendanceLogId INT, AttendanceDate DATE, DayName NVARCHAR, EmployeeId INT, AttendanceRuleId INT, ShiftId INT, ShiftName NVARCHAR, MinHrForFullDay INT, MinHrForHalfDay INT, IsNightShift BIT, ShiftEndTime_Minutes_NightShift INT, ShiftStartDateTime DATETIME, ShiftEndDateTime DATET... | select count(*)as EmployeeCount FROM [dbo].[EmployeeAttendanceLogs] inner join employee e on e.EmployeeId=[EmployeeAttendanceLogs].EmployeeId where FinalStatus like '%P%' and convert(date,AttendanceDate,101)=convert(date,getdate(),101) |
CREATE TABLE EmployeeAttendanceLogs ( EmpAttendanceLogId INT, AttendanceDate DATE, DayName NVARCHAR, EmployeeId INT, AttendanceRuleId INT, ShiftId INT, ShiftName NVARCHAR, MinHrForFullDay INT, MinHrForHalfDay INT, IsNightShift BIT, ShiftEndTime_Minutes_NightShift INT, ShiftStartDateTime DATETIME, ShiftEndDateTime DATET... | select count(*)as EmployeeCount FROM [dbo].[EmployeeAttendanceLogs] inner join employee e on e.EmployeeId=[EmployeeAttendanceLogs].EmployeeId where FinalStatus like '%P%' and convert(date,AttendanceDate,101)=convert(date,getdate(),101) |
CREATE TABLE EmployeeAttendanceLogs ( EmpAttendanceLogId INT, AttendanceDate DATE, DayName NVARCHAR, EmployeeId INT, AttendanceRuleId INT, ShiftId INT, ShiftName NVARCHAR, MinHrForFullDay INT, MinHrForHalfDay INT, IsNightShift BIT, ShiftEndTime_Minutes_NightShift INT, ShiftStartDateTime DATETIME, ShiftEndDateTime DATET... | select count(*)as EmployeeCount FROM [dbo].[EmployeeAttendanceLogs] inner join employee e on e.EmployeeId=[EmployeeAttendanceLogs].EmployeeId where FinalStatus like 'A-A' and convert(date,AttendanceDate,101)=convert(date,getdate(),101) |
CREATE TABLE EmployeeAttendanceLogs ( EmpAttendanceLogId INT, AttendanceDate DATE, DayName NVARCHAR, EmployeeId INT, AttendanceRuleId INT, ShiftId INT, ShiftName NVARCHAR, MinHrForFullDay INT, MinHrForHalfDay INT, IsNightShift BIT, ShiftEndTime_Minutes_NightShift INT, ShiftStartDateTime DATETIME, ShiftEndDateTime DATET... | select count(*)as EmployeeCount FROM [dbo].[EmployeeAttendanceLogs] inner join employee e on e.EmployeeId=[EmployeeAttendanceLogs].EmployeeId where FinalStatus like 'A-A' and convert(date,AttendanceDate,101)=convert(date,getdate(),101) |
CREATE TABLE EmployeeAttendanceLogs ( EmpAttendanceLogId INT, AttendanceDate DATE, DayName NVARCHAR, EmployeeId INT, AttendanceRuleId INT, ShiftId INT, ShiftName NVARCHAR, MinHrForFullDay INT, MinHrForHalfDay INT, IsNightShift BIT, ShiftEndTime_Minutes_NightShift INT, ShiftStartDateTime DATETIME, ShiftEndDateTime DATET... | select count(*)as EmployeeCount FROM [dbo].[EmployeeAttendanceLogs] inner join employee e on e.EmployeeId=[EmployeeAttendanceLogs].EmployeeId where FinalStatus like 'A-A' and convert(date,AttendanceDate,101)=convert(date,getdate(),101) |
CREATE TABLE EmployeeAttendanceLogs ( EmpAttendanceLogId INT, AttendanceDate DATE, DayName NVARCHAR, EmployeeId INT, AttendanceRuleId INT, ShiftId INT, ShiftName NVARCHAR, MinHrForFullDay INT, MinHrForHalfDay INT, IsNightShift BIT, ShiftEndTime_Minutes_NightShift INT, ShiftStartDateTime DATETIME, ShiftEndDateTime DATET... | select count(*)as EmployeeCount FROM [dbo].[EmployeeAttendanceLogs] inner join employee e on e.EmployeeId=[EmployeeAttendanceLogs].EmployeeId where FinalStatus like 'A-A' and convert(date,AttendanceDate,101)=convert(date,getdate(),101) |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select count(la.EmployeeID) as [No. of Employees on Leave] FROM [dbo].[LeaveApplication] as la inner join Employeedetails e ON la.EmployeeId = e.EmployeeId where convert(date,getdate(),101) between convert(date,LeaveFrom,101) and convert(date,LeaveTo,101) and Leavestatus='Approved' |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select count(la.EmployeeID) as [No. of Employees on Leave] FROM [dbo].[LeaveApplication] as la inner join Employeedetails e ON la.EmployeeId = e.EmployeeId where convert(date,getdate(),101) between convert(date,LeaveFrom,101) and convert(date,LeaveTo,101) and Leavestatus='Approved' |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select count(la.EmployeeID) as [No. of Employees on Leave] FROM [dbo].[LeaveApplication] as la inner join Employeedetails e ON la.EmployeeId = e.EmployeeId where convert(date,getdate(),101) between convert(date,LeaveFrom,101) and convert(date,LeaveTo,101) and Leavestatus='Approved' |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select count(la.EmployeeID) as [No. of Employees on Leave] FROM [dbo].[LeaveApplication] as la inner join Employeedetails e ON la.EmployeeId = e.EmployeeId where convert(date,getdate(),101) between convert(date,LeaveFrom,101) and convert(date,LeaveTo,101) and Leavestatus='Approved' |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select count(la.EmployeeID) as [No. of Employees on Leave] FROM [dbo].[LeaveApplication] as la inner join Employeedetails e ON la.EmployeeId = e.EmployeeId where convert(date,getdate(),101) between convert(date,LeaveFrom,101) and convert(date,LeaveTo,101) and Leavestatus='Approved' |
CREATE TABLE employeedetails (EmployeeId numeric,UserId int,UserName varchar,EmpCode varchar,title varchar,FirstName nvarchar,MiddleName nvarchar,FatherName varchar,Phone nvarchar,CellPhone nvarchar,IsMobileNumberPublic bit,OfficePhone nvarchar,Extension varchar,Email nvarchar,IsEmailIdPublic bit,AlternateEmailId varch... | select count(la.EmployeeID) as [No. of Employees on Leave] FROM [dbo].[LeaveApplication] as la inner join Employeedetails e ON la.EmployeeId = e.EmployeeId where convert(date,getdate(),101) between convert(date,LeaveFrom,101) and convert(date,LeaveTo,101) and Leavestatus='Approved' |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT COUNT(*) AS [Employees Joined] FROM Employee e WHERE JoiningDate >= DATEADD(MONTH, -1, convert(date,GETDATE(),101)) AND convert(date,JoiningDate,101) <= convert(date,GETDATE(),101) |
CREATE TABLE Employee (EmployeeId INT, UserId INT, ApplicationId INT, RoleId INT, ShiftId INT, UserName NVARCHAR, EmpCode NVARCHAR, FirstName NVARCHAR, LastName NVARCHAR, MiddleName NVARCHAR, FatherName NVARCHAR, ImageFilePath NVARCHAR, Phone NVARCHAR, CellPhone NVARCHAR, IsMobileNumberPublic BIT, OfficePhone NVARCHAR,... | SELECT E.FirstName, E.LastName, DATEDIFF(MONTH, EE.ResgDate, GETDATE()) as duraton FROM Employee AS E INNER JOIN Exit_Employee_Details AS EE ON E.EmployeeID = EE.EmployeeID WHERE DATEDIFF(MONTH, EE.ResgDate, GETDATE()) between 1 and 12 order by DATEDIFF(MONTH, EE.ResgDate, GETDATE()) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.