SQL Queries: 200+ Queries to Challenge you.
5/5
()
About this ebook
Related to SQL Queries
Related ebooks
100+ SQL Queries T-SQL for Microsoft SQL Server Rating: 4 out of 5 stars4/5Querying with SQL T-SQL for Microsoft SQL Server Rating: 3 out of 5 stars3/5100+ SQL Queries Jet SQL for Microsoft Office Access Rating: 5 out of 5 stars5/5Advanced SAS Interview Questions You'll Most Likely Be Asked: Job Interview Questions Series Rating: 0 out of 5 stars0 ratingsSQL for Microsoft Office Access Rating: 3 out of 5 stars3/5SQL Server: Tips and Tricks - 2 Rating: 4 out of 5 stars4/5Practical SQL Rating: 4 out of 5 stars4/5SQL in 30 Pages Rating: 4 out of 5 stars4/5SQL Interview Questions: A complete question bank to crack your ANN SQL interview with real-time examples Rating: 0 out of 5 stars0 ratingsSQL Clearly Explained Rating: 5 out of 5 stars5/5Learn SQL in 24 Hours Rating: 5 out of 5 stars5/5SQL Server: Tips and Tricks - 1 Rating: 5 out of 5 stars5/5Oracle SQL and PL/SQL Rating: 5 out of 5 stars5/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Sql Simplified:: Learn to Read and Write Structured Query Language Rating: 0 out of 5 stars0 ratingsOracle SQL: Jumpstart with Examples Rating: 5 out of 5 stars5/5SQL: For Beginners: Your Guide To Easily Learn SQL Programming in 7 Days Rating: 5 out of 5 stars5/5Mastering PL/SQL Through Illustrations: From Learning Fundamentals to Developing Efficient PL/SQL Blocks (English Edition) Rating: 0 out of 5 stars0 ratingsOracle SQL In 10 Minutes Rating: 5 out of 5 stars5/5Joe Celko's SQL for Smarties: Advanced SQL Programming Rating: 3 out of 5 stars3/5Learn T-SQL Querying: A guide to developing efficient and elegant T-SQL code Rating: 0 out of 5 stars0 ratingsSQL Server 2016 Developer's Guide Rating: 0 out of 5 stars0 ratingsThe SQL Workshop: Learn to create, manipulate and secure data and manage relational databases with SQL Rating: 0 out of 5 stars0 ratingsSQL Server Interview Questions You'll Most Likely Be Asked Rating: 0 out of 5 stars0 ratingsSQL All-in-One For Dummies Rating: 4 out of 5 stars4/5Data Analysis Using SQL and Excel Rating: 3 out of 5 stars3/5SQL For Dummies Rating: 0 out of 5 stars0 ratings
Computers For You
Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 5 out of 5 stars5/5Procreate for Beginners: Introduction to Procreate for Drawing and Illustrating on the iPad Rating: 0 out of 5 stars0 ratingsElon Musk Rating: 4 out of 5 stars4/5The Mega Box: The Ultimate Guide to the Best Free Resources on the Internet Rating: 4 out of 5 stars4/5ChatGPT Ultimate User Guide - How to Make Money Online Faster and More Precise Using AI Technology Rating: 0 out of 5 stars0 ratingsThe ChatGPT Millionaire Handbook: Make Money Online With the Power of AI Technology Rating: 0 out of 5 stars0 ratingsThe Best Hacking Tricks for Beginners Rating: 4 out of 5 stars4/5SQL QuickStart Guide: The Simplified Beginner's Guide to Managing, Analyzing, and Manipulating Data With SQL Rating: 4 out of 5 stars4/5Deep Search: How to Explore the Internet More Effectively Rating: 5 out of 5 stars5/5How to Create Cpn Numbers the Right way: A Step by Step Guide to Creating cpn Numbers Legally Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5Practical Lock Picking: A Physical Penetration Tester's Training Guide Rating: 5 out of 5 stars5/5People Skills for Analytical Thinkers Rating: 5 out of 5 stars5/5Slenderman: Online Obsession, Mental Illness, and the Violent Crime of Two Midwestern Girls Rating: 4 out of 5 stars4/5CompTIA Security+ Practice Questions Rating: 2 out of 5 stars2/5The Designer's Web Handbook: What You Need to Know to Create for the Web Rating: 0 out of 5 stars0 ratingsLearning the Chess Openings Rating: 5 out of 5 stars5/5The Professional Voiceover Handbook: Voiceover training, #1 Rating: 5 out of 5 stars5/5Web Designer's Idea Book, Volume 4: Inspiration from the Best Web Design Trends, Themes and Styles Rating: 4 out of 5 stars4/5CompTIA IT Fundamentals (ITF+) Study Guide: Exam FC0-U61 Rating: 0 out of 5 stars0 ratingsRemote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5Ultimate Guide to Mastering Command Blocks!: Minecraft Keys to Unlocking Secret Commands Rating: 5 out of 5 stars5/5101 Awesome Builds: Minecraft® Secrets from the World's Greatest Crafters Rating: 4 out of 5 stars4/5
Reviews for SQL Queries
2 ratings1 review
- Rating: 5 out of 5 stars5/5A good review book before interviews. Would be good if you explain the queries more.
Book preview
SQL Queries - Swaroop Kallakuri
SQL-QUERIES
Tables
You need to create and populate the following tables to start working on the queries.
1.1. Emp table data
1.2. Dept table data
2. Exercises with Answers
2.1. Display all the information of the EMP table?
A) select * from emp;
2.2. Display unique Jobs from EMP table?
A) select distinct job from emp;
B) select unique job from emp;
2.3. List the emps in the asc order of their Salaries?
A) select * from emp order by sal asc;
2.4. List the details of the emps in asc order of the Dptnos and desc of Jobs?
A)select * from emp order by deptno asc,job desc;
2.5. Display all the unique job groups in the descending order?
A)select distinct job from emp order by job desc;
2.6. Display all the details of all ‘Mgrs’
A)Select * from emp where empno in ( select mgr from emp) ;
2.7. List the emps who joined before 1981.
A) select * from emp where hiredate < (’01-jan-81’);
2.8. List the Empno, Ename, Sal, Daily sal of all emps in the asc order of Annsal.
A) select empno ,ename ,sal,sal/30,12*sal annsal from emp order by annsal asc;
2.9. Display the Empno, Ename, job, Hiredate, Exp of all Mgrs
A) select empno,ename ,job,hiredate, months_between(sysdate,hiredate) exp from emp where empno in (select mgr from emp);
2.10. List the Empno, Ename, Sal, Exp of all emps working for Mgr 7369.
A) select empno,ename,sal,exp from emp where mgr = 7369;
2.11. Display all the details of the emps whose Comm. Is more than their Sal.
A) select * from emp where comm. > sal;
2.12. List the emps in the asc order of Designations of those joined after the second half of 1981.
A) select * from emp where hiredate > (’30-jun-81’) and to_char(hiredate,’YYYY’) = 1981 order by job asc;
2.13. List the emps along with their Exp and Daily Sal is more than Rs.100.
A) select * from emp where (sal/30) >100;
2.14. List the emps who are either ‘CLERK’ or ‘ANALYST’ in the Desc order.
A) select * from emp where job = ‘CLERK’ or job = ‘ANALYST’ order by job desc;
2.15. List the emps who joined on 1-MAY-81,3-DEC-81,17-DEC-81,19-JAN-80 in asc order of seniority.
A) select * from emp where hiredate in (’01-may-81’,’03-dec-81’,’17-dec-81’,’19-jan-80’) order by hiredate