Designing SELECT Query using dbForge Query Builder for SQL Server

Designing SELECT Query using dbForge Query Builder for SQL Server


Learn how to design and select a query visually, wrap it into a subquery and navigate through a query using Document Outline.

Learn more: https://www.devart.com/dbforge/sql/querybuilder/

Watch the latest video about Designing SELECT Query using dbForge Query Builder: https://www.youtube.com/watch?v=aepK_RnVc04&list=PLpO6-HKL9JxXSZgO3L0MxOTt3QxpFbJNt&index=20

#Database #SQLQuery #QueryBuilder #SQLServer
Closed Caption:

Wellcome to Query Builder Tutorials.
In this tutorial we will learn how to:
- design and select a query visually,
- wrap it into a subquery,
- navigate through a query using Document
Outline.
You can open Query Builder using Start Page or
toolbar.
Your query will be displayed visually on the
diagram.
To use Query Builder, drag the required objects
from Database Explorer.
Joins were created automatically.
To view these joins, just double-click them.
By default, Query Builder is loaded in the
SELECT type.
But there are other types that you can switch
by using the popup menu.
To exclude columns that are not needed in the
selection, check only the ones that are required.
Selected columns are automatically displayed in
Tabbed Editor.
Let's execute the query and look at the data it
returned.
From the resulting data, let's select cities,
names of which begin with the letter "C".
To do this, let's open the WHERE tab and
create the corresponding condition.
As you see, filtering was applied successfully
and we received the requested data.
Let's change the query so that the cities, names
of which begin with the letter "C" are omitted in
the result.
As you can see code completion suggests
relevant keywords.
The changes are automatically displayed in the
WHERE tab and filter.
Data is received in correspondence with the
specified condition.
These two tables can be converted into a
subquery.
To do this, let's use the Wrap to subquery
functioanlity.
Now tables are transformed into a subquery.
Drag the required object from Database Explorer.
Let's select the required columns.
Now, let's join the table and the subquery by
"SalesTerritoryKey".
You can execute the root query -
for this, let's click "execute current statement"
when the "Root" tab is active.
And now you can execute the subquery.
To do this, let's click Execute current statement
when the Subquery tab is active.
You can view the query structure using the
Document Outline window.
In this case, you can see the subquery and the
root query.
Using Document Outline, you can easily
navigate though all query elements.
If you accidentally forgot to save the query and closed the appliaction or if the application crashed,
not a big deal - dbForge will autmoatically save your data.
Let's open the application,
and then open the restored tab.
As you see, the qurey has been succesfully restored.
You have been watching Query Builder Tutorial.
You can download dbForge Data Studio from
devart.com.
Thank you for watching.

Video Length: 02:55
Uploaded By: Devart
Published: 7/7/2014
View Count: 8,121

Related Software Products
dbForge Query Builder for SQL Server
dbForge Query Builder for SQL Server

Published By:
Devart

Description:
dbForge Query Builder for SQL Server: Draw Your T-SQL Instead of Typing It dbForge Query Builder for SQL Server is a $139.95-a-year Windows tool from Devart that lets you build SELECT, INSERT, UPDATE and DELETE queries for Microsoft SQL Server and Azure SQL by dragging tables onto a diagram and ticking columns. It's aimed at analysts, report writers and developers who need multi-table joins without hand-writing every line, and it adds a query...


Related Videos
Viewing SQL Data using dbForge Query Builder for SQL Server
Viewing SQL Data using dbForge Query Builder for SQL Server

Video Length: 02:57
Uploaded By: Devart (6/23/2015)
View Count: 3,139

How to create SQL INSERT Statement using dbForge Query Builder for SQL Server
How to create SQL INSERT Statement using dbForge Query Builder for SQL Server

Video Length: 02:24
Uploaded By: Devart (1/19/2021)
View Count: 1,415

Editing SQL Data using dbForge Query Builder for SQL Server
Editing SQL Data using dbForge Query Builder for SQL Server

Video Length: 01:44
Uploaded By: Devart (6/10/2020)
View Count: 1,116

How to UPDATE from a SELECT statement using dbForge Query Builder for SQL Server
How to UPDATE from a SELECT statement using dbForge Query Builder for SQL Server

Video Length: 01:39
Uploaded By: Devart (6/25/2021)
View Count: 710

Copyright © 2026, Ivertech. All rights reserved.