Question: Write a query to which returns a table with name and remember _ token, if remember _ token is not there, then return password _

Write a query to which returns a table with name and remember_token, if remember_token is not there, then return password_digest.
Tables Schema as Below:
USERS
columnName dataType
id INT
username VARCHAR(50)
email VARCHAR(50)
remember_token VARCHAR(50)
created_at DATETIME
updated_at DATETIME
password_digest VARCHAR(50)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!