SQL Cookbook
없습니다
도서+교보Only(교보배송)을 함께 15,000원 이상 구매 시 무료배송
15,000원 미만 시 2,500원 배송비 부과
20,000원 미만 시 2,500원 배송비 부과
15,000원 미만 시 2,500원 배송비 부과
1Box 기준 : 도서 10권
알립니다.
- 해외주문도서는 고객님의 요청에 의해 주문하는 '개인 오더' 상품이기 때문에, 단순한 고객변심/착오로 인한 취소, 반품, 교환의 경우 '해외주문 반품/취소 수수료'를 부담하셔야 합니다. 이점 유의하여 주시기 바랍니다.
- 반품/취소 수수료:(1)서양도서-판매정가의 12%, (2)일본도서-판매정가의 7% (반품/취소 수수료는, 수입제반비용(FedEx수송비용, 관세사비, 보세창고료, 내륙 운송비, 통관비 등)과 재고리스크(미판매 리스크, 환차손)에 따른 비용을 포함하며, 서양도서는 판매정가의 12%, 일본도서는 판매정가의 7%가 적용됩니다.)
- 외국도서의 경우 해외제공정보로만 서비스되어 미표기가된 정보가 있을 수 있습니다. 필요한 정보가 있을경우 1:1 문의게시판 을 이용하여 주십시오.
해외주문/바로드림/제휴사주문/업체배송건의 경우 1+1 증정상품이 발송되지 않습니다.
패키지
북카드
You know the rudiments of the SQL query language, yet you feel you aren't taking full advantage of SQL's expressive power. You'd like to learn how to do more work with SQL inside the database before pushing data across the network to your applications. You'd like to take your SQL skills to the next level. Let's face it, SQL is a deceptively simple language to learn, and many database developers never go far beyond the simple statement: SELECT FROM WHERE . But there is "so" much more you can do with the language. In the "SQL Cookbook," experienced SQL developer Anthony Molinaro shares his favorite SQL techniques and features. You'll learn about: Window functions, arguably the most significant enhancement to SQL in the past decade. If you're not using these, you're missing out Powerful, database-specific features such as SQL Server's PIVOT and UNPIVOT operators, Oracle's MODEL clause, and PostgreSQL's very useful GENERATE_SERIES function Pivoting rows into columns, reverse-pivoting columns into rows, using pivoting to facilitate inter-row calculations, and double-pivoting a result set "Bucketization," and why you should never use that term in Brooklyn. How to create histograms, summarize data into buckets, perform aggregations over a moving range of values, generate running-totals and subtotals, and other advanced, data warehousing techniques The technique of "walking a string," which allows you to use SQL to parse through the characters, words, or delimited elements of a string Written in O'Reilly's popular Problem/Solution/Discussion style, the "SQL Cookbook" is sure to please. Anthony's credois: "When it comes down to it, we all go to work, we all have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." The "SQL Cookbook" moves quickly from problem to solution, saving you time each step of the way.
This new book applies O'Reilly's eminently practical Cookbook approach to Structured Query Language (SQL), the elegant but complex descriptive language that is used to create and manipulate large stores of data. For SQL programmers, analysts, and database administrators (DBAs), SQL Cookbook is an invaluable problem-solving guide for issues they face everyday. Based on real-world experience, author Anthony Molinaro provides both a framework within which to construct solutions as well as executable examples in several flavours of SQL, including Oracle, DB2, SQL Server, MySQL, and PostgreSQL. No other SQL book on the market offers this unique problem/solution/discussion format to help users tackle nagging day-to-day conundrums with this language.
You know the rudiments of the SQL query language, yet you feel you aren't taking full advantage of SQL's expressive power. You'd like to learn how to do more work with SQL inside the database before pushing data across the network to your applications. You'd like to take your SQL skills to the next level. Let's face it, SQL is a deceptively simple language to learn, and many database developers never go far beyond the simple statement: SELECT columns FROM table WHERE conditions. But there is somuch more you can do with the language. In the SQL Cookbook, experienced SQL developer Anthony Molinaro shares his favorite SQL techniques and features. You'll learn about: Window functions, arguably the most significant enhancement to SQL in the past decade. If you're not using these, you're missing out Powerful, database-specific features such as SQL Server's PIVOT and UNPIVOT operators, Oracle's MODEL clause, and PostgreSQL's very useful GENERATE_SERIES function Pivoting rows into columns, reverse-pivoting columns into rows, using pivoting to facilitate inter-row calculations, and double-pivoting a result set Bucketization, and why you should never use that term in Brooklyn. How to create histograms, summarize data into buckets, perform aggregations over a moving range of values, generate running-totals and subtotals, and other advanced, data warehousing techniques The technique of walking a string, which allows you to use SQL to parse through the characters, words, or delimited elements of a string Written in O'Reilly's popular Problem/Solution/Discussion style, the SQL Cookbookis sure to please. Anthony's credo is: "When it comes down to it, we all go to work, we all have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." The SQL Cookbookmoves quickly from problem to solution, saving you time each step of the way.
You know the rudiments of the SQL query language, yet you feel you aren't taking full advantage of SQL's expressive power. You'd like to learn how to do more work with SQL inside the database before pushing data across the network to your applications. You'd like to take your SQL skills to the next level.Let's face it, SQL is a deceptively simple language to learn, and many database developers never go far beyond the simple statement: SELECT columns FROM table WHERE conditions. But there issomuch more you can do with the language. In theSQL Cookbook, experienced SQL developer Anthony Molinaro shares his favorite SQL techniques and features. You'll learn about: Window functions, arguably the most significant enhancement to SQL in the past decade. If you're not using these, you're missing out Powerful, database-specific features such as SQL Server's PIVOT and UNPIVOT operators, Oracle's MODEL clause, and PostgreSQL's very useful GENERATE_SERIES function Pivoting rows into columns, reverse-pivoting columns into rows, using pivoting to facilitate inter-row calculations, and double-pivoting a result set Bucketization, and why you should never use that term in Brooklyn. How to create histograms, summarize data into buckets, perform aggregations over a moving range of values, generate running-totals and subtotals, and other advanced, data warehousing techniques The technique ofwalking a string, which allows you to use SQL to parse through the characters, words, or delimited elements of a stringWritten in O'Reilly's popular Problem/Solution/Discussion style, theSQL Cookbookis sure to please. Anthony's credo is: "When it comes down to it, we all go to work, we all have bills to pay, and we all want to go home at a reasonable time and enjoy what's still available of our days." TheSQL Cookbookmoves quickly from problem to solution, saving you time each step of the way.
Query Solutions and Techniques for Database Developers
For anyone writing SQL in a professional environment, this book presents a compendium of solutions that readers can immediately apply to commonly-faced, real-world data query and manipulation problems.
For anyone writing SQL in a professional environment, this book presents a compendium of solutions that readers can immediately apply to commonly-faced, real-world data query and manipulation problems.
작가정보
저자(글) Molinaro, Anthony
Anthony Molinaro is a SQL developer and database administrator with many years experience in helping developers improve their SQL queries. SQL is particular passion of Anthony's, and he's become known as the go-to guy among his clients when it comes to solving difficult SQL query problems. He's well-read, understands relational theory well, and has nine years of hands-on experience solving tough, SQL problems. Anthony is particularly well-acquainted with new and powerful SQL features such as the windowing function syntax that was added to the most recent SQL standard.
목차
Preface p. xiii Retrieving Records p. 1 Retrieving All Rows and Columns from a Table p. 1 Retrieving a Subset of Rows from a Table p. 2 Finding Rows That Satisfy Multiple Conditions p. 2 Retrieving a Subset of Columns from a Table p. 3 Providing Meaningful Names for Columns p. 3 Referencing an Aliased Column in the WHERE Clause p. 4 Concatenating Column Values p. 5 Using Conditional Logic in a SELECT Statement p. 6 Limiting the Number of Rows Returned p. 7 Returning n Random Records from a Table p. 9 Finding Null Values p. 11 Transforming Nulls into Real Values p. 11 Searching for Patterns p. 12 Sorting Query Results p. 14 Returning Query Results in a Specified Order p. 14 Sorting by Multiple Fields p. 15 Sorting by Substrings p. 16 Sorting Mixed Alphanumeric Data p. 17 Dealing with Nulls when Sorting p. 20 Sorting on a Data Dependent Key p. 26 Working with Multiple Tables p. 28 Stacking One Rowset atop Another p. 28 Combining Related Rows p. 30 Finding Rows in Common Between Two Tables p. 31 Retrieving Values from One Table That Do Not Exist in Another p. 33 Retrieving Rows from One Table That Do Not Correspond to Rows in Another p. 37 Adding Joins to a Query Without Interfering with Other Joins p. 38 Determining Whether Two Tables Have the Same Data p. 41 Identifying and Avoiding Cartesian Products p. 47 Performing Joins when Using Aggregates p. 49 Performing Outer Joins when Using Aggregates p. 53 Returning Missing Data from Multiple Tables p. 56 Using NULLs in Operations and Comparisons p. 60 Inserting, Updating, Deleting p. 62 Inserting a New Record p. 63 Inserting Default Values p. 63 Overriding a Default Value with NULL p. 65 Copying Rows from One Table into Another p. 65 Copying a Table Definition p. 66 Inserting into Multiple Tables at Once p. 67 Blocking Inserts to Certain Columns p. 69 Modifying Records in a Table p. 70 Updating when Corresponding Rows Exist p. 71 Updating with Values from Another Table p. 72 Merging Records p. 75 Deleting All Records from a Table p. 77 Deleting Specific Records p. 78 Deleting a Single Record p. 78 Deleting Referential Integrity Violations p. 79 Deleting Duplicate Records p. 79 Deleting Records Referenced from Another Table p. 81 Metadata Queries p. 83 Listing Tables in a Schema p. 83 Listing a Table's Columns p. 84 Listing Indexed Columns for a Table p. 85 Listing Constraints on a Table p. 87 Listing Foreign Keys Without Corresponding Indexes p. 88 Using SQL to Generate SQL p. 91 Describing the Data Dictionary Views in an Oracle Database p. 93 Working with Strings p. 95 Walking a String p. 95 Embedding Quotes Within String Literals p. 98 Counting the Occurrences of a Character in a String p. 99 Removing Unwanted Characters from a String p. 100 Separating Numeric and Character Data p. 101 Determining Whether a String Is Alphanumeric p. 105 Extracting Initials from a Name p. 110 Ordering by Parts of a String p. 114 Ordering by a Number in a String p. 115 Creating a Delimited List from Table Rows p. 121 Converting Delimited Data into a Multi-Valued IN-List p. 127 Alphabetizing a String p. 133 Identifying Strings That Can Be Treated as Numbers p. 139 Extracting the nth Delimited Substring p. 145 Parsing an IP Address p. 151 Working with Numbers p. 155 Computing an Average p. 155 Finding the Min/Max Value in a Column p. 157 Summing the Values in a Column p. 159 Counting Rows in a Table p. 160 Counting Values in a Column p. 162 Generating a Running Total p. 163 Generating a Running Product p. 166 Calculating a Running Difference p. 169 Calculating a Mode p. 170 Calculating a Median p. 173 Determining the Percentage of a Total p. 177 Aggregating Nullable Columns p. 180 Computing Averages Without High and Low Values p. 181 Converting Alphanumeric Strings into Numbers p. 182 Changing Values in a Running Total p. 185 Date Arithmetic p. 188 Adding and Subtracting Days, Months, and Years p. 188 Determining the Number of Days Between Two Dates p. 190 Determining the Number of Business Days Between Two Dates p. 192 Determining the Number of Months or Years Between Two Dates p. 197 Determining the Number of Seconds, Minutes, or Hours Between Two Dates p. 200 Counting the Occurrences of Weekdays in a Year p. 201 Determining the Date Difference Between the Current Record and the Next Record p. 213 Date Manipulation p. 219 Determining if a Year Is a Leap Year p. 219 Determining the Number of Days in a Year p. 226 Extracting Units of Time from a Date p. 229 Determining the First and Last Day of a Month p. 232 Determining All Dates for a Particular Weekday Throughout a Year p. 234 Determining the Date of the First and Last Occurrence of a Specific Weekday in a Month p. 241 Creating a Calendar p. 248 Listing Quarter Start and End Dates for the Year p. 266 Determining Quarter Start and End Dates for a Given Quarter p. 271 Filling in Missing Dates p. 278 Searching on Specific Units of Time p. 288 Comparing Records Using Specific Parts of a Date p. 289 Identifying Overlapping Date Ranges p. 292 Working with Ranges p. 298 Locating a Range of Consecutive Values p. 298 Finding Differences Between Rows in the Same Group or Partition p. 303 Locating the Beginning and End of a Range of Consecutive Values p. 312 Filling in Missing Values in a Range of Values p. 317 Generating Consecutive Numeric Values p. 321 Advanced Searching p. 325 Paginating Through a Result Set p. 325 Skipping n Rows from a Table p. 328 Incorporating OR Logic when Using Outer Joins p. 331 Determining Which Rows Are Reciprocals p. 334 Selecting the Top n Records p. 335 Finding Records with the Highest and Lowest Values p. 337 Investigating Future Rows p. 339 Shifting Row Values p. 342 Ranking Results p. 345 Suppressing Duplicates p. 346 Finding Knight Values p. 349 Generating Simple Forecasts p. 356 Reporting and Warehousing p. 365 Pivoting a Result Set into One Row p. 365 Pivoting a Result Set into Multiple Rows p. 367 Reverse Pivoting a Result Set p. 375 Reverse Pivoting a Result Set into One Column p. 377 Suppressing Repeating Values from a Result Set p. 380 Pivoting a Result Set to Facilitate Inter-Row Calculations p. 383 Creating Buckets of Data, of a Fixed Size p. 385 Creating a Predefined Number of Buckets p. 389 Creating Horizontal Histograms p. 394 Creating Vertical Histograms p. 396 Returning Non-GROUP BY Columns p. 399 Calculating Simple Subtotals p. 404 Calculating Subtotals for All Possible Expression Combinations p. 408 Identifying Rows That Are Not Subtotals p. 418 Using Case Expressions to Flag Rows p. 420 Creating a Sparse Matrix p. 422 Grouping Rows by Units of Time p. 423 Performing Aggregations over Different Groups/Partitions Simultaneously p. 427 Performing Aggregations over a Moving Range of Values p. 429 Pivoting a Result Set with Subtotals p. 436 Hierarchical Queries p. 441 Expressing a Parent-Child Relationship p. 442 Expressing a Child-Parent-Grandparent Relationship p. 445 Creating a Hierarchical View of a Table p. 450 Finding All Child Rows for a Given Parent Row p. 459 Determining Which Rows Are Leaf, Branch, or Root Nodes p. 462 Odds 'n' Ends p. 471 Creating Cross-Tab Reports Using SQL Server's PIVOT Operator p. 471 Unpivoting a Cross-Tab Report Using SQL Server's UNPIVOT Operator p. 473 Transposing a Result Set Using Oracle's MODEL Clause p. 475 Extracting Elements of a String from Unfixed Locations p. 479 Finding the Number of Days in a Year (an Alternate Solution for Oracle) p. 481 Searching for Mixed Alphanumeric Strings p. 483 Converting Whole Numbers to Binary Using Oracle p. 485 Pivoting a Ranked Result Set p. 488 Adding a Column Header into a Double Pivoted Result Set p. 492 Converting a Scaiar Subquery to a Composite Subquery in Oracle p. 503 Parsing Serialized Data into Rows p. 505 Calculating Percent Relative to Total p. 510 Creating CSV Output from Oracle p. 511 Finding Text Not Matching a Pattern (Oracle) p. 516 Transforming Data with an Inline View p. 519 Testing for Existence of a Value Within a Group p. 520 Window Function Refresher p. 525 Rozenshtein Revisited p. 551 Index p. 587 Table of Contents provided by Ingram. All Rights Reserved.
기본정보
ISBN | 9780596009762 ( 0596009763 ) |
---|---|
발행(출시)일자 | 2005년 12월 01일 |
쪽수 | 595쪽 |
크기 |
175 * 229
* 33
mm
/ 1134 g
|
총권수 | 1권 |
언어 | 영어 |
Klover
e교환권은 적립 일로부터 180일 동안 사용 가능합니다.
리워드는 작성 후 다음 날 제공되며, 발송 전 작성 시 발송 완료 후 익일 제공됩니다.
리워드는 리뷰 종류별로 구매한 아이디당 한 상품에 최초 1회 작성 건들에 대해서만 제공됩니다.
판매가 1,000원 미만 도서의 경우 리워드 지급 대상에서 제외됩니다.
일부 타인의 권리를 침해하거나 불편을 끼치는 것을 방지하기 위해 아래에 해당하는 Klover 리뷰는 별도의 통보 없이 삭제될 수 있습니다.
- 도서나 타인에 대해 근거 없이 비방을 하거나 타인의 명예를 훼손할 수 있는 리뷰
- 도서와 무관한 내용의 리뷰
- 인신공격이나 욕설, 비속어, 혐오발언이 개재된 리뷰
- 의성어나 의태어 등 내용의 의미가 없는 리뷰
리뷰는 1인이 중복으로 작성하실 수는 있지만, 평점계산은 가장 최근에 남긴 1건의 리뷰만 반영됩니다.
구매 후 리뷰 작성 시, e교환권 200원 적립
문장수집
e교환권은 적립 일로부터 180일 동안 사용 가능합니다. 리워드는 작성 후 다음 날 제공되며, 발송 전 작성 시 발송 완료 후 익일 제공됩니다.
리워드는 한 상품에 최초 1회만 제공됩니다.
주문취소/반품/절판/품절 시 리워드 대상에서 제외됩니다.
구매 후 리뷰 작성 시, e교환권 100원 적립