SQL Query Design Patterns and Best Practices by Steve Hughes & Dennis Neer & Dr. Ram Babu Singh & Shabbir H. Mala & Leslie Andrews & Chi Zhang

SQL Query Design Patterns and Best Practices by Steve Hughes & Dennis Neer & Dr. Ram Babu Singh & Shabbir H. Mala & Leslie Andrews & Chi Zhang

Author:Steve Hughes & Dennis Neer & Dr. Ram Babu Singh & Shabbir H. Mala & Leslie Andrews & Chi Zhang
Language: eng
Format: epub
Publisher: Packt
Published: 2023-03-15T00:00:00+00:00


This command will then generate the actual query plan in XML format. It contains the information during the execution of the query and executes the query.

Execute the referenced query here to get the estimated query plan:

SET SHOWPLAN_XML ON; GO SELECT TOP (1000) [CityID] ,[CityName] ,[StateProvinceID] ,[Location] ,[LatestRecordedPopulation] ,[LastEditedBy] FROM [WideWorldImporters].[Application].[Cities] ; GO SET SHOWPLAN_XML OFF; GO

Here is how the query is executed:

Figure 9.9 – The XML plan of the query in the query result pane

In the Results pane, right-click the result and select the Save Results As… option, as referenced here:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(6711)
Distributed Machine Learning with Python by Guanhua Wang(2663)
Getting Started with CockroachDB by Kishen Das Kondabagilu Rajanna(2472)
Exploratory Data Analysis with Python Cookbook by Ayodele Oluleye(1301)
R Web Scraping Quick Start Guide by Olgun Aydin(979)
PostgreSQL 13 Cookbook: Over 120 recipes to build high-performance and fault-tolerant PostgreSQL database solutions by Vallarapu Naga Avinash Kumar(898)
Mastering PostgreSQL 15 - Fifth Edition by Hans-Jürgen Schönig(553)
Getting Started With CockroachDB: A Guide to Using a Modern, Cloud-Native, and Distributed SQL Database for Your Data-Intensive Apps by Kishen Das Kondabagilu. Rajanna(547)
Apache Hadoop 3 Quick Start Guide by Hrishikesh Karambelkar(328)
Pandas for Everyone: Python Data Analysis, 2nd Edition by Daniel Y. Chen(311)
Learn SQL with MySQL: Retrieve and Manipulate Data Using SQL Commands with Ease by Ashwin Pajankar(278)
Deploy Node.js on GCP: A comprehensive guide to deploying Node.js on Google Cloud Platform by Jonathan Lin(266)
SQL Query Design Patterns and Best Practices by Steve Hughes & Dennis Neer & Dr. Ram Babu Singh & Shabbir H. Mala & Leslie Andrews & Chi Zhang(263)
Configuring Sales and Distribution in SAP ERP by Unknown(233)
Leveling Up with SQL by Mark Simon(215)
Learning Data Science by Sam Lau(207)
Intermediate Python by Oswald Campesato(206)
Data Engineering with AWS: A Comprehensive Guide to Building Robust Data Pipelines by Paul Brian(174)
Kimmel N. The Python Bible for Beginners. A Step-By-Step Guide...2023 by Unknown(162)
Pandas Basics by Oswald Campesato(155)