Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Select datatable with join return 0

$
0
0

Good night,

I have one DataTeble that execute this slq query in my access database in c#:

DataTable dtCdDvd = cls.Fun_RetornaDataTable("SELECT tblCdDvd.Cod, tblCdDvd.Nome, tblCdDvd.Tamanho, tblTipo.Tipo, tblCdDvd.Grupo FROM [tblCdDvd] INNER JOIN [tblTipo] ON tblCdDvd.Tipo=tblTipo.Cod WHERE Status = TRUE");

if i use DataRow[] result = dtCdDvd.Select("[Grupo]=0"); the result is 0 rows and exist registry with informed code.

The more interesting is if my sql query runs "SELECT Grupo FROM tblGrupo" without join table my result is different of 0.


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>