I've a problem with my program in c# and i hope, you can help me.
My database looks like this:
http://www11.pic-upload.de/08.09.15/czq5yxrrcf24.png
and I want to save the last value of "MaxZyklus" in a variable in c#.
My query to the server is okay, when I write it like this:
select Kabel.maxZyklus
from Kabel
where Kabel.kabelTyp = 'PM-K031'
and ID = 20;
select max(ID) from Kabel
but I don't know, how I can do it in one query, and save it in C# as a variable
Hope you can help me.