2
I’m using the following SELECT to return the Ids one-table.
SELECT id, duracao_sessao FROM usuario
- For ID 1 I want the text "Object"
- For ID 2 I want the text "Class"
- For ID 3 I want the text "Structure"
Is there any way to mask the return in a SELECT command in this way?
Thanks for the answer!! In fact, all ID should be masked, each with a different text understands? You could do it this way with 3 different texts?
– dev-john
There is no need to use the CASE statement. In the example I sent, the return is exactly the word text 1 for id user 1, text 10, id user 10... text 100 for id user 100... and so on.
– Cleo
Ta confused... what text you want for each user ?
– Cleo
I edited the question, I was really confused, I’m sorry... Now the question presents exactly the texts I need for each case and it’s only these 3 id types you have in the table
– dev-john
@dev-john, see updated response.
– bruno
It worked @Runo Thank you so much!!!
– dev-john
You’re welcome, @dev-john
– bruno