SQL 2008 Essentials

Page 404

Index

RIGHT JOIN statement, 120 right outer join, 119, 120–121 RIGHT OUTER JOIN statement, 120 syntax, 120 using, 120–121 ROUND function, 136 syntax, 136–137 using, 137 rounding errors, 75 row, 46 ROWCOUNT function, 57 using, 57–58 ROWCOUNT property, 58 setting, 58 row-level functions, 129, 135–142 rows, limiting number that are returned, 57–58 selecting from table using WHERE clause, 46–48 RTRIM function, 154 using, 154 script, 10 Section table, design of, 258 SELECT INTO statement, using in views, 193–194 SELECT keyword, 21 SELECT statement, 30–31 in modified Backus Naur Form, 266 syntax, 31 using for assignment, 32–33 using to display data, 31 self-joins, 113 using, 113–115 server, connecting to, 4 set, 214 set compatibility, 215

389

SET DATEFORMAT statement, 168 set difference, performing, 222, 229–233 set operations, 214 SET statement, 138 using, 138–139 set statement, syntax, 214–215 SMALLINT data type, 74 SMALLMONEY data type, 74, 79 Source Control tab, 26 SQL query. See queries SQL Server Management Studio. See Microsoft® SQL Server Management Studio SQL Server Query Explorer tab, 26 SQL Server 2008. See Microsoft® SQL Server® 2008 SQL statements, adding comments to, 65–66 conventions for writing, 66–67 SQL VARIANT data type, 79 SQRT function, 137 SQUARE function, 137 STR function, 166 syntax, 166 using, 166 string concatenation, 149–150 string extractor functions, 150–156 combining, 155–156, 157 string functions, 129, 148–164 Student table, design of, 16, 18, 104, 257 Student course database, default tables in, 8 opening, 12–13 tables in, 14 viewing objects in, 7–8 viewing tables in, 15 subqueries. See also correlated subqueries, noncorrelated


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.