-4
Write a select that meets the criteria below:
1° Filter only domains containing "Hotmail.com";
2° Consider the contracts below; 683679 705126 715651
TABLE
SELECT * FROM FDADOS_RE170(3,3) limit 12
carteira; tn; contrato; cpf; tipo_contato; contato; classificacao; origem; score;
3; 1; 710195; 02714662196; Email [email protected]; 1 - Excelente; M; 0
3; 1; 710195; 02714662196; Email [email protected] ;1 - Excelente M; 0
3; 1; 710195; 02714662196; Email [email protected]; 1 - Excelente; M; 0
3; 1; 710195; 02714662196; Email [email protected] 1 - Excelente; M; 0
3; 1; 710195; 02714662196; Email [email protected] ;9 - Indefinido O; 0
sql
What is the question then? What part of the filter do you not understand? You know the clause
LIKE
validation?– Jefferson Quesado
Welcome! Use the operator
like
, will look like this ...contato LIKE '%hotmail.com'
Read this answer: What is the real difference between the operator '=' and LIKE?– Luiz Augusto
Friend you could leave the code better for viewing?
– Maury Developer
The doubt is to make a select that brings me 1° Filter only domains that contains "Hotmail.com"; 2° Consider the contracts below; 683679 705126 715651
– user157132
Please do not duplicate questions. If the previous question was not well received, concentrate your efforts there. Edit it and follow the instructions given in the comments, and if she agrees it will be reopened
– hkotsubo
Not knowing the name of the table where we will work will be difficult, the numbers of contracts will be entered manually? Do:
select * from SUA_TABELA where (contrato = (VARIAVEL_COM_NR_DOS_CONTRATOS)) and contato like '%hotmail.com'
– Luiz Augusto
Thank you Luiz Augusto
– user157132
Not knowing how to do is no doubt. Doubts only arise after trying to do or study how to do.
– ramaral