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(9251)
Distributed Machine Learning with Python by Guanhua Wang(3567)
Getting Started with CockroachDB by Kishen Das Kondabagilu Rajanna(2572)
Exploratory Data Analysis with Python Cookbook by Ayodele Oluleye(1414)
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(1200)
R Web Scraping Quick Start Guide by Olgun Aydin(1078)
PostgreSQL 13 Cookbook: Over 120 recipes to build high-performance and fault-tolerant PostgreSQL database solutions by Vallarapu Naga Avinash Kumar(1010)
Mastering PostgreSQL 15 - Fifth Edition by Hans-Jürgen Schönig(684)
Pandas for Everyone: Python Data Analysis, 2nd Edition by Daniel Y. Chen(443)
Apache Hadoop 3 Quick Start Guide by Hrishikesh Karambelkar(442)
Learn SQL with MySQL: Retrieve and Manipulate Data Using SQL Commands with Ease by Ashwin Pajankar(400)
SQL Query Design Patterns and Best Practices by Steve Hughes & Dennis Neer & Dr. Ram Babu Singh & Shabbir H. Mala & Leslie Andrews & Chi Zhang(384)
Deploy Node.js on GCP: A comprehensive guide to deploying Node.js on Google Cloud Platform by Jonathan Lin(375)
Configuring Sales and Distribution in SAP ERP by Unknown(353)
Leveling Up with SQL by Mark Simon(328)
Learning Data Science by Sam Lau(319)
Intermediate Python by Oswald Campesato(316)
The Definitive Guide to Data Integration by Pierre-Yves BONNEFOY Emeric CHAIZE Raphaël MANSUY Mehdi TAZI(297)
Data Engineering with AWS: A Comprehensive Guide to Building Robust Data Pipelines by Paul Brian(291)
Pandas Basics by Oswald Campesato(290)