This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>test</title> | |
| <style type="text/css"> | |
| .dragging {background-color: blue} | |
| </style> | |
| <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT [JobTitle] | |
| FROM [AdventureWorks2012].[HumanResources].[Employee] | |
| SELECT DISTINCT [JobTitle], Gender | |
| FROM [AdventureWorks2012].[HumanResources].[Employee] | |
| SELECT VacationHours + SickLeaveHours as daysOff, JobTitle,VacationHours, SickLeaveHours | |
| FROM [AdventureWorks2012].[HumanResources].[Employee] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ******************************************************************* | |
| -- INLINE CALCULATIONS | |
| SELECT VacationHours + SickLeaveHours as daysOff, JobTitle,VacationHours, SickLeaveHours | |
| FROM [AdventureWorks2012].[HumanResources].[Employee] | |
| SELECT [CommissionPct] ,[SalesYTD], ([SalesYTD]/100)*[CommissionPct] as commission | |
| FROM [AdventureWorks2012].[Sales].[SalesPerson] | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT AVG(ListPrice) , MIN(ListPrice), max(ListPrice), | |
| sum(ListPrice), count(ListPrice), COUNT_BIG(ListPrice), color | |
| FROM Production.Product | |
| group by color | |
| SELECT AVG(ListPrice) , MIN(ListPrice), max(ListPrice), | |
| sum(ListPrice), count(ListPrice) as c, COUNT_BIG(ListPrice), color | |
| FROM Production.Product | |
| group by color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --CREATE TABLE #MyTable (EventNname varchar(20), EventDate date, PublishedDate date) | |
| INSERT INTO #MyTable | |
| SELECT 'Bake Sale', '1/1/2014','1/1/2014' UNION ALL | |
| SELECT 'Movie Night', '1/2/2014','1/2/2014' UNION ALL | |
| SELECT 'Dance Night', '1/3/2014','1/2/2014' UNION ALL | |
| SELECT 'Flea Market', '1/4/2014','1/3/2014' UNION ALL | |
| SELECT 'Dance Night', '1/5/2014','1/3/2014' UNION ALL | |
| SELECT 'Marathon', '1/6/2014','1/3/2014' UNION ALL | |
| SELECT 'Daance', '1/3/2014','1/2/2014' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| create table #DailyIncome(VendorId nvarchar(10), IncomeDay nvarchar(10), IncomeAmount int) | |
| insert into #DailyIncome values ('SPIKE', 'FRI', 100) | |
| insert into #DailyIncome values ('SPIKE', 'MON', 300) | |
| insert into #DailyIncome values ('FREDS', 'SUN', 400) | |
| insert into #DailyIncome values ('SPIKE', 'WED', 500) | |
| insert into #DailyIncome values ('SPIKE', 'TUE', 200) | |
| insert into #DailyIncome values ('JOHNS', 'WED', 900) | |
| insert into #DailyIncome values ('SPIKE', 'FRI', 100) | |
| insert into #DailyIncome values ('JOHNS', 'MON', 300) | |
| insert into #DailyIncome values ('SPIKE', 'SUN', 400) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| openssl pkcs12 -export -out domain.name.pfx -inkey domain.name.key -in domain.name.crt | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfif not structKeyExists(cookie,'Bingo')> | |
| <cfcookie secure="false" httpOnly="true" name="Bingo" value="" /> | |
| Cookie Created with an empty value. Refresh the Browser to confirm. | |
| <cfelse> | |
| Cookie Exists. All good. | |
| </cfif> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <cfcomponent displayname = "PDFTools" output= "Yes" accessors="true" > | |
| <cfproperty name="file"> | |
| <cfproperty name="map"> | |
| <cffunction name = "init" access = "Public" output = "No" returntype = "Any"> | |
| <cfargument name = "filePath" required= "Yes" type = "String" default = "" /> | |
| <cfset local.p = createObject("java",'org.apache.pdfbox.pdmodel.PDDocument') /> | |
| <cfset COSName = createObject("java",'org.apache.pdfbox.cos.COSName') /> | |
| <cfset setFile( local.p.load( arguments.filePath ) )/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select EmailAddress from [Person].[EmailAddress] | |
| where [BusinessEntityID] = | |
| ( | |
| SELECT [BusinessEntityID] | |
| FROM [Person].[Person] | |
| where FirstName = 'Ken' | |
| and LastName = 'Kwok' | |
| ) | |
| ---------------------------------------- | |
| select EmailAddress from [Person].[EmailAddress] |