cancel
Showing results for 
Search instead for 
Did you mean: 

Which names got my colums in SAP HANA

former_member529961
Participant
0 Kudos

Helo experts, I got a SAP HANA DB. I create a column calles Users which got Emails as property

When i run a SQL query like this:

SELECT * FROM "DB_3"."NewsletterDATA.User"

it works. I get the Users together with there Emails. But when i try to filter for Emails like this:

SELECT * FROM "DB_3"."NewsletterDATA.User" WHERE Email = "foo@bar"

then i get an error that Email not a property is.

KonradZaleski
Active Contributor

You should use single quotes instead of double quotes for the filtered value. Meaning

Email = 'foo@bar'
former_member529961
Participant
0 Kudos

Thanks Konrad, but this do not work.

Accepted Solutions (1)

Accepted Solutions (1)

pfefferf
Active Contributor

As you get an error that column Email is not defined, I think that the name has upper and lower case characters. You have to enclose the column name with double quotes, otherwise it is translated to upper case. And of course, like Konrad commented already, you have to enclose the filter value with single quotes instead of double quotes.

SELECT * FROM "DB_3"."NewsletterDATA.User" WHERE "Email" = 'foo@bar'

Answers (1)

Answers (1)

jyothirmayee_s
Active Contributor
0 Kudos

Hi,

Just check how column Email is defined.

Try SELECT Email FROM "DB_3"."NewsletterDATA.User"

Thanks,

Jothi