Lets Viz Technologies Logo
Home
Dashboards
Contact
Get Demo
Lets Viz

Custom Gen AI + BI Solutions to Automate Workflows and Unlock Insights. We help businesses automate repetitive processes and gain real-time insights through AI-driven workflows and intelligent dashboards.

Company

  • About
  • Careers
  • Contact

Services

  • AI Automation
  • Custom Dashboards
  • BI Consulting
  • IT Outstaffing

Dashboards

  • Finance
  • Marketing
  • Sales
  • Operations

Learn

  • Blog
  • Tech Tutorials

Legal & Social

  • Privacy Policy
  • Terms & Conditions

Contact Us

Location

Noida, Uttar Pradesh 201301
WeWork Berger Delhi One, C-001/A2, Sector 16B

Phone

+91 0124 502 5592

Email

info@lets-viz.com

Review Us On

Clutch logoTrustpilot logoGoogle Reviews logo

© 2026 Lets Viz Technologies. All rights reserved.

AI

SQL EXISTS Operator

SQL EXISTS Operator
February 10, 2023·By Lets Viz·2 min read
AIBusiness Intelligence

The EXISTS Operator in SQL is used to check the availability of the record in the correlated nested query. It checks whether the result generated in the nested query is empty or not.

The result of EXISTS is the BOOLEAN VALE that true or false. The operator can be used with statements such as SELECT, UPDATE, INSERT, etc.

  • Syntax of EXISTS Operator –

SELECT column1,column2,column3,....,columnN FROM table_name
WHERE EXISTS
(SELECT column1,column2,column3,....,columnN
FROM table_name
WHERE condition);

Consider the Product table and the Manager’s table from the Customer database.

Demo table –

Product Table –

Category Region City Country Customer_ID Customer_name
Office Supplies Central Chicago United States SM-20950 Suzanne McNair
Technology East New York City United States AH-10465 Amy Hunt
Office Supplies East New York City United States AH-10465 Amy Hunt
Office Supplies East Dover United States EP-13915 Emily Phan
Office Supplies East Dover United States EP-13915 Emily Phan
Technology West Aurora United States TP-21565 Tracy Poddar
Office Supplies West Aurora United States TP-21565 Tracy Poddar
Office Supplies East Long Beach United States AR-10825 Anthony Rawles
Office Supplies West Pasadena United States HA-14920 Helen Andreada
Furniture West Pasadena United States HA-14920 Helen Andreada

Manager’s table – 

Region Regional Manager
West Sadie Pawthorne
East Chuck Magee
Central Roxanne Rodriguez
South Fred Suzuki

Example – Using the EXISTS operator, retrieve the CustomerID and CustomerName if the Region of both the tables matches.

SELECT [Customer ID],[Customer Name] FROM [dbo].[Products]
WHERE EXISTS
(SELECT * FROM [dbo].[Manager]
WHERE [dbo].[Products].Region = [dbo].[Manager].Region );

 

The output after implementing the above EXISTS, operator –

Customer_ID Customer_name
SM-20950 Suzanne McNair
AH-10465 Amy Hunt
AH-10465 Amy Hunt
EP-13915 Emily Phan
EP-13915 Emily Phan
TP-21565 Tracy Poddar
TP-21565 Tracy Poddar
AR-10825 Anthony Rawles
HA-14920 Helen Andreada
HA-14920 Helen Andreada
  • The correlated nested subquery in the example returns “TRUE”, then we have the output for the result.

 

Other SQL topics to check out:

  • What is RDBMS (Relational Database Management System)?
  • SQL SELECT Statement
  • SQL INSERT INTO SELECT Statement
  • SQL ALL Operator
  • SQL WHERE Clause
  • SQL AND Operator
  • SQL OR Operator

Follow us on Twitter, Facebook, Linkedin, and Tableau Public to stay updated with our latest blog and what’s new in Tableau.

Automate data analysis pipeline and create report ready dashboards

If you are looking forward to getting your data pipeline built and setting up the dashboard for business intelligence, book a call now from here.

#analytics #data #business #artificialintelligence #machinelearning #startup #deeplearning #deeplearning #datascience #ai #growth #dataanalytics #india #datascientist #powerbi #dataanalysis #tableau #SQL #businessanalytics #businessanalyst #businessandmanagement #dataanalyst #businessanalysis #analyst #analysis #powerbideveloper #powerbidesktop #letsviz

Related blogs

ChatGPT Atlas vs Comet Browser: Features & Pricing (2025)
AI
ChatGPT Atlas vs Comet Browser: Features & Pricing (2025)

TL;DR If you want the most capable agentic workflows right now, Perplexity’s Comet Browser edges ahead thanks to robust web research and background assistance with a free core experience (rate-limited)....

AutomationWorkflow
8 min read
Read More
ChatGPT vs Gemini: Best AI Browser & Computer Use?
AI
ChatGPT vs Gemini: Best AI Browser & Computer Use?

If you want fast, conversational answers with clear sources inside the response, ChatGPT (with ChatGPT Search and the Atlas desktop browser) is the best all-rounder for everyday browsing. If you...

Tableau
7 min read
Read More
From Boolean to Brilliant: My Journey with Automation, AI, and the Rise of AI Agents on Make.com
AI
From Boolean to Brilliant: My Journey with Automation, AI, and the Rise of AI Agents on Make.com

You've probably heard the buzz about AI agents. Maybe you've even wondered if they're just another shiny new toy, or if they're the real deal. As someone who's spent countless...

Automation
6 min read
Read More

Ready to Transform Your Data?

Book a free demo and see how we can help you unlock insights from your data.

Book a Demo