0% found this document useful (0 votes)
221 views2 pages

Display All The Dept Numbers Available With The Dept and Emp Tables Avoiding Duplicates (SQL) - MyCompiler

This document contains a SQL query to display all unique department numbers from the dept and emp tables, avoiding duplicates. The query is not shown. The document also contains information about supported languages on myCompiler.io and links to programming guides, terms of service, privacy policy, and contact details.

Uploaded by

dingarshruti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
221 views2 pages

Display All The Dept Numbers Available With The Dept and Emp Tables Avoiding Duplicates (SQL) - MyCompiler

This document contains a SQL query to display all unique department numbers from the dept and emp tables, avoiding duplicates. The query is not shown. The document also contains information about supported languages on myCompiler.io and links to programming guides, terms of service, privacy policy, and contact details.

Uploaded by

dingarshruti
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

14/03/2024, 14:00 1.

1. Display all the dept numbers available with the dept and emp tables avoiding duplicates (SQL) - myCompiler

myCompiler

1. Display all the dept numbers available with an anonymous user ·


the dept and emp tables avoiding duplicates 9 months ago

SQL   Run  Fork 

1 -- create a table Output


2 CREATE TABLE students (
3 id INTEGER PRIMARY KEY, 2|Joanna|F
4 name TEXT NOT NULL,
5 gender TEXT NOT NULL [Execution complete with e
6 );
7 -- insert some values
8 INSERT INTO students VALUES (1, 'Ryan', 'M');
Get 10 Free
9 INSERT INTO students VALUES (2, 'Joanna', 'F');
Images
10 -- fetch some values From
11 SELECT * FROM students WHERE gender = 'F'; Adobe
Stock. Start
Now.
ADS VIA
CARBON

Comments

Please sign up or log in to contribute to the discussion.

https://www.mycompiler.io/view/6Zu5RVVWdaV 1/2
14/03/2024, 14:00 1. Display all the dept numbers available with the dept and emp tables avoiding duplicates (SQL) - myCompiler

Supported languages
Deno JavaScript NodeJS Python Ruby Go
C C++ Java C# TypeScript PHP
Bash R Octave Fortran Lua Erlang
(MATLAB)
SQL MySQL MongoDB Clojure D Perl
Kotlin Swift Rust Assembly

Programming guides | Terms of service | Privacy policy | Contact us | © 2019 - 2024


mycompiler.io.

https://www.mycompiler.io/view/6Zu5RVVWdaV 2/2

You might also like