Hi All,
I am getting ID AS NULL. But I have seen in the database that there is ID with customer name Reliance-tech.
select ID
from Customer
where customername= 'Reliance-tech';
Thanks in advance
Darma
Sql query problem
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Jignesh TrivediRank #16 · 50.3K reputationPosted Mar 18, 2014, 3:05 AM EDT
Hi,
As per my knowledge, select query return null if and only if data is not present.
here it may be you customer name does not exist in data base. it might be change to spell mistake or other mistake....
try..
select ID from Customer
where customername like 'Reliance%';