You are on page 1of 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