Click here to Skip to main content
15,891,910 members
Home / Discussions / Database
   

Database

 
GeneralRe: an insert query with return value Pin
Mycroft Holmes23-May-10 4:26
professionalMycroft Holmes23-May-10 4:26 
GeneralRe: an insert query with return value Pin
Luc Pattyn23-May-10 4:36
sitebuilderLuc Pattyn23-May-10 4:36 
GeneralRe: an insert query with return value Pin
Mycroft Holmes23-May-10 11:07
professionalMycroft Holmes23-May-10 11:07 
GeneralRe: an insert query with return value Pin
Luc Pattyn23-May-10 13:51
sitebuilderLuc Pattyn23-May-10 13:51 
QuestionMultiple columns at GROUP BY clause in CASE clause [modified] Pin
Naunt19-May-10 22:58
Naunt19-May-10 22:58 
AnswerRe: Multiple columns at GROUP BY clause in CASE clause Pin
Johan Hakkesteegt19-May-10 23:51
Johan Hakkesteegt19-May-10 23:51 
GeneralRe: Multiple columns at GROUP BY clause in CASE clause Pin
David Skelly20-May-10 0:37
David Skelly20-May-10 0:37 
GeneralRe: Multiple columns at GROUP BY clause in CASE clause Pin
Johan Hakkesteegt20-May-10 0:41
Johan Hakkesteegt20-May-10 0:41 
Just an example of a boolean test. I was too lazy to apply it to his code Wink | ;)

His' would be:
SQL
IF @num = 2
  SET @GROUPBY = 'GROUP BY (b.bl_no, b.laden_date,b.container_code,b.shipper_name,b.consignee_name,c.status,b.qty)'
ELSE
  SET @GROUPBY = 'GROUP BY (b.bl_no, b.laden_date,b.container_code,b.shipper_name,b.consignee_name)'

My advice is free, and you may get what you paid for.

GeneralRe: Multiple columns at GROUP BY clause in CASE clause Pin
Naunt20-May-10 15:54
Naunt20-May-10 15:54 
QuestionRe: Multiple columns at GROUP BY clause in CASE clause Pin
Chris Meech20-May-10 2:39
Chris Meech20-May-10 2:39 
QuestionRe: Multiple columns at GROUP BY clause in CASE clause Pin
Naunt20-May-10 16:35
Naunt20-May-10 16:35 
AnswerRe: Multiple columns at GROUP BY clause in CASE clause Pin
Johan Hakkesteegt21-May-10 0:47
Johan Hakkesteegt21-May-10 0:47 
AnswerRe: Multiple columns at GROUP BY clause in CASE clause Pin
Chris Meech21-May-10 1:15
Chris Meech21-May-10 1:15 
QuestionSql Server Remote Connection Error Pin
sudheesh kumar s19-May-10 20:30
sudheesh kumar s19-May-10 20:30 
AnswerRe: Sql Server Remote Connection Error Pin
_Damian S_19-May-10 20:36
professional_Damian S_19-May-10 20:36 
GeneralRe: Sql Server Remote Connection Error Pin
sudheesh kumar s19-May-10 21:24
sudheesh kumar s19-May-10 21:24 
QuestionSQL query problem Pin
josephong19-May-10 19:31
josephong19-May-10 19:31 
AnswerRe: SQL query problem Pin
_Damian S_19-May-10 20:19
professional_Damian S_19-May-10 20:19 
GeneralRe: SQL query problem Pin
josephong19-May-10 21:49
josephong19-May-10 21:49 
GeneralRe: SQL query problem Pin
Shameel23-May-10 5:21
professionalShameel23-May-10 5:21 
QuestionCompair Two tables and return result in column Pin
Sachin Pimpale18-May-10 23:41
Sachin Pimpale18-May-10 23:41 
AnswerRe: Compair Two tables and return result in column Pin
Tripathi Swati19-May-10 0:19
Tripathi Swati19-May-10 0:19 
GeneralRe: Compair Two tables and return result in column Pin
Sachin Pimpale19-May-10 1:53
Sachin Pimpale19-May-10 1:53 
GeneralRe: Compair Two tables and return result in column Pin
Tripathi Swati19-May-10 20:17
Tripathi Swati19-May-10 20:17 
AnswerRe: Compair Two tables and return result in column Pin
J4amieC19-May-10 2:25
J4amieC19-May-10 2:25 

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.