- عنوان کتاب: Narrative SQL -Crafting Data Analysis Queries That Tell Stories
- نویسنده: Hamed Tabrizchi
- حوزه: آموزش SQL
- سال انتشار: 2025
- تعداد صفحه: 360
- زبان اصلی: انگلیسی
- نوع فایل: pdf
- حجم فایل: 3.36 مگابایت
در دهه گذشته، تحلیل دادهها و SQL نقش محوری در حرفه حرفهای من داشتهاند. اشتیاق من به نوشتن کوئری از دوران لیسانسم شروع شد، جایی که یک دوره پایگاه داده را با نمره کامل به پایان رساندم. در نتیجه این دستاورد، این فرصت به من داده شد که در ترم بعد دستیار آموزشی شوم و در آنجا تجربه نوشتن کوئری و توضیح آنها به دانشجویان را کسب کنم. با وجود اینکه در ابتدا با صدای لرزان صحبت میکردم، این نقش به من کمک کرد تا در ارتباطات فنی و سخنرانی عمومی اعتماد به نفس پیدا کنم و مهارتهای پیشرفته نوشتن کوئری خود را افزایش دهم. این تجربیات اولیه، پایه و اساس تخصص فعلی من در SQL و تحلیل دادهها را بنا نهاد، که برای موفقیت شغلی بعدی من اساسی است. پس از یک سال، شروع به کار در یک شرکت فناوری کردم، جایی که با چالشهای پیچیدهتری روبرو شدم. به عنوان یک کارآموز تحلیل دادهها، دو مورد از چالشهایی که با آنها مواجه شدم شامل فقدان دادههای منظم و سازماندهی شده و دشواری همکاری بود. هماهنگی پروژهها بین برنامهنویسان، نویسندگان کوئری، طراحان UI/UX و سایر اعضای تیم، دشوار و بسیار متفاوت از آموزش یا حل تمرینهای کتاب درسی بود. با وجود همه چالشها، روز به روز انگیزه داشتم تا از همکارانم تجربه و مهارت کسب کنم و مهارتهای تحلیلیام را بهبود بخشم تا به یک تحلیلگر داده با دیدگاهی ژرف تبدیل شوم. در طول این سالها، با تعدادی پروژه سر و کار داشتهام و بینشهای عمیقتر و مهارتهای تحلیلی بهتری از گذشته به دست آوردهام. روزی تصمیم گرفتم بینشی داشته باشم که میتوانم آن را با کسانی که به تجزیه و تحلیل دادهها و نوشتن پرسوجو علاقهمند هستند، به اشتراک بگذارم. بنابراین، تصمیم گرفتم این کتاب را بنویسم تا آنچه این دیدگاه را در من شکل داده است، با جزئیات هرچه بیشتر آموزش دهم. مفهوم اصلی این کتاب، نوشتن پرسوجوی SQL است که در هسته فعالیتهای روزمره من، چه به عنوان یک تحلیلگر داده، چه به عنوان مدرس دانشگاه یا رهبر تیم داده، قرار دارد. من معتقدم که در حال حاضر، افرادی که قادر به شکل دادن اطلاعات به داستانهای جذاب هستند، در دنیای روزافزون دادهها از مزیت برخوردارند. به دلیل این باور، SQL روایی ظهور کرد، که ایده آن این است که یادگیری SQL نباید مانند یادگیری زبان ماشین باشد، بلکه باید مانند تسلط بر یک زبان ارتباطی باشد. این کتاب برای تحلیلگر کنجکاو، توسعهدهنده متفکر و داستانسرای آینده دادهها است. این کتاب به گونهای طراحی شده است که صرف نظر از اینکه تازه سفر خود را به پایگاههای داده آغاز کردهاید یا میخواهید مهارت خود را در SQL بهبود بخشید، راهنماییهای واضح و خلاقانهای را در اختیار شما قرار دهد. این کتاب با استفاده از یک ساختار روایی، با اصول اولیه – دستورات SELECT ساده، فیلترها و JOINها – شروع میکند. در فصلهای بعدی، این کتاب به بررسی پرسوجوهایی میپردازد که دادههای خام را به بینشهای غنی تبدیل میکنند، از جمله تجمیعها، زیرپرسوجوها، منطق شرطی و موارد دیگر. با پرسوجوها و داستانهای SQL ارائه شده، این کتاب فقط یک راهنمای مرجع نیست؛ بلکه همراهی برای سفر داده شماست که به شما کمک میکند روایی فکر کنید، واضح بنویسید و به روشنی تجزیه و تحلیل کنید. هر فصل داستانهایی را بررسی میکند که مفاهیم و مهارتهایی را برای تسلط بر ابزارهای قدرتمند SQL، از جمله توابع پنجرهای، زیرپرسوجوها برای دستکاری پویای دادهها، منطق شرطی با پرسوجوهای پیچیده و حتی استراتژیهای بهینهسازی مبتنی بر شاخصها و نماها، معرفی میکنند. پس از اتمام این کتاب، باید بتوانید با نوشتن پرسوجوهای SQL، طیف گستردهای از چالشهای تجزیه و تحلیل دادهها را برطرف کنید. چند فصل آخر این کتاب مباحث پیشرفتهای مانند تنظیم عملکرد، بهینهسازی اسکریپتها و داستانسرایی تحلیلی با توابع پنجرهای را پوشش میدهد و به روایتهای شما عمق و دقت میبخشد. در این کتاب، هم الهام و هم مهارتهای عملی خواهید یافت – و وقتی فصل آخر را به پایان برسانید، آماده خواهید بود تا داستانهای دادهای قدرتمند خود را تعریف کنید. در نهایت، باید توجه داشت که تمام پرسوجوهای ارائه شده در این کتاب بر روی PostgreSQL 14.17، سیستم پایگاه داده رابطهای متنباز در سطح سازمانی که به دلیل استحکام، توسعهپذیری و انطباق با SQL شناخته شده است، توسعه یافته و به طور کامل آزمایش شدهاند. اگرچه مفاهیم اساسی PostgreSQL باید برای همه نسخههای PostgreSQL اعمال شود، اما نحو خاص، ویژگیهای عملکرد یا در دسترس بودن ویژگیها ممکن است متفاوت باشد. مجموعه کامل پرسوجوها، شامل داستانها و مثالها، از طریق مخزن GitHub ناشر در https://github.com/Apress/Narrative-SQL قابل دسترسی است. در سراسر این مخزن، تمام پرسوجوها به راحتی بر اساس فصل سازماندهی و دستهبندی شدهاند و به شما امکان میدهند مثالهای مربوط به بخشهای خاص را به راحتی پیدا و اجرا کنید.
In the past decade, data analysis and SQL have played a central role in my professional career. My passion for query writing began during my bachelor’s studies, where I completed a database course with full marks. As a result of this achievement, I was given the opportunity to become a teaching assistant the following semester, where I gained experience writing queries and explaining them to students. Despite speaking with a trembling voice at first, this role helped me gain confidence in technical communication and public speaking, and enhanced my advanced query-writing skills. These early experiences laid the foundation for my current expertise in SQL and data analysis, fundamental to my next career accomplishment. After a year, I started working for a technology company, where I encountered more complex challenges. As a data analysis intern, two of the challenges I encountered included the lack of neatly organized data and the difficulty of collaborating. It was difficult and very different from teaching or solving textbook exercises to coordinate projects among programmers, query writers, UI/UX designers, and the other members of the team. Despite all the challenges, I was motivated day by day to gain experience and skills from my colleagues and improve my analytical skills to become a data analyst who has an insightful perspective. Throughout the years, I have dealt with a number of projects and gained deeper insights and better analytical skills from the past. One day I decided that I had an insight that I could share with those who are interested in data analysis and query writing. So, I decided to write this book to teach what formed this perspective within me, in as much detail as I could. The core concept of this book is SQL query writing, which is at the core of my day-to-day activities, whether as a data analyst, a university lecturer, or a data team leader. I believe that at the present time, people who are able to shape information into compelling stories hold an advantage in the ever-increasing world of data. Due to this belief, narrative SQL emerged, which is the idea that learning SQL should not be like learning a machine’s language, but should instead feel like mastering a language of communication. This book is for the curious analyst, the thoughtful developer, and the future storyteller of data. This book is designed to provide you with clear and creative guidance regardless of whether you are just beginning your journey into databases or want to improve your proficiency in SQL. Using a narrative structure, this book begins with the basics—simple SELECT statements, filters, and JOINs. In the subsequent chapters, this book explores queries that transform raw data into rich insights, including aggregations, subqueries, conditional logic, and more. With the SQL queries and stories provided, this book is not just a reference guide; it’s a companion for your data journey, helping you think narratively, write clearly, and analyze clearly. Each chapter explores stories that introduce concepts and skills toward mastery of powerful SQL tools, including window functions, subqueries for dynamic data manipulation, conditional logic with complex queries, and even optimization strategies based on indexes and views. Upon completion of this book, you should be able to tackle a wide range of data analysis challenges by writing SQL queries. The last few chapters of this book cover advanced topics such as tuning performance, optimizing scripts, and analytical storytelling with window functions, giving your narratives depth and precision. In this book, you will find both inspiration and practical skills—and when you close the last chapter, you will be prepared to tell your own powerful data stories. Finally, it should be noted that all queries presented in this book have been developed and thoroughly tested on PostgreSQL 14.17, the enterprise-grade open-source relational database system known for its robustness, extensibility, and SQL compliance. Although the fundamental concepts of PostgreSQL should apply to all PostgreSQL versions, specific syntax, performance characteristics, or feature availability might be different. The complete collection of queries, including stories and examples, can be accessed via the publisher’s GitHub repository at https://github.com/Apress/Narrative-SQL. Throughout this repository, all queries are conveniently organized and categorized by chapter, allowing you to find and execute examples relevant to specific sections conveniently.
این کتاب را میتوانید از لینک زیر بصورت رایگان دانلود کنید:
Download: Narrative SQL
نظرات کاربران