Skip to content

Bootcamp WEX - Desenvolvimento .NET e QA - Digital Innovation One (DIO)

Notifications You must be signed in to change notification settings

jessicacosta07/sql-relational-query

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

SQL Relational Query

Bootcamp WEX - Desenvolvimento .NET e QA

Skills

MicrosoftSQLServer

SELECT Nome, 
       Ano 
FROM Filmes

image

SELECT Nome, 
       Ano, 
       Duracao 
FROM Filmes 
ORDER BY Ano

image

SELECT Nome,
       Ano, 
       Duracao
FROM Filmes
WHERE Nome = 'De Volta para o Futuro'

image

SELECT Nome,
       Ano, 
       Duracao
FROM Filmes
WHERE Ano = 1997

image

SELECT Nome,
       Ano, 
       Duracao
FROM Filmes
WHERE Ano > 2000

image

SELECT Nome,
       Ano, 
       Duracao
FROM Filmes
WHERE Duracao > 100 AND Duracao < 150
ORDER BY Duracao

image

SELECT Ano, COUNT (*) Quantidade 
FROM Filmes
GROUP BY Ano
ORDER BY Quantidade DESC

image

SELECT * FROM Atores
WHERE Genero = 'M'

image

SELECT * FROM Atores
WHERE Genero = 'F'
ORDER BY PrimeiroNome

image

SELECT
    F.Nome,
    G.Genero
FROM
   Filmes F
INNER JOIN
   Generos G
INNER JOIN
   FilmesGenero FG
ON G.Id = FG.IdGenero
ON F.Id = FG.IdFilme

image

SELECT
    F.Nome,
    G.Genero
FROM
    Filmes F
INNER JOIN
    Generos G
INNER JOIN
    FilmesGenero FG
ON G.Id = FG.IdGenero
ON F.Id = FG.IdFilme
WHERE Genero = 'Mistério'

image

SELECT
    F.Nome,
    A.PrimeiroNome,
    A.UltimoNome,
    EG.Papel
FROM
    Filmes F
INNER JOIN
    Atores A
INNER JOIN
    ElencoFilme EG
ON A.Id = EG.IdFilme
ON F.Id = EG.IdAtor

image

About

Bootcamp WEX - Desenvolvimento .NET e QA - Digital Innovation One (DIO)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages