Professional Documents
Culture Documents
Users table
ID FIRST_NAME SURNAME PASSWORD EMAIL PHONE
200 Charles Muranda $2y$10$NQ7bvhXo0iI... charlesm@boston.co.za 0218154800
201 Agnes Aishal $2y$10$NQ7bvWcq4…. agnes@gmail.com 0125468953
202 Joe Doe $2y$10$NQ7bvwhXlktl8…. jdoe@yahoo.com 0254762384
203 Steven Kong $2y$10$NQ7bkvyhW…. skong@email.com 0549273845
Roles table
ID ROLE
0 Admin
1 Student
1 HDBP200-1-Jul-Dec2020-T&L-Memo-CMu-W7-08092020
Question
Write an appropriate SQL command that would result in the following:
a)
ID FIRST_NAME SURNAME PASSWORD EMAIL PHONE
201 Agnes Aishal $2y$10$NQ7bvWcq4…. agnes@gmail.com 0125468953
202 Joe Doe $2y$10$NQ7bvwhXlktl8…. jdoe@yahoo.com 0254762384
203 Steven Kong $2y$10$NQ7bkvyhW…. skong@email.com 0549273845
200 Charles Muranda $2y$10$NQ7bvhXo0iI... charlesm@boston.co.za 0218154800
b)
ID FIRST_NAME SURNAME EMAIL PHONE
200 Charles Muranda charlesm@boston.co.za 0218154800
201 Agnes Aishal agnes@gmail.com 0125468953
202 Joe Doe jdoe@yahoo.com 0254762384
203 Steven Kong skong@email.com 0549273845
c)
ID FIRST_NAME SURNAME PASSWORD EMAIL PHONE
201 Agnes Aishal $2y$10$NQ7bvWcq4…. agnes@gmail.com 0125468953
202 Joe Doe $2y$10$NQ7bvwhXlktl8…. jdoe@yahoo.com 0254762384
203 Steven Kong $2y$10$NQ7bkvyhW…. skong@email.com 0549273845
d)
FIRST_NAME SURNAME PHONE
Charles Muranda 0218154800
Agnes Aishal 0125468953
Joe Doe 0254762384
2 HDBP200-1-Jul-Dec2020-T&L-Memo-CMu-W7-08092020
e)
FIRST_NAME SURNAME ROLE
3 HDBP200-1-Jul-Dec2020-T&L-Memo-CMu-W7-08092020