Click here to Skip to main content
15,890,845 members
Home / Discussions / Database
   

Database

 
AnswerRe: Left Join and double results where the join is complete Pin
rjdudley24-Nov-14 14:02
rjdudley24-Nov-14 14:02 
GeneralRe: Left Join and double results where the join is complete Pin
jkirkerx25-Nov-14 7:39
professionaljkirkerx25-Nov-14 7:39 
GeneralRe: Left Join and double results where the join is complete Pin
rjdudley25-Nov-14 8:24
rjdudley25-Nov-14 8:24 
GeneralRe: Left Join and double results where the join is complete Pin
jkirkerx25-Nov-14 9:28
professionaljkirkerx25-Nov-14 9:28 
Questionwhat is the equivalent linq query for the following sql query? Pin
Dhyanga7-Nov-14 5:42
Dhyanga7-Nov-14 5:42 
AnswerRe: what is the equivalent linq query for the following sql query? Pin
PIEBALDconsult7-Nov-14 5:52
mvePIEBALDconsult7-Nov-14 5:52 
GeneralRe: what is the equivalent linq query for the following sql query? Pin
Dhyanga7-Nov-14 5:57
Dhyanga7-Nov-14 5:57 
GeneralRe: what is the equivalent linq query for the following sql query? Pin
Dhyanga7-Nov-14 6:03
Dhyanga7-Nov-14 6:03 
C#
var query = (from sub in db.myTable
                            where  (sub.Deleted == null || sub.Deleted == 0)
                            select new
                            {
                                sub.ID,
                                sub.UpdatedByAdmin,
                                sub.UpdatedBy,
                                sub.Deleted,
                                D1 = sub.UpdatedByAdmin.Equals(true ? sub.Date1 : sub.TimesForDate1),
                                D2 = sub.UpdatedByAdmin.Equals(true ? sub.Date2 : sub.TimesForDate2),
                                D3 = sub.UpdatedByAdmin.Equals(true ? sub.Date3 : sub.TimesForDate3)


                            }).ToList();


But this is giving error message as:
C#
System.ArgumentException: DbComparisonExpression requires arguments with comparable types.


I think its because my UpdatedByAdmin, Deleted columns are tinyInt datatype in the database. But When i used these fields in model class, i used byte datatype. I thought byte is equivalent to tinyInt.
Please help.
Dhyanga

GeneralRe: what is the equivalent linq query for the following sql query? Pin
PIEBALDconsult7-Nov-14 6:40
mvePIEBALDconsult7-Nov-14 6:40 
QuestionRe: what is the equivalent linq query for the following sql query? Pin
Eddy Vluggen7-Nov-14 7:31
professionalEddy Vluggen7-Nov-14 7:31 
AnswerRe: what is the equivalent linq query for the following sql query? Pin
Dhyanga7-Nov-14 7:44
Dhyanga7-Nov-14 7:44 
Questionmigrate a database in informix server to a local server mysql or postgree Pin
Ibrahim.elh6-Nov-14 3:48
Ibrahim.elh6-Nov-14 3:48 
AnswerRe: migrate a database in informix server to a local server mysql or postgree Pin
Eddy Vluggen7-Nov-14 7:33
professionalEddy Vluggen7-Nov-14 7:33 
QuestionSQL Left Outer Join Problem Pin
Vimalsoft(Pty) Ltd4-Nov-14 21:53
professionalVimalsoft(Pty) Ltd4-Nov-14 21:53 
AnswerRe: SQL Left Outer Join Problem Pin
Vimalsoft(Pty) Ltd4-Nov-14 22:11
professionalVimalsoft(Pty) Ltd4-Nov-14 22:11 
GeneralRe: SQL Left Outer Join Problem Pin
Mycroft Holmes4-Nov-14 22:33
professionalMycroft Holmes4-Nov-14 22:33 
GeneralRe: SQL Left Outer Join Problem Pin
Vimalsoft(Pty) Ltd4-Nov-14 22:34
professionalVimalsoft(Pty) Ltd4-Nov-14 22:34 
AnswerRe: SQL Left Outer Join Problem Pin
Richard Deeming5-Nov-14 1:42
mveRichard Deeming5-Nov-14 1:42 
SuggestionMessage Closed Pin
3-Nov-14 12:07
Member 24194273-Nov-14 12:07 
GeneralRe: New SQLite Management Program Pin
PIEBALDconsult3-Nov-14 12:48
mvePIEBALDconsult3-Nov-14 12:48 
QuestionSSRS across Internet Pin
JM7631-Oct-14 6:52
JM7631-Oct-14 6:52 
QuestionRe: SSRS across Internet Pin
GuyThiebaut3-Nov-14 1:43
professionalGuyThiebaut3-Nov-14 1:43 
AnswerRe: SSRS across Internet Pin
JM763-Nov-14 5:52
JM763-Nov-14 5:52 
GeneralRe: SSRS across Internet Pin
GuyThiebaut3-Nov-14 6:12
professionalGuyThiebaut3-Nov-14 6:12 
GeneralRe: SSRS across Internet Pin
Eddy Vluggen3-Nov-14 8:14
professionalEddy Vluggen3-Nov-14 8:14 

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.