Click here to Skip to main content
15,901,035 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL statement Pin
PIEBALDconsult23-Apr-14 7:19
mvePIEBALDconsult23-Apr-14 7:19 
GeneralRe: SQL statement Pin
Syafiqah Zahirah23-Apr-14 7:25
Syafiqah Zahirah23-Apr-14 7:25 
AnswerRe: SQL statement Pin
Eddy Vluggen23-Apr-14 6:57
professionalEddy Vluggen23-Apr-14 6:57 
GeneralRe: SQL statement Pin
Syafiqah Zahirah23-Apr-14 7:27
Syafiqah Zahirah23-Apr-14 7:27 
AnswerRe: SQL statement Pin
TeddyLi26-Apr-14 1:33
TeddyLi26-Apr-14 1:33 
QuestionCreate an AutoIncrement Column in a dbase/clipper file for Account Mate DOS Pin
jkirkerx21-Apr-14 11:03
professionaljkirkerx21-Apr-14 11:03 
AnswerRe: Create an AutoIncrement Column in a dbase/clipper file for Account Mate DOS Pin
Jörgen Andersson22-Apr-14 3:59
professionalJörgen Andersson22-Apr-14 3:59 
QuestionRe: Create an AutoIncrement Column in a dbase/clipper file for Account Mate DOS Pin
Eddy Vluggen22-Apr-14 6:57
professionalEddy Vluggen22-Apr-14 6:57 
AnswerRe: Create an AutoIncrement Column in a dbase/clipper file for Account Mate DOS Pin
Jörgen Andersson22-Apr-14 7:28
professionalJörgen Andersson22-Apr-14 7:28 
QuestionC# Windows application: connection string to connect to remote sql server 2008 using windows authentication Pin
AshwiniSH21-Apr-14 3:23
professionalAshwiniSH21-Apr-14 3:23 
AnswerRe: C# Windows application: connection string to connect to remote sql server 2008 using windows authentication Pin
thatraja21-Apr-14 4:12
professionalthatraja21-Apr-14 4:12 
Questionwould you use RDLC? Pin
Jassim Rahma18-Apr-14 12:51
Jassim Rahma18-Apr-14 12:51 
AnswerRe: would you use RDLC? Pin
Mycroft Holmes18-Apr-14 13:33
professionalMycroft Holmes18-Apr-14 13:33 
GeneralRe: would you use RDLC? Pin
Jassim Rahma20-Apr-14 12:15
Jassim Rahma20-Apr-14 12:15 
GeneralRe: would you use RDLC? Pin
Mycroft Holmes20-Apr-14 12:54
professionalMycroft Holmes20-Apr-14 12:54 
GeneralRe: would you use RDLC? Pin
Jassim Rahma20-Apr-14 22:04
Jassim Rahma20-Apr-14 22:04 
QuestionOld school dbase II / clipper database, multiple left joins Pin
jkirkerx17-Apr-14 6:31
professionaljkirkerx17-Apr-14 6:31 
AnswerRe: Old school dbase II / clipper database, multiple left joins Pin
Jörgen Andersson17-Apr-14 10:38
professionalJörgen Andersson17-Apr-14 10:38 
General[SOLVED] Pin
jkirkerx17-Apr-14 10:49
professionaljkirkerx17-Apr-14 10:49 
GeneralRe: Old school dbase II / clipper database, multiple left joins Pin
jkirkerx17-Apr-14 11:03
professionaljkirkerx17-Apr-14 11:03 
QuestionSQL Query Pin
Syafiqah Zahirah17-Apr-14 6:00
Syafiqah Zahirah17-Apr-14 6:00 
AnswerRe: SQL Query Pin
Richard Deeming17-Apr-14 6:59
mveRichard Deeming17-Apr-14 6:59 
GeneralRe: SQL Query Pin
Syafiqah Zahirah17-Apr-14 20:18
Syafiqah Zahirah17-Apr-14 20:18 
GeneralRe: SQL Query Pin
Richard Deeming22-Apr-14 2:28
mveRichard Deeming22-Apr-14 2:28 
Try something like:
SQL
SELECT TOP 1 House, DateT, TempIn, tempOut, Humidity, TMushroomHouse.Name As MushroomHouseName FROM Environmnets INNER JOIN TDevice ON Environmnets.Deviceid = TDevice.id INNER JOIN TMushroomHouse ON TDevice.MushroomHouseId = TMushroomHouse.id WHERE TMushroomHouse.Name = @MushroomHouseName ORDER BY Environmnets.DateT DESC

This adds the Name column from the TMushroomHouse table as a new result column called MushroomHouseName. You can then read it from your code and put it in a textbox:
C#
while (dr.Read())
{
    ...
    MushroomHouseTextBox.Text = dr["MushroomHouseName"].ToString();
}




"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


QuestionWhy connection is failing?! Pin
Jassim Rahma16-Apr-14 9:59
Jassim Rahma16-Apr-14 9:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.