SQL Server Cheat Sheet

Published on July 2016 | Categories: Documents | Downloads: 56 | Comments: 0 | Views: 453
of 1
Download PDF   Embed   Report

Comments

Content

SQL Server Cheat Sheet
by Dave Child (DaveChild) via cheatography.com/1/cs/18/
SQL Server Data Types Exact Numerics bit tinyint smallint bigint Approximate Numerics float Date and Time smalldatetime datetime Strings char varchar Unicode Strings nchar nvarchar Binary Strings binary varbinary Miscellaneous cursor sql_variant SQL Server Type Conversion CAST (expression AS datatype) CONVERT (datatype, expression) SQL Server Table Functions ALTER CREATE DROP TRUNCATE table xml image ntext text timestamp SQL Server Ranking Functions RANK DENSE_RANK NTILE ROW_NUMBER SQL Server Dateparts yy, yyyy SQL Server String Functions ASCII CHAR CHARINDEX DIFFERENCE LEFT LEN LOWER LTRIM NCHAR PATINDEX REPLACE QUOTENAME REPLICATE REVERSE RIGHT RTRIM SOUNDEX SPACE STR STUFF SUBSTRING UNICODE UPPER SQL Server Mathematical Functions ABS ACOS ASIN ATAN ATN2 CEILING COS COT DEGREES EXP FLOOR LOG Cheatographer Dave Child (DaveChild) cheatography.com/davechild/ www.addedbytes.com Cheat Sheet This cheat sheet was published on 19th October, 2011 and was last updated on 20th October, 2011. Sponsor Envoy , for simple and effective bug management. Try it free! http://www.envoyapp.com LOG10 PI POWER RADIANS RAND ROUND SIGN SIN SQUARE SQRT TAN qq, q mm, m dy, y dd, d wk, ww hh mi, n ss, s ms Year Quarter Month Day of Year Day Week Hour Minute Second Millisecond real decimal money numeric SQL Server Grouping (Aggregate) Functions AVG BINARY_CHECKSUM CHECKSUM CHECKSUM_AVG COUNT COUNT_BIG GROUPING MAX MIN SUM STDEV STDEVP VAR VARP SQL Server Date Functions DATEADD (datepart, number, date) DATEDIFF (datepart, start, end) DATENAME (datepart, date) DATEPART (datepart, date) DAY (date) GETDATE() GETUTCDATE() MONTH (date) YEAR (date)

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close