954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Reverse function

Hi to all,
table name: mail
email name
[email]abc@gmail.com[/email] abc
[email]def@rediff.com[/email] def
[email]pqr@yahoo.com[/email] PQR
[email]xyz@daniweb.com[/email] XYZ

=======================================

QUERY:

List all email and names in lower letters without any blanks.

========================================

I ran ltrim(), rtrim() and lower() function on data successfully. But fail to retrieve this data. Will you please help me? I don't have any little bit idea about code.

deolalkar_pooja
Light Poster
32 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

can you please explain - in which format you want this data??

if you want email concatenating with name, you can simply use "||" (without quotes)

like

select lower(trim(email)) || lower(trim(name)) from mail;


or if you want in separate columns then you need to replace "||" with "," only(again - without quotes ).

what you have done it is looking correct only.

:)

pratik_garg
Light Poster
38 posts since Feb 2011
Reputation Points: 6
Solved Threads: 4
 

I really do not understand what do you mean by -- I ran ltrim(), rtrim() and lower() function on data successfully. But fail to retrieve this data.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You